@gientech/modual 1.2.7 → 1.2.8

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 (312) hide show
  1. package/.editorconfig +38 -0
  2. package/.prettierignore +16 -0
  3. package/.prettierrc +17 -0
  4. package/README.md +129 -129
  5. package/USAGE.md +191 -0
  6. package/bash.exe.stackdump +40 -0
  7. package/components.json +21 -0
  8. package/dist/README.md +129 -0
  9. package/dist/assets/circle-alert-g2Y6zAjt.js +6 -0
  10. package/{assets → dist/assets}/database.svg +11 -11
  11. package/{assets → dist/assets}/database_add.svg +53 -53
  12. package/{assets → dist/assets}/database_connect.svg +66 -66
  13. package/{assets → dist/assets}/database_upload.svg +29 -29
  14. package/{assets → dist/assets}/defaultWeLogo.svg +14 -14
  15. package/dist/assets/index-97TKgPKE.js +1284 -0
  16. package/dist/assets/index-CEK88UzR.js +26 -0
  17. package/dist/assets/index-DIm7RgkM.js +1709 -0
  18. package/{assets/MySQL.svg → dist/assets/mysql.svg} +14 -14
  19. package/{assets/plus-fNg4vmeA.js → dist/assets/plus-omCUN0e3.js} +1 -1
  20. package/dist/assets/style.css +1 -0
  21. package/dist/assets/style3.css +1 -0
  22. package/{assets/x-tMUaBf0a.js → dist/assets/x-vPcWt3fC.js} +1 -1
  23. package/dist/chat.js +648 -0
  24. package/dist/database.js +20 -0
  25. package/dist/databaseId.js +11 -0
  26. package/{databaseTable.js → dist/databaseTable.js} +2 -2
  27. package/dist/modelManage.js +1 -0
  28. package/dist/package.json +56 -0
  29. package/dist/sensitive.js +1 -0
  30. package/{streamFilesReader.js → dist/streamFilesReader.js} +16 -16
  31. package/{worker → dist/worker}/pdf.worker.min.js +21 -21
  32. package/doc_assets/2.png +0 -0
  33. package/doc_assets/demo.md +27 -0
  34. package/doc_assets/demos/dist-app/assets/index.Dh-ZAS9Z.css +2 -0
  35. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js +23699 -0
  36. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js.map +1 -0
  37. package/doc_assets/demos/dist-app/index.html +14 -0
  38. package/doc_assets/demos/dist-app/vite.svg +1 -0
  39. package/doc_assets/images/1.png +0 -0
  40. package/doc_assets/images/3.png +0 -0
  41. package/doc_assets/images/component-screenshot.png +1 -0
  42. package/doc_assets/install.md +5 -0
  43. package/eslint.config.js +92 -0
  44. package/index.html +13 -0
  45. package/package.json +99 -56
  46. package/postcss.config.cjs +19 -0
  47. package/public/vite.svg +1 -0
  48. package/public/worker/pdf.worker.min.js +22 -0
  49. package/scripts/README.md +133 -0
  50. package/scripts/build-demo.js +88 -0
  51. package/scripts/demo-selector.js +216 -0
  52. package/scripts/dev-demo.js +76 -0
  53. package/scripts/preview-demo.js +130 -0
  54. package/scripts/run-demo.bat +34 -0
  55. package/src/assets/img/downArrow.png +0 -0
  56. package/src/assets/img/excel.png +0 -0
  57. package/src/assets/img/img.png +0 -0
  58. package/src/assets/img/pdf.png +0 -0
  59. package/src/assets/img/ppt.png +0 -0
  60. package/src/assets/img/txt.png +0 -0
  61. package/src/assets/img/word.png +0 -0
  62. package/src/assets/login/homeBg.png +0 -0
  63. package/src/assets/login/left.jpg +0 -0
  64. package/src/assets/login/logoImg.png +0 -0
  65. package/src/examples/LoginPage/index.tsx +18 -0
  66. package/src/examples/chat/index.tsx +140 -0
  67. package/src/examples/gientechStreamFilesReader/index.tsx +1016 -0
  68. package/src/examples/ragDatabaseDataPage/index.tsx +36 -0
  69. package/src/examples/ragDatabaseIdPage/index.tsx +44 -0
  70. package/src/examples/ragDatabasePage/index.tsx +36 -0
  71. package/src/examples/ragModelManagePage/index.tsx +37 -0
  72. package/src/examples/ragSearchPage/index.tsx +0 -0
  73. package/src/examples/ragSensitiveWordsPage/index.tsx +32 -0
  74. package/src/examples/streamFiles/index.tsx +384 -0
  75. package/src/lib_enter.ts +38 -0
  76. package/src/main.tsx +5 -0
  77. package/src/main.tsx.backup +5 -0
  78. package/src/modules/chat/Conversations/Item.tsx +167 -0
  79. package/src/modules/chat/Conversations/List.tsx +143 -0
  80. package/src/modules/chat/Conversations/groupByTime.ts +39 -0
  81. package/src/modules/chat/Conversations/index.tsx +212 -0
  82. package/src/modules/chat/constants.tsx +33 -0
  83. package/src/modules/chat/index.tsx +1837 -0
  84. package/src/modules/chat/types.ts +17 -0
  85. package/src/modules/database/CreateModal.tsx +398 -0
  86. package/src/modules/database/assets/Doris.png +0 -0
  87. package/src/modules/database/assets/PostgreSQL.png +0 -0
  88. package/src/modules/database/assets/SQLServer.png +0 -0
  89. package/src/modules/database/assets/database.svg +11 -0
  90. package/src/modules/database/assets/database_add.svg +53 -0
  91. package/src/modules/database/assets/database_connect.svg +66 -0
  92. package/src/modules/database/assets/database_upload.svg +29 -0
  93. package/src/modules/database/assets/empty.png +0 -0
  94. package/src/modules/database/assets/mysql.svg +14 -0
  95. package/src/modules/database/index.tsx +466 -0
  96. package/src/modules/database/server.ts +196 -0
  97. package/src/modules/databaseId/CustomCom.tsx +156 -0
  98. package/src/modules/databaseId/EditConfig.tsx +268 -0
  99. package/src/modules/databaseId/UploadDrawer.tsx +520 -0
  100. package/src/modules/databaseId/assets/aiOptimize.svg +10 -0
  101. package/src/modules/databaseId/assets/empty.png +0 -0
  102. package/src/modules/databaseId/assets/template.svg +6 -0
  103. package/src/modules/databaseId/assets/upload.svg +9 -0
  104. package/src/modules/databaseId/assets/useTemp.svg +6 -0
  105. package/src/modules/databaseId/index.tsx +734 -0
  106. package/src/modules/databaseId/server.ts +286 -0
  107. package/src/modules/databaseId/style.css +5 -0
  108. package/src/modules/databaseTable/EditRowDrawer.tsx +119 -0
  109. package/src/modules/databaseTable/index.tsx +357 -0
  110. package/src/modules/databaseTable/server.ts +180 -0
  111. package/src/modules/headlessChat/constants.tsx +32 -0
  112. package/src/modules/headlessChat/index.tsx +1065 -0
  113. package/src/modules/headlessChat/types.ts +23 -0
  114. package/src/modules/login/components/Login/LoginBox/index.tsx +102 -0
  115. package/src/modules/login/components/Login/RegisterBox/index.tsx +180 -0
  116. package/src/modules/login/components/Login/index.tsx +100 -0
  117. package/src/modules/login/index.tsx +106 -0
  118. package/src/modules/login/style.css +3 -0
  119. package/src/modules/login/useServices.ts +53 -0
  120. package/src/modules/login/utils.ts +42 -0
  121. package/src/modules/modelManage/ConfigDrawer.tsx +249 -0
  122. package/src/modules/modelManage/assets/empty.png +0 -0
  123. package/src/modules/modelManage/const.ts +50 -0
  124. package/src/modules/modelManage/index.tsx +439 -0
  125. package/src/modules/modelManage/server.ts +185 -0
  126. package/src/modules/search/assets/Icon-history.svg +8 -0
  127. package/src/modules/search/assets/answerAwartar.png +0 -0
  128. package/src/modules/search/assets/doc.png +0 -0
  129. package/src/modules/search/assets/genera.gif +0 -0
  130. package/src/modules/search/assets/icon-robot.svg +9 -0
  131. package/src/modules/search/assets/icon-search-bar.svg +14 -0
  132. package/src/modules/search/assets/icon-sub-title.svg +3 -0
  133. package/src/modules/search/assets/icon-title.svg +9 -0
  134. package/src/modules/search/assets/icon-zoomOut.svg +9 -0
  135. package/src/modules/search/assets/iconAi.svg +9 -0
  136. package/src/modules/search/assets/pdf.png +0 -0
  137. package/src/modules/search/assets/ppt.png +0 -0
  138. package/src/modules/search/assets/search.svg +3 -0
  139. package/src/modules/search/assets/selected.svg +4 -0
  140. package/src/modules/search/assets/txt.png +0 -0
  141. package/src/modules/search/assets/xls.png +0 -0
  142. package/src/modules/search/components/AssisSelect.tsx +137 -0
  143. package/src/modules/search/components/Editor/ChatViewEditor.tsx +261 -0
  144. package/src/modules/search/components/Editor/aichat.css +1 -0
  145. package/src/modules/search/components/Editor/constant.ts +13 -0
  146. package/src/modules/search/components/Editor/index.tsx +113 -0
  147. package/src/modules/search/components/Editor/plugins/autofomatRules.ts +332 -0
  148. package/src/modules/search/components/Editor/plugins/convertImgPlugins.tsx +20 -0
  149. package/src/modules/search/components/Editor/plugins/createIndexes.tsx +38 -0
  150. package/src/modules/search/components/Editor/plugins/displayer.ts +298 -0
  151. package/src/modules/search/components/Editor/plugins/imageClick.tsx +32 -0
  152. package/src/modules/search/components/Editor/plugins/myplugin.tsx +98 -0
  153. package/src/modules/search/components/Editor/ui/avatar.tsx +19 -0
  154. package/src/modules/search/components/Editor/ui/blockquote-element.tsx +21 -0
  155. package/src/modules/search/components/Editor/ui/button.tsx +58 -0
  156. package/src/modules/search/components/Editor/ui/calendar.tsx +68 -0
  157. package/src/modules/search/components/Editor/ui/caption.tsx +46 -0
  158. package/src/modules/search/components/Editor/ui/checkbox.tsx +27 -0
  159. package/src/modules/search/components/Editor/ui/code-block-combobox.tsx +188 -0
  160. package/src/modules/search/components/Editor/ui/code-block-element.css +434 -0
  161. package/src/modules/search/components/Editor/ui/code-block-element.tsx +39 -0
  162. package/src/modules/search/components/Editor/ui/code-leaf.tsx +24 -0
  163. package/src/modules/search/components/Editor/ui/code-line-element.tsx +10 -0
  164. package/src/modules/search/components/Editor/ui/code-syntax-leaf.tsx +21 -0
  165. package/src/modules/search/components/Editor/ui/column-element.tsx +30 -0
  166. package/src/modules/search/components/Editor/ui/column-group-element.tsx +94 -0
  167. package/src/modules/search/components/Editor/ui/command.tsx +75 -0
  168. package/src/modules/search/components/Editor/ui/comment-avatar.tsx +22 -0
  169. package/src/modules/search/components/Editor/ui/comment-create-form.tsx +37 -0
  170. package/src/modules/search/components/Editor/ui/comment-item.tsx +74 -0
  171. package/src/modules/search/components/Editor/ui/comment-leaf.tsx +49 -0
  172. package/src/modules/search/components/Editor/ui/comment-more-dropdown.tsx +42 -0
  173. package/src/modules/search/components/Editor/ui/comment-reply-items.tsx +22 -0
  174. package/src/modules/search/components/Editor/ui/comment-resolve-button.tsx +32 -0
  175. package/src/modules/search/components/Editor/ui/comment-value.tsx +34 -0
  176. package/src/modules/search/components/Editor/ui/comments-popover.tsx +63 -0
  177. package/src/modules/search/components/Editor/ui/date-element.tsx +83 -0
  178. package/src/modules/search/components/Editor/ui/dialog.tsx +63 -0
  179. package/src/modules/search/components/Editor/ui/draggable.tsx +177 -0
  180. package/src/modules/search/components/Editor/ui/dropdown-menu.tsx +180 -0
  181. package/src/modules/search/components/Editor/ui/emoji-input-element.tsx +85 -0
  182. package/src/modules/search/components/Editor/ui/excalidraw-element.tsx +28 -0
  183. package/src/modules/search/components/Editor/ui/fixed-toolbar-buttons.tsx +76 -0
  184. package/src/modules/search/components/Editor/ui/fixed-toolbar.tsx +8 -0
  185. package/src/modules/search/components/Editor/ui/floating-toolbar-buttons.tsx +51 -0
  186. package/src/modules/search/components/Editor/ui/floating-toolbar.tsx +77 -0
  187. package/src/modules/search/components/Editor/ui/heading-element.tsx +48 -0
  188. package/src/modules/search/components/Editor/ui/highlight-leaf.tsx +17 -0
  189. package/src/modules/search/components/Editor/ui/hr-element.tsx +30 -0
  190. package/src/modules/search/components/Editor/ui/icons.tsx +267 -0
  191. package/src/modules/search/components/Editor/ui/image-element.tsx +74 -0
  192. package/src/modules/search/components/Editor/ui/inline-combobox.tsx +368 -0
  193. package/src/modules/search/components/Editor/ui/input.tsx +25 -0
  194. package/src/modules/search/components/Editor/ui/insert-dropdown-menu.tsx +218 -0
  195. package/src/modules/search/components/Editor/ui/kbd-leaf.tsx +20 -0
  196. package/src/modules/search/components/Editor/ui/link-element.tsx +29 -0
  197. package/src/modules/search/components/Editor/ui/link-floating-toolbar.tsx +161 -0
  198. package/src/modules/search/components/Editor/ui/list-element.tsx +30 -0
  199. package/src/modules/search/components/Editor/ui/mark-toolbar-button.tsx +24 -0
  200. package/src/modules/search/components/Editor/ui/media-embed-element.tsx +133 -0
  201. package/src/modules/search/components/Editor/ui/media-popover.tsx +97 -0
  202. package/src/modules/search/components/Editor/ui/mention-element.tsx +43 -0
  203. package/src/modules/search/components/Editor/ui/mention-input-element.tsx +141 -0
  204. package/src/modules/search/components/Editor/ui/mode-dropdown-menu.tsx +93 -0
  205. package/src/modules/search/components/Editor/ui/more-dropdown-menu.tsx +67 -0
  206. package/src/modules/search/components/Editor/ui/paragraph-element.tsx +4 -0
  207. package/src/modules/search/components/Editor/ui/placeholder.tsx +52 -0
  208. package/src/modules/search/components/Editor/ui/popover.tsx +32 -0
  209. package/src/modules/search/components/Editor/ui/resizable.tsx +66 -0
  210. package/src/modules/search/components/Editor/ui/separator.tsx +25 -0
  211. package/src/modules/search/components/Editor/ui/style.less +12 -0
  212. package/src/modules/search/components/Editor/ui/table-cell-element.tsx +143 -0
  213. package/src/modules/search/components/Editor/ui/table-element.tsx +243 -0
  214. package/src/modules/search/components/Editor/ui/table-row-element.tsx +22 -0
  215. package/src/modules/search/components/Editor/ui/tableValue.tsx +135 -0
  216. package/src/modules/search/components/Editor/ui/todo-list-element.tsx +43 -0
  217. package/src/modules/search/components/Editor/ui/toggle-element.tsx +31 -0
  218. package/src/modules/search/components/Editor/ui/toolbar.tsx +157 -0
  219. package/src/modules/search/components/Editor/ui/tooltip.tsx +65 -0
  220. package/src/modules/search/components/Editor/ui/turn-into-dropdown-menu.tsx +160 -0
  221. package/src/modules/search/components/Editor/ui/with-draggables.tsx +175 -0
  222. package/src/modules/search/components/FileList.tsx +287 -0
  223. package/src/modules/search/components/ImageGroupView/index.tsx +85 -0
  224. package/src/modules/search/components/ResultContent.tsx +232 -0
  225. package/src/modules/search/components/SearchInput.tsx +232 -0
  226. package/src/modules/search/components/SearchLanding.tsx +74 -0
  227. package/src/modules/search/components/SearchView.tsx +563 -0
  228. package/src/modules/search/components/SimpleEditor.tsx +158 -0
  229. package/src/modules/search/components/SimpleFileList.tsx +215 -0
  230. package/src/modules/search/index.tsx +10 -0
  231. package/src/modules/search/reademe.md +1 -0
  232. package/src/modules/search/servers/apis.tsx +19 -0
  233. package/src/modules/search/servers/index.ts +184 -0
  234. package/src/modules/search/style.less +503 -0
  235. package/src/modules/search/type.ts +22 -0
  236. package/src/modules/search/utils.ts +34 -0
  237. package/src/modules/sensitive/index.tsx +313 -0
  238. package/src/modules/sensitive/server.ts +122 -0
  239. package/src/modules/streamFilesReader/GientechStreamReader.tsx +1555 -0
  240. package/src/modules/streamFilesReader/components/Header/Toolbar.tsx +0 -0
  241. package/src/modules/streamFilesReader/components/Header/index.tsx +297 -0
  242. package/src/modules/streamFilesReader/index.tsx +3 -0
  243. package/src/style.css +6 -0
  244. package/src/type.d.ts +0 -0
  245. package/src/utils/commonFn.tsx +111 -0
  246. package/src/utils/gientechCommon/components/AppError.tsx +32 -0
  247. package/src/utils/gientechCommon/components/AppLoading.tsx +75 -0
  248. package/src/utils/gientechCommon/components/DeleteModal.tsx +75 -0
  249. package/src/utils/gientechCommon/components/DisplayError.tsx +33 -0
  250. package/src/utils/gientechCommon/components/DisplayLoading.tsx +38 -0
  251. package/src/utils/gientechCommon/components/FeedBackModal.tsx +310 -0
  252. package/src/utils/gientechCommon/components/FileCardCommon.tsx +82 -0
  253. package/src/utils/gientechCommon/components/FileManager/index.tsx +390 -0
  254. package/src/utils/gientechCommon/components/FileManager/style.css +5 -0
  255. package/src/utils/gientechCommon/components/Messages/GientechNewChatWelcome.tsx +296 -0
  256. package/src/utils/gientechCommon/components/Messages/ReferenceCard.tsx +339 -0
  257. package/src/utils/gientechCommon/components/Messages/RetriveItem.tsx +245 -0
  258. package/src/utils/gientechCommon/components/Messages/WebRetriveItem.tsx +209 -0
  259. package/src/utils/gientechCommon/components/Messages/defaultBot.png +0 -0
  260. package/src/utils/gientechCommon/components/Messages/defaultStyleSet.tsx +148 -0
  261. package/src/utils/gientechCommon/components/Messages/defaultWeLogo.svg +14 -0
  262. package/src/utils/gientechCommon/components/RenameModal.tsx +86 -0
  263. package/src/utils/gientechCommon/components/style.less +11 -0
  264. package/src/utils/gientechCommon/configs/commonConfig.ts +2 -0
  265. package/src/utils/gientechCommon/configs/senderConfig.ts +0 -0
  266. package/src/utils/gientechCommon/configs/stylesConfig.ts +142 -0
  267. package/src/utils/gientechCommon/hooks/AichatUseController.tsx +339 -0
  268. package/src/utils/gientechCommon/slate/converters/deserializers.ts +763 -0
  269. package/src/utils/gientechCommon/slate/converters/mockData.ts +232 -0
  270. package/src/utils/gientechCommon/slate/converters/slateConverters.ts +258 -0
  271. package/src/utils/gientechCommon/slate/richElements/index.tsx +499 -0
  272. package/src/utils/gientechCommon/utils/request.ts +37 -0
  273. package/src/utils/gientechCommon/utils/serverFn.ts +172 -0
  274. package/src/utils/index.tsx +126 -0
  275. package/src/utils/testconfigs/demologin/index.tsx +32 -0
  276. package/src/utils/testconfigs/index.ts +53 -0
  277. package/src/vite-env.d.ts +11 -0
  278. package/stats.html +4949 -0
  279. package/tailwind.config.js +170 -0
  280. package/tsconfig.app.json +30 -0
  281. package/tsconfig.app.tsbuildinfo +11 -0
  282. package/tsconfig.json +13 -0
  283. package/tsconfig.node.json +22 -0
  284. package/tsconfig.node.tsbuildinfo +1 -0
  285. package/vite.config.ts +178 -0
  286. package/workflows/release.yml +60 -0
  287. package/assets/index--DG-fVvc.js +0 -26
  288. package/assets/index-BfureYPx.js +0 -1505
  289. package/assets/index-CXwV5fAx.js +0 -1230
  290. package/assets/style.css +0 -1
  291. package/assets/style3.css +0 -1
  292. package/chat.js +0 -893
  293. package/database.js +0 -20
  294. package/databaseId.js +0 -21
  295. package/modelManage.js +0 -1
  296. package/sensitive.js +0 -1
  297. /package/{assets → dist/assets}/Doris.png +0 -0
  298. /package/{assets → dist/assets}/PostgreSQL.png +0 -0
  299. /package/{assets → dist/assets}/SQLServer.png +0 -0
  300. /package/{assets → dist/assets}/_commonjsHelpers-gnU0ypJ3.js +0 -0
  301. /package/{assets → dist/assets}/empty.png +0 -0
  302. /package/{assets → dist/assets}/index-CpW6Dhpp.js +0 -0
  303. /package/{assets → dist/assets}/style2.css +0 -0
  304. /package/{assets → dist/assets}/styled-components.browser.esm-DPkS13KC.js +0 -0
  305. /package/{chat.d.ts → dist/chat.d.ts} +0 -0
  306. /package/{database.d.ts → dist/database.d.ts} +0 -0
  307. /package/{databaseId.d.ts → dist/databaseId.d.ts} +0 -0
  308. /package/{databaseTable.d.ts → dist/databaseTable.d.ts} +0 -0
  309. /package/{modelManage.d.ts → dist/modelManage.d.ts} +0 -0
  310. /package/{sensitive.d.ts → dist/sensitive.d.ts} +0 -0
  311. /package/{streamFilesReader.d.ts → dist/streamFilesReader.d.ts} +0 -0
  312. /package/{vite.svg → dist/vite.svg} +0 -0
package/chat.js DELETED
@@ -1,893 +0,0 @@
1
- import{jsx as ce,jsxs as pt,Fragment as BP}from"react/jsx-runtime";import*as d from"react";import se,{forwardRef as Nr,createElement as Ka,createContext as Kr,version as Gk,useMemo as tn,useContext as sn,useState as Et,useRef as Ye,Children as Yk,useEffect as St,useImperativeHandle as Ri,useCallback as yi,useLayoutEffect as Zk,cloneElement as Qk,isValidElement as Jk,Component as Id,PureComponent as zP}from"react";import yr from"axios";import*as eE from"react-dom";import Wu,{flushSync as ts,createPortal as kv,unstable_batchedUpdates as LP}from"react-dom";import{Dropdown as HP,message as Wn,Popover as VP,Input as qu,Form as xi,ConfigProvider as Ev,Modal as Nd,Button as Oo,Tree as WP,Tag as qP,Popconfirm as KP,Upload as UP,Skeleton as Fc}from"antd";import{u as sa}from"./assets/index-CpW6Dhpp.js";import{A as jb}from"./assets/index-CXwV5fAx.js";/* empty css */import{c as Ko,I as Dr,i as $v,C as XP,g as GP}from"./assets/index--DG-fVvc.js";import{g as Ov}from"./assets/_commonjsHelpers-gnU0ypJ3.js";import{P as tE}from"./assets/plus-fNg4vmeA.js";import{X as Iv}from"./assets/x-tMUaBf0a.js";var YP=Object.defineProperty,ZP=(e,t,n)=>t in e?YP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,En=(e,t,n)=>ZP(e,typeof t!="symbol"?t+"":t,n),jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ab={exports:{}},Hs={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Rb;function QP(){if(Rb)return Hs;Rb=1;var e=se,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,f={},m=null,v=null;c!==void 0&&(m=""+c),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(f[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:s,key:m,ref:v,props:f,_owner:o.current}}return Hs.Fragment=n,Hs.jsx=a,Hs.jsxs=a,Hs}var Tb;function JP(){return Tb||(Tb=1,Ab.exports=QP()),Ab.exports}var me=JP();const eF={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"transparent"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.c zap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}},tF={sm:"240px",md:"260px",lg:"280px"},Lm={sm:"12px",md:"16px",lg:"20px"},nE={sm:"2px",md:"4px",lg:"8px"},nF={sm:"4px",md:"8px",lg:"16px"},rF={sm:"4px",md:"8px",lg:"16px"},oF={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},iF={sm:"1.2",md:"1.5",lg:"2"};/**
10
- * @license lucide-react v0.456.0 - ISC
11
- *
12
- * This source code is licensed under the ISC license.
13
- * See the LICENSE file in the root directory of this source tree.
14
- */const aF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rE=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
15
- * @license lucide-react v0.456.0 - ISC
16
- *
17
- * This source code is licensed under the ISC license.
18
- * See the LICENSE file in the root directory of this source tree.
19
- */var sF={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
20
- * @license lucide-react v0.456.0 - ISC
21
- *
22
- * This source code is licensed under the ISC license.
23
- * See the LICENSE file in the root directory of this source tree.
24
- */const lF=Nr(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>Ka("svg",{ref:l,...sF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:rE("lucide",o),...s},[...a.map(([c,u])=>Ka(c,u)),...Array.isArray(i)?i:[i]]));/**
25
- * @license lucide-react v0.456.0 - ISC
26
- *
27
- * This source code is licensed under the ISC license.
28
- * See the LICENSE file in the root directory of this source tree.
29
- */const hn=(e,t)=>{const n=Nr(({className:r,...o},i)=>Ka(lF,{ref:i,iconNode:t,className:rE(`lucide-${aF(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
30
- * @license lucide-react v0.456.0 - ISC
31
- *
32
- * This source code is licensed under the ISC license.
33
- * See the LICENSE file in the root directory of this source tree.
34
- */hn("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
35
- * @license lucide-react v0.456.0 - ISC
36
- *
37
- * This source code is licensed under the ISC license.
38
- * See the LICENSE file in the root directory of this source tree.
39
- */hn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
40
- * @license lucide-react v0.456.0 - ISC
41
- *
42
- * This source code is licensed under the ISC license.
43
- * See the LICENSE file in the root directory of this source tree.
44
- */const cF=hn("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
45
- * @license lucide-react v0.456.0 - ISC
46
- *
47
- * This source code is licensed under the ISC license.
48
- * See the LICENSE file in the root directory of this source tree.
49
- */const uF=hn("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
50
- * @license lucide-react v0.456.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const dF=hn("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
55
- * @license lucide-react v0.456.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */const fF=hn("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
60
- * @license lucide-react v0.456.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const pF=hn("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
65
- * @license lucide-react v0.456.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */hn("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
70
- * @license lucide-react v0.456.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */hn("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
75
- * @license lucide-react v0.456.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */hn("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
80
- * @license lucide-react v0.456.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const mF=hn("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/**
85
- * @license lucide-react v0.456.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const gF=hn("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/**
90
- * @license lucide-react v0.456.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const Ea=hn("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
95
- * @license lucide-react v0.456.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const Db=hn("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
100
- * @license lucide-react v0.456.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */hn("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/**
105
- * @license lucide-react v0.456.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */hn("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
110
- * @license lucide-react v0.456.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */hn("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
115
- * @license lucide-react v0.456.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const _b=hn("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
120
- * @license lucide-react v0.456.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */hn("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
125
- * @license lucide-react v0.456.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */hn("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
130
- * @license lucide-react v0.456.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */hn("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
135
- * @license lucide-react v0.456.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */hn("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
140
- * @license lucide-react v0.456.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const hF=hn("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
145
- * @license lucide-react v0.456.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */hn("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
150
- * @license lucide-react v0.456.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */hn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
155
- * @license lucide-react v0.456.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const vF=hn("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
160
- * @license lucide-react v0.456.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const bF=hn("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
165
- * @license lucide-react v0.456.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const yF=hn("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
170
- * @license lucide-react v0.456.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */hn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
175
- * @license lucide-react v0.456.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const oE=hn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var iE={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Nv={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},xF=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Ku={CSS:{},springs:{}};function zo(e,t,n){return Math.min(Math.max(e,t),n)}function fl(e,t){return e.indexOf(t)>-1}function Xf(e,t){return e.apply(null,t)}var Mt={arr:function(e){return Array.isArray(e)},obj:function(e){return fl(Object.prototype.toString.call(e),"Object")},pth:function(e){return Mt.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Mt.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return Mt.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Mt.hex(e)||Mt.rgb(e)||Mt.hsl(e)},key:function(e){return!iE.hasOwnProperty(e)&&!Nv.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function aE(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function sE(e,t){var n=aE(e),r=zo(Mt.und(n[0])?1:n[0],.1,100),o=zo(Mt.und(n[1])?100:n[1],.1,100),i=zo(Mt.und(n[2])?10:n[2],.1,100),a=zo(Mt.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/r),l=i/(2*Math.sqrt(o*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,f=l<1?(l*s+-a)/c:-a+s;function m(h){var p=t?t*h/1e3:h;return l<1?p=Math.exp(-p*l*s)*(u*Math.cos(c*p)+f*Math.sin(c*p)):p=(u+f*p)*Math.exp(-p*s),h===0||h===1?h:1-p}function v(){var h=Ku.springs[e];if(h)return h;for(var p=1/6,g=0,b=0;;)if(g+=p,m(g)===1){if(b++,b>=16)break}else b=0;var y=g*p*1e3;return Ku.springs[e]=y,y}return t?m:v}function wF(e){return e===void 0&&(e=10),function(t){return Math.ceil(zo(t,1e-6,1)*e)*(1/e)}}var CF=(function(){var e=11,t=1/(e-1);function n(u,f){return 1-3*f+3*u}function r(u,f){return 3*f-6*u}function o(u){return 3*u}function i(u,f,m){return((n(f,m)*u+r(f,m))*u+o(f))*u}function a(u,f,m){return 3*n(f,m)*u*u+2*r(f,m)*u+o(f)}function s(u,f,m,v,h){var p,g,b=0;do g=f+(m-f)/2,p=i(g,v,h)-u,p>0?m=g:f=g;while(Math.abs(p)>1e-7&&++b<10);return g}function l(u,f,m,v){for(var h=0;h<4;++h){var p=a(f,m,v);if(p===0)return f;var g=i(f,m,v)-u;f-=g/p}return f}function c(u,f,m,v){if(!(0<=u&&u<=1&&0<=m&&m<=1))return;var h=new Float32Array(e);if(u!==f||m!==v)for(var p=0;p<e;++p)h[p]=i(p*t,u,m);function g(b){for(var y=0,x=1,w=e-1;x!==w&&h[x]<=b;++x)y+=t;--x;var C=(b-h[x])/(h[x+1]-h[x]),S=y+C*t,E=a(S,u,m);return E>=.001?l(b,S,u,m):E===0?S:s(b,y,y+t,u,m)}return function(b){return u===f&&m===v||b===0||b===1?b:i(g(b),f,v)}}return c})(),lE=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var o,i=4;r<((o=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((o*3-2)/22-r,2)}},Elastic:function(r,o){r===void 0&&(r=1),o===void 0&&(o=.5);var i=zo(r,1,10),a=zo(o,.1,2);return function(s){return s===0||s===1?s:-i*Math.pow(2,10*(s-1))*Math.sin((s-1-a/(Math.PI*2)*Math.asin(1/i))*(Math.PI*2)/a)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,o){t[r]=function(){return function(i){return Math.pow(i,o+2)}}}),Object.keys(t).forEach(function(r){var o=t[r];e["easeIn"+r]=o,e["easeOut"+r]=function(i,a){return function(s){return 1-o(i,a)(1-s)}},e["easeInOut"+r]=function(i,a){return function(s){return s<.5?o(i,a)(s*2)/2:1-o(i,a)(s*-2+2)/2}},e["easeOutIn"+r]=function(i,a){return function(s){return s<.5?(1-o(i,a)(1-s*2))/2:(o(i,a)(s*2-1)+1)/2}}}),e})();function Mv(e,t){if(Mt.fnc(e))return e;var n=e.split("(")[0],r=lE[n],o=aE(e);switch(n){case"spring":return sE(e,t);case"cubicBezier":return Xf(CF,o);case"steps":return Xf(wF,o);default:return Xf(r,o)}}function cE(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Md(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in e){var a=e[i];t.call(r,a,i,e)&&o.push(a)}return o}function Pd(e){return e.reduce(function(t,n){return t.concat(Mt.arr(n)?Pd(n):n)},[])}function Bb(e){return Mt.arr(e)?e:(Mt.str(e)&&(e=cE(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Pv(e,t){return e.some(function(n){return n===t})}function Fv(e){var t={};for(var n in e)t[n]=e[n];return t}function Hm(e,t){var n=Fv(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function Fd(e,t){var n=Fv(e);for(var r in t)n[r]=Mt.und(e[r])?t[r]:e[r];return n}function SF(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function kF(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(s,l,c,u){return l+l+c+c+u+u}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(r[1],16),i=parseInt(r[2],16),a=parseInt(r[3],16);return"rgba("+o+","+i+","+a+",1)"}function EF(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,i=t[4]||1;function a(m,v,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?m+(v-m)*6*h:h<1/2?v:h<2/3?m+(v-m)*(2/3-h)*6:m}var s,l,c;if(r==0)s=l=c=o;else{var u=o<.5?o*(1+r):o+r-o*r,f=2*o-u;s=a(f,u,n+1/3),l=a(f,u,n),c=a(f,u,n-1/3)}return"rgba("+s*255+","+l*255+","+c*255+","+i+")"}function $F(e){if(Mt.rgb(e))return SF(e);if(Mt.hex(e))return kF(e);if(Mt.hsl(e))return EF(e)}function ei(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function OF(e){if(fl(e,"translate")||e==="perspective")return"px";if(fl(e,"rotate")||fl(e,"skew"))return"deg"}function Vm(e,t){return Mt.fnc(e)?e(t.target,t.id,t.total):e}function Lo(e,t){return e.getAttribute(t)}function jv(e,t,n){var r=ei(t);if(Pv([n,"deg","rad","turn"],r))return t;var o=Ku.CSS[t+n];if(!Mt.und(o))return o;var i=100,a=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(a),a.style.position="absolute",a.style.width=i+n;var l=i/a.offsetWidth;s.removeChild(a);var c=l*parseFloat(t);return Ku.CSS[t+n]=c,c}function uE(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?jv(e,o,n):o}}function Av(e,t){if(Mt.dom(e)&&!Mt.inp(e)&&(!Mt.nil(Lo(e,t))||Mt.svg(e)&&e[t]))return"attribute";if(Mt.dom(e)&&Pv(xF,t))return"transform";if(Mt.dom(e)&&t!=="transform"&&uE(e,t))return"css";if(e[t]!=null)return"object"}function dE(e){if(Mt.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,o;o=n.exec(t);)r.set(o[1],o[2]);return r}}function IF(e,t,n,r){var o=fl(t,"scale")?1:0+OF(t),i=dE(e).get(t)||o;return n&&(n.transforms.list.set(t,i),n.transforms.last=t),r?jv(e,i,r):i}function Rv(e,t,n,r){switch(Av(e,t)){case"transform":return IF(e,t,r,n);case"css":return uE(e,t,n);case"attribute":return Lo(e,t);default:return e[t]||0}}function Tv(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=ei(e)||0,o=parseFloat(t),i=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function fE(e,t){if(Mt.col(e))return $F(e);if(/\s/g.test(e))return e;var n=ei(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Dv(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function NF(e){return Math.PI*2*Lo(e,"r")}function MF(e){return Lo(e,"width")*2+Lo(e,"height")*2}function PF(e){return Dv({x:Lo(e,"x1"),y:Lo(e,"y1")},{x:Lo(e,"x2"),y:Lo(e,"y2")})}function pE(e){for(var t=e.points,n=0,r,o=0;o<t.numberOfItems;o++){var i=t.getItem(o);o>0&&(n+=Dv(r,i)),r=i}return n}function FF(e){var t=e.points;return pE(e)+Dv(t.getItem(t.numberOfItems-1),t.getItem(0))}function mE(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return NF(e);case"rect":return MF(e);case"line":return PF(e);case"polyline":return pE(e);case"polygon":return FF(e)}}function jF(e){var t=mE(e);return e.setAttribute("stroke-dasharray",t),t}function AF(e){for(var t=e.parentNode;Mt.svg(t)&&Mt.svg(t.parentNode);)t=t.parentNode;return t}function gE(e,t){var n=t||{},r=n.el||AF(e),o=r.getBoundingClientRect(),i=Lo(r,"viewBox"),a=o.width,s=o.height,l=n.viewBox||(i?i.split(" "):[0,0,a,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:a,h:s,vW:l[2],vH:l[3]}}function RF(e,t){var n=Mt.str(e)?cE(e)[0]:e,r=t||100;return function(o){return{property:o,el:n,svg:gE(n),totalLength:mE(n)*(r/100)}}}function TF(e,t,n){function r(u){u===void 0&&(u=0);var f=t+u>=1?t+u:0;return e.el.getPointAtLength(f)}var o=gE(e.el,e.svg),i=r(),a=r(-1),s=r(1),l=n?1:o.w/o.vW,c=n?1:o.h/o.vH;switch(e.property){case"x":return(i.x-o.x)*l;case"y":return(i.y-o.y)*c;case"angle":return Math.atan2(s.y-a.y,s.x-a.x)*180/Math.PI}}function zb(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=fE(Mt.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Mt.str(e)||t?r.split(n):[]}}function _v(e){var t=e?Pd(Mt.arr(e)?e.map(Bb):Bb(e)):[];return Md(t,function(n,r,o){return o.indexOf(n)===r})}function hE(e){var t=_v(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:dE(n)}}})}function DF(e,t){var n=Fv(t);if(/^spring/.test(n.easing)&&(n.duration=sE(n.easing)),Mt.arr(e)){var r=e.length,o=r===2&&!Mt.obj(e[0]);o?e={value:e}:Mt.fnc(t.duration)||(n.duration=t.duration/r)}var i=Mt.arr(e)?e:[e];return i.map(function(a,s){var l=Mt.obj(a)&&!Mt.pth(a)?a:{value:a};return Mt.und(l.delay)&&(l.delay=s?0:t.delay),Mt.und(l.endDelay)&&(l.endDelay=s===i.length-1?t.endDelay:0),l}).map(function(a){return Fd(a,n)})}function _F(e){for(var t=Md(Pd(e.map(function(i){return Object.keys(i)})),function(i){return Mt.key(i)}).reduce(function(i,a){return i.indexOf(a)<0&&i.push(a),i},[]),n={},r=function(i){var a=t[i];n[a]=e.map(function(s){var l={};for(var c in s)Mt.key(c)?c==a&&(l.value=s[c]):l[c]=s[c];return l})},o=0;o<t.length;o++)r(o);return n}function BF(e,t){var n=[],r=t.keyframes;r&&(t=Fd(_F(r),t));for(var o in t)Mt.key(o)&&n.push({name:o,tweens:DF(t[o],e)});return n}function zF(e,t){var n={};for(var r in e){var o=Vm(e[r],t);Mt.arr(o)&&(o=o.map(function(i){return Vm(i,t)}),o.length===1&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function LF(e,t){var n;return e.tweens.map(function(r){var o=zF(r,t),i=o.value,a=Mt.arr(i)?i[1]:i,s=ei(a),l=Rv(t.target,e.name,s,t),c=n?n.to.original:l,u=Mt.arr(i)?i[0]:c,f=ei(u)||ei(l),m=s||f;return Mt.und(a)&&(a=c),o.from=zb(u,m),o.to=zb(Tv(a,u),m),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Mv(o.easing,o.duration),o.isPath=Mt.pth(i),o.isPathTargetInsideSVG=o.isPath&&Mt.svg(t.target),o.isColor=Mt.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}var vE={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){if(r.list.set(t,n),t===r.last||o){var i="";r.list.forEach(function(a,s){i+=s+"("+a+") "}),e.style.transform=i}}};function bE(e,t){var n=hE(e);n.forEach(function(r){for(var o in t){var i=Vm(t[o],r),a=r.target,s=ei(i),l=Rv(a,o,s,r),c=s||ei(l),u=Tv(fE(i,c),l),f=Av(a,o);vE[f](a,o,u,r.transforms,!0)}})}function HF(e,t){var n=Av(e.target,t.name);if(n){var r=LF(t,e),o=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}function VF(e,t){return Md(Pd(e.map(function(n){return t.map(function(r){return HF(n,r)})})),function(n){return!Mt.und(n)})}function yE(e,t){var n=e.length,r=function(i){return i.timelineOffset?i.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(i){return r(i)+i.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(i){return r(i)+i.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(i){return r(i)+i.duration-i.endDelay})):t.endDelay,o}var Lb=0;function WF(e){var t=Hm(iE,e),n=Hm(Nv,e),r=BF(n,e),o=hE(e.targets),i=VF(o,r),a=yE(i,n),s=Lb;return Lb++,Fd(t,{id:s,children:[],animatables:o,animations:i,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}var bo=[],xE=(function(){var e;function t(){!e&&(!Hb()||!kn.suspendWhenDocumentHidden)&&bo.length>0&&(e=requestAnimationFrame(n))}function n(o){for(var i=bo.length,a=0;a<i;){var s=bo[a];s.paused?(bo.splice(a,1),i--):(s.tick(o),a++)}e=a>0?requestAnimationFrame(n):void 0}function r(){kn.suspendWhenDocumentHidden&&(Hb()?e=cancelAnimationFrame(e):(bo.forEach(function(o){return o._onDocumentVisibility()}),xE()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function Hb(){return!!document&&document.hidden}function kn(e){e===void 0&&(e={});var t=0,n=0,r=0,o,i=0,a=null;function s(y){var x=window.Promise&&new Promise(function(w){return a=w});return y.finished=x,x}var l=WF(e);s(l);function c(){var y=l.direction;y!=="alternate"&&(l.direction=y!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,o.forEach(function(x){return x.reversed=l.reversed})}function u(y){return l.reversed?l.duration-y:y}function f(){t=0,n=u(l.currentTime)*(1/kn.speed)}function m(y,x){x&&x.seek(y-x.timelineOffset)}function v(y){if(l.reversePlayback)for(var x=i;x--;)m(y,o[x]);else for(var w=0;w<i;w++)m(y,o[w])}function h(y){for(var x=0,w=l.animations,C=w.length;x<C;){var S=w[x],E=S.animatable,k=S.tweens,O=k.length-1,$=k[O];O&&($=Md(k,function(V){return y<V.end})[0]||$);for(var N=zo(y-$.start-$.delay,0,$.duration)/$.duration,_=isNaN(N)?1:$.easing(N),j=$.to.strings,F=$.round,A=[],I=$.to.numbers.length,P=void 0,M=0;M<I;M++){var z=void 0,B=$.to.numbers[M],H=$.from.numbers[M]||0;$.isPath?z=TF($.value,_*B,$.isPathTargetInsideSVG):z=H+_*(B-H),F&&($.isColor&&M>2||(z=Math.round(z*F)/F)),A.push(z)}var T=j.length;if(!T)P=A[0];else{P=j[0];for(var R=0;R<T;R++){j[R];var D=j[R+1],L=A[R];isNaN(L)||(D?P+=L+D:P+=L+" ")}}vE[S.type](E.target,S.property,P,E.transforms),S.currentValue=P,x++}}function p(y){l[y]&&!l.passThrough&&l[y](l)}function g(){l.remaining&&l.remaining!==!0&&l.remaining--}function b(y){var x=l.duration,w=l.delay,C=x-l.endDelay,S=u(y);l.progress=zo(S/x*100,0,100),l.reversePlayback=S<l.currentTime,o&&v(S),!l.began&&l.currentTime>0&&(l.began=!0,p("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,p("loopBegin")),S<=w&&l.currentTime!==0&&h(0),(S>=C&&l.currentTime!==x||!x)&&h(x),S>w&&S<C?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,p("changeBegin")),p("change"),h(S)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,p("changeComplete")),l.currentTime=zo(S,0,x),l.began&&p("update"),y>=x&&(n=0,g(),l.remaining?(t=r,p("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&c()):(l.paused=!0,l.completed||(l.completed=!0,p("loopComplete"),p("complete"),!l.passThrough&&"Promise"in window&&(a(),s(l)))))}return l.reset=function(){var y=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=y==="reverse",l.remaining=l.loop,o=l.children,i=o.length;for(var x=i;x--;)l.children[x].reset();(l.reversed&&l.loop!==!0||y==="alternate"&&l.loop===1)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=f,l.set=function(y,x){return bE(y,x),l},l.tick=function(y){r=y,t||(t=r),b((r+(n-t))*kn.speed)},l.seek=function(y){b(u(y))},l.pause=function(){l.paused=!0,f()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,bo.push(l),f(),xE())},l.reverse=function(){c(),l.completed=!l.reversed,f()},l.restart=function(){l.reset(),l.play()},l.remove=function(y){var x=_v(y);wE(x,l)},l.reset(),l.autoplay&&l.play(),l}function Vb(e,t){for(var n=t.length;n--;)Pv(e,t[n].animatable.target)&&t.splice(n,1)}function wE(e,t){var n=t.animations,r=t.children;Vb(e,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;Vb(e,a),!a.length&&!i.children.length&&r.splice(o,1)}!n.length&&!r.length&&t.pause()}function qF(e){for(var t=_v(e),n=bo.length;n--;){var r=bo[n];wE(t,r)}}function KF(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?Mv(t.easing):null,o=t.grid,i=t.axis,a=t.from||0,s=a==="first",l=a==="center",c=a==="last",u=Mt.arr(e),f=parseFloat(u?e[0]:e),m=u?parseFloat(e[1]):0,v=ei(u?e[1]:e)||0,h=t.start||0+(u?f:0),p=[],g=0;return function(b,y,x){if(s&&(a=0),l&&(a=(x-1)/2),c&&(a=x-1),!p.length){for(var w=0;w<x;w++){if(!o)p.push(Math.abs(a-w));else{var C=l?(o[0]-1)/2:a%o[0],S=l?(o[1]-1)/2:Math.floor(a/o[0]),E=w%o[0],k=Math.floor(w/o[0]),O=C-E,$=S-k,N=Math.sqrt(O*O+$*$);i==="x"&&(N=-O),i==="y"&&(N=-$),p.push(N)}g=Math.max.apply(Math,p)}r&&(p=p.map(function(j){return r(j/g)*g})),n==="reverse"&&(p=p.map(function(j){return i?j<0?j*-1:-j:Math.abs(g-j)}))}var _=u?(m-f)/g:f;return h+_*(Math.round(p[y]*100)/100)+v}}function UF(e){e===void 0&&(e={});var t=kn(e);return t.duration=0,t.add=function(n,r){var o=bo.indexOf(t),i=t.children;o>-1&&bo.splice(o,1);function a(m){m.passThrough=!0}for(var s=0;s<i.length;s++)a(i[s]);var l=Fd(n,Hm(Nv,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Mt.und(r)?c:Tv(r,c),a(t),t.seek(l.timelineOffset);var u=kn(l);a(u),i.push(u);var f=yE(i,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}kn.version="3.2.1";kn.speed=1;kn.suspendWhenDocumentHidden=!0;kn.running=bo;kn.remove=qF;kn.get=Rv;kn.set=bE;kn.convertPx=jv;kn.path=RF;kn.setDashoffset=jF;kn.stagger=KF;kn.timeline=UF;kn.easing=Mv;kn.penner=lE;kn.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const XF=Kr({badgeCounts:{},updateBadgeCount:()=>{}}),GF=()=>{const e=sn(XF);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var Wb={exports:{}};/*!
180
- Copyright (c) 2018 Jed Watson.
181
- Licensed under the MIT License (MIT), see
182
- http://jedwatson.github.io/classnames
183
- */var qb;function YF(){return qb||(qb=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wb)),Wb.exports}var ZF=YF();const ae=ii(ZF);function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(null,arguments)}function dt(e){"@babel/helpers - typeof";return dt=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},dt(e)}var QF=Symbol.for("react.element"),JF=Symbol.for("react.transitional.element"),ej=Symbol.for("react.fragment");function CE(e){return e&&dt(e)==="object"&&(e.$$typeof===QF||e.$$typeof===JF)&&e.type===ej}function Io(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Io(r)):CE(r)&&r.props?n=n.concat(Io(r.props.children,t)):n.push(r))}),n}var Wm={},tj=function(e){};function nj(e,t){}function rj(e,t){}function oj(){Wm={}}function SE(e,t,n){!t&&!Wm[n]&&(e(!1,n),Wm[n]=!0)}function vn(e,t){SE(nj,e,t)}function ij(e,t){SE(rj,e,t)}vn.preMessage=tj;vn.resetWarned=oj;vn.noteOnce=ij;function aj(e,t){if(dt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kE(e){var t=aj(e,"string");return dt(t)=="symbol"?t:t+""}function W(e,t,n){return(t=kE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $l(e){return e instanceof HTMLElement||e instanceof SVGElement}function EE(e){return e&&dt(e)==="object"&&$l(e.nativeElement)?e.nativeElement:$l(e)?e:null}function vu(e){var t=EE(e);if(t)return t;if(e instanceof se.Component){var n;return(n=Wu.findDOMNode)===null||n===void 0?void 0:n.call(Wu,e)}return null}var Ub={exports:{}},fn={};/**
184
- * @license React
185
- * react-is.production.min.js
186
- *
187
- * Copyright (c) Facebook, Inc. and its affiliates.
188
- *
189
- * This source code is licensed under the MIT license found in the
190
- * LICENSE file in the root directory of this source tree.
191
- */var Xb;function sj(){if(Xb)return fn;Xb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case m:case f:case i:return g;default:return b}}case t:return b}}}return fn.ContextConsumer=a,fn.ContextProvider=i,fn.Element=e,fn.ForwardRef=l,fn.Fragment=n,fn.Lazy=m,fn.Memo=f,fn.Portal=t,fn.Profiler=o,fn.StrictMode=r,fn.Suspense=c,fn.SuspenseList=u,fn.isAsyncMode=function(){return!1},fn.isConcurrentMode=function(){return!1},fn.isContextConsumer=function(g){return p(g)===a},fn.isContextProvider=function(g){return p(g)===i},fn.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},fn.isForwardRef=function(g){return p(g)===l},fn.isFragment=function(g){return p(g)===n},fn.isLazy=function(g){return p(g)===m},fn.isMemo=function(g){return p(g)===f},fn.isPortal=function(g){return p(g)===t},fn.isProfiler=function(g){return p(g)===o},fn.isStrictMode=function(g){return p(g)===r},fn.isSuspense=function(g){return p(g)===c},fn.isSuspenseList=function(g){return p(g)===u},fn.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},fn.typeOf=p,fn}var Gb;function lj(){return Gb||(Gb=1,Ub.exports=sj()),Ub.exports}var Gf=lj();function ic(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var cj=Number(Gk.split(".")[0]),Bv=function(e,t){typeof e=="function"?e(t):dt(e)==="object"&&e&&"current"in e&&(e.current=t)},Mr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(i){Bv(i,o)})}},Ti=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ic(function(){return Mr.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})},ai=function(e){var t,n;if(!e)return!1;if(zv(e)&&cj>=19)return!0;var r=Gf.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Gf.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Gf.ForwardRef)};function zv(e){return Jk(e)&&!CE(e)}var uj=function(e){return zv(e)&&ai(e)},Di=function(e){if(e&&zv(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},qm=d.createContext(null);function dj(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),i=d.useContext(qm),a=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,c)},[n,i]);return d.createElement(qm.Provider,{value:a},t)}var $E=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t})()})(),Km=typeof window<"u"&&typeof document<"u"&&window.document===document,Uu=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),fj=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Uu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),pj=2;function mj(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){fj(i)}function s(){var l=Date.now();if(n){if(l-o<pj)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var gj=20,hj=["top","right","bottom","left","width","height","size","weight"],vj=typeof MutationObserver<"u",bj=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=mj(this.refresh.bind(this),gj)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Km||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vj?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Km||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=hj.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),OE=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ns=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Uu},IE=jd(0,0,0,0);function Xu(e){return parseFloat(e)||0}function Yb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Xu(i)},0)}function yj(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Xu(a)}return n}function xj(e){var t=e.getBBox();return jd(0,0,t.width,t.height)}function wj(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return IE;var r=ns(e).getComputedStyle(e),o=yj(r),i=o.left+o.right,a=o.top+o.bottom,s=Xu(r.width),l=Xu(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Yb(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Yb(r,"top","bottom")+a)),!Sj(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return jd(o.left,o.top,s,l)}var Cj=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ns(e).SVGGraphicsElement}:function(e){return e instanceof ns(e).SVGElement&&typeof e.getBBox=="function"}})();function Sj(e){return e===ns(e).document.documentElement}function kj(e){return Km?Cj(e)?xj(e):wj(e):IE}function Ej(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return OE(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function jd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var $j=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=jd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=kj(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),Oj=(function(){function e(t,n){var r=Ej(n);OE(this,{target:t,contentRect:r})}return e})(),Ij=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new $E,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ns(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new $j(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ns(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Oj(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),NE=typeof WeakMap<"u"?new WeakMap:new $E,ME=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=bj.getInstance(),r=new Ij(t,n,this);NE.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){ME.prototype[e]=function(){var t;return(t=NE.get(this))[e].apply(t,arguments)}});var Nj=(function(){return typeof Uu.ResizeObserver<"u"?Uu.ResizeObserver:ME})(),Ci=new Map;function Mj(e){e.forEach(function(t){var n,r=t.target;(n=Ci.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var PE=new Nj(Mj);function Pj(e,t){Ci.has(e)||(Ci.set(e,new Set),PE.observe(e)),Ci.get(e).add(t)}function Fj(e,t){Ci.has(e)&&(Ci.get(e).delete(t),Ci.get(e).size||(PE.unobserve(e),Ci.delete(e)))}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kE(r.key),r)}}function On(e,t,n){return t&&Zb(e.prototype,t),n&&Zb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ol(e,t){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ol(e,t)}function lo(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&&Ol(e,t)}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Il(e)}function Lv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lv=function(){return!!e})()}function rt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jj(e,t){if(t&&(dt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rt(e)}function co(e){var t=Lv();return function(){var n,r=Il(e);if(t){var o=Il(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jj(this,n)}}var Aj=(function(e){lo(n,e);var t=co(n);function n(){return $n(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function Rj(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),i=d.useRef(null),a=d.useContext(qm),s=typeof n=="function",l=s?n(o):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&ai(l),f=u?Di(l):null,m=Ti(f,o),v=function(){var g;return vu(o.current)||(o.current&&dt(o.current)==="object"?vu((g=o.current)===null||g===void 0?void 0:g.nativeElement):null)||vu(i.current)};d.useImperativeHandle(t,function(){return v()});var h=d.useRef(e);h.current=e;var p=d.useCallback(function(g){var b=h.current,y=b.onResize,x=b.data,w=g.getBoundingClientRect(),C=w.width,S=w.height,E=g.offsetWidth,k=g.offsetHeight,O=Math.floor(C),$=Math.floor(S);if(c.current.width!==O||c.current.height!==$||c.current.offsetWidth!==E||c.current.offsetHeight!==k){var N={width:O,height:$,offsetWidth:E,offsetHeight:k};c.current=N;var _=E===Math.round(C)?C:E,j=k===Math.round(S)?S:k,F=G(G({},N),{},{offsetWidth:_,offsetHeight:j});a==null||a(F,g,x),y&&Promise.resolve().then(function(){y(F,g)})}},[]);return d.useEffect(function(){var g=v();return g&&!r&&Pj(g,p),function(){return Fj(g,p)}},[o.current,r]),d.createElement(Aj,{ref:i},u?d.cloneElement(l,{ref:m}):l)}var Tj=d.forwardRef(Rj),Dj="rc-observer-key";function _j(e,t){var n=e.children,r=typeof n=="function"?[n]:Io(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(Dj,"-").concat(i);return d.createElement(Tj,Me({},e,{key:a,ref:i===0?t:void 0}),o)})}var Uo=d.forwardRef(_j);Uo.Collection=dj;function Um(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bj(e){if(Array.isArray(e))return Um(e)}function FE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hv(e,t){if(e){if(typeof e=="string")return Um(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Um(e,t):void 0}}function zj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
192
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ae(e){return Bj(e)||FE(e)||Hv(e)||zj()}var jE=function(e){return+setTimeout(e,16)},AE=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(jE=function(e){return window.requestAnimationFrame(e)},AE=function(e){return window.cancelAnimationFrame(e)});var Qb=0,Vv=new Map;function RE(e){Vv.delete(e)}var _t=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qb+=1;var n=Qb;function r(o){if(o===0)RE(n),e();else{var i=jE(function(){r(o-1)});Vv.set(n,i)}}return r(t),n};_t.cancel=function(e){var t=Vv.get(e);return RE(e),AE(t)};function TE(e){if(Array.isArray(e))return e}function Lj(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function DE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
193
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return TE(e)||Lj(e,t)||Hv(e,t)||DE()}function Nl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){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)}function hr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hj(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Jb="data-rc-order",ey="data-rc-priority",Vj="rc-util-key",Xm=new Map;function _E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Vj}function Ad(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Wj(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Wv(e){return Array.from((Xm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function BE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hr())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=Wj(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Jb,a),s&&i&&l.setAttribute(ey,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Ad(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Wv(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Jb)))return!1;var v=Number(m.getAttribute(ey)||0);return i>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function zE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ad(t);return(t.styles||Wv(n)).find(function(r){return r.getAttribute(_E(t))===e})}function Ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zE(e,t);if(n){var r=Ad(t);r.removeChild(n)}}function qj(e,t){var n=Xm.get(e);if(!n||!Hj(document,n)){var r=BE("",t),o=r.parentNode;Xm.set(e,o),e.removeChild(r)}}function ti(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ad(n),o=Wv(r),i=G(G({},n),{},{styles:o});qj(r,i);var a=zE(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=BE(e,i);return u.setAttribute(_E(i),t),u}function Kj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $t(e,t){if(e==null)return{};var n,r,o=Kj(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(vn(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&dt(i)==="object"&&dt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],c)})}return!1}return o(e,t)}var Uj="%";function Gm(e){return e.join(Uj)}var Xj=(function(){function e(t){$n(this,e),W(this,"instanceId",void 0),W(this,"cache",new Map),this.instanceId=t}return On(e,[{key:"get",value:function(t){return this.opGet(Gm(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(Gm(t),n)}},{key:"opUpdate",value:function(t,n){var r=this.cache.get(t),o=n(r);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),os="data-token-hash",wo="data-css-hash",Si="__cssinjs_instance__";function Gj(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(wo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Si]=o[Si]||e,o[Si]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(wo,"]"))).forEach(function(o){var i=o.getAttribute(wo);if(r[i]){if(o[Si]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new Xj(e)}var ac=d.createContext({hashPriority:"low",cache:Gj(),defaultCache:!0});function Yj(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var qv=(function(){function e(){$n(this,e),W(this,"cache",void 0),W(this,"keys",void 0),W(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return On(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return t.forEach(function(a){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(a)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(r=i)===null||r===void 0?void 0:r.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,c){var u=te(l,2),f=u[1];return r.internalGet(c)[1]<f?[c,r.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),i=te(o,1),a=i[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(l,c){if(c===t.length-1)s.set(l,{value:[n,r.cacheCallTimes++]});else{var u=s.get(l);u?u.map||(u.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(t,n){var r=t.get(n[0]);if(n.length===1){var o;return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!Yj(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();W(qv,"MAX_CACHE_SIZE",20);W(qv,"MAX_CACHE_OFFSET",5);var ty=0,LE=(function(){function e(t){$n(this,e),W(this,"derivatives",void 0),W(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ty,t.length===0&&(t.length>0,void 0),ty+=1}return On(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),Yf=new qv;function Ym(e){var t=Array.isArray(e)?e:[e];return Yf.has(t)||Yf.set(t,new LE(t)),Yf.get(t)}var Zj=new WeakMap,Zf={};function Qj(e,t){for(var n=Zj,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Zf)||n.set(Zf,e()),n.get(Zf)}var ny=new WeakMap;function pl(e){var t=ny.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof LE?t+=r.id:r&&dt(r)==="object"?t+=pl(r):t+=r}),t=Nl(t),ny.set(e,t)),t}function ry(e,t){return Nl("".concat(t,"_").concat(pl(e)))}var Zm=hr();function ie(e){return typeof e=="number"?"".concat(e,"px"):e}function Gu(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=G(G({},o),{},(r={},W(r,os,t),W(r,wo,n),r)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var bu=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(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()},Jj=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(r){var o=te(r,2),i=o[0],a=o[1];return"".concat(i,":").concat(a,";")}).join(""),"}"):""},HE=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(i){var a,s,l=te(i,2),c=l[0],u=l[1];if(n!=null&&(a=n.preserve)!==null&&a!==void 0&&a[c])o[c]=u;else if((typeof u=="string"||typeof u=="number")&&!(n!=null&&(s=n.ignore)!==null&&s!==void 0&&s[c])){var f,m=bu(c,n==null?void 0:n.prefix);r[m]=typeof u=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(u,"px"):String(u),o[c]="var(".concat(m,")")}}),[o,Jj(r,t,{scope:n==null?void 0:n.scope})]},oy=hr()?d.useLayoutEffect:d.useEffect,Xt=function(e,t){var n=d.useRef(!0);oy(function(){return e(n.current)},t),oy(function(){return n.current=!1,function(){n.current=!0}},[])},Ua=function(e,t){Xt(function(n){if(!n)return e()},t)},eA=G({},d),iy=eA.useInsertionEffect,tA=function(e,t,n){d.useMemo(e,n),Xt(function(){return t(!0)},n)},nA=iy?function(e,t,n){return iy(function(){return e(),t()},n)}:tA,rA=G({},d),oA=rA.useInsertionEffect,iA=function(e){var t=[],n=!1;function r(o){n||t.push(o)}return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},e),r},aA=function(){return function(e){e()}},sA=typeof oA<"u"?iA:aA;function Kv(e,t,n,r,o){var i=d.useContext(ac),a=i.cache,s=[e].concat(Ae(t)),l=Gm(s),c=sA([l]),u=function(v){a.opUpdate(l,function(h){var p=h||[void 0,void 0],g=te(p,2),b=g[0],y=b===void 0?0:b,x=g[1],w=x,C=w||n(),S=[y,C];return v?v(S):S})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),m=f[1];return nA(function(){o==null||o(m)},function(v){return u(function(h){var p=te(h,2),g=p[0],b=p[1];return v&&g===0&&(o==null||o(m)),[g+1,b]}),function(){a.opUpdate(l,function(h){var p=h||[],g=te(p,2),b=g[0],y=b===void 0?0:b,x=g[1],w=y-1;return w===0?(c(function(){(v||!a.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),m}var lA={},cA="css",qi=new Map;function uA(e){qi.set(e,(qi.get(e)||0)+1)}function dA(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(os,'="').concat(e,'"]'));n.forEach(function(r){if(r[Si]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var fA=0;function pA(e,t){qi.set(e,(qi.get(e)||0)-1);var n=Array.from(qi.keys()),r=n.filter(function(o){var i=qi.get(o)||0;return i<=0});n.length-r.length>fA&&r.forEach(function(o){dA(o,t),qi.delete(o)})}var mA=function(e,t,n,r){var o=n.getDerivativeToken(e),i=G(G({},o),t);return r&&(i=r(i)),i},VE="token";function gA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=sn(ac),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?lA:l,u=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=Qj(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),h=pl(v),p=pl(c),g=m?pl(m):"",b=Kv(VE,[s,e.id,h,p,g],function(){var y,x=f?f(v,c,e):mA(v,c,e,u),w=G({},x),C="";if(m){var S=HE(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),E=te(S,2);x=E[0],C=E[1]}var k=ry(x,s);x._tokenKey=k,w._tokenKey=ry(w,s);var O=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:k;x._themeKey=O,uA(O);var $="".concat(cA,"-").concat(Nl(k));return x._hashId=$,[x,$,w,C,(m==null?void 0:m.key)||""]},function(y){pA(y[0]._themeKey,o)},function(y){var x=te(y,4),w=x[0],C=x[3];if(m&&C){var S=ti(C,Nl("css-variables-".concat(w._themeKey)),{mark:wo,prepend:"queue",attachTo:i,priority:-999});S[Si]=o,S.setAttribute(os,w._themeKey)}});return b}var hA=function(e,t,n){var r=te(e,5),o=r[2],i=r[3],a=r[4],s=n||{},l=s.plain;if(!i)return null;var c=o._tokenKey,u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},m=Gu(i,a,c,f,l);return[u,c,m]},vA={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},WE="comm",qE="rule",KE="decl",bA="@import",yA="@namespace",xA="@keyframes",wA="@layer",UE=Math.abs,Uv=String.fromCharCode;function XE(e){return e.trim()}function yu(e,t,n){return e.replace(t,n)}function CA(e,t,n){return e.indexOf(t,n)}function Xa(e,t){return e.charCodeAt(t)|0}function is(e,t,n){return e.slice(t,n)}function To(e){return e.length}function SA(e){return e.length}function Ac(e,t){return t.push(e),e}var Rd=1,as=1,GE=0,ao=0,Kn=0,bs="";function Xv(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Rd,column:as,length:a,return:"",siblings:s}}function kA(){return Kn}function EA(){return Kn=ao>0?Xa(bs,--ao):0,as--,Kn===10&&(as=1,Rd--),Kn}function Co(){return Kn=ao<GE?Xa(bs,ao++):0,as++,Kn===10&&(as=1,Rd++),Kn}function ki(){return Xa(bs,ao)}function xu(){return ao}function Td(e,t){return is(bs,e,t)}function Pl(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 $A(e){return Rd=as=1,GE=To(bs=e),ao=0,[]}function OA(e){return bs="",e}function Qf(e){return XE(Td(ao-1,Qm(e===91?e+2:e===40?e+1:e)))}function IA(e){for(;(Kn=ki())&&Kn<33;)Co();return Pl(e)>2||Pl(Kn)>3?"":" "}function NA(e,t){for(;--t&&Co()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return Td(e,xu()+(t<6&&ki()==32&&Co()==32))}function Qm(e){for(;Co();)switch(Kn){case e:return ao;case 34:case 39:e!==34&&e!==39&&Qm(Kn);break;case 40:e===41&&Qm(e);break;case 92:Co();break}return ao}function MA(e,t){for(;Co()&&e+Kn!==57&&!(e+Kn===84&&ki()===47););return"/*"+Td(t,ao-1)+"*"+Uv(e===47?e:Co())}function PA(e){for(;!Pl(ki());)Co();return Td(e,ao)}function FA(e){return OA(wu("",null,null,null,[""],e=$A(e),0,[0],e))}function wu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,m=0,v=0,h=0,p=1,g=1,b=1,y=0,x="",w=o,C=i,S=r,E=x;g;)switch(h=y,y=Co()){case 40:if(h!=108&&Xa(E,f-1)==58){CA(E+=yu(Qf(y),"&","&\f"),"&\f",UE(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Qf(y);break;case 9:case 10:case 13:case 32:E+=IA(h);break;case 92:E+=NA(xu()-1,7);continue;case 47:switch(ki()){case 42:case 47:Ac(jA(MA(Co(),xu()),t,n,l),l),(Pl(h||1)==5||Pl(ki()||1)==5)&&To(E)&&is(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*p:s[c++]=To(E)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(E=yu(E,/\f/g,"")),v>0&&(To(E)-f||p===0&&h===47)&&Ac(v>32?sy(E+";",r,n,f-1,l):sy(yu(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(Ac(S=ay(E,t,n,c,u,o,s,x,w=[],C=[],f,i),i),y===123)if(u===0)wu(E,t,S,S,w,i,f,s,C);else{switch(m){case 99:if(Xa(E,3)===110)break;case 108:if(Xa(E,2)===97)break;default:u=0;case 100:case 109:case 115:}u?wu(e,S,S,r&&Ac(ay(e,S,S,0,0,o,s,x,o,w=[],f,C),C),o,C,f,s,r?w:C):wu(E,S,S,S,[""],C,0,s,C)}}c=u=v=0,p=b=1,x=E="",f=a;break;case 58:f=1+To(E),v=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&EA()==125)continue}switch(E+=Uv(y),y*p){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(To(E)-1)*b,b=1;break;case 64:ki()===45&&(E+=Qf(Co())),m=ki(),u=f=To(x=E+=PA(xu())),y++;break;case 45:h===45&&To(E)==2&&(p=0)}}return i}function ay(e,t,n,r,o,i,a,s,l,c,u,f){for(var m=o-1,v=o===0?i:[""],h=SA(v),p=0,g=0,b=0;p<r;++p)for(var y=0,x=is(e,m+1,m=UE(g=a[p])),w=e;y<h;++y)(w=XE(g>0?v[y]+" "+x:yu(x,/&\f/g,v[y])))&&(l[b++]=w);return Xv(e,t,n,o===0?qE:s,l,c,u,f)}function jA(e,t,n,r){return Xv(e,t,n,WE,Uv(kA()),is(e,2,-2),0,r)}function sy(e,t,n,r,o){return Xv(e,t,n,KE,is(e,0,r),is(e,r+1,-1),r,o)}function Jm(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function AA(e,t,n,r){switch(e.type){case wA:if(e.children.length)break;case bA:case yA:case KE:return e.return=e.return||e.value;case WE:return"";case xA:return e.return=e.value+"{"+Jm(e.children,r)+"}";case qE:if(!To(e.value=e.props.join(",")))return""}return To(n=Jm(e.children,r))?e.return=e.value+"{"+n+"}":""}var ly="data-ant-cssinjs-cache-path",YE="_FILE_STYLE__",na,ZE=!0;function RA(){if(!na&&(na={},hr())){var e=document.createElement("div");e.className=ly,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=te(i,2),s=a[0],l=a[1];na[s]=l});var n=document.querySelector("style[".concat(ly,"]"));if(n){var r;ZE=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function TA(e){return RA(),!!na[e]}function DA(e){var t=na[e],n=null;if(t&&hr())if(ZE)n=YE;else{var r=document.querySelector("style[".concat(wo,'="').concat(na[e],'"]'));r?n=r.innerHTML:delete na[e]}return[n,t]}var _A="_skip_check_",QE="_multi_value_";function Cu(e){var t=Jm(FA(e),AA);return t.replace(/\{%%%\:[^;];}/g,";")}function BA(e){return dt(e)==="object"&&e&&(_A in e||QE in e)}function cy(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ae(l.slice(1))).join(" ")});return i.join(",")}var zA=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var m="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:a}),w=te(x,1),C=w[0];v[y]="@keyframes ".concat(b.getName(s)).concat(C)}}function p(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?p(x,y):x&&y.push(x)}),y}var g=p(Array.isArray(t)?t:[t]);return g.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")m+="".concat(y,`
194
- `);else if(y._keyframe)h(y);else{var x=f.reduce(function(w,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,w))||w},y);Object.keys(x).forEach(function(w){var C=x[w];if(dt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!BA(C)){var S=!1,E=w.trim(),k=!1;(o||i)&&s?E.startsWith("@")?S=!0:E==="&"?E=cy("",s,c):E=cy(w,s,c):o&&!s&&(E==="&"||E==="")&&(E="",k=!0);var O=e(C,n,{root:k,injectHash:S,parentSelectors:[].concat(Ae(a),[E])}),$=te(O,2),N=$[0],_=$[1];v=G(G({},v),_),m+="".concat(E).concat(N)}else{let A=function(I,P){var M=I.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),z=P;!vA[I]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),I==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(h(P),z=P.getName(s)),m+="".concat(M,":").concat(z,";")};var j,F=(j=C==null?void 0:C.value)!==null&&j!==void 0?j:C;dt(C)==="object"&&C!==null&&C!==void 0&&C[QE]&&Array.isArray(F)?F.forEach(function(I){A(w,I)}):A(w,F)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
195
- `))):m="{".concat(m,"}"),[m,v]};function JE(e,t){return Nl("".concat(e.join("%")).concat(t))}function LA(){return null}var e$="style";function eg(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(ac),f=u.autoClear;u.mock;var m=u.defaultCache,v=u.hashPriority,h=u.container,p=u.ssrInline,g=u.transformers,b=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,Ae(r));var S=Zm,E=Kv(e$,C,function(){var _=C.join("|");if(TA(_)){var j=DA(_),F=te(j,2),A=F[0],I=F[1];if(A)return[A,w,I,{},s,c]}var P=t(),M=zA(P,{hashId:o,hashPriority:v,layer:x?i:void 0,path:r.join("-"),transformers:g,linters:b}),z=te(M,2),B=z[0],H=z[1],T=Cu(B),R=JE(C,T);return[T,w,R,H,s,c]},function(_,j){var F=te(_,3),A=F[2];(j||f)&&Zm&&Ml(A,{mark:wo})},function(_){var j=te(_,4),F=j[0];j[1];var A=j[2],I=j[3];if(S&&F!==YE){var P={mark:wo,prepend:x?!1:"queue",attachTo:h,priority:c},M=typeof a=="function"?a():a;M&&(P.csp={nonce:M});var z=[],B=[];Object.keys(I).forEach(function(T){T.startsWith("@layer")?z.push(T):B.push(T)}),z.forEach(function(T){ti(Cu(I[T]),"_layer-".concat(T),G(G({},P),{},{prepend:!0}))});var H=ti(F,A,P);H[Si]=y.instanceId,H.setAttribute(os,w),B.forEach(function(T){ti(Cu(I[T]),"_effect-".concat(T),P)})}}),k=te(E,3),O=k[0],$=k[1],N=k[2];return function(_){var j;if(!p||S||!m)j=d.createElement(LA,null);else{var F;j=d.createElement("style",Me({},(F={},W(F,os,$),W(F,wo,N),F),{dangerouslySetInnerHTML:{__html:O}}))}return d.createElement(d.Fragment,null,j,_)}}var HA=function(e,t,n){var r=te(e,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=n||{},f=u.plain;if(l)return null;var m=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return m=Gu(o,i,a,v,f),s&&Object.keys(s).forEach(function(h){if(!t[h]){t[h]=!0;var p=Cu(s[h]),g=Gu(p,i,"_effect-".concat(h),v,f);h.startsWith("@layer")?m=g+m:m+=g}}),[c,a,m]},t$="cssVar",VA=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=s===void 0?"":s,c=sn(ac),u=c.cache.instanceId,f=c.container,m=a._tokenKey,v=[].concat(Ae(e.path),[n,l,m]),h=Kv(t$,v,function(){var p=t(),g=HE(p,n,{prefix:r,unitless:o,ignore:i,scope:l}),b=te(g,2),y=b[0],x=b[1],w=JE(v,x);return[y,x,w,n]},function(p){var g=te(p,3),b=g[2];Zm&&Ml(b,{mark:wo})},function(p){var g=te(p,3),b=g[1],y=g[2];if(b){var x=ti(b,y,{mark:wo,prepend:"queue",attachTo:f,priority:-999});x[Si]=u,x.setAttribute(os,n)}});return h},WA=function(e,t,n){var r=te(e,4),o=r[1],i=r[2],a=r[3],s=n||{},l=s.plain;if(!o)return null;var c=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},f=Gu(o,a,i,u,l);return[c,i,f]},Rc;Rc={},W(Rc,e$,HA),W(Rc,VE,hA),W(Rc,t$,WA);var Vt=(function(){function e(t,n){$n(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=n}return On(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})();function $a(e){return e.notSplit=!0,e}$a(["borderTop","borderBottom"]),$a(["borderTop"]),$a(["borderBottom"]),$a(["borderLeft","borderRight"]),$a(["borderLeft"]),$a(["borderRight"]);var Gv=Kr({});function n$(e){return TE(e)||FE(e)||Hv(e)||DE()}function io(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function r$(e,t,n,r){if(!t.length)return n;var o=n$(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Ae(e):s=G({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=r$(s[i],a,n,r),s}function oo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!io(e,t.slice(0,-1))?e:r$(e,t,n,r)}function qA(e){return dt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function uy(e){return Array.isArray(e)?[]:{}}var KA=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ba(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=uy(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=io(o,a),u=Array.isArray(c);if(u||qA(c)){if(!l.has(c)){l.add(c);var f=io(r,a);u?r=oo(r,a,[]):(!f||dt(f)!=="object")&&(r=oo(r,a,uy(c))),KA(c).forEach(function(m){i([].concat(Ae(a),[m]),l)})}}else r=oo(r,a,c)}i([])}),r}function UA(){}const XA=d.createContext({}),sc=()=>{const e=()=>{};return e.deprecated=UA,e},o$=Kr(void 0);var GA={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"},YA={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ZA=G(G({},YA),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const i$={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Yu={lang:Object.assign({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"]},ZA),timePickerLocale:Object.assign({},i$)},Fr="${label} is not a valid ${type}",ni={locale:"en",Pagination:GA,DatePicker:Yu,TimePicker:i$,Calendar:Yu,global:{placeholder:"Please select"},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:Fr,method:Fr,array:Fr,object:Fr,number:Fr,date:Fr,boolean:Fr,integer:Fr,float:Fr,regexp:Fr,email:Fr,url:Fr,hex:Fr},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},ni.Modal);let Su=[];const dy=()=>Su.reduce((e,t)=>Object.assign(Object.assign({},e),t),ni.Modal);function QA(e){if(e){const t=Object.assign({},e);return Su.push(t),dy(),()=>{Su=Su.filter(n=>n!==t),dy()}}Object.assign({},ni.Modal)}const Yv=Kr(void 0),_i=(e,t)=>{const n=d.useContext(Yv),r=d.useMemo(()=>{var i;const a=t||ni[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=d.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?ni.locale:i},[n]);return[r,o]},JA="internalMark",e5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>QA(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Yv.Provider,{value:o},n)},a$={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"},Fl=Object.assign(Object.assign({},a$),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
196
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
197
- '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}),tr=Math.round;function Jf(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const fy=(e,t,n)=>n===0?e:e/100;function Vs(e,t){const n=t||255;return e>n?n:e<0?0:e}class Zt{constructor(t){W(this,"isValid",!0),W(this,"r",0),W(this,"g",0),W(this,"b",0),W(this,"a",1),W(this,"_h",void 0),W(this,"_s",void 0),W(this,"_l",void 0),W(this,"_v",void 0),W(this,"_max",void 0),W(this,"_min",void 0),W(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let r=function(i){return o.startsWith(i)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof Zt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Vs(t.r),this.g=Vs(t.g),this.b=Vs(t.b),this.a=typeof t.a=="number"?Vs(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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 n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=tr(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(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._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 n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:tr(i("r")),g:tr(i("g")),b:tr(i("b")),a:tr(i("a")*100)/100};return this._c(a)}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 n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>tr((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=tr(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=tr(this.getSaturation()*100),r=tr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),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,n,r){const o=this.clone();return o[t]=Vs(n,r),o}_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 n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=tr(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=r-c/2;this.r=tr((i+f)*255),this.g=tr((a+f)*255),this.b=tr((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=tr(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=tr(r*(1-n)*255),u=tr(r*(1-n*l)*255),f=tr(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Jf(t,fy);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Jf(t,fy);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Jf(t,(r,o)=>o.includes("%")?tr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Tc=2,py=.16,t5=.05,n5=.05,r5=.15,s$=5,l$=4,o5=[{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 my(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Tc*t:Math.round(e.h)+Tc*t:r=n?Math.round(e.h)+Tc*t:Math.round(e.h)-Tc*t,r<0?r+=360:r>=360&&(r-=360),r}function gy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-py*t:t===l$?r=e.s+py:r=e.s+t5*t,r>1&&(r=1),n&&t===s$&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function hy(e,t,n){var r;return n?r=e.v+n5*t:r=e.v-r5*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function jl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Zt(e),o=r.toHsv(),i=s$;i>0;i-=1){var a=new Zt({h:my(o,i,!0),s:gy(o,i,!0),v:hy(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=l$;s+=1){var l=new Zt({h:my(o,s),s:gy(o,s),v:hy(o,s)});n.push(l)}return t.theme==="dark"?o5.map(function(c){var u=c.index,f=c.amount;return new Zt(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Ga={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"},tg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];tg.primary=tg[5];var ng=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ng.primary=ng[5];var rg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rg.primary=rg[5];var og=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];og.primary=og[5];var ig=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ig.primary=ig[5];var ag=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ag.primary=ag[5];var sg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];sg.primary=sg[5];var lg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];lg.primary=lg[5];var ss=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ss.primary=ss[5];var cg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];cg.primary=cg[5];var ug=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ug.primary=ug[5];var dg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];dg.primary=dg[5];var fg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];fg.primary=fg[5];var ep={red:tg,volcano:ng,orange:rg,gold:og,yellow:ig,lime:ag,green:sg,cyan:lg,blue:ss,geekblue:cg,purple:ug,magenta:dg,grey:fg};function i5(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),m=n(o),v=n(i),h=n(a),p=n(s),g=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),x=new Zt(h[1]).mix(new Zt(h[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[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:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Zt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const a5=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function s5(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},a5(r))}const l5=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ku(e){return(e+8)/e}function c5(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ku(n)}))}const u5=e=>{const t=c5(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function d5(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Yr=(e,t)=>new Zt(e).setA(t).toRgbString(),Ws=(e,t)=>new Zt(e).darken(t).toHexString(),f5=e=>{const t=jl(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]}},p5=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Yr(r,.88),colorTextSecondary:Yr(r,.65),colorTextTertiary:Yr(r,.45),colorTextQuaternary:Yr(r,.25),colorFill:Yr(r,.15),colorFillSecondary:Yr(r,.06),colorFillTertiary:Yr(r,.04),colorFillQuaternary:Yr(r,.02),colorBgSolid:Yr(r,1),colorBgSolidHover:Yr(r,.75),colorBgSolidActive:Yr(r,.95),colorBgLayout:Ws(n,4),colorBgContainer:Ws(n,0),colorBgElevated:Ws(n,0),colorBgSpotlight:Yr(r,.85),colorBgBlur:"transparent",colorBorder:Ws(n,15),colorBorderSecondary:Ws(n,6)}};function m5(e){Ga.pink=Ga.magenta,ep.pink=ep.magenta;const t=Object.keys(a$).map(n=>{const r=e[n]===Ga[n]?ep[n]:jl(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),i5(e,{generateColorPalettes:f5,generateNeutralColorPalettes:p5})),u5(e.fontSize)),d5(e)),l5(e)),s5(e))}const c$=Ym(m5),pg={token:Fl,override:{override:Fl},hashed:!0},u$=se.createContext(pg),Al="ant",Dd="anticon",g5=["outlined","borderless","filled","underlined"],h5=(e,t)=>t||(e?`${Al}-${e}`:Al),At=d.createContext({getPrefixCls:h5,iconPrefixCls:Dd}),{Consumer:Kne}=At,vy={};function Mo(e){const t=d.useContext(At),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:vy,styles:vy},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const v5=`-ant-${Date.now()}-${Math.random()}`;function b5(e,t){const n={},r=(i,a)=>{let s=i.clone();return s=(a==null?void 0:a(s))||s,s.toRgbString()},o=(i,a)=>{const s=new Zt(i),l=jl(s.toRgbString());n[`${a}-color`]=r(s),n[`${a}-color-disabled`]=l[1],n[`${a}-color-hover`]=l[4],n[`${a}-color-active`]=l[6],n[`${a}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=l[0],n[`${a}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Zt(t.primaryColor),a=jl(i.toRgbString());a.forEach((l,c)=>{n[`primary-${c+1}`]=l}),n["primary-color-deprecated-l-35"]=r(i,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(i,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(i,l=>l.setA(l.a*.12));const s=new Zt(a[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setA(l.a*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
198
- :root {
199
- ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
200
- `)}
201
- }
202
- `.trim()}function y5(e,t){const n=b5(e,t);hr()&&ti(n,`${v5}-dynamic-theme`)}const vr=d.createContext(!1),d$=e=>{let{children:t,disabled:n}=e;const r=d.useContext(vr);return d.createElement(vr.Provider,{value:n??r},t)},la=d.createContext(void 0),x5=e=>{let{children:t,size:n}=e;const r=d.useContext(la);return d.createElement(la.Provider,{value:n||r},t)};function w5(){const e=sn(vr),t=sn(la);return{componentDisabled:e,componentSize:t}}var f$=On(function e(){$n(this,e)}),p$="CALC_UNIT",C5=new RegExp(p$,"g");function tp(e){return typeof e=="number"?"".concat(e).concat(p$):e}var S5=(function(e){lo(n,e);var t=co(n);function n(r,o){var i;$n(this,n),i=t.call(this),W(rt(i),"result",""),W(rt(i),"unitlessCssVar",void 0),W(rt(i),"lowPriority",void 0);var a=dt(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=tp(r):a==="string"&&(i.result=r),i}return On(n,[{key:"add",value:function(r){return r instanceof n?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(tp(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof n?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(tp(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var o=this,i=r||{},a=i.unit,s=!0;return typeof a=="boolean"?s=a:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(s=!1),this.result=this.result.replace(C5,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(f$),k5=(function(e){lo(n,e);var t=co(n);function n(r){var o;return $n(this,n),o=t.call(this),W(rt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return On(n,[{key:"add",value:function(r){return r instanceof n?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof n?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof n?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof n?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),n})(f$),E5=function(e,t){var n=e==="css"?S5:k5;return function(r){return new n(r,t)}},by=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Gt(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function ca(e){var t=d.useRef(!1),n=d.useState(e),r=te(n,2),o=r[0],i=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function np(e){return e!==void 0}function mn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=ca(function(){return np(o)?o:np(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=te(s,2),c=l[0],u=l[1],f=o!==void 0?o:c,m=a?a(f):f,v=Gt(i),h=ca([f]),p=te(h,2),g=p[0],b=p[1];Ua(function(){var x=g[0];c!==x&&v(c,x)},[g]),Ua(function(){np(o)||u(o)},[o]);var y=Gt(function(x,w){u(x,w),b([f],w)});return[m,y]}function yy(e,t,n,r){var o=G({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=te(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=G(G({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var m$=typeof CSSINJS_STATISTIC<"u",mg=!0;function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!m$)return Object.assign.apply(Object,[{}].concat(t));mg=!1;var r={};return t.forEach(function(o){if(dt(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),mg=!0,r}var xy={};function $5(){}var O5=function(e){var t,n=e,r=$5;return m$&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(o,i){if(mg){var a;(a=t)===null||a===void 0||a.add(i)}return o[i]}}),r=function(o,i){var a;xy[o]={global:Array.from(t),component:G(G({},(a=xy[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}};function wy(e,t,n){if(typeof n=="function"){var r;return n(Wt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function I5(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"max(".concat(n.map(function(o){return ie(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"min(".concat(n.map(function(o){return ie(o)}).join(","),")")}}}var N5=1e3*60*10,M5=(function(){function e(){$n(this,e),W(this,"map",new Map),W(this,"objectIDMap",new WeakMap),W(this,"nextID",0),W(this,"lastAccessBeat",new Map),W(this,"accessBeat",0)}return On(e,[{key:"set",value:function(t,n){this.clear();var r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(t){var n=this,r=t.map(function(o){return o&&dt(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(dt(o),"_").concat(o)});return r.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,o){n-r>N5&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Cy=new M5;function P5(e,t){return se.useMemo(function(){var n=Cy.get(t);if(n)return n;var r=e();return Cy.set(t,r),r},t)}var F5=function(){return{}};function j5(e){var t=e.useCSP,n=t===void 0?F5:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(m,v,h,p){var g=Array.isArray(m)?m[0]:m;function b(k){return"".concat(String(g)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(p==null?void 0:p.unitless)||{},x=typeof s=="function"?s(m):{},w=G(G({},x),{},W({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(k){w[b(k)]=y[k]});var C=G(G({},p),{},{unitless:w,prefixToken:b}),S=u(m,v,h,C),E=c(g,h,C);return function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,$=S(k,O),N=te($,2),_=N[1],j=E(O),F=te(j,2),A=F[0],I=F[1];return[A,_,I]}}function c(m,v,h){var p=h.unitless,g=h.injectStyle,b=g===void 0?!0:g,y=h.prefixToken,x=h.ignore,w=function(S){var E=S.rootCls,k=S.cssVar,O=k===void 0?{}:k,$=r(),N=$.realToken;return VA({path:[m],prefix:O.prefix,key:O.key,unitless:p,ignore:x,token:N,scope:E},function(){var _=wy(m,N,v),j=yy(m,N,_,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(_).forEach(function(F){j[y(F)]=j[F],delete j[F]}),j}),null},C=function(S){var E=r(),k=E.cssVar;return[function(O){return b&&k?se.createElement(se.Fragment,null,se.createElement(w,{rootCls:S,cssVar:k,component:m}),O):O},k==null?void 0:k.key]};return C}function u(m,v,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],b=te(g,1),y=b[0],x=g.join("-"),w=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),k=E.theme,O=E.realToken,$=E.hashId,N=E.token,_=E.cssVar,j=o(),F=j.rootPrefixCls,A=j.iconPrefixCls,I=n(),P=_?"css":"js",M=P5(function(){var D=new Set;return _&&Object.keys(p.unitless||{}).forEach(function(L){D.add(bu(L,_.prefix)),D.add(bu(L,by(y,_.prefix)))}),E5(P,D)},[P,y,_==null?void 0:_.prefix]),z=I5(P),B=z.max,H=z.min,T={theme:k,token:N,hashId:$,nonce:function(){return I.nonce},clientOnly:p.clientOnly,layer:w,order:p.order||-999};typeof i=="function"&&eg(G(G({},T),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(N,{prefix:{rootPrefixCls:F,iconPrefixCls:A},csp:I})});var R=eg(G(G({},T),{},{path:[x,C,A]}),function(){if(p.injectStyle===!1)return[];var D=O5(N),L=D.token,V=D.flush,q=wy(y,O,h),K=".".concat(C),Q=yy(y,O,q,{deprecatedTokens:p.deprecatedTokens});_&&q&&dt(q)==="object"&&Object.keys(q).forEach(function(X){q[X]="var(".concat(bu(X,by(y,_.prefix)),")")});var U=Wt(L,{componentCls:K,prefixCls:C,iconCls:".".concat(A),antCls:".".concat(F),calc:M,max:B,min:H},_?q:Q),J=v(U,{hashId:$,prefixCls:C,rootPrefixCls:F,iconPrefixCls:A});V(y,Q);var Y=typeof a=="function"?a(U,C,S,p.resetFont):null;return[p.resetStyle===!1?null:Y,J]});return[R,$]}}function f(m,v,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(m,v,h,G({resetStyle:!1,order:-998},p)),b=function(y){var x=y.prefixCls,w=y.rootCls,C=w===void 0?x:w;return g(x,C),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Ni=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],A5="5.24.6";function rp(e){return e>=0&&e<=255}function rl(e,t){const{r:n,g:r,b:o,a:i}=new Zt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Zt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(rp(u)&&rp(f)&&rp(m))return new Zt({r:u,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Zt({r:n,g:r,b:o,a:1}).toRgbString()}var R5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function g$(e){const{override:t}=e,n=R5(e,["override"]),r=Object.assign({},t);Object.keys(Fl).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:rl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:rl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:rl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:rl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
203
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
204
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
205
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
206
- `,boxShadowSecondary:`
207
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
208
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
209
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
210
- `,boxShadowTertiary:`
211
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
212
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
213
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
214
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
215
- 0 1px 2px -2px ${new Zt("rgba(0, 0, 0, 0.16)").toRgbString()},
216
- 0 3px 6px 0 ${new Zt("rgba(0, 0, 0, 0.12)").toRgbString()},
217
- 0 5px 12px 4px ${new Zt("rgba(0, 0, 0, 0.09)").toRgbString()}
218
- `,boxShadowDrawerRight:`
219
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
220
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
221
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
222
- `,boxShadowDrawerLeft:`
223
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
224
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
225
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
226
- `,boxShadowDrawerUp:`
227
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
228
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
229
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
230
- `,boxShadowDrawerDown:`
231
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
232
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
233
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
234
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Sy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const h$={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},T5={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},D5={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},v$=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Sy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=g$(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=Sy(c,["theme"]);let m=f;u&&(m=v$(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=m}),a};function Pr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=se.useContext(u$),i=`${A5}-${t||""}`,a=n||c$,[s,l,c]=gA(a,[Fl,e],{salt:i,override:r,getComputedToken:v$,formatToken:g$,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:h$,ignore:T5,preserve:D5}});return[a,c,t?l:"",s,o]}const ua={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},un=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ys=()=>({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"}}),ls=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),_5=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},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),B5=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},xs=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Rl=(e,t)=>({"&:focus-visible":Object.assign({},xs(e,t))}),b$=e=>({[`.${e}`]:Object.assign(Object.assign({},ys()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:cn,genComponentStyleHook:z5,genSubStyleComponent:lc}=j5({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=sn(At);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Pr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=sn(At);return e??{}},getResetStyles:(e,t)=>{var n;const r=_5(e);return[r,{"&":r},b$((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Dd)]},getCommonStyle:B5,getCompUnitless:()=>h$});function _d(e,t){return Ni.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const L5=(e,t)=>{const[n,r]=Pr();return eg({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[b$(e)])},H5=Object.assign({},d),{useId:ky}=H5,V5=()=>"",W5=typeof ky>"u"?V5:ky;function q5(e,t,n){var r;sc();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},pg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:pg.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=W5();return ic(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{c[m]=Object.assign(Object.assign({},c[m]),e.components[m])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!rs(c,f,!0)}))}var K5=["children"],y$=d.createContext({});function U5(e){var t=e.children,n=$t(e,K5);return d.createElement(y$.Provider,{value:n},t)}var X5=(function(e){lo(n,e);var t=co(n);function n(){return $n(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function G5(e){var t=d.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],o=d.useRef(e),i=Gt(function(){return o.current}),a=Gt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var hi="none",Dc="appear",_c="enter",Bc="leave",Ey="none",go="prepare",za="start",La="active",Zv="end",x$="prepared";function $y(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Y5(e,t){var n={animationend:$y("Animation","AnimationEnd"),transitionend:$y("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Z5=Y5(hr(),typeof window<"u"?window:{}),w$={};if(hr()){var Q5=document.createElement("div");w$=Q5.style}var zc={};function C$(e){if(zc[e])return zc[e];var t=Z5[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in w$)return zc[e]=t[i],zc[e]}return""}var S$=C$("animationend"),k$=C$("transitionend"),E$=!!(S$&&k$),Oy=S$||"animationend",Iy=k$||"transitionend";function Ny(e,t){if(!e)return null;if(dt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const J5=function(e){var t=Ye();function n(o){o&&(o.removeEventListener(Iy,e),o.removeEventListener(Oy,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Iy,e),o.addEventListener(Oy,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var $$=hr()?Zk:St;const e4=function(){var e=d.useRef(null);function t(){_t.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=_t(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var t4=[go,za,La,Zv],n4=[go,x$],O$=!1,r4=!0;function I$(e){return e===La||e===Zv}const o4=function(e,t,n){var r=ca(Ey),o=te(r,2),i=o[0],a=o[1],s=e4(),l=te(s,2),c=l[0],u=l[1];function f(){a(go,!0)}var m=t?n4:t4;return $$(function(){if(i!==Ey&&i!==Zv){var v=m.indexOf(i),h=m[v+1],p=n(i);p===O$?a(h,!0):h&&c(function(g){function b(){g.isCanceled()||a(h,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]};function i4(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,p=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,O=ca(),$=te(O,2),N=$[0],_=$[1],j=G5(hi),F=te(j,2),A=F[0],I=F[1],P=ca(null),M=te(P,2),z=M[0],B=M[1],H=A(),T=Ye(!1),R=Ye(null);function D(){return n()}var L=Ye(!1);function V(){I(hi),B(null,!0)}var q=Gt(function(pe){var we=A();if(we!==hi){var ne=D();if(!(pe&&!pe.deadline&&pe.target!==ne)){var xe=L.current,Pe;we===Dc&&xe?Pe=C==null?void 0:C(ne,pe):we===_c&&xe?Pe=S==null?void 0:S(ne,pe):we===Bc&&xe&&(Pe=E==null?void 0:E(ne,pe)),xe&&Pe!==!1&&V()}}}),K=J5(q),Q=te(K,1),U=Q[0],J=function(pe){switch(pe){case Dc:return W(W(W({},go,m),za,p),La,y);case _c:return W(W(W({},go,v),za,g),La,x);case Bc:return W(W(W({},go,h),za,b),La,w);default:return{}}},Y=d.useMemo(function(){return J(H)},[H]),X=o4(H,!e,function(pe){if(pe===go){var we=Y[go];return we?we(D()):O$}if(oe in Y){var ne;B(((ne=Y[oe])===null||ne===void 0?void 0:ne.call(Y,D(),null))||null)}return oe===La&&H!==hi&&(U(D()),u>0&&(clearTimeout(R.current),R.current=setTimeout(function(){q({deadline:!0})},u))),oe===x$&&V(),r4}),re=te(X,2),le=re[0],oe=re[1],de=I$(oe);L.current=de;var he=Ye(null);$$(function(){if(!(T.current&&he.current===t)){_(t);var pe=T.current;T.current=!0;var we;!pe&&t&&s&&(we=Dc),pe&&t&&i&&(we=_c),(pe&&!t&&c||!pe&&f&&!t&&c)&&(we=Bc);var ne=J(we);we&&(e||ne[go])?(I(we),le()):I(hi),he.current=t}},[t]),St(function(){(H===Dc&&!s||H===_c&&!i||H===Bc&&!c)&&I(hi)},[s,i,c]),St(function(){return function(){T.current=!1,clearTimeout(R.current)}},[]);var ke=d.useRef(!1);St(function(){N&&(ke.current=!0),N!==void 0&&H===hi&&((ke.current||N)&&(k==null||k(N)),ke.current=!0)},[N,H]);var Oe=z;return Y[go]&&oe===za&&(Oe=G({transition:"none"},Oe)),[H,oe,Oe,N??t]}function a4(e){var t=e;dt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=d.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,h=o.eventProps,p=d.useContext(y$),g=p.motion,b=n(o,g),y=Ye(),x=Ye();function w(){try{return y.current instanceof HTMLElement?y.current:vu(x.current)}catch{return null}}var C=i4(b,s,w,o),S=te(C,4),E=S[0],k=S[1],O=S[2],$=S[3],N=d.useRef($);$&&(N.current=!0);var _=d.useCallback(function(M){y.current=M,Bv(i,M)},[i]),j,F=G(G({},h),{},{visible:s});if(!f)j=null;else if(E===hi)$?j=f(G({},F),_):!c&&N.current&&v?j=f(G(G({},F),{},{className:v}),_):u||!c&&!v?j=f(G(G({},F),{},{style:{display:"none"}}),_):j=null;else{var A;k===go?A="prepare":I$(k)?A="active":k===za&&(A="start");var I=Ny(m,"".concat(E,"-").concat(A));j=f(G(G({},F),{},{className:ae(Ny(m,E),W(W({},I,I&&A),m,typeof m=="string")),style:O}),_)}if(d.isValidElement(j)&&ai(j)){var P=Di(j);P||(j=d.cloneElement(j,{ref:_}))}return d.createElement(X5,{ref:x},j)});return r.displayName="CSSMotion",r}const uo=a4(E$);var gg="add",hg="keep",vg="remove",op="removed";function s4(e){var t;return e&&dt(e)==="object"&&"key"in e?t=e:t={key:e},G(G({},t),{},{key:String(t.key)})}function bg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(s4)}function l4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=bg(e),a=bg(t);i.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(v){return G(G({},v),{},{status:gg})})),r=f),n.push(G(G({},m),{},{status:hg})),r+=1,u=!0;break}}u||n.push(G(G({},c),{},{status:vg}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return G(G({},c),{},{status:gg})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,m=u.status;return f!==c||m!==vg}),n.forEach(function(u){u.key===c&&(u.status=hg)})}),n}var c4=["component","children","onVisibleChanged","onAllRemoved"],u4=["status"],d4=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function f4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uo,n=(function(r){lo(i,r);var o=co(i);function i(){var a;$n(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),W(rt(a),"state",{keyEntities:[]}),W(rt(a),"removeKey",function(u){a.setState(function(f){var m=f.keyEntities.map(function(v){return v.key!==u?v:G(G({},v),{},{status:op})});return{keyEntities:m}},function(){var f=a.state.keyEntities,m=f.filter(function(v){var h=v.status;return h!==op}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return On(i,[{key:"render",value:function(){var a=this,s=this.state.keyEntities,l=this.props,c=l.component,u=l.children,f=l.onVisibleChanged;l.onAllRemoved;var m=$t(l,c4),v=c||d.Fragment,h={};return d4.forEach(function(p){h[p]=m[p],delete m[p]}),delete m.keys,d.createElement(v,m,s.map(function(p,g){var b=p.status,y=$t(p,u4),x=b===gg||b===hg;return d.createElement(t,Me({},h,{key:y.key,visible:x,eventProps:y,onVisibleChanged:function(w){f==null||f(w,{key:y.key}),w||a.removeKey(y.key)}}),function(w,C){return u(G(G({},w),{},{index:g}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.keys,c=s.keyEntities,u=bg(l),f=l4(c,u);return{keyEntities:f.filter(function(m){var v=c.find(function(h){var p=h.key;return m.key===p});return!(v&&v.status===op&&m.status===vg)})}}}]),i})(d.Component);return W(n,"defaultProps",{component:"div"}),n}const Qv=f4(E$);function p4(e){const{children:t}=e,[,n]=Pr(),{motion:r}=n,o=d.useRef(!1);return o.current=o.current||r===!1,o.current?d.createElement(U5,{motion:r},t):t}const m4=()=>null;var g4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const h4=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Jv,N$,M$,P$;function Eu(){return Jv||Al}function v4(){return N$||Dd}function b4(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const y4=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Jv=t),n!==void 0&&(N$=n),"holderRender"in e&&(P$=o),r&&(b4(r)?y5(Eu(),r):M$=r)},x4=()=>({getPrefixCls:(e,t)=>t||(e?`${Eu()}-${e}`:Eu()),getIconPrefixCls:v4,getRootPrefixCls:()=>Jv||Eu(),getTheme:()=>M$,holderRender:P$}),w4=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:p,legacyLocale:g,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:S,spin:E,calendar:k,carousel:O,cascader:$,collapse:N,typography:_,checkbox:j,descriptions:F,divider:A,drawer:I,skeleton:P,steps:M,image:z,layout:B,list:H,mentions:T,modal:R,progress:D,result:L,slider:V,breadcrumb:q,menu:K,pagination:Q,input:U,textArea:J,empty:Y,badge:X,radio:re,rate:le,switch:oe,transfer:de,avatar:he,message:ke,tag:Oe,table:pe,card:we,tabs:ne,timeline:xe,timePicker:Pe,upload:ue,notification:Re,tree:Te,colorPicker:De,datePicker:be,rangePicker:Ie,flex:Ne,wave:$e,dropdown:fe,warning:ye,tour:Ve,tooltip:ge,popover:Ze,popconfirm:ut,floatButtonGroup:xt,variant:It,inputNumber:ze,treeSelect:Xe}=e,We=d.useCallback((ee,Z)=>{const{prefixCls:ve}=e;if(Z)return Z;const Se=ve||b.getPrefixCls("");return ee?`${Se}-${ee}`:Se},[b.getPrefixCls,e.prefixCls]),bt=y||b.iconPrefixCls||Dd,ft=n||b.csp;L5(bt,ft);const at=q5(x,b.theme,{prefixCls:We("")}),tt={csp:ft,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,splitter:f,virtual:m,popupMatchSelectWidth:h??v,popupOverflow:p,getPrefixCls:We,iconPrefixCls:bt,theme:at,segmented:C,statistic:S,spin:E,calendar:k,carousel:O,cascader:$,collapse:N,typography:_,checkbox:j,descriptions:F,divider:A,drawer:I,skeleton:P,steps:M,image:z,input:U,textArea:J,layout:B,list:H,mentions:T,modal:R,progress:D,result:L,slider:V,breadcrumb:q,menu:K,pagination:Q,empty:Y,badge:X,radio:re,rate:le,switch:oe,transfer:de,avatar:he,message:ke,tag:Oe,table:pe,card:we,tabs:ne,timeline:xe,timePicker:Pe,upload:ue,notification:Re,tree:Te,colorPicker:De,datePicker:be,rangePicker:Ie,flex:Ne,wave:$e,dropdown:fe,warning:ye,tour:Ve,tooltip:ge,popover:Ze,popconfirm:ut,floatButtonGroup:xt,variant:It,inputNumber:ze,treeSelect:Xe},qe=Object.assign({},b);Object.keys(tt).forEach(ee=>{tt[ee]!==void 0&&(qe[ee]=tt[ee])}),h4.forEach(ee=>{const Z=e[ee];Z&&(qe[ee]=Z)}),typeof r<"u"&&(qe.button=Object.assign({autoInsertSpace:r},qe.button));const wt=ic(()=>qe,qe,(ee,Z)=>{const ve=Object.keys(ee),Se=Object.keys(Z);return ve.length!==Se.length||ve.some(_e=>ee[_e]!==Z[_e])}),{layer:Ot}=d.useContext(ac),Ge=d.useMemo(()=>({prefixCls:bt,csp:ft,layer:Ot?"antd":void 0}),[bt,ft,Ot]);let Je=d.createElement(d.Fragment,null,d.createElement(m4,{dropdownMatchSelectWidth:v}),t);const Ke=d.useMemo(()=>{var ee,Z,ve,Se;return Ba(((ee=ni.Form)===null||ee===void 0?void 0:ee.defaultValidateMessages)||{},((ve=(Z=wt.locale)===null||Z===void 0?void 0:Z.Form)===null||ve===void 0?void 0:ve.defaultValidateMessages)||{},((Se=wt.form)===null||Se===void 0?void 0:Se.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[wt,a==null?void 0:a.validateMessages]);Object.keys(Ke).length>0&&(Je=d.createElement(o$.Provider,{value:Ke},Je)),s&&(Je=d.createElement(e5,{locale:s,_ANT_MARK__:JA},Je)),Je=d.createElement(Gv.Provider,{value:Ge},Je),l&&(Je=d.createElement(x5,{size:l},Je)),Je=d.createElement(p4,null,Je);const it=d.useMemo(()=>{const ee=at||{},{algorithm:Z,token:ve,components:Se,cssVar:_e}=ee,Ue=g4(ee,["algorithm","token","components","cssVar"]),gt=Z&&(!Array.isArray(Z)||Z.length>0)?Ym(Z):c$,lt={};Object.entries(Se||{}).forEach(kt=>{let[ot,Nt]=kt;const Ee=Object.assign({},Nt);"algorithm"in Ee&&(Ee.algorithm===!0?Ee.theme=gt:(Array.isArray(Ee.algorithm)||typeof Ee.algorithm=="function")&&(Ee.theme=Ym(Ee.algorithm)),delete Ee.algorithm),lt[ot]=Ee});const mt=Object.assign(Object.assign({},Fl),ve);return Object.assign(Object.assign({},Ue),{theme:gt,token:mt,components:lt,override:Object.assign({override:mt},lt),cssVar:_e})},[at]);return x&&(Je=d.createElement(u$.Provider,{value:it},Je)),wt.warning&&(Je=d.createElement(XA.Provider,{value:wt.warning},Je)),w!==void 0&&(Je=d.createElement(d$,{disabled:w},Je)),d.createElement(At.Provider,{value:wt},Je)},Bi=e=>{const t=d.useContext(At),n=d.useContext(Yv);return d.createElement(w4,Object.assign({parentContext:t,legacyLocale:n},e))};Bi.ConfigContext=At;Bi.SizeContext=la;Bi.config=y4;Bi.useConfig=w5;Object.defineProperty(Bi,"SizeContext",{get:()=>la});var C4={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"};function F$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function S4(e){return F$(e)instanceof ShadowRoot}function Zu(e){return S4(e)?F$(e):null}function k4(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function E4(e,t){vn(e,"[@ant-design/icons] ".concat(t))}function My(e){return dt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(dt(e.icon)==="object"||typeof e.icon=="function")}function Py(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[k4(n)]=r}return t},{})}function yg(e,t,n){return n?se.createElement(e.tag,G(G({key:t},Py(e.attrs)),n),(e.children||[]).map(function(r,o){return yg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):se.createElement(e.tag,G({key:t},Py(e.attrs)),(e.children||[]).map(function(r,o){return yg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function j$(e){return jl(e)[0]}function A$(e){return e?Array.isArray(e)?e:[e]:[]}var $4=`
235
- .anticon {
236
- display: inline-flex;
237
- align-items: center;
238
- color: inherit;
239
- font-style: normal;
240
- line-height: 0;
241
- text-align: center;
242
- text-transform: none;
243
- vertical-align: -0.125em;
244
- text-rendering: optimizeLegibility;
245
- -webkit-font-smoothing: antialiased;
246
- -moz-osx-font-smoothing: grayscale;
247
- }
248
-
249
- .anticon > * {
250
- line-height: 1;
251
- }
252
-
253
- .anticon svg {
254
- display: inline-block;
255
- }
256
-
257
- .anticon::before {
258
- display: none;
259
- }
260
-
261
- .anticon .anticon-icon {
262
- display: block;
263
- }
264
-
265
- .anticon[tabindex] {
266
- cursor: pointer;
267
- }
268
-
269
- .anticon-spin::before,
270
- .anticon-spin {
271
- display: inline-block;
272
- -webkit-animation: loadingCircle 1s infinite linear;
273
- animation: loadingCircle 1s infinite linear;
274
- }
275
-
276
- @-webkit-keyframes loadingCircle {
277
- 100% {
278
- -webkit-transform: rotate(360deg);
279
- transform: rotate(360deg);
280
- }
281
- }
282
-
283
- @keyframes loadingCircle {
284
- 100% {
285
- -webkit-transform: rotate(360deg);
286
- transform: rotate(360deg);
287
- }
288
- }
289
- `,O4=function(e){var t=sn(Gv),n=t.csp,r=t.prefixCls,o=t.layer,i=$4;r&&(i=i.replace(/anticon/g,r)),o&&(i="@layer ".concat(o,` {
290
- `).concat(i,`
291
- }`)),St(function(){var a=e.current,s=Zu(a);ti(i,"@ant-design-icons",{prepend:!o,csp:n,attachTo:s})},[])},I4=["icon","className","onClick","style","primaryColor","secondaryColor"],ml={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function N4(e){var t=e.primaryColor,n=e.secondaryColor;ml.primaryColor=t,ml.secondaryColor=n||j$(t),ml.calculated=!!n}function M4(){return G({},ml)}var ws=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,a=e.secondaryColor,s=$t(e,I4),l=d.useRef(),c=ml;if(i&&(c={primaryColor:i,secondaryColor:a||j$(i)}),O4(l),E4(My(t),"icon should be icon definiton, but got ".concat(t)),!My(t))return null;var u=t;return u&&typeof u.icon=="function"&&(u=G(G({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),yg(u.icon,"svg-".concat(u.name),G(G({className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};ws.displayName="IconReact";ws.getTwoToneColors=M4;ws.setTwoToneColors=N4;function R$(e){var t=A$(e),n=te(t,2),r=n[0],o=n[1];return ws.setTwoToneColors({primaryColor:r,secondaryColor:o})}function P4(){var e=ws.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var F4=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R$(ss.primary);var ln=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=$t(e,F4),u=d.useContext(Gv),f=u.prefixCls,m=f===void 0?"anticon":f,v=u.rootClassName,h=ae(v,m,W(W({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),p=a;p===void 0&&s&&(p=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=A$(l),y=te(b,2),x=y[0],w=y[1];return d.createElement("span",Me({role:"img","aria-label":r.name},c,{ref:t,tabIndex:p,onClick:s,className:h}),d.createElement(ws,{icon:r,primaryColor:x,secondaryColor:w,style:g}))});ln.displayName="AntdIcon";ln.getTwoToneColor=P4;ln.setTwoToneColor=R$;var j4=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:C4}))},e0=d.forwardRef(j4),A4={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"},R4=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:A4}))},cc=d.forwardRef(R4),T4={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"},D4=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:T4}))},Bd=d.forwardRef(D4),_4={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"},B4=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:_4}))},zd=d.forwardRef(B4),z4={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"},L4=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:z4}))},H4=d.forwardRef(L4),V4=`accept acceptCharset accessKey action allowFullScreen allowTransparency
292
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
293
- charSet checked classID className colSpan cols content contentEditable contextMenu
294
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
295
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
296
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
297
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
298
- mediaGroup method min minLength multiple muted name noValidate nonce open
299
- optimum pattern placeholder poster preload radioGroup readOnly rel required
300
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
301
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
302
- summary tabIndex target title type useMap value width wmode wrap`,W4=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
303
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
304
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
305
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
306
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
307
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
308
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,q4="".concat(V4," ").concat(W4).split(/[\s\n]+/),K4="aria-",U4="data-";function Fy(e,t){return e.indexOf(t)===0}function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=G({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Fy(o,K4))||n.data&&Fy(o,U4)||n.attr&&q4.includes(o))&&(r[o]=e[o])}),r}function T$(e){return e&&se.isValidElement(e)&&e.type===se.Fragment}const D$=(e,t,n)=>se.isValidElement(e)?se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function sr(e,t){return D$(e,e,t)}const jy=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ay=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Lc=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ay(n.overflowY,t)||Ay(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Hc=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,X4=e=>e.parentElement??(e.getRootNode().host||null),Ry=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:I=>I!==c;if(!jy(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let h=e;for(;jy(h)&&f(h);){if(h=X4(h),h===m){v.push(h);break}h!=null&&h===document.body&&Lc(h)&&!Lc(document.documentElement)||h!=null&&Lc(h,u)&&v.push(h)}const p=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:w,top:C,right:S,bottom:E,left:k}=e.getBoundingClientRect(),{top:O,right:$,bottom:N,left:_}=(I=>{const P=window.getComputedStyle(I);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let j=s==="start"||s==="nearest"?C-O:s==="end"?E+N:C+x/2-O+N,F=l==="center"?k+w/2-_+$:l==="end"?S+$:k-_;const A=[];for(let I=0;I<v.length;I++){const P=v[I],{height:M,width:z,top:B,right:H,bottom:T,left:R}=P.getBoundingClientRect();if(a==="if-needed"&&C>=0&&k>=0&&E<=g&&S<=p&&(P===m&&!Lc(P)||C>=B&&E<=T&&k>=R&&S<=H))return A;const D=getComputedStyle(P),L=parseInt(D.borderLeftWidth,10),V=parseInt(D.borderTopWidth,10),q=parseInt(D.borderRightWidth,10),K=parseInt(D.borderBottomWidth,10);let Q=0,U=0;const J="offsetWidth"in P?P.offsetWidth-P.clientWidth-L-q:0,Y="offsetHeight"in P?P.offsetHeight-P.clientHeight-V-K:0,X="offsetWidth"in P?P.offsetWidth===0?0:z/P.offsetWidth:0,re="offsetHeight"in P?P.offsetHeight===0?0:M/P.offsetHeight:0;if(m===P)Q=s==="start"?j:s==="end"?j-g:s==="nearest"?Hc(y,y+g,g,V,K,y+j,y+j+x,x):j-g/2,U=l==="start"?F:l==="center"?F-p/2:l==="end"?F-p:Hc(b,b+p,p,L,q,b+F,b+F+w,w),Q=Math.max(0,Q+y),U=Math.max(0,U+b);else{Q=s==="start"?j-B-V:s==="end"?j-T+K+Y:s==="nearest"?Hc(B,T,M,V,K+Y,j,j+x,x):j-(B+M/2)+Y/2,U=l==="start"?F-R-L:l==="center"?F-(R+z/2)+J/2:l==="end"?F-H+q+J:Hc(R,H,z,L,q+J,F,F+w,w);const{scrollLeft:le,scrollTop:oe}=P;Q=re===0?0:Math.max(0,Math.min(oe+Q/re,P.scrollHeight-M/re+Y)),U=X===0?0:Math.max(0,Math.min(le+U/X,P.scrollWidth-z/X+J)),j+=oe-Q,F+=le-U}A.push({el:P,top:Q,left:U})}return A},G4=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Y4(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ry(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Ry(e,G4(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const Cr=e=>{const[,,,,t]=Pr();return t?`${e}-css-var`:""};var st={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,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},_$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,h=v===void 0?"x":v,p=e.props,g=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=d.useState(!1),C=te(w,2),S=C[0],E=C[1],k=d.useState(0),O=te(k,2),$=O[0],N=O[1],_=d.useState(0),j=te(_,2),F=j[0],A=j[1],I=x||S,P=a>0&&s,M=function(){b(u)},z=function(D){(D.key==="Enter"||D.code==="Enter"||D.keyCode===st.ENTER)&&M()};d.useEffect(function(){if(!I&&a>0){var D=Date.now()-F,L=setTimeout(function(){M()},a*1e3-F);return function(){c&&clearTimeout(L),A(Date.now()-D)}}},[a,I,y]),d.useEffect(function(){if(!I&&P&&(c||F===0)){var D=performance.now(),L,V=function q(){cancelAnimationFrame(L),L=requestAnimationFrame(function(K){var Q=K+F-D,U=Math.min(Q/(a*1e3),1);N(U*100),U<1&&q()})};return V(),function(){c&&cancelAnimationFrame(L)}}},[a,F,I,P,y]);var B=d.useMemo(function(){return dt(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),H=wr(B,!0),T=100-(!$||$<0?0:$>100?100:$),R="".concat(n,"-notice");return d.createElement("div",Me({},p,{ref:t,className:ae(R,o,W({},"".concat(R,"-closable"),m)),style:r,onMouseEnter:function(D){var L;E(!0),p==null||(L=p.onMouseEnter)===null||L===void 0||L.call(p,D)},onMouseLeave:function(D){var L;E(!1),p==null||(L=p.onMouseLeave)===null||L===void 0||L.call(p,D)},onClick:g}),d.createElement("div",{className:"".concat(R,"-content")},f),m&&d.createElement("a",Me({tabIndex:0,className:"".concat(R,"-close"),onKeyDown:z,"aria-label":"Close"},H,{onClick:function(D){D.preventDefault(),D.stopPropagation(),M()}}),B.closeIcon),P&&d.createElement("progress",{className:"".concat(R,"-progress"),max:"100",value:T},T+"%"))}),B$=se.createContext({}),Z4=function(e){var t=e.children,n=e.classNames;return se.createElement(B$.Provider,{value:{classNames:n}},t)},Ty=8,Dy=3,_y=16,Q4=function(e){var t={offset:Ty,threshold:Dy,gap:_y};if(e&&dt(e)==="object"){var n,r,o;t.offset=(n=e.offset)!==null&&n!==void 0?n:Ty,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:Dy,t.gap=(o=e.gap)!==null&&o!==void 0?o:_y}return[!!e,t]},J4=["className","style","classNames","styles"],e6=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,a=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=e.stack,u=sn(B$),f=u.classNames,m=Ye({}),v=Et(null),h=te(v,2),p=h[0],g=h[1],b=Et([]),y=te(b,2),x=y[0],w=y[1],C=t.map(function(A){return{config:A,key:String(A.key)}}),S=Q4(c),E=te(S,2),k=E[0],O=E[1],$=O.offset,N=O.threshold,_=O.gap,j=k&&(x.length>0||C.length<=N),F=typeof a=="function"?a(n):a;return St(function(){k&&x.length>1&&w(function(A){return A.filter(function(I){return C.some(function(P){var M=P.key;return I===M})})})},[x,C,k]),St(function(){var A;if(k&&m.current[(A=C[C.length-1])===null||A===void 0?void 0:A.key]){var I;g(m.current[(I=C[C.length-1])===null||I===void 0?void 0:I.key])}},[C,k]),se.createElement(Qv,Me({key:n,className:ae(r,"".concat(r,"-").concat(n),f==null?void 0:f.list,o,W(W({},"".concat(r,"-stack"),!!k),"".concat(r,"-stack-expanded"),j)),style:i,keys:C,motionAppear:!0},F,{onAllRemoved:function(){s(n)}}),function(A,I){var P=A.config,M=A.className,z=A.style,B=A.index,H=P,T=H.key,R=H.times,D=String(T),L=P,V=L.className,q=L.style,K=L.classNames,Q=L.styles,U=$t(L,J4),J=C.findIndex(function(ne){return ne.key===D}),Y={};if(k){var X=C.length-1-(J>-1?J:B-1),re=n==="top"||n==="bottom"?"-50%":"0";if(X>0){var le,oe,de;Y.height=j?(le=m.current[D])===null||le===void 0?void 0:le.offsetHeight:p==null?void 0:p.offsetHeight;for(var he=0,ke=0;ke<X;ke++){var Oe;he+=((Oe=m.current[C[C.length-1-ke].key])===null||Oe===void 0?void 0:Oe.offsetHeight)+_}var pe=(j?he:X*$)*(n.startsWith("top")?1:-1),we=!j&&p!==null&&p!==void 0&&p.offsetWidth&&(oe=m.current[D])!==null&&oe!==void 0&&oe.offsetWidth?((p==null?void 0:p.offsetWidth)-$*2*(X<3?X:3))/((de=m.current[D])===null||de===void 0?void 0:de.offsetWidth):1;Y.transform="translate3d(".concat(re,", ").concat(pe,"px, 0) scaleX(").concat(we,")")}else Y.transform="translate3d(".concat(re,", 0, 0)")}return se.createElement("div",{ref:I,className:ae("".concat(r,"-notice-wrapper"),M,K==null?void 0:K.wrapper),style:G(G(G({},z),Y),Q==null?void 0:Q.wrapper),onMouseEnter:function(){return w(function(ne){return ne.includes(D)?ne:[].concat(Ae(ne),[D])})},onMouseLeave:function(){return w(function(ne){return ne.filter(function(xe){return xe!==D})})}},se.createElement(_$,Me({},U,{ref:function(ne){J>-1?m.current[D]=ne:delete m.current[D]},prefixCls:r,classNames:K,styles:Q,className:ae(V,f==null?void 0:f.notice),style:q,times:R,key:T,eventKey:T,onNoticeClose:l,hovering:k&&x.length>0})))})},t6=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,m=d.useState([]),v=te(m,2),h=v[0],p=v[1],g=function(k){var O,$=h.find(function(N){return N.key===k});$==null||(O=$.onClose)===null||O===void 0||O.call($),p(function(N){return N.filter(function(_){return _.key!==k})})};d.useImperativeHandle(t,function(){return{open:function(k){p(function(O){var $=Ae(O),N=$.findIndex(function(F){return F.key===k.key}),_=G({},k);if(N>=0){var j;_.times=(((j=O[N])===null||j===void 0?void 0:j.times)||0)+1,$[N]=_}else _.times=0,$.push(_);return a>0&&$.length>a&&($=$.slice(-a)),$})},close:function(k){g(k)},destroy:function(){p([])}}});var b=d.useState({}),y=te(b,2),x=y[0],w=y[1];d.useEffect(function(){var k={};h.forEach(function(O){var $=O.placement,N=$===void 0?"topRight":$;N&&(k[N]=k[N]||[],k[N].push(O))}),Object.keys(x).forEach(function(O){k[O]=k[O]||[]}),w(k)},[h]);var C=function(k){w(function(O){var $=G({},O),N=$[k]||[];return N.length||delete $[k],$})},S=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[x]),!o)return null;var E=Object.keys(x);return kv(d.createElement(d.Fragment,null,E.map(function(k){var O=x[k],$=d.createElement(e6,{key:k,configList:O,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:i,onNoticeClose:g,onAllNoticeRemoved:C,stack:u});return f?f($,{prefixCls:r,key:k}):$})),o)}),n6=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],r6=function(){return document.body},By=0;function o6(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function i6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?r6:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=$t(e,n6),m=d.useState(),v=te(m,2),h=v[0],p=v[1],g=d.useRef(),b=d.createElement(t6,{container:h,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=te(y,2),w=x[0],C=x[1],S=d.useMemo(function(){return{open:function(E){var k=o6(f,E);(k.key===null||k.key===void 0)&&(k.key="rc-notification-".concat(By),By+=1),C(function(O){return[].concat(Ae(O),[{type:"open",config:k}])})},close:function(E){C(function(k){return[].concat(Ae(k),[{type:"close",key:E}])})},destroy:function(){C(function(E){return[].concat(Ae(E),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){p(n())}),d.useEffect(function(){if(g.current&&w.length){w.forEach(function(O){switch(O.type){case"open":g.current.open(O.config);break;case"close":g.current.close(O.key);break;case"destroy":g.current.destroy();break}});var E,k;C(function(O){return(E!==O||!k)&&(E=O,k=O.filter(function($){return!w.includes($)})),k})}},[w]),[S,b]}var a6={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"},s6=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:a6}))},Mi=d.forwardRef(s6);const t0=se.createContext(void 0),vi=100,l6=10,c6=vi*l6,z$={Modal:vi,Drawer:vi,Popover:vi,Popconfirm:vi,Tooltip:vi,Tour:vi,FloatButton:vi},u6={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function d6(e){return e in z$}const Cs=(e,t)=>{const[,n]=Pr(),r=se.useContext(t0),o=d6(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+z$[e]:a+=u6[e],i=[r===void 0?t:a,a]}return i},f6=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:h,zIndexPopup:p,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,x=new Vt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),w=new Vt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
309
- ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},un(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:p,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
310
- ${t}-move-up-appear,
311
- ${t}-move-up-enter
312
- `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
313
- ${t}-move-up-appear${t}-move-up-appear-active,
314
- ${t}-move-up-enter${t}-move-up-enter-active
315
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},p6=e=>({zIndexPopup:e.zIndexPopupBase+c6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),L$=cn("Message",e=>{const t=Wt(e,{height:150});return[f6(t)]},p6);var m6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const g6={info:d.createElement(H4,null),success:d.createElement(e0,null),error:d.createElement(cc,null),warning:d.createElement(zd,null),loading:d.createElement(Mi,null)},H$=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return d.createElement("div",{className:ae(`${t}-custom-content`,`${t}-${n}`)},r||g6[n],d.createElement("span",null,o))},h6=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=m6(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(At),l=t||s("message"),c=Cr(l),[u,f,m]=L$(l,c);return u(d.createElement(_$,Object.assign({},a,{prefixCls:l,className:ae(n,f,`${l}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:d.createElement(H$,{prefixCls:l,type:r,icon:o},i)})))};function v6(e,t){return{motionName:t??`${e}-move-up`}}function n0(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var b6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y6=8,x6=3,w6=e=>{let{children:t,prefixCls:n}=e;const r=Cr(n),[o,i,a]=L$(n,r);return o(d.createElement(Z4,{classNames:{list:ae(i,a,r)}},t))},C6=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(w6,{prefixCls:n,key:r},e)},S6=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=x6,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:m,direction:v}=d.useContext(At),h=r||u("message"),p=()=>({left:"50%",transform:"translateX(-50%)",top:n??y6}),g=()=>ae({[`${h}-rtl`]:s??v==="rtl"}),b=()=>v6(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(Bd,{className:`${h}-close-icon`})),[x,w]=i6({prefixCls:h,style:p,className:g,motion:b,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:C6});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:m})),w});let zy=0;function V$(e){const t=d.useRef(null);return sc(),[d.useMemo(()=>{const n=i=>{var a;(a=t.current)===null||a===void 0||a.close(i)},r=i=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:a,prefixCls:s,message:l}=t.current,c=`${s}-notice`,{content:u,icon:f,type:m,key:v,className:h,style:p,onClose:g}=i,b=b6(i,["content","icon","type","key","className","style","onClose"]);let y=v;return y==null&&(zy+=1,y=`antd-message-${zy}`),n0(x=>(a(Object.assign(Object.assign({},b),{key:y,content:d.createElement(H$,{prefixCls:s,type:m,icon:f},u),placement:"top",className:ae(m&&`${c}-${m}`,h,l==null?void 0:l.className),style:Object.assign(Object.assign({},l==null?void 0:l.style),p),onClose:()=>{g==null||g(),x()}})),()=>{n(y)}))},o={open:r,destroy:i=>{var a;i!==void 0?n(i):(a=t.current)===null||a===void 0||a.destroy()}};return["info","success","warning","error","loading"].forEach(i=>{const a=(s,l,c)=>{let u;s&&typeof s=="object"&&"content"in s?u=s:u={content:s};let f,m;typeof l=="function"?m=l:(f=l,m=c);const v=Object.assign(Object.assign({onClose:m,duration:f},u),{type:i});return r(v)};o[i]=a}),o},[]),d.createElement(S6,Object.assign({key:"message-holder"},e,{ref:t}))]}function k6(e){return V$(e)}function Sn(){Sn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(I,P,M){I[P]=M.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(I,P,M){return Object.defineProperty(I,P,{value:M,enumerable:!0,configurable:!0,writable:!0}),I[P]}try{c({},"")}catch{c=function(I,P,M){return I[P]=M}}function u(I,P,M,z){var B=P&&P.prototype instanceof b?P:b,H=Object.create(B.prototype),T=new F(z||[]);return o(H,"_invoke",{value:$(I,M,T)}),H}function f(I,P,M){try{return{type:"normal",arg:I.call(P,M)}}catch(z){return{type:"throw",arg:z}}}t.wrap=u;var m="suspendedStart",v="suspendedYield",h="executing",p="completed",g={};function b(){}function y(){}function x(){}var w={};c(w,a,function(){return this});var C=Object.getPrototypeOf,S=C&&C(C(A([])));S&&S!==n&&r.call(S,a)&&(w=S);var E=x.prototype=b.prototype=Object.create(w);function k(I){["next","throw","return"].forEach(function(P){c(I,P,function(M){return this._invoke(P,M)})})}function O(I,P){function M(B,H,T,R){var D=f(I[B],I,H);if(D.type!=="throw"){var L=D.arg,V=L.value;return V&&dt(V)=="object"&&r.call(V,"__await")?P.resolve(V.__await).then(function(q){M("next",q,T,R)},function(q){M("throw",q,T,R)}):P.resolve(V).then(function(q){L.value=q,T(L)},function(q){return M("throw",q,T,R)})}R(D.arg)}var z;o(this,"_invoke",{value:function(B,H){function T(){return new P(function(R,D){M(B,H,R,D)})}return z=z?z.then(T,T):T()}})}function $(I,P,M){var z=m;return function(B,H){if(z===h)throw Error("Generator is already running");if(z===p){if(B==="throw")throw H;return{value:e,done:!0}}for(M.method=B,M.arg=H;;){var T=M.delegate;if(T){var R=N(T,M);if(R){if(R===g)continue;return R}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(z===m)throw z=p,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);z=h;var D=f(I,P,M);if(D.type==="normal"){if(z=M.done?p:v,D.arg===g)continue;return{value:D.arg,done:M.done}}D.type==="throw"&&(z=p,M.method="throw",M.arg=D.arg)}}}function N(I,P){var M=P.method,z=I.iterator[M];if(z===e)return P.delegate=null,M==="throw"&&I.iterator.return&&(P.method="return",P.arg=e,N(I,P),P.method==="throw")||M!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+M+"' method")),g;var B=f(z,I.iterator,P.arg);if(B.type==="throw")return P.method="throw",P.arg=B.arg,P.delegate=null,g;var H=B.arg;return H?H.done?(P[I.resultName]=H.value,P.next=I.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,g):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,g)}function _(I){var P={tryLoc:I[0]};1 in I&&(P.catchLoc=I[1]),2 in I&&(P.finallyLoc=I[2],P.afterLoc=I[3]),this.tryEntries.push(P)}function j(I){var P=I.completion||{};P.type="normal",delete P.arg,I.completion=P}function F(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(_,this),this.reset(!0)}function A(I){if(I||I===""){var P=I[a];if(P)return P.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var M=-1,z=function B(){for(;++M<I.length;)if(r.call(I,M))return B.value=I[M],B.done=!1,B;return B.value=e,B.done=!0,B};return z.next=z}}throw new TypeError(dt(I)+" is not iterable")}return y.prototype=x,o(E,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:y,configurable:!0}),y.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(I){var P=typeof I=="function"&&I.constructor;return!!P&&(P===y||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,x):(I.__proto__=x,c(I,l,"GeneratorFunction")),I.prototype=Object.create(E),I},t.awrap=function(I){return{__await:I}},k(O.prototype),c(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(I,P,M,z,B){B===void 0&&(B=Promise);var H=new O(u(I,P,M,z),B);return t.isGeneratorFunction(P)?H:H.next().then(function(T){return T.done?T.value:H.next()})},k(E),c(E,l,"Generator"),c(E,a,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(I){var P=Object(I),M=[];for(var z in P)M.push(z);return M.reverse(),function B(){for(;M.length;){var H=M.pop();if(H in P)return B.value=H,B.done=!1,B}return B.done=!0,B}},t.values=A,F.prototype={constructor:F,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!I)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var P=this;function M(D,L){return H.type="throw",H.arg=I,P.next=D,L&&(P.method="next",P.arg=e),!!L}for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z],H=B.completion;if(B.tryLoc==="root")return M("end");if(B.tryLoc<=this.prev){var T=r.call(B,"catchLoc"),R=r.call(B,"finallyLoc");if(T&&R){if(this.prev<B.catchLoc)return M(B.catchLoc,!0);if(this.prev<B.finallyLoc)return M(B.finallyLoc)}else if(T){if(this.prev<B.catchLoc)return M(B.catchLoc,!0)}else{if(!R)throw Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return M(B.finallyLoc)}}}},abrupt:function(I,P){for(var M=this.tryEntries.length-1;M>=0;--M){var z=this.tryEntries[M];if(z.tryLoc<=this.prev&&r.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var B=z;break}}B&&(I==="break"||I==="continue")&&B.tryLoc<=P&&P<=B.finallyLoc&&(B=null);var H=B?B.completion:{};return H.type=I,H.arg=P,B?(this.method="next",this.next=B.finallyLoc,g):this.complete(H)},complete:function(I,P){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&P&&(this.next=P),g},finish:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P];if(M.finallyLoc===I)return this.complete(M.completion,M.afterLoc),j(M),g}},catch:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P];if(M.tryLoc===I){var z=M.completion;if(z.type==="throw"){var B=z.arg;j(M)}return B}}throw Error("illegal catch attempt")},delegateYield:function(I,P,M){return this.delegate={iterator:A(I),resultName:P,nextLoc:M},this.method==="next"&&(this.arg=e),g}},t}function Ly(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Br(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Ly(i,r,o,a,s,"next",l)}function s(l){Ly(i,r,o,a,s,"throw",l)}a(void 0)})}}var uc=G({},eE),E6=uc.version,Hy=uc.render,$6=uc.unmountComponentAtNode,Ld;try{var O6=Number((E6||"").split(".")[0]);O6>=18&&(Ld=uc.createRoot)}catch{}function Vy(e){var t=uc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&dt(t)==="object"&&(t.usingClientEntryPoint=e)}var Qu="__rc_react_root__";function I6(e,t){Vy(!0);var n=t[Qu]||Ld(t);Vy(!1),n.render(e),t[Qu]=n}function N6(e,t){Hy==null||Hy(e,t)}function M6(e,t){if(Ld){I6(e,t);return}N6(e,t)}function P6(e){return xg.apply(this,arguments)}function xg(){return xg=Br(Sn().mark(function e(t){return Sn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Qu])===null||r===void 0||r.unmount(),delete t[Qu]}));case 1:case"end":return n.stop()}},e)})),xg.apply(this,arguments)}function F6(e){$6(e)}function j6(e){return wg.apply(this,arguments)}function wg(){return wg=Br(Sn().mark(function e(t){return Sn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ld===void 0){n.next=2;break}return n.abrupt("return",P6(t));case 2:F6(t);case 3:case"end":return n.stop()}},e)})),wg.apply(this,arguments)}const A6=(e,t)=>(M6(e,t),()=>j6(t));let R6=A6;function W$(){return R6}const ip=()=>({height:0,opacity:0}),Wy=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},T6=e=>({height:e?e.offsetHeight:0}),ap=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Tl=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Al}-motion-collapse`,onAppearStart:ip,onEnterStart:ip,onAppearActive:Wy,onEnterActive:Wy,onLeaveStart:T6,onLeaveActive:ip,onAppearEnd:ap,onEnterEnd:ap,onLeaveEnd:ap,motionDeadline:500}},r0=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Vn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const dc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},D6=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},_6=z5("Wave",e=>[D6(e)]),o0=`${Al}-wave-target`;function sp(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function B6(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return sp(t)?t:sp(n)?n:sp(r)?r:null}function lp(e){return Number.isNaN(e)?0:e}const z6=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=d.useRef(null),a=d.useRef(null);d.useEffect(()=>{a.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,m]=d.useState(0),[v,h]=d.useState(0),[p,g]=d.useState(0),[b,y]=d.useState(0),[x,w]=d.useState(!1),C={left:f,top:v,width:p,height:b,borderRadius:c.map(k=>`${k}px`).join(" ")};s&&(C["--wave-color"]=s);function S(){const k=getComputedStyle(n);l(B6(n));const O=k.position==="static",{borderLeftWidth:$,borderTopWidth:N}=k;m(O?n.offsetLeft:lp(-parseFloat($))),h(O?n.offsetTop:lp(-parseFloat(N))),g(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:j,borderBottomLeftRadius:F,borderBottomRightRadius:A}=k;u([_,j,A,F].map(I=>lp(parseFloat(I))))}if(d.useEffect(()=>{if(n){const k=_t(()=>{S(),w(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(S),O.observe(n)),()=>{_t.cancel(k),O==null||O.disconnect()}}},[]),!x)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(o0));return d.createElement(uo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,O)=>{var $,N;if(O.deadline||O.propertyName==="opacity"){const _=($=i.current)===null||$===void 0?void 0:$.parentElement;(N=a.current)===null||N===void 0||N.call(a).then(()=>{_==null||_.remove()})}return!1}},(k,O)=>{let{className:$}=k;return d.createElement("div",{ref:Mr(i,O),className:ae(t,$,{"wave-quick":E}),style:C})})},L6=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=W$();let a=null;function s(){return a}a=i(d.createElement(z6,Object.assign({},t,{target:e,registerUnmount:s})),o)},H6=(e,t,n)=>{const{wave:r}=d.useContext(At),[,o,i]=Pr(),a=Gt(l=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const u=c.querySelector(`.${o0}`)||c,{showEffect:f}=r||{};(f||L6)(u,{className:t,token:o,component:n,event:l,hashId:i})}),s=d.useRef(null);return l=>{_t.cancel(s.current),s.current=_t(()=>{a(l)})}},Hd=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=sn(At),i=Ye(null),a=o("wave"),[,s]=_6(a),l=H6(i,ae(a,s),r);if(se.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=m=>{!dc(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(m)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!se.isValidElement(t))return t??null;const c=ai(t)?Mr(Di(t),i):i;return sr(t,{ref:c})},Ur=e=>{const t=se.useContext(la);return se.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},V6=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},W6=e=>{const{componentCls:t,antCls:n}=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 > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},q6=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},q$=cn("Space",e=>{const t=Wt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[W6(t),q6(t),V6(t)]},()=>({}),{resetStyle:!1});var K$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vd=d.createContext(null),si=(e,t)=>{const n=d.useContext(Vd),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return ae(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},K6=e=>{const{children:t}=e;return d.createElement(Vd.Provider,{value:null},t)},U6=e=>{const{children:t}=e,n=K$(e,["children"]);return d.createElement(Vd.Provider,{value:d.useMemo(()=>n,[n])},t)},X6=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=K$(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Ur(x=>r??x),m=t("space-compact",a),[v,h]=q$(m),p=ae(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),g=d.useContext(Vd),b=Io(c),y=d.useMemo(()=>b.map((x,w)=>{const C=(x==null?void 0:x.key)||`${m}-item-${w}`;return d.createElement(U6,{key:C,compactSize:f,compactDirection:o,isFirstItem:w===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:w===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},x)}),[r,b,g]);return b.length===0?null:v(d.createElement("div",Object.assign({className:p},u),y))};var G6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const U$=d.createContext(void 0),Y6=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{prefixCls:r,size:o,className:i}=e,a=G6(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Pr(),c=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=ae(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return d.createElement(U$.Provider,{value:o},d.createElement("div",Object.assign({},a,{className:u})))},qy=/^[\u4E00-\u9FA5]{2}$/,Cg=qy.test.bind(qy);function X$(e){return e==="danger"?{danger:!0}:{type:e}}function Ky(e){return typeof e=="string"}function cp(e){return e==="text"||e==="link"}function Z6(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ky(e.type)&&Cg(e.props.children)?sr(e,{children:e.props.children.split("").join(n)}):Ky(e)?Cg(e)?se.createElement("span",null,e.split("").join(n)):se.createElement("span",null,e):T$(e)?se.createElement("span",null,e):e}function Q6(e,t){let n=!1;const r=[];return se.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),se.Children.map(r,o=>Z6(o,t))}["default","primary","danger"].concat(Ae(Ni));const Sg=Nr((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ae(`${i}-icon`,n);return se.createElement("span",{ref:t,className:a,style:r},o)}),Uy=Nr((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=ae(`${n}-loading-icon`,r);return se.createElement(Sg,{prefixCls:n,className:a,style:o,ref:t},se.createElement(Mi,{className:i}))}),up=()=>({width:0,opacity:0,transform:"scale(0)"}),dp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),J6=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?se.createElement(Uy,{prefixCls:t,className:o,style:i}):se.createElement(uo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:up,onAppearActive:dp,onEnterStart:up,onEnterActive:dp,onLeaveStart:dp,onLeaveActive:up},(l,c)=>{let{className:u,style:f}=l;const m=Object.assign(Object.assign({},i),f);return se.createElement(Uy,{prefixCls:t,className:ae(o,u),style:m,ref:c})})},Xy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),eR=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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:n}},Xy(`${t}-primary`,o),Xy(`${t}-danger`,i)]}};var tR=["b"],nR=["v"],fp=function(e){return Math.round(Number(e||0))},rR=function(e){if(e instanceof Zt)return e;if(e&&dt(e)==="object"&&"h"in e&&"b"in e){var t=e,n=t.b,r=$t(t,tR);return G(G({},r),{},{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},Dl=(function(e){lo(n,e);var t=co(n);function n(r){return $n(this,n),t.call(this,rR(r))}return On(n,[{key:"toHsbString",value:function(){var r=this.toHsb(),o=fp(r.s*100),i=fp(r.b*100),a=fp(r.h),s=r.a,l="hsb(".concat(a,", ").concat(o,"%, ").concat(i,"%)"),c="hsba(".concat(a,", ").concat(o,"%, ").concat(i,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?l:c}},{key:"toHsb",value:function(){var r=this.toHsv(),o=r.v,i=$t(r,nR);return G(G({},i),{},{b:o,a:this.a})}}]),n})(Zt),oR=function(e){return e instanceof Dl?e:new Dl(e)};oR("#1677ff");const iR=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",aR=(e,t)=>e?iR(e,t):"";let sR=(function(){function e(t){$n(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new Dl(this.colors[0].color.metaColor)):this.metaColor=new Dl(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return On(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return aR(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:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((n,r)=>{const o=t.colors[r];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();var lR={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"},cR=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:lR}))},uR=d.forwardRef(cR);const Wd=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
316
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
317
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),dR=e=>({animationDuration:e,animationFillMode:"both"}),fR=e=>({animationDuration:e,animationFillMode:"both"}),qd=function(e,t,n,r){const o=arguments.length>4&&arguments[4]!==void 0&&arguments[4]?"&":"";return{[`
318
- ${o}${e}-enter,
319
- ${o}${e}-appear
320
- `]:Object.assign(Object.assign({},dR(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},fR(r)),{animationPlayState:"paused"}),[`
321
- ${o}${e}-enter${e}-enter-active,
322
- ${o}${e}-appear${e}-appear-active
323
- `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pR=new Vt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mR=new Vt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),G$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[qd(r,pR,mR,e.motionDurationMid,t),{[`
324
- ${o}${r}-enter,
325
- ${o}${r}-appear
326
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gR=new Vt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hR=new Vt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vR=new Vt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bR=new Vt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yR=new Vt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xR=new Vt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wR=new Vt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CR=new Vt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),SR={"move-up":{inKeyframes:wR,outKeyframes:CR},"move-down":{inKeyframes:gR,outKeyframes:hR},"move-left":{inKeyframes:vR,outKeyframes:bR},"move-right":{inKeyframes:yR,outKeyframes:xR}},cs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=SR[t];return[qd(r,o,i,e.motionDurationMid),{[`
327
- ${r}-enter,
328
- ${r}-appear
329
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Kd=new Vt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ud=new Vt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Xd=new Vt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gd=new Vt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kR=new Vt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ER=new Vt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),$R=new Vt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),OR=new Vt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),IR={"slide-up":{inKeyframes:Kd,outKeyframes:Ud},"slide-down":{inKeyframes:Xd,outKeyframes:Gd},"slide-left":{inKeyframes:kR,outKeyframes:ER},"slide-right":{inKeyframes:$R,outKeyframes:OR}},Pi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=IR[t];return[qd(r,o,i,e.motionDurationMid),{[`
330
- ${r}-enter,
331
- ${r}-appear
332
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},i0=new Vt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),NR=new Vt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Gy=new Vt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yy=new Vt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),MR=new Vt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PR=new Vt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),FR=new Vt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),jR=new Vt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),AR=new Vt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),RR=new Vt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TR=new Vt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),DR=new Vt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_R={zoom:{inKeyframes:i0,outKeyframes:NR},"zoom-big":{inKeyframes:Gy,outKeyframes:Yy},"zoom-big-fast":{inKeyframes:Gy,outKeyframes:Yy},"zoom-left":{inKeyframes:FR,outKeyframes:jR},"zoom-right":{inKeyframes:AR,outKeyframes:RR},"zoom-up":{inKeyframes:MR,outKeyframes:PR},"zoom-down":{inKeyframes:TR,outKeyframes:DR}},fc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=_R[t];return[qd(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
333
- ${r}-enter,
334
- ${r}-appear
335
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BR=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Dl(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},Y$=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Wt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Z$=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:ku(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ku(l),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ku(c),v=BR(new sR(e.colorBgSolid),"#fff")?"#000":"#fff",h=Ni.reduce((p,g)=>Object.assign(Object.assign({},p),{[`${g}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${rl(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,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.colorBorder,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:v,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*m)/2-e.lineWidth,0)})},zR=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ys(),"> a":{color:"currentColor"},"&:not(:disabled)":Rl(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Q$=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),LR=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),HR=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),VR=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Yd=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Q$(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),WR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VR(e))}),qR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Zd=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?qR:WR;return Object.assign(Object.assign({},o(e)),Q$(e.componentCls,t,n))},Qd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Zd(e,r,o))}),Jd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Zd(e,r,o))}),ef=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),tf=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Zd(e,n,r))}),Vo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Zd(e,r,o,n))}),KR=e=>{const{componentCls:t}=e;return Ni.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Qd(e,e.colorTextLightSolid,o,{background:a},{background:c})),Jd(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),ef(e)),tf(e,i,{background:s},{background:l})),Vo(e,o,"link",{color:a},{color:c})),Vo(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},UR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Qd(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ef(e)),tf(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Yd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Vo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),XR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Jd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ef(e)),tf(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Vo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Vo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Yd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),GR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Qd(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Jd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ef(e)),tf(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Vo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Vo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Yd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),YR=e=>Object.assign(Object.assign({},Vo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Yd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),ZR=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:UR(e),[`${t}-color-primary`]:XR(e),[`${t}-color-dangerous`]:GR(e),[`${t}-color-link`]:YR(e)},KR(e))},QR=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Jd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Vo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Qd(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Vo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),a0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${ie(l)} ${ie(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:LR(e)},{[`${n}${n}-round${t}`]:HR(e)}]},JR=e=>{const t=Wt(e,{fontSize:e.contentFontSize});return a0(t,e.componentCls)},eT=e=>{const t=Wt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return a0(t,`${e.componentCls}-sm`)},tT=e=>{const t=Wt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return a0(t,`${e.componentCls}-lg`)},nT=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},rT=cn("Button",e=>{const t=Y$(e);return[zR(t),JR(t),eT(t),tT(t),nT(t),ZR(t),QR(t),eR(t)]},Z$,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function oT(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function iT(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function pc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},oT(e,r,t)),iT(n,r,t))}}function aT(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function sT(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 lT(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},aT(e,t)),sT(e.componentCls,t))}}const cT=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},uT=lc(["Button","compact"],e=>{const t=Y$(e);return[pc(t),lT(t),cT(t)]},Z$);var dT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fT(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const pT={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},mT=se.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:m,disabled:v,className:h,rootClassName:p,children:g,icon:b,iconPosition:y="start",ghost:x=!1,block:w=!1,htmlType:C="button",classNames:S,style:E={},autoInsertSpace:k,autoFocus:O}=e,$=dT(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=l||"default",[_,j]=tn(()=>{if(a&&s)return[a,s];const fe=pT[N]||[];return c?["danger",fe[1]]:fe},[l,a,s,c]),F=_==="danger"?"dangerous":_,{getPrefixCls:A,direction:I,autoInsertSpace:P,className:M,style:z,classNames:B,styles:H}=Mo("button"),T=(n=k??P)!==null&&n!==void 0?n:!0,R=A("btn",i),[D,L,V]=rT(R),q=sn(vr),K=v??q,Q=sn(U$),U=tn(()=>fT(o),[o]),[J,Y]=Et(U.loading),[X,re]=Et(!1),le=Ye(null),oe=Ti(t,le),de=Yk.count(g)===1&&!b&&!cp(j),he=Ye(!0);se.useEffect(()=>(he.current=!1,()=>{he.current=!0}),[]),St(()=>{let fe=null;U.delay>0?fe=setTimeout(()=>{fe=null,Y(!0)},U.delay):Y(U.loading);function ye(){fe&&(clearTimeout(fe),fe=null)}return ye},[U]),St(()=>{if(!le.current||!T)return;const fe=le.current.textContent||"";de&&Cg(fe)?X||re(!0):X&&re(!1)}),St(()=>{O&&le.current&&le.current.focus()},[]);const ke=se.useCallback(fe=>{var ye;if(J||K){fe.preventDefault();return}(ye=e.onClick)===null||ye===void 0||ye.call(e,fe)},[e.onClick,J,K]),{compactSize:Oe,compactItemClassnames:pe}=si(R,I),we={large:"lg",small:"sm",middle:void 0},ne=Ur(fe=>{var ye,Ve;return(Ve=(ye=f??Oe)!==null&&ye!==void 0?ye:Q)!==null&&Ve!==void 0?Ve:fe}),xe=ne&&(r=we[ne])!==null&&r!==void 0?r:"",Pe=J?"loading":b,ue=Vn($,["navigate"]),Re=ae(R,L,V,{[`${R}-${u}`]:u!=="default"&&u,[`${R}-${N}`]:N,[`${R}-dangerous`]:c,[`${R}-color-${F}`]:F,[`${R}-variant-${j}`]:j,[`${R}-${xe}`]:xe,[`${R}-icon-only`]:!g&&g!==0&&!!Pe,[`${R}-background-ghost`]:x&&!cp(j),[`${R}-loading`]:J,[`${R}-two-chinese-chars`]:X&&T&&!J,[`${R}-block`]:w,[`${R}-rtl`]:I==="rtl",[`${R}-icon-end`]:y==="end"},pe,h,p,M),Te=Object.assign(Object.assign({},z),E),De=ae(S==null?void 0:S.icon,B.icon),be=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),H.icon||{}),Ie=b&&!J?se.createElement(Sg,{prefixCls:R,className:De,style:be},b):o&&typeof o=="object"&&o.icon?se.createElement(Sg,{prefixCls:R,className:De,style:be},o.icon):se.createElement(J6,{existIcon:!!b,prefixCls:R,loading:J,mount:he.current}),Ne=g||g===0?Q6(g,de&&T):null;if(ue.href!==void 0)return D(se.createElement("a",Object.assign({},ue,{className:ae(Re,{[`${R}-disabled`]:K}),href:K?void 0:ue.href,style:Te,onClick:ke,ref:oe,tabIndex:K?-1:0}),Ie,Ne));let $e=se.createElement("button",Object.assign({},$,{type:C,className:Re,style:Te,onClick:ke,disabled:K,ref:oe}),Ie,Ne,pe&&se.createElement(uT,{prefixCls:R}));return cp(j)||($e=se.createElement(Hd,{component:"Button",disabled:J},$e)),D($e)}),Wo=mT;Wo.Group=Y6;Wo.__ANT_BUTTON=!0;function pp(e){return!!(e!=null&&e.then)}const gT=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),m=d.useRef(null),[v,h]=ca(!1),p=function(){i==null||i.apply(void 0,arguments)};d.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const g=y=>{pp(y)&&(h(!0),y.then(function(){h(!1,!0),p.apply(void 0,arguments),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(x)}))},b=y=>{if(f.current)return;if(f.current=!0,!u){p();return}let x;if(s){if(x=u(y),c&&!pp(x)){f.current=!1,p(y);return}}else if(u.length)x=u(i),f.current=!1;else if(x=u(),!pp(x)){p();return}g(x)};return d.createElement(Wo,Object.assign({},X$(t),{onClick:b,loading:v,prefixCls:r},o,{ref:m}),n)},hT=se.createContext({}),{Provider:Une}=hT;var J$=d.createContext(null),Zy=[];function vT(e,t){var n=d.useState(function(){if(!hr())return null;var h=document.createElement("div");return h}),r=te(n,1),o=r[0],i=d.useRef(!1),a=d.useContext(J$),s=d.useState(Zy),l=te(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(p){var g=[h].concat(Ae(p));return g})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return Xt(function(){return e?a?a(m):m():v(),v},[e]),Xt(function(){c.length&&(c.forEach(function(h){return h()}),u(Zy))},[c]),[o,f]}function bT(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ti(`
336
- #`.concat(t,`::-webkit-scrollbar {
337
- `).concat(u,`
338
- `).concat(f,`
339
- }`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ml(t),{width:m,height:v}}function yT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:bT(e)}function xT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var wT="rc-util-locker-".concat(Date.now()),Qy=0;function CT(e){var t=!!e,n=d.useState(function(){return Qy+=1,"".concat(wT,"_").concat(Qy)}),r=te(n,1),o=r[0];Xt(function(){if(t){var i=yT(document.body).width,a=xT();ti(`
340
- html body {
341
- overflow-y: hidden;
342
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
343
- }`),o)}else Ml(o);return function(){Ml(o)}},[t,o])}var ST=!1;function kT(e){return ST}var Jy=function(e){return e===!1?!1:!hr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},e2=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=d.useState(n),c=te(l,2),u=c[0],f=c[1],m=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var v=d.useState(function(){return Jy(o)}),h=te(v,2),p=h[0],g=h[1];d.useEffect(function(){var N=Jy(o);g(N??null)});var b=vT(m&&!p),y=te(b,2),x=y[0],w=y[1],C=p??x;CT(r&&n&&hr()&&(C===x||C===document.body));var S=null;if(s&&ai(s)&&t){var E=s;S=E.ref}var k=Ti(S,t);if(!m||!hr()||p===void 0)return null;var O=C===!1||kT(),$=s;return t&&($=d.cloneElement(s,{ref:k})),d.createElement(J$.Provider,{value:w},O?$:kv($,C))}),ET=d.createContext({});function $T(){var e=G({},d);return e.useId}var ex=0,tx=$T();const s0=tx?(function(e){var t=tx();return e||t}):(function(e){var t=d.useState("ssr-id"),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){var i=ex;ex+=1,o("rc_unique_".concat(i))},[]),e||r});function nx(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function OT(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=nx(o),n.top+=nx(o,!0),n}const IT=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var NT={width:0,height:0,overflow:"hidden",outline:"none"},MT={outline:"none"},PT=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,m=e.bodyStyle,v=e.bodyProps,h=e.modalRender,p=e.onMouseDown,g=e.onMouseUp,b=e.holderRef,y=e.visible,x=e.forceRender,w=e.width,C=e.height,S=e.classNames,E=e.styles,k=se.useContext(ET),O=k.panel,$=Ti(b,O),N=Ye(),_=Ye();se.useImperativeHandle(t,function(){return{focus:function(){var H;(H=N.current)===null||H===void 0||H.focus({preventScroll:!0})},changeActive:function(H){var T=document,R=T.activeElement;H&&R===_.current?N.current.focus({preventScroll:!0}):!H&&R===N.current&&_.current.focus({preventScroll:!0})}}});var j={};w!==void 0&&(j.width=w),C!==void 0&&(j.height=C);var F=s?se.createElement("div",{className:ae("".concat(n,"-footer"),S==null?void 0:S.footer),style:G({},E==null?void 0:E.footer)},s):null,A=i?se.createElement("div",{className:ae("".concat(n,"-header"),S==null?void 0:S.header),style:G({},E==null?void 0:E.header)},se.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,I=tn(function(){return dt(l)==="object"&&l!==null?l:l?{closeIcon:c??se.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),P=wr(I,!0),M=dt(l)==="object"&&l.disabled,z=l?se.createElement("button",Me({type:"button",onClick:u,"aria-label":"Close"},P,{className:"".concat(n,"-close"),disabled:M}),I.closeIcon):null,B=se.createElement("div",{className:ae("".concat(n,"-content"),S==null?void 0:S.content),style:E==null?void 0:E.content},z,A,se.createElement("div",Me({className:ae("".concat(n,"-body"),S==null?void 0:S.body),style:G(G({},m),E==null?void 0:E.body)},v),f),F);return se.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:$,style:G(G({},o),j),className:ae(n,r),onMouseDown:p,onMouseUp:g},se.createElement("div",{ref:N,tabIndex:0,style:MT},se.createElement(IT,{shouldUpdate:y||x},h?h(B):B)),se.createElement("div",{tabIndex:0,ref:_,style:NT}))}),FT=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,v=Ye(),h=d.useState(),p=te(h,2),g=p[0],b=p[1],y={};g&&(y.transformOrigin=g);function x(){var w=OT(v.current);b(m&&(m.x||m.y)?"".concat(m.x-w.left,"px ").concat(m.y-w.top,"px"):"")}return d.createElement(uo,{visible:a,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:l,ref:v},function(w,C){var S=w.className,E=w.style;return d.createElement(PT,Me({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:C,style:G(G(G({},E),o),y),className:ae(i,S)}))})});FT.displayName="Content";var Gi="RC_FORM_INTERNAL_HOOKS",bn=function(){vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},da=d.createContext({getFieldValue:bn,getFieldsValue:bn,getFieldError:bn,getFieldWarning:bn,getFieldsError:bn,isFieldsTouched:bn,isFieldTouched:bn,isFieldValidating:bn,isFieldsValidating:bn,resetFields:bn,setFields:bn,setFieldValue:bn,setFieldsValue:bn,validateFields:bn,submit:bn,getInternalHooks:function(){return bn(),{dispatch:bn,initEntityValue:bn,registerField:bn,useSubscribe:bn,setInitialValues:bn,destroyForm:bn,setCallbacks:bn,registerWatch:bn,getFields:bn,setValidateMessages:bn,setPreserve:bn,getInitialValue:bn}}}),_l=d.createContext(null);function kg(e){return e==null?[]:Array.isArray(e)?e:[e]}function jT(e){return e&&!!e._init}function Eg(){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",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:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var $g=Eg();function AT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function RT(e,t,n){if(Lv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ol(o,n.prototype),o}function Og(e){var t=typeof Map=="function"?new Map:void 0;return Og=function(n){if(n===null||!AT(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return RT(n,arguments,Il(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ol(r,n)},Og(e)}var TT=/%[sdj%]/g,DT=function(){};function Ig(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function zr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(TT,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function _T(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Yn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||_T(t)&&typeof e=="string"&&!e)}function BT(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Ae(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function rx(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function zT(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ae(e[n]||[]))}),t}var ox=(function(e){lo(n,e);var t=co(n);function n(r,o){var i;return $n(this,n),i=t.call(this,"Async Validation Error"),W(rt(i),"errors",void 0),W(rt(i),"fields",void 0),i.errors=r,i.fields=o,i}return On(n)})(Og(Error));function LT(e,t,n,r,o){if(t.first){var i=new Promise(function(m,v){var h=function(g){return r(g),g.length?v(new ox(g,Ig(g))):m(o)},p=zT(e);rx(p,n,h)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(m,v){var h=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?v(new ox(u,Ig(u))):m(o)};s.length||(r(u),m(o)),s.forEach(function(p){var g=e[p];a.indexOf(p)!==-1?rx(g,n,h):BT(g,n,h)})});return f.catch(function(m){return m}),f}function HT(e){return!!(e&&e.message!==void 0)}function VT(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function ix(e,t){return function(n){var r;return e.fullFields?r=VT(t,e.fullFields):r=t[n.field||e.fullField],HT(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function ax(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];dt(r)==="object"&&dt(e[n])==="object"?e[n]=G(G({},e[n]),r):e[n]=r}}return e}var Oa="enum",WT=function(e,t,n,r,o){e[Oa]=Array.isArray(e[Oa])?e[Oa]:[],e[Oa].indexOf(t)===-1&&r.push(zr(o.messages[Oa],e.fullField,e[Oa].join(", ")))},qT=function(e,t,n,r,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(zr(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(zr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},KT=function(e,t,n,r,o){var i=typeof e.len=="number",a=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,f=typeof t=="number",m=typeof t=="string",v=Array.isArray(t);if(f?u="number":m?u="string":v&&(u="array"),!u)return!1;v&&(c=t.length),m&&(c=t.replace(l,"_").length),i?c!==e.len&&r.push(zr(o.messages[u].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(zr(o.messages[u].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(zr(o.messages[u].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(zr(o.messages[u].range,e.fullField,e.min,e.max))},t2=function(e,t,n,r,o,i){e.required&&(!n.hasOwnProperty(e.field)||Yn(t,i||e.type))&&r.push(zr(o.messages.required,e.fullField))},Vc;const UT=function(){if(Vc)return Vc;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?: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}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(h,"|").concat(p).concat(g).concat(b,")").concat(y).concat(x);return Vc=new RegExp("(?:^".concat(w,"$)"),"i"),Vc};var sx={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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ol={integer:function(e){return ol.number(e)&&parseInt(e,10)===e},float:function(e){return ol.number(e)&&!ol.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return dt(e)==="object"&&!ol.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(sx.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(UT())},hex:function(e){return typeof e=="string"&&!!e.match(sx.hex)}},XT=function(e,t,n,r,o){if(e.required&&t===void 0){t2(e,t,n,r,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?ol[a](t)||r.push(zr(o.messages.types[a],e.fullField,e.type)):a&&dt(t)!==e.type&&r.push(zr(o.messages.types[a],e.fullField,e.type))},GT=function(e,t,n,r,o){(/^\s+$/.test(t)||t==="")&&r.push(zr(o.messages.whitespace,e.fullField))};const nn={required:t2,whitespace:GT,type:XT,range:KT,enum:WT,pattern:qT};var YT=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o)}n(i)},ZT=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t==null&&!e.required)return n();nn.required(e,t,r,i,o,"array"),t!=null&&(nn.type(e,t,r,i,o),nn.range(e,t,r,i,o))}n(i)},QT=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&nn.type(e,t,r,i,o)}n(i)},JT=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t,"date")&&!e.required)return n();if(nn.required(e,t,r,i,o),!Yn(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),nn.type(e,s,r,i,o),s&&nn.range(e,s.getTime(),r,i,o)}}n(i)},e3="enum",t3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&nn[e3](e,t,r,i,o)}n(i)},n3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&(nn.type(e,t,r,i,o),nn.range(e,t,r,i,o))}n(i)},r3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&(nn.type(e,t,r,i,o),nn.range(e,t,r,i,o))}n(i)},o3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&nn.type(e,t,r,i,o)}n(i)},i3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t===""&&(t=void 0),Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&(nn.type(e,t,r,i,o),nn.range(e,t,r,i,o))}n(i)},a3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),t!==void 0&&nn.type(e,t,r,i,o)}n(i)},s3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t,"string")&&!e.required)return n();nn.required(e,t,r,i,o),Yn(t,"string")||nn.pattern(e,t,r,i,o)}n(i)},l3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t)&&!e.required)return n();nn.required(e,t,r,i,o),Yn(t)||nn.type(e,t,r,i,o)}n(i)},c3=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":dt(t);nn.required(e,t,r,i,o,a),n(i)},u3=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Yn(t,"string")&&!e.required)return n();nn.required(e,t,r,i,o,"string"),Yn(t,"string")||(nn.type(e,t,r,i,o),nn.range(e,t,r,i,o),nn.pattern(e,t,r,i,o),e.whitespace===!0&&nn.whitespace(e,t,r,i,o))}n(i)},mp=function(e,t,n,r,o){var i=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(Yn(t,i)&&!e.required)return n();nn.required(e,t,r,a,o,i),Yn(t,i)||nn.type(e,t,r,a,o)}n(a)};const gl={string:u3,method:o3,number:i3,boolean:QT,regexp:l3,integer:r3,float:n3,array:ZT,object:a3,enum:t3,pattern:s3,date:JT,url:mp,hex:mp,email:mp,required:c3,any:YT};var mc=(function(){function e(t){$n(this,e),W(this,"rules",null),W(this,"_messages",$g),this.define(t)}return On(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(dt(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(r){var o=t[r];n.rules[r]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=ax(Eg(),t)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=t,a=r,s=o;if(typeof a=="function"&&(s=a,a={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,i),Promise.resolve(i);function l(v){var h=[],p={};function g(y){if(Array.isArray(y)){var x;h=(x=h).concat.apply(x,Ae(y))}else h.push(y)}for(var b=0;b<v.length;b++)g(v[b]);h.length?(p=Ig(h),s(h,p)):s(null,i)}if(a.messages){var c=this.messages();c===$g&&(c=Eg()),ax(c,a.messages),a.messages=c}else a.messages=this.messages();var u={},f=a.keys||Object.keys(this.rules);f.forEach(function(v){var h=n.rules[v],p=i[v];h.forEach(function(g){var b=g;typeof b.transform=="function"&&(i===t&&(i=G({},i)),p=i[v]=b.transform(p),p!=null&&(b.type=b.type||(Array.isArray(p)?"array":dt(p)))),typeof b=="function"?b={validator:b}:b=G({},b),b.validator=n.getValidationMethod(b),b.validator&&(b.field=v,b.fullField=b.fullField||v,b.type=n.getType(b),u[v]=u[v]||[],u[v].push({rule:b,value:p,source:i,field:v}))})});var m={};return LT(u,a,function(v,h){var p=v.rule,g=(p.type==="object"||p.type==="array")&&(dt(p.fields)==="object"||dt(p.defaultField)==="object");g=g&&(p.required||!p.required&&v.value),p.field=v.field;function b(S,E){return G(G({},E),{},{fullField:"".concat(p.fullField,".").concat(S),fullFields:p.fullFields?[].concat(Ae(p.fullFields),[S]):[S]})}function y(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(S)?S:[S];!a.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&p.message!==void 0&&(E=[].concat(p.message));var k=E.map(ix(p,i));if(a.first&&k.length)return m[p.field]=1,h(k);if(!g)h(k);else{if(p.required&&!v.value)return p.message!==void 0?k=[].concat(p.message).map(ix(p,i)):a.error&&(k=[a.error(p,zr(a.messages.required,p.field))]),h(k);var O={};p.defaultField&&Object.keys(v.value).map(function(_){O[_]=p.defaultField}),O=G(G({},O),v.rule.fields);var $={};Object.keys(O).forEach(function(_){var j=O[_],F=Array.isArray(j)?j:[j];$[_]=F.map(b.bind(null,_))});var N=new e($);N.messages(a.messages),v.rule.options&&(v.rule.options.messages=a.messages,v.rule.options.error=a.error),N.validate(v.value,v.rule.options||a,function(_){var j=[];k&&k.length&&j.push.apply(j,Ae(k)),_&&_.length&&j.push.apply(j,Ae(_)),h(j.length?j:null)})}}var x;if(p.asyncValidator)x=p.asyncValidator(p,v.value,y,v.source,a);else if(p.validator){try{x=p.validator(p,v.value,y,v.source,a)}catch(S){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,S),a.suppressValidatorError||setTimeout(function(){throw S},0),y(S.message)}x===!0?y():x===!1?y(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(S){return y(S)})},function(v){l(v)},i)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!gl.hasOwnProperty(t.type))throw new Error(zr("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?gl.required:gl[this.getType(t)]||void 0}}]),e})();W(mc,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");gl[e]=t});W(mc,"warning",DT);W(mc,"messages",$g);W(mc,"validators",gl);var jr="'${name}' is not a valid ${type}",n2={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:jr,method:jr,array:jr,object:jr,number:jr,date:jr,boolean:jr,integer:jr,float:jr,regexp:jr,email:jr,url:jr,hex:jr},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}"}},lx=mc;function d3(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var cx="CODE_LOGIC_ERROR";function Ng(e,t,n,r,o){return Mg.apply(this,arguments)}function Mg(){return Mg=Br(Sn().mark(function e(t,n,r,o,i){var a,s,l,c,u,f,m,v,h;return Sn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=G({},r),delete a.ruleIndex,lx.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(cx)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new lx(W({},t,[a])),u=Ba(n2,o.validateMessages),c.messages(u),f=[],p.prev=10,p.next=13,Promise.resolve(c.validate(W({},t,n),G({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(f=p.t0.errors.map(function(g,b){var y=g.message,x=y===cx?u.default:y;return d.isValidElement(x)?d.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(g,b){return Ng("".concat(t,".").concat(b),g,l,o,i)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(g,b){return[].concat(Ae(g),Ae(b))},[]));case 23:return v=G(G({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?d3(g,v):g}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Mg.apply(this,arguments)}function f3(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,f){var m=u.validator,v=G(G({},u),{},{ruleIndex:f});return m&&(v.validator=function(h,p,g){var b=!1,y=function(){for(var w=arguments.length,C=new Array(w),S=0;S<w;S++)C[S]=arguments[S];Promise.resolve().then(function(){vn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,C)})},x=m(h,p,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",vn(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){g()}).catch(function(w){g(w||" ")})}),v}).sort(function(u,f){var m=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!m==!!h?v-p:m?1:-1}),l;if(o===!0)l=new Promise((function(){var u=Br(Sn().mark(function f(m,v){var h,p,g;return Sn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<s.length)){b.next=12;break}return p=s[h],b.next=5,Ng(a,t,p,r,i);case 5:if(g=b.sent,!g.length){b.next=9;break}return v([{errors:g,rule:p}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:m([]);case 13:case"end":return b.stop()}},f)}));return function(f,m){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return Ng(a,t,u,r,i).then(function(f){return{errors:f,rule:u}})});l=(o?m3(c):p3(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function p3(e){return Pg.apply(this,arguments)}function Pg(){return Pg=Br(Sn().mark(function e(t){return Sn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var o,i=(o=[]).concat.apply(o,Ae(r));return i}));case 1:case"end":return n.stop()}},e)})),Pg.apply(this,arguments)}function m3(e){return Fg.apply(this,arguments)}function Fg(){return Fg=Br(Sn().mark(function e(t){var n;return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(a){a.errors.length&&o([a]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return r.stop()}},e)})),Fg.apply(this,arguments)}function _n(e){return kg(e)}function ux(e,t){var n={};return t.forEach(function(r){var o=io(e,r);n=oo(n,r,o)}),n}function Ya(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return r2(t,r,n)})}function r2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function g3(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||dt(e)!=="object"||dt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ae(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function h3(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&dt(t.target)==="object"&&e in t.target?t.target[e]:t}function dx(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ae(e.slice(0,n)),[o],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):i<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[o],Ae(e.slice(n+1,r))):e}var v3=["name"],Zr=[];function gp(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var l0=(function(e){lo(n,e);var t=co(n);function n(r){var o;if($n(this,n),o=t.call(this,r),W(rt(o),"state",{resetCount:0}),W(rt(o),"cancelRegisterFunc",null),W(rt(o),"mounted",!1),W(rt(o),"touched",!1),W(rt(o),"dirty",!1),W(rt(o),"validatePromise",void 0),W(rt(o),"prevValidating",void 0),W(rt(o),"errors",Zr),W(rt(o),"warnings",Zr),W(rt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,_n(f)),o.cancelRegisterFunc=null}),W(rt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(Ae(m),Ae(c)):[]}),W(rt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(f):m})}),W(rt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),W(rt(o),"metaCache",null),W(rt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=G(G({},o.getMeta()),{},{destroy:l});rs(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),W(rt(o),"onStoreChange",function(l,c,u){var f=o.props,m=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,p=f.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(g),w=c&&Ya(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!rs(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Zr,o.warnings=Zr,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Zr,o.warnings=Zr,o.triggerMetaEvent(),p==null||p(),o.refresh();return}break;case"remove":{if(m&&gp(m,l,g,y,x,u)){o.reRender();return}break}case"setField":{var C=u.data;if(w){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||Zr),"warnings"in C&&(o.warnings=C.warnings||Zr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&Ya(c,b,!0)){o.reRender();return}if(m&&!b.length&&gp(m,l,g,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var S=h.map(_n);if(S.some(function(E){return Ya(u.relatedFields,E)})){o.reRender();return}break}default:if(w||(!h.length||b.length||m)&&gp(m,l,g,y,x,u)){o.reRender();return}break}m===!0&&o.reRender()}),W(rt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},m=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,p=Promise.resolve().then(Br(Sn().mark(function g(){var b,y,x,w,C,S,E;return Sn().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(o.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,w=b.messageVariables,C=b.validateDebounce,S=o.getRules(),m&&(S=S.filter(function(O){return O}).filter(function(O){var $=O.validateTrigger;if(!$)return!0;var N=kg($);return N.includes(m)})),!(C&&m)){k.next=10;break}return k.next=8,new Promise(function(O){setTimeout(O,C)});case 8:if(o.validatePromise===p){k.next=10;break}return k.abrupt("return",[]);case 10:return E=f3(c,u,S,l,x,w),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zr;if(o.validatePromise===p){var $;o.validatePromise=null;var N=[],_=[];($=O.forEach)===null||$===void 0||$.call(O,function(j){var F=j.rule.warningOnly,A=j.errors,I=A===void 0?Zr:A;F?_.push.apply(_,Ae(I)):N.push.apply(N,Ae(I))}),o.errors=N,o.warnings=_,o.triggerMetaEvent(),o.reRender()}}),k.abrupt("return",E);case 13:case"end":return k.stop()}},g)})));return h||(o.validatePromise=p,o.dirty=!0,o.errors=Zr,o.warnings=Zr,o.triggerMetaEvent(),o.reRender()),p}),W(rt(o),"isFieldValidating",function(){return!!o.validatePromise}),W(rt(o),"isFieldTouched",function(){return o.touched}),W(rt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Gi),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),W(rt(o),"getErrors",function(){return o.errors}),W(rt(o),"getWarnings",function(){return o.warnings}),W(rt(o),"isListField",function(){return o.props.isListField}),W(rt(o),"isList",function(){return o.props.isList}),W(rt(o),"isPreserve",function(){return o.props.preserve}),W(rt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),W(rt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return G(G({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Io(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),W(rt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return io(l||c(!0),u)}),W(rt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,m=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,p=c.valuePropName,g=c.getValueProps,b=c.fieldContext,y=m!==void 0?m:b.validateTrigger,x=o.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,S=w(Gi),E=S.dispatch,k=o.getValue(),O=g||function(F){return W({},p,F)},$=l[f],N=u!==void 0?O(k):{},_=G(G({},l),N);_[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,A=arguments.length,I=new Array(A),P=0;P<A;P++)I[P]=arguments[P];v?F=v.apply(void 0,I):F=h3.apply(void 0,[p].concat(I)),h&&(F=h(F,k,C(!0))),F!==k&&E({type:"updateValue",namePath:x,value:F}),$&&$.apply(void 0,I)};var j=kg(y||[]);return j.forEach(function(F){var A=_[F];_[F]=function(){A&&A.apply(void 0,arguments);var I=o.props.rules;I&&I.length&&E({type:"validateField",namePath:x,triggerName:F})}}),_}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Gi),s=a.initEntityValue;s(rt(o))}return o}return On(n,[{key:"componentDidMount",value:function(){var r=this.props,o=r.shouldUpdate,i=r.fieldContext;if(this.mounted=!0,i){var a=i.getInternalHooks,s=a(Gi),l=s.registerField;this.cancelRegisterFunc=l(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var r=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),a=i.child,s=i.isFunction,l;return s?l=a:d.isValidElement(a)?l=d.cloneElement(a,this.getControlled(a.props)):(vn(!a,"`children` of Field is not validate ReactElement."),l=a),d.createElement(d.Fragment,{key:r},l)}}]),n})(d.Component);W(l0,"contextType",da);W(l0,"defaultProps",{trigger:"onChange",valuePropName:"value"});function c0(e){var t,n=e.name,r=$t(e,v3),o=d.useContext(da),i=d.useContext(_l),a=n!==void 0?_n(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),d.createElement(l0,Me({key:l,name:a,isListField:s},r,{fieldContext:o}))}function o2(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=d.useContext(da),l=d.useContext(_l),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var p=_n(s.prefixName)||[];return[].concat(Ae(p),Ae(_n(t)))},[s.prefixName,t]),m=d.useMemo(function(){return G(G({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(p){var g=f.length,b=p[g];return[u.keys[b],p.slice(g+1)]}}},[f]);if(typeof r!="function")return vn(!1,"Form.List only accepts function as children."),null;var h=function(p,g,b){var y=b.source;return y==="internal"?!1:p!==g};return d.createElement(_l.Provider,{value:v},d.createElement(da.Provider,{value:m},d.createElement(c0,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(p,g){var b=p.value,y=b===void 0?[]:b,x=p.onChange,w=s.getFieldValue,C=function(){var k=w(f||[]);return k||[]},S={add:function(k,O){var $=C();O>=0&&O<=$.length?(u.keys=[].concat(Ae(u.keys.slice(0,O)),[u.id],Ae(u.keys.slice(O))),x([].concat(Ae($.slice(0,O)),[k],Ae($.slice(O))))):(u.keys=[].concat(Ae(u.keys),[u.id]),x([].concat(Ae($),[k]))),u.id+=1},remove:function(k){var O=C(),$=new Set(Array.isArray(k)?k:[k]);$.size<=0||(u.keys=u.keys.filter(function(N,_){return!$.has(_)}),x(O.filter(function(N,_){return!$.has(_)})))},move:function(k,O){if(k!==O){var $=C();k<0||k>=$.length||O<0||O>=$.length||(u.keys=dx(u.keys,k,O),x(dx($,k,O)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(k,O){var $=u.keys[O];return $===void 0&&(u.keys[O]=u.id,$=u.keys[O],u.id+=1),{name:O,key:$,isListField:!0}}),S,g)})))}function b3(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var i2="__@field_split__";function hp(e){return e.map(function(t){return"".concat(dt(t),":").concat(t)}).join(i2)}var Ia=(function(){function e(){$n(this,e),W(this,"kvs",new Map)}return On(e,[{key:"set",value:function(t,n){this.kvs.set(hp(t),n)}},{key:"get",value:function(t){return this.kvs.get(hp(t))}},{key:"update",value:function(t,n){var r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(hp(t))}},{key:"map",value:function(t){return Ae(this.kvs.entries()).map(function(n){var r=te(n,2),o=r[0],i=r[1],a=o.split(i2);return t({key:a.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=te(l,3),u=c[1],f=c[2];return u==="number"?Number(f):f}),value:i})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var r=n.key,o=n.value;return t[r.join(".")]=o,null}),t}}]),e})(),y3=["name"],x3=On(function e(t){var n=this;$n(this,e),W(this,"formHooked",!1),W(this,"forceRootUpdate",void 0),W(this,"subscribable",!0),W(this,"store",{}),W(this,"fieldEntities",[]),W(this,"initialValues",{}),W(this,"callbacks",{}),W(this,"validateMessages",null),W(this,"preserve",null),W(this,"lastValidatePromise",null),W(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),W(this,"getInternalHooks",function(r){return r===Gi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),W(this,"useSubscribe",function(r){n.subscribable=r}),W(this,"prevWithoutPreserves",null),W(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Ba(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=oo(a,l,io(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),W(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ia;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),W(this,"getInitialValue",function(r){var o=io(n.initialValues,r);return r.length?Ba(o):o}),W(this,"setCallbacks",function(r){n.callbacks=r}),W(this,"setValidateMessages",function(r){n.validateMessages=r}),W(this,"setPreserve",function(r){n.preserve=r}),W(this,"watchList",[]),W(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),W(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),W(this,"timeoutId",null),W(this,"warningUnhooked",function(){}),W(this,"updateStore",function(r){n.store=r}),W(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),W(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ia;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),W(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=_n(i);return o.get(a)||{INVALIDATE_NAME_PATH:_n(i)}})}),W(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&dt(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,m,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,p;if((h=(p=u).isList)!==null&&h!==void 0&&h.call(p))return}else if(!i&&(f=(m=u).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)c.push(v);else{var g="getMeta"in u?u.getMeta():null;a(g)&&c.push(v)}}),ux(n.store,c.map(_n))}),W(this,"getFieldValue",function(r){n.warningUnhooked();var o=_n(r);return io(n.store,o)}),W(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:_n(r[a]),errors:[],warnings:[]}})}),W(this,"getFieldError",function(r){n.warningUnhooked();var o=_n(r),i=n.getFieldsError([o])[0];return i.errors}),W(this,"getFieldWarning",function(r){n.warningUnhooked();var o=_n(r),i=n.getFieldsError([o])[0];return i.warnings}),W(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(_n),c=!1):(l=null,c=a):(l=a.map(_n),c=s);var u=n.getFieldEntities(!0),f=function(p){return p.isFieldTouched()};if(!l)return c?u.every(function(p){return f(p)||p.isList()}):u.some(f);var m=new Ia;l.forEach(function(p){m.set(p,[])}),u.forEach(function(p){var g=p.getNamePath();l.forEach(function(b){b.every(function(y,x){return g[x]===y})&&m.update(b,function(y){return[].concat(Ae(y),[p])})})});var v=function(p){return p.some(f)},h=m.map(function(p){var g=p.value;return g});return c?h.every(v):h.some(v)}),W(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),W(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(_n);return o.some(function(a){var s=a.getNamePath();return Ya(i,s)&&a.isFieldValidating()})}),W(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),W(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ia,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(l){l.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var f=c.getNamePath(),m=n.getInitialValue(f);if(m!==void 0)vn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=o.get(f);if(v&&v.size>1)vn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(f),p=c.isListField();!p&&(!r.skipExist||h===void 0)&&n.updateStore(oo(n.store,f,Ae(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ae(Ae(c).map(function(f){return f.entity})))}})):s=i,a(s)}),W(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ba(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(_n);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(oo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),W(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=$t(a,y3),c=_n(s);i.push(c),"value"in l&&n.updateStore(oo(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),W(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=G(G({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),W(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=io(n.store,i);a===void 0&&n.updateStore(oo(n.store,i,o))}}),W(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),W(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!r2(f.getNamePath(),o)})){var u=n.store;n.updateStore(oo(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),W(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),W(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=G(G({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),W(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ae(i))}),i}),W(this,"updateValue",function(r,o){var i=_n(r),a=n.store;n.updateStore(oo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=ux(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ae(s)))}),W(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Ba(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),W(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),W(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Ia;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=_n(u);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),l(m))}})};return s(r),i}),W(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Ia;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Ya(r,u)});l.length&&i(l,a)}}),W(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(_n):[],c=[],u=String(Date.now()),f=new Set,m=a||{},v=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||Ya(l,x,v)){var w=y.validateRules(G({validateMessages:G(G({},n2),n.validateMessages)},a));c.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var S,E=[],k=[];return(S=C.forEach)===null||S===void 0||S.call(C,function(O){var $=O.rule.warningOnly,N=O.errors;$?k.push.apply(k,Ae(N)):E.push.apply(E,Ae(N))}),E.length?Promise.reject({name:x,errors:E,warnings:k}):{name:x,errors:E,warnings:k}}))}}});var p=b3(c);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var x=y.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var g=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==p})});g.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),g}),W(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function u0(e){var t=d.useRef(),n=d.useState({}),r=te(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new x3(i);t.current=a.getForm()}return[t.current]}var jg=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),a2=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=d.useContext(jg),a=d.useRef({});return d.createElement(jg.Provider,{value:G(G({},i),{},{validateMessages:G(G({},i.validateMessages),t),triggerFormChange:function(s,l){n&&n(s,{changedFields:l,forms:a.current}),i.triggerFormChange(s,l)},triggerFormFinish:function(s,l){r&&r(s,{values:l,forms:a.current}),i.triggerFormFinish(s,l)},registerForm:function(s,l){s&&(a.current=G(G({},a.current),{},W({},s,l))),i.registerForm(s,l)},unregisterForm:function(s){var l=G({},a.current);delete l[s],a.current=l,i.unregisterForm(s)}})},o)},w3=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],C3=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,s=e.children,l=e.component,c=l===void 0?"form":l,u=e.validateMessages,f=e.validateTrigger,m=f===void 0?"onChange":f,v=e.onValuesChange,h=e.onFieldsChange,p=e.onFinish,g=e.onFinishFailed,b=e.clearOnDestroy,y=$t(e,w3),x=d.useRef(null),w=d.useContext(jg),C=u0(i),S=te(C,1),E=S[0],k=E.getInternalHooks(Gi),O=k.useSubscribe,$=k.setInitialValues,N=k.setCallbacks,_=k.setValidateMessages,j=k.setPreserve,F=k.destroyForm;d.useImperativeHandle(t,function(){return G(G({},E),{},{nativeElement:x.current})}),d.useEffect(function(){return w.registerForm(n,E),function(){w.unregisterForm(n)}},[w,E,n]),_(G(G({},w.validateMessages),u)),N({onValuesChange:v,onFieldsChange:function(T){if(w.triggerFormChange(n,T),h){for(var R=arguments.length,D=new Array(R>1?R-1:0),L=1;L<R;L++)D[L-1]=arguments[L];h.apply(void 0,[T].concat(D))}},onFinish:function(T){w.triggerFormFinish(n,T),p&&p(T)},onFinishFailed:g}),j(a);var A=d.useRef(null);$(r,!A.current),A.current||(A.current=!0),d.useEffect(function(){return function(){return F(b)}},[]);var I,P=typeof s=="function";if(P){var M=E.getFieldsValue(!0);I=s(M,E)}else I=s;O(!P);var z=d.useRef();d.useEffect(function(){g3(z.current||[],o||[])||E.setFields(o||[]),z.current=o},[o,E]);var B=d.useMemo(function(){return G(G({},E),{},{validateTrigger:m})},[E,m]),H=d.createElement(_l.Provider,{value:null},d.createElement(da.Provider,{value:B},I));return c===!1?H:d.createElement(c,Me({},y,{ref:x,onSubmit:function(T){T.preventDefault(),T.stopPropagation(),E.submit()},onReset:function(T){var R;T.preventDefault(),E.resetFields(),(R=y.onReset)===null||R===void 0||R.call(y,T)}}),H)};function fx(e){try{return JSON.stringify(e)}catch{return Math.random()}}function s2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=jT(i)?{form:i}:i,s=a.form,l=Et(),c=te(l,2),u=c[0],f=c[1],m=tn(function(){return fx(u)},[u]),v=Ye(m);v.current=m;var h=sn(da),p=s||h,g=p&&p._init,b=_n(r),y=Ye(b);return y.current=b,St(function(){if(g){var x=p.getFieldsValue,w=p.getInternalHooks,C=w(Gi),S=C.registerWatch,E=function($,N){var _=a.preserve?N:$;return typeof r=="function"?r(_):io(_,y.current)},k=S(function($,N){var _=E($,N),j=fx(_);v.current!==j&&(v.current=j,f(_))}),O=E(x(),x(!0));return u!==O&&f(O),k}},[g]),u}var S3=d.forwardRef(C3),Ss=S3;Ss.FormProvider=a2;Ss.Field=c0;Ss.List=o2;Ss.useForm=u0;Ss.useWatch=s2;const ri=d.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l2=d.createContext(null),c2=e=>{const t=Vn(e,["prefixCls"]);return d.createElement(a2,Object.assign({},t))},d0=d.createContext({prefixCls:""}),lr=d.createContext({}),k3=e=>{let{children:t,status:n,override:r}=e;const o=d.useContext(lr),i=d.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return d.createElement(lr.Provider,{value:i},t)},u2=d.createContext(void 0),Fi=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=se.createElement(k3,{override:!0,status:!0},o)),t&&(o=se.createElement(K6,null,o)),o};function px(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function mx(e){const{closable:t,closeIcon:n}=e||{};return se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function gx(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const E3={};function $3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E3;const r=mx(e),o=mx(t),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=se.useMemo(()=>Object.assign({closeIcon:se.createElement(Bd,null)},n),[n]),s=se.useMemo(()=>r===!1?!1:r?gx(a,o,r):o===!1?!1:o?gx(a,o):a.closable?a:!1,[r,o,a]);return se.useMemo(()=>{if(s===!1)return[!1,null,i];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=wr(s,!0);Object.keys(f).length&&(u=se.isValidElement(u)?se.cloneElement(u,f):se.createElement("span",Object.assign({},f),u))}return[!0,u,i]},[s,a])}const O3=()=>hr()&&window.document.documentElement,I3=new Vt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),nf=e=>({height:e,lineHeight:ie(e)}),Za=e=>Object.assign({width:e},nf(e)),N3=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:I3,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),vp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},nf(e)),M3=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Za(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Za(o)),[`${t}${t}-sm`]:Object.assign({},Za(i))}},P3=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},vp(t,s)),[`${r}-lg`]:Object.assign({},vp(o,s)),[`${r}-sm`]:Object.assign({},vp(i,s))}},hx=e=>Object.assign({width:e},nf(e)),F3=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},hx(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},hx(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},bp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},yp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},nf(e)),j3=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},yp(r,s))},bp(e,r,n)),{[`${n}-lg`]:Object.assign({},yp(o,s))}),bp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},yp(i,s))}),bp(e,i,`${n}-sm`))},A3=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:m,marginSM:v,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Za(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Za(c)),[`${n}-sm`]:Object.assign({},Za(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:v,[`+ ${o}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},j3(e)),M3(e)),P3(e)),F3(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
344
- ${r},
345
- ${o} > li,
346
- ${n},
347
- ${i},
348
- ${a},
349
- ${s}
350
- `]:Object.assign({},N3(e))}}},R3=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};cn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Wt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(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[A3(r)]},R3,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});const T3=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"}}}},D3=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_3=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Ag=(e,t)=>_3(e,t),B3=(e,t,n)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},Ag(e,n))}),z3=()=>({}),L3=()=>({}),H3=cn("Grid",T3,z3),d2=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),V3=cn("Grid",e=>{const t=Wt(e,{gridColumns:24}),n=d2(t);return delete n.xs,[D3(t),Ag(t,""),Ag(t,"-xs"),Object.keys(n).map(r=>B3(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},L3);function vx(e){return{position:e,inset:0}}const W3=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},vx("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},vx("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:G$(e)}]},q3=e=>{const{componentCls:t}=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:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},un(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({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 ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Rl(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(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:`${ie(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}-content,
351
- ${t}-body,
352
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},K3=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},U3=e=>{const{componentCls:t}=e,n=d2(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${ie(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Ae(r))}}},f2=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Wt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).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()})},p2=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});cn("Modal",e=>{const t=f2(e);return[q3(t),K3(t),W3(t),fc(t,"zoom"),U3(t)]},p2,{unitless:{titleLineHeight:!0}});const X3=e=>{e.pageX,e.pageY,setTimeout(()=>{},100)};O3()&&document.documentElement.addEventListener("click",X3,!0);const G3=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},ls()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ie(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${ie(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
353
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};lc(["Modal","confirm"],e=>{const t=f2(e);return[G3(t)]},p2,{order:-1e3});const Y3=se.createContext({});function Z3(e){return t=>d.createElement(Bi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const rf=(e,t,n,r,o)=>Z3(i=>{const{prefixCls:a,style:s}=i,l=d.useRef(null),[c,u]=d.useState(0),[f,m]=d.useState(0),[v,h]=mn(!1,{value:i.open}),{getPrefixCls:p}=d.useContext(At),g=p(r||"select",a);d.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(C=>{const S=C[0].target;u(S.offsetHeight+8),m(S.offsetWidth)}),w=setInterval(()=>{var C;const S=o?`.${o(g)}`:`.${g}-dropdown`,E=(C=l.current)===null||C===void 0?void 0:C.querySelector(S);E&&(clearInterval(w),x.observe(E))},10);return()=>{clearInterval(w),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:c,position:"relative",minWidth:f};return d.createElement("div",{ref:l,style:y},d.createElement(e,Object.assign({},b)))}),f0=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|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|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var of=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,s=typeof n=="function"?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(l){l.preventDefault(),i==null||i(l)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:d.createElement("span",{className:ae(t.split(/\s+/).map(function(l){return"".concat(l,"-icon")}))},o))},Q3=function(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=se.useMemo(function(){if(dt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=se.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return{allowClear:c,clearIcon:se.createElement(of,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"\xD7")}},m2=d.createContext(null);function J3(){return d.useContext(m2)}function eD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=te(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};d.useEffect(function(){return a},[]);var s=function(l,c){a(),i.current=window.setTimeout(function(){o(l),c&&c()},e)};return[r,s,a]}function g2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function tD(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function nD(e){return e&&![st.ESC,st.SHIFT,st.BACKSPACE,st.TAB,st.WIN_KEY,st.ALT,st.META,st.WIN_KEY_RIGHT,st.CTRL,st.SEMICOLON,st.EQUALS,st.CAPS_LOCK,st.CONTEXT_MENU,st.F1,st.F2,st.F3,st.F4,st.F5,st.F6,st.F7,st.F8,st.F9,st.F10,st.F11,st.F12].includes(e)}var rD=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Na=void 0;function oD(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,m=e.children,v=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,b=$t(e,rD),y=a&&!v;function x(k){l(c,k)}d.useEffect(function(){return function(){x(null)}},[]);var w=i&&o!==Na?i(o,{index:h}):m,C;r||(C={opacity:y?0:1,height:y?0:Na,overflowY:y?"hidden":Na,order:a?h:Na,pointerEvents:y?"none":Na,position:y?"absolute":Na});var S={};y&&(S["aria-hidden"]=!0);var E=d.createElement(g,Me({className:ae(!r&&n,u),style:G(G({},C),f)},S,b,{ref:t}),w);return a&&(E=d.createElement(Uo,{onResize:function(k){var O=k.offsetWidth;x(O)},disabled:s},E)),E}var hl=d.forwardRef(oD);hl.displayName="Item";function iD(e){if(typeof MessageChannel>"u")_t(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function aD(){var e=d.useRef(null),t=function(n){e.current||(e.current=[],iD(function(){LP(function(){e.current.forEach(function(r){r()}),e.current=null})})),e.current.push(n)};return t}function qs(e,t){var n=d.useState(t),r=te(n,2),o=r[0],i=r[1],a=Gt(function(s){e(function(){i(s)})});return[o,a]}var Ju=se.createContext(null),sD=["component"],lD=["className"],cD=["className"],uD=function(e,t){var n=d.useContext(Ju);if(!n){var r=e.component,o=r===void 0?"div":r,i=$t(e,sD);return d.createElement(o,Me({},i,{ref:t}))}var a=n.className,s=$t(n,lD),l=e.className,c=$t(e,cD);return d.createElement(Ju.Provider,{value:null},d.createElement(hl,Me({ref:t,className:ae(a,l)},s,c)))},h2=d.forwardRef(uD);h2.displayName="RawItem";var dD=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],v2="responsive",b2="invalidate";function fD(e){return"+ ".concat(e.length," ...")}function pD(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,m=e.style,v=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,x=y===void 0?"div":y,w=e.itemComponent,C=e.onVisibleChange,S=$t(e,dD),E=f==="full",k=aD(),O=qs(k,null),$=te(O,2),N=$[0],_=$[1],j=N||0,F=qs(k,new Map),A=te(F,2),I=A[0],P=A[1],M=qs(k,0),z=te(M,2),B=z[0],H=z[1],T=qs(k,0),R=te(T,2),D=R[0],L=R[1],V=qs(k,0),q=te(V,2),K=q[0],Q=q[1],U=Et(null),J=te(U,2),Y=J[0],X=J[1],re=Et(null),le=te(re,2),oe=le[0],de=le[1],he=d.useMemo(function(){return oe===null&&E?Number.MAX_SAFE_INTEGER:oe||0},[oe,N]),ke=Et(!1),Oe=te(ke,2),pe=Oe[0],we=Oe[1],ne="".concat(r,"-item"),xe=Math.max(B,D),Pe=h===v2,ue=i.length&&Pe,Re=h===b2,Te=ue||typeof h=="number"&&i.length>h,De=tn(function(){var at=i;return ue?N===null&&E?at=i:at=i.slice(0,Math.min(i.length,j/u)):typeof h=="number"&&(at=i.slice(0,h)),at},[i,u,N,h,ue]),be=tn(function(){return ue?i.slice(he+1):i.slice(De.length)},[i,De,ue,he]),Ie=yi(function(at,tt){var qe;return typeof l=="function"?l(at):(qe=l&&(at==null?void 0:at[l]))!==null&&qe!==void 0?qe:tt},[l]),Ne=yi(a||function(at){return at},[a]);function $e(at,tt,qe){oe===at&&(tt===void 0||tt===Y)||(de(at),qe||(we(at<i.length-1),C==null||C(at)),tt!==void 0&&X(tt))}function fe(at,tt){_(tt.clientWidth)}function ye(at,tt){P(function(qe){var wt=new Map(qe);return tt===null?wt.delete(at):wt.set(at,tt),wt})}function Ve(at,tt){L(tt),H(D)}function ge(at,tt){Q(tt)}function Ze(at){return I.get(Ie(De[at],at))}Xt(function(){if(j&&typeof xe=="number"&&De){var at=K,tt=De.length,qe=tt-1;if(!tt){$e(0,null);return}for(var wt=0;wt<tt;wt+=1){var Ot=Ze(wt);if(E&&(Ot=Ot||0),Ot===void 0){$e(wt-1,void 0,!0);break}if(at+=Ot,qe===0&&at<=j||wt===qe-1&&at+Ze(qe)<=j){$e(qe,null);break}else if(at+xe>j){$e(wt-1,at-Ot-K+D);break}}b&&Ze(0)+K>j&&X(null)}},[j,I,D,K,Ie,De]);var ut=pe&&!!be.length,xt={};Y!==null&&ue&&(xt={position:"absolute",left:Y,top:0});var It={prefixCls:ne,responsive:ue,component:w,invalidate:Re},ze=s?function(at,tt){var qe=Ie(at,tt);return d.createElement(Ju.Provider,{key:qe,value:G(G({},It),{},{order:tt,item:at,itemKey:qe,registerSize:ye,display:tt<=he})},s(at,tt))}:function(at,tt){var qe=Ie(at,tt);return d.createElement(hl,Me({},It,{order:tt,key:qe,item:at,renderItem:Ne,itemKey:qe,registerSize:ye,display:tt<=he}))},Xe={order:ut?he:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:Ve,display:ut},We=p||fD,bt=g?d.createElement(Ju.Provider,{value:G(G({},It),Xe)},g(be)):d.createElement(hl,Me({},It,Xe),typeof We=="function"?We(be):We),ft=d.createElement(x,Me({className:ae(!Re&&r,v),style:m,ref:t},S),De.map(ze),Te?bt:null,b&&d.createElement(hl,Me({},It,{responsive:Pe,responsiveDisabled:!ue,order:he,className:"".concat(ne,"-suffix"),registerSize:ge,display:!0,style:xt}),b));return Pe?d.createElement(Uo,{onResize:fe,disabled:!ue},ft):ft}var So=d.forwardRef(pD);So.displayName="Overflow";So.Item=h2;So.RESPONSIVE=v2;So.INVALIDATE=b2;var mD=function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,f=e.activeDescendantId,m=e.value,v=e.maxLength,h=e.onKeyDown,p=e.onMouseDown,g=e.onChange,b=e.onPaste,y=e.onCompositionStart,x=e.onCompositionEnd,w=e.onBlur,C=e.open,S=e.attrs,E=i||d.createElement("input",null),k=E,O=k.ref,$=k.props,N=$.onKeyDown,_=$.onChange,j=$.onMouseDown,F=$.onCompositionStart,A=$.onCompositionEnd,I=$.onBlur,P=$.style;return"maxLength"in E.props,E=d.cloneElement(E,G(G(G({type:"search"},$),{},{id:o,ref:Mr(t,O),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:ae("".concat(r,"-selection-search-input"),(n=E)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":C?f:void 0},S),{},{value:u?m:"",maxLength:v,readOnly:!u,unselectable:u?null:"on",style:G(G({},P),{},{opacity:u?null:0}),onKeyDown:function(M){h(M),N&&N(M)},onMouseDown:function(M){p(M),j&&j(M)},onChange:function(M){g(M),_&&_(M)},onCompositionStart:function(M){y(M),F&&F(M)},onCompositionEnd:function(M){x(M),A&&A(M)},onPaste:b,onBlur:function(M){w(M),I&&I(M)}})),E},y2=d.forwardRef(mD);function x2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var gD=typeof window<"u"&&window.document&&window.document.documentElement,hD=gD;function vD(e){return e!=null}function bD(e){return!e&&e!==0}function bx(e){return["string","number"].includes(dt(e))}function w2(e){var t=void 0;return e&&(bx(e.title)?t=e.title.toString():bx(e.label)&&(t=e.label.toString())),t}function yD(e,t){hD?d.useLayoutEffect(e,t):d.useEffect(e,t)}function xD(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var yx=function(e){e.preventDefault(),e.stopPropagation()},wD=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,i=e.searchValue,a=e.autoClearSearchValue,s=e.inputRef,l=e.placeholder,c=e.disabled,u=e.mode,f=e.showSearch,m=e.autoFocus,v=e.autoComplete,h=e.activeDescendantId,p=e.tabIndex,g=e.removeIcon,b=e.maxTagCount,y=e.maxTagTextLength,x=e.maxTagPlaceholder,w=x===void 0?function(X){return"+ ".concat(X.length," ...")}:x,C=e.tagRender,S=e.onToggleOpen,E=e.onRemove,k=e.onInputChange,O=e.onInputPaste,$=e.onInputKeyDown,N=e.onInputMouseDown,_=e.onInputCompositionStart,j=e.onInputCompositionEnd,F=e.onInputBlur,A=d.useRef(null),I=Et(0),P=te(I,2),M=P[0],z=P[1],B=Et(!1),H=te(B,2),T=H[0],R=H[1],D="".concat(n,"-selection"),L=o||u==="multiple"&&a===!1||u==="tags"?i:"",V=u==="tags"||u==="multiple"&&a===!1||f&&(o||T);yD(function(){z(A.current.scrollWidth)},[L]);var q=function(X,re,le,oe,de){return d.createElement("span",{title:w2(X),className:ae("".concat(D,"-item"),W({},"".concat(D,"-item-disabled"),le))},d.createElement("span",{className:"".concat(D,"-item-content")},re),oe&&d.createElement(of,{className:"".concat(D,"-item-remove"),onMouseDown:yx,onClick:de,customizeIcon:g},"\xD7"))},K=function(X,re,le,oe,de,he){var ke=function(Oe){yx(Oe),S(!o)};return d.createElement("span",{onMouseDown:ke},C({label:re,value:X,disabled:le,closable:oe,onClose:de,isMaxTag:!!he}))},Q=function(X){var re=X.disabled,le=X.label,oe=X.value,de=!c&&!re,he=le;if(typeof y=="number"&&(typeof le=="string"||typeof le=="number")){var ke=String(he);ke.length>y&&(he="".concat(ke.slice(0,y),"..."))}var Oe=function(pe){pe&&pe.stopPropagation(),E(X)};return typeof C=="function"?K(oe,he,re,de,Oe):q(X,he,re,de,Oe)},U=function(X){if(!r.length)return null;var re=typeof w=="function"?w(X):w;return typeof C=="function"?K(void 0,re,!1,!1,void 0,!0):q({title:re},re,!1)},J=d.createElement("div",{className:"".concat(D,"-search"),style:{width:M},onFocus:function(){R(!0)},onBlur:function(){R(!1)}},d.createElement(y2,{ref:s,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:m,autoComplete:v,editable:V,activeDescendantId:h,value:L,onKeyDown:$,onMouseDown:N,onChange:k,onPaste:O,onCompositionStart:_,onCompositionEnd:j,onBlur:F,tabIndex:p,attrs:wr(e,!0)}),d.createElement("span",{ref:A,className:"".concat(D,"-search-mirror"),"aria-hidden":!0},L,"\xA0")),Y=d.createElement(So,{prefixCls:"".concat(D,"-overflow"),data:r,renderItem:Q,renderRest:U,suffix:J,itemKey:xD,maxCount:b});return d.createElement("span",{className:"".concat(D,"-wrap")},Y,!r.length&&!L&&d.createElement("span",{className:"".concat(D,"-placeholder")},l))},CD=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,f=e.values,m=e.placeholder,v=e.tabIndex,h=e.showSearch,p=e.searchValue,g=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,k=e.onInputBlur,O=e.title,$=d.useState(!1),N=te($,2),_=N[0],j=N[1],F=c==="combobox",A=F||h,I=f[0],P=p||"";F&&g&&!_&&(P=g),d.useEffect(function(){F&&j(!1)},[F,g]);var M=c!=="combobox"&&!u&&!h?!1:!!P,z=O===void 0?w2(I):O,B=d.useMemo(function(){return I?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},m)},[I,M,m,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(y2,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:s,editable:A,activeDescendantId:l,value:P,onKeyDown:y,onMouseDown:x,onChange:function(H){j(!0),w(H)},onPaste:C,onCompositionStart:S,onCompositionEnd:E,onBlur:k,tabIndex:v,attrs:wr(e,!0),maxLength:F?b:void 0})),!F&&I?d.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:M?{visibility:"hidden"}:void 0},I.label):null,B)},SD=function(e,t){var n=Ye(null),r=Ye(!1),o=e.prefixCls,i=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.disabled,u=e.prefix,f=e.autoClearSearchValue,m=e.onSearch,v=e.onSearchSubmit,h=e.onToggleOpen,p=e.onInputKeyDown,g=e.onInputBlur,b=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(M){n.current.focus(M)},blur:function(){n.current.blur()}}});var y=g2(0),x=te(y,2),w=x[0],C=x[1],S=function(M){var z=M.which,B=n.current instanceof HTMLTextAreaElement;!B&&i&&(z===st.UP||z===st.DOWN)&&M.preventDefault(),p&&p(M),z===st.ENTER&&a==="tags"&&!r.current&&!i&&(v==null||v(M.target.value)),!(B&&!i&&~[st.UP,st.DOWN,st.LEFT,st.RIGHT].indexOf(z))&&nD(z)&&h(!0)},E=function(){C(!0)},k=Ye(null),O=function(M){m(M,!0,r.current)!==!1&&h(!0)},$=function(){r.current=!0},N=function(M){r.current=!1,a!=="combobox"&&O(M.target.value)},_=function(M){var z=M.target.value;if(l&&k.current&&/[\r\n]/.test(k.current)){var B=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(B,k.current)}k.current=null,O(z)},j=function(M){var z=M.clipboardData,B=z==null?void 0:z.getData("text");k.current=B||""},F=function(M){var z=M.target;if(z!==n.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){n.current.focus()}):n.current.focus()}},A=function(M){var z=w();M.target!==n.current&&!z&&!(a==="combobox"&&c)&&M.preventDefault(),(a!=="combobox"&&(!s||!z)||!i)&&(i&&f!==!1&&m("",!0,!1),h())},I={inputRef:n,onInputKeyDown:S,onInputMouseDown:E,onInputChange:_,onInputPaste:j,onInputCompositionStart:$,onInputCompositionEnd:N,onInputBlur:g},P=a==="multiple"||a==="tags"?d.createElement(wD,Me({},e,I)):d.createElement(CD,Me({},e,I));return d.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:F,onMouseDown:A},u&&d.createElement("div",{className:"".concat(o,"-prefix")},u),P)},kD=d.forwardRef(SD);function ED(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,m=d.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],p=n.points[1],g=h[0],b=h[1],y=p[0],x=p[1];g===y||!["t","b"].includes(g)?v.top=f:g==="t"?v.top=0:v.bottom=0,b===x||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0}return d.createElement("div",{ref:m,className:ae("".concat(t,"-arrow"),a),style:v},s)}function $D(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?d.createElement(uo,Me({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:ae("".concat(t,"-mask"),s)})}):null}var OD=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),ID=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,S=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,O=e.onPointerEnter,$=e.onPointerDownCapture,N=e.ready,_=e.offsetX,j=e.offsetY,F=e.offsetR,A=e.offsetB,I=e.onAlign,P=e.onPrepare,M=e.stretch,z=e.targetWidth,B=e.targetHeight,H=typeof n=="function"?n():n,T=l||c,R=(x==null?void 0:x.length)>0,D=d.useState(!x||!R),L=te(D,2),V=L[0],q=L[1];if(Xt(function(){!V&&R&&a&&q(!0)},[V,R,a]),!V)return null;var K="auto",Q={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(N||!l){var U,J=p.points,Y=p.dynamicInset||((U=p._experimental)===null||U===void 0?void 0:U.dynamicInset),X=Y&&J[0][1]==="r",re=Y&&J[0][0]==="b";X?(Q.right=F,Q.left=K):(Q.left=_,Q.right=K),re?(Q.bottom=A,Q.top=K):(Q.top=j,Q.bottom=K)}var le={};return M&&(M.includes("height")&&B?le.height=B:M.includes("minHeight")&&B&&(le.minHeight=B),M.includes("width")&&z?le.width=z:M.includes("minWidth")&&z&&(le.minWidth=z)),l||(le.pointerEvents="none"),d.createElement(C,{open:y||T,getContainer:x&&function(){return x(a)},autoDestroy:w},d.createElement($D,{prefixCls:o,open:l,zIndex:S,mask:m,motion:b}),d.createElement(Uo,{onResize:I,disabled:!l},function(oe){return d.createElement(uo,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:P,onEnterPrepare:P,visible:l,onVisibleChanged:function(de){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,de),s(de)}}),function(de,he){var ke=de.className,Oe=de.style,pe=ae(o,ke,r);return d.createElement("div",{ref:Mr(oe,t,he),className:pe,style:G(G(G(G({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Q),le),Oe),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:E,onMouseLeave:k,onPointerEnter:O,onClick:f,onPointerDownCapture:$},v&&d.createElement(ED,{prefixCls:o,arrow:v,arrowPos:h,align:p}),d.createElement(OD,{cache:!l&&!u},H))})}))}),ND=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ai(n),i=d.useCallback(function(s){Bv(t,r?r(s):s)},[r]),a=Ti(i,Di(n));return o?d.cloneElement(n,{ref:a}):n}),xx=d.createContext(null);function wx(e){return e?Array.isArray(e)?e:[e]:[]}function MD(e,t,n,r){return d.useMemo(function(){var o=wx(n??t),i=wx(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function PD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function FD(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(PD((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function Cx(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function gc(e){return e.ownerDocument.defaultView}function Rg(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=gc(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Bl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ks(e){return Bl(parseFloat(e),0)}function Sx(e,t){var n=G({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=gc(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,p=r.clientWidth,g=Ks(s),b=Ks(l),y=Ks(c),x=Ks(u),w=Bl(Math.round(f.width/h*1e3)/1e3),C=Bl(Math.round(f.height/m*1e3)/1e3),S=(h-p-y-x)*w,E=(m-v-g-b)*C,k=g*C,O=b*C,$=y*w,N=x*w,_=0,j=0;if(i==="clip"){var F=Ks(a);_=F*w,j=F*C}var A=f.x+$-_,I=f.y+k-j,P=A+f.width+2*_-$-N-S,M=I+f.height+2*j-k-O-E;n.left=Math.max(n.left,A),n.top=Math.max(n.top,I),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,M)}}),n}function kx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Ex(e,t){var n=t||[],r=te(n,2),o=r[0],i=r[1];return[kx(e.width,o),kx(e.height,i)]}function $x(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ma(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function di(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function jD(e,t,n,r,o,i,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=te(s,2),c=l[0],u=l[1],f=d.useRef(0),m=d.useMemo(function(){return t?Rg(t):[]},[t]),v=d.useRef({}),h=function(){v.current={}};e||h();var p=Gt(function(){if(t&&n&&e){let an=function(Xo,Ic){var ui=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,Ls=D.x+Xo,Nc=D.y+Ic,Wf=Ls+X,qf=Nc+Y,Kf=Math.max(Ls,ui.left),vt=Math.max(Nc,ui.top),Jt=Math.min(Wf,ui.right),er=Math.min(qf,ui.bottom);return Math.max(0,(Jt-Kf)*(er-vt))},fo=function(){gt=D.y+qe,lt=gt+Y,mt=D.x+tt,kt=mt+X};var y,x,w,C,S=t,E=S.ownerDocument,k=gc(S),O=k.getComputedStyle(S),$=O.width,N=O.height,_=O.position,j=S.style.left,F=S.style.top,A=S.style.right,I=S.style.bottom,P=S.style.overflow,M=G(G({},o[r]),i),z=E.createElement("div");(y=S.parentElement)===null||y===void 0||y.appendChild(z),z.style.left="".concat(S.offsetLeft,"px"),z.style.top="".concat(S.offsetTop,"px"),z.style.position=_,z.style.height="".concat(S.offsetHeight,"px"),z.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var H,T,R=n.getBoundingClientRect();R.x=(H=R.x)!==null&&H!==void 0?H:R.left,R.y=(T=R.y)!==null&&T!==void 0?T:R.top,B={x:R.x,y:R.y,width:R.width,height:R.height}}var D=S.getBoundingClientRect();D.x=(x=D.x)!==null&&x!==void 0?x:D.left,D.y=(w=D.y)!==null&&w!==void 0?w:D.top;var L=E.documentElement,V=L.clientWidth,q=L.clientHeight,K=L.scrollWidth,Q=L.scrollHeight,U=L.scrollTop,J=L.scrollLeft,Y=D.height,X=D.width,re=B.height,le=B.width,oe={left:0,top:0,right:V,bottom:q},de={left:-J,top:-U,right:K-J,bottom:Q-U},he=M.htmlRegion,ke="visible",Oe="visibleFirst";he!=="scroll"&&he!==Oe&&(he=ke);var pe=he===Oe,we=Sx(de,m),ne=Sx(oe,m),xe=he===ke?ne:we,Pe=pe?ne:xe;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var ue=S.getBoundingClientRect();S.style.left=j,S.style.top=F,S.style.right=A,S.style.bottom=I,S.style.overflow=P,(C=S.parentElement)===null||C===void 0||C.removeChild(z);var Re=Bl(Math.round(X/parseFloat($)*1e3)/1e3),Te=Bl(Math.round(Y/parseFloat(N)*1e3)/1e3);if(Re===0||Te===0||$l(n)&&!dc(n))return;var De=M.offset,be=M.targetOffset,Ie=Ex(D,De),Ne=te(Ie,2),$e=Ne[0],fe=Ne[1],ye=Ex(B,be),Ve=te(ye,2),ge=Ve[0],Ze=Ve[1];B.x-=ge,B.y-=Ze;var ut=M.points||[],xt=te(ut,2),It=xt[0],ze=xt[1],Xe=$x(ze),We=$x(It),bt=Ma(B,Xe),ft=Ma(D,We),at=G({},M),tt=bt.x-ft.x+$e,qe=bt.y-ft.y+fe,wt=an(tt,qe),Ot=an(tt,qe,ne),Ge=Ma(B,["t","l"]),Je=Ma(D,["t","l"]),Ke=Ma(B,["b","r"]),it=Ma(D,["b","r"]),ee=M.overflow||{},Z=ee.adjustX,ve=ee.adjustY,Se=ee.shiftX,_e=ee.shiftY,Ue=function(Xo){return typeof Xo=="boolean"?Xo:Xo>=0},gt,lt,mt,kt;fo();var ot=Ue(ve),Nt=We[0]===Xe[0];if(ot&&We[0]==="t"&&(lt>Pe.bottom||v.current.bt)){var Ee=qe;Nt?Ee-=Y-re:Ee=Ge.y-it.y-fe;var Qe=an(tt,Ee),Fe=an(tt,Ee,ne);Qe>wt||Qe===wt&&(!pe||Fe>=Ot)?(v.current.bt=!0,qe=Ee,fe=-fe,at.points=[di(We,0),di(Xe,0)]):v.current.bt=!1}if(ot&&We[0]==="b"&&(gt<Pe.top||v.current.tb)){var Le=qe;Nt?Le+=Y-re:Le=Ke.y-Je.y-fe;var Be=an(tt,Le),ht=an(tt,Le,ne);Be>wt||Be===wt&&(!pe||ht>=Ot)?(v.current.tb=!0,qe=Le,fe=-fe,at.points=[di(We,0),di(Xe,0)]):v.current.tb=!1}var yt=Ue(Z),Dt=We[1]===Xe[1];if(yt&&We[1]==="l"&&(kt>Pe.right||v.current.rl)){var Ft=tt;Dt?Ft-=X-le:Ft=Ge.x-it.x-$e;var Qt=an(Ft,qe),qt=an(Ft,qe,ne);Qt>wt||Qt===wt&&(!pe||qt>=Ot)?(v.current.rl=!0,tt=Ft,$e=-$e,at.points=[di(We,1),di(Xe,1)]):v.current.rl=!1}if(yt&&We[1]==="r"&&(mt<Pe.left||v.current.lr)){var dn=tt;Dt?dn+=X-le:dn=Ke.x-Je.x-$e;var Mn=an(dn,qe),or=an(dn,qe,ne);Mn>wt||Mn===wt&&(!pe||or>=Ot)?(v.current.lr=!0,tt=dn,$e=-$e,at.points=[di(We,1),di(Xe,1)]):v.current.lr=!1}fo();var Rn=Se===!0?0:Se;typeof Rn=="number"&&(mt<ne.left&&(tt-=mt-ne.left-$e,B.x+le<ne.left+Rn&&(tt+=B.x-ne.left+le-Rn)),kt>ne.right&&(tt-=kt-ne.right-$e,B.x>ne.right-Rn&&(tt+=B.x-ne.right+Rn)));var Xn=_e===!0?0:_e;typeof Xn=="number"&&(gt<ne.top&&(qe-=gt-ne.top-fe,B.y+re<ne.top+Xn&&(qe+=B.y-ne.top+re-Xn)),lt>ne.bottom&&(qe-=lt-ne.bottom-fe,B.y>ne.bottom-Xn&&(qe+=B.y-ne.bottom+Xn)));var Er=D.x+tt,$r=Er+X,Qn=D.y+qe,Xr=Qn+Y,Tt=B.x,ct=Tt+le,jt=B.y,on=jt+re,nt=Math.max(Er,Tt),zt=Math.min($r,ct),Cn=(nt+zt)/2,Pn=Cn-Er,cr=Math.max(Qn,jt),Jn=Math.min(Xr,on),ir=(cr+Jn)/2,Gr=ir-Qn;a==null||a(t,at);var Ct=ue.right-D.x-(tt+D.width),Bt=ue.bottom-D.y-(qe+D.height);Re===1&&(tt=Math.round(tt),Ct=Math.round(Ct)),Te===1&&(qe=Math.round(qe),Bt=Math.round(Bt));var Fn={ready:!0,offsetX:tt/Re,offsetY:qe/Te,offsetR:Ct/Re,offsetB:Bt/Te,arrowX:Pn/Re,arrowY:Gr/Te,scaleX:Re,scaleY:Te,align:at};u(Fn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},b=function(){u(function(y){return G(G({},y),{},{ready:!1})})};return Xt(b,[r]),Xt(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function AD(e,t,n,r,o){Xt(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,s=Rg(i),l=Rg(a),c=gc(a),u=new Set([c].concat(Ae(s),Ae(l)));return u.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function RD(e,t,n,r,o,i,a,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){c.current=!1},m=function(p){var g;l.current&&!a(((g=p.composedPath)===null||g===void 0||(g=g.call(p))===null||g===void 0?void 0:g[0])||p.target)&&!c.current&&s(!1)},v=gc(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0);var h=Zu(n);return h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i]);function u(){c.current=!0}return u}var TD=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function DD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e2,t=d.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,p=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,x=n.blurDelay,w=n.mask,C=n.maskClosable,S=C===void 0?!0:C,E=n.getPopupContainer,k=n.forceRender,O=n.autoDestroy,$=n.destroyPopupOnHide,N=n.popup,_=n.popupClassName,j=n.popupStyle,F=n.popupPlacement,A=n.builtinPlacements,I=A===void 0?{}:A,P=n.popupAlign,M=n.zIndex,z=n.stretch,B=n.getPopupClassNameFromAlign,H=n.fresh,T=n.alignPoint,R=n.onPopupClick,D=n.onPopupAlign,L=n.arrow,V=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,Q=n.popupAnimation,U=n.maskTransitionName,J=n.maskAnimation,Y=n.className,X=n.getTriggerDOMNode,re=$t(n,TD),le=O||$||!1,oe=d.useState(!1),de=te(oe,2),he=de[0],ke=de[1];Xt(function(){ke(f0())},[]);var Oe=d.useRef({}),pe=d.useContext(xx),we=d.useMemo(function(){return{registerSubPopup:function(vt,Jt){Oe.current[vt]=Jt,pe==null||pe.registerSubPopup(vt,Jt)}}},[pe]),ne=s0(),xe=d.useState(null),Pe=te(xe,2),ue=Pe[0],Re=Pe[1],Te=d.useRef(null),De=Gt(function(vt){Te.current=vt,$l(vt)&&ue!==vt&&Re(vt),pe==null||pe.registerSubPopup(ne,vt)}),be=d.useState(null),Ie=te(be,2),Ne=Ie[0],$e=Ie[1],fe=d.useRef(null),ye=Gt(function(vt){$l(vt)&&Ne!==vt&&($e(vt),fe.current=vt)}),Ve=d.Children.only(a),ge=(Ve==null?void 0:Ve.props)||{},Ze={},ut=Gt(function(vt){var Jt,er,ar=Ne;return(ar==null?void 0:ar.contains(vt))||((Jt=Zu(ar))===null||Jt===void 0?void 0:Jt.host)===vt||vt===ar||(ue==null?void 0:ue.contains(vt))||((er=Zu(ue))===null||er===void 0?void 0:er.host)===vt||vt===ue||Object.values(Oe.current).some(function(Dn){return(Dn==null?void 0:Dn.contains(vt))||vt===Dn})}),xt=Cx(i,V,Q,K),It=Cx(i,q,J,U),ze=d.useState(m||!1),Xe=te(ze,2),We=Xe[0],bt=Xe[1],ft=f??We,at=Gt(function(vt){f===void 0&&bt(vt)});Xt(function(){bt(f||!1)},[f]);var tt=d.useRef(ft);tt.current=ft;var qe=d.useRef([]);qe.current=[];var wt=Gt(function(vt){var Jt;at(vt),((Jt=qe.current[qe.current.length-1])!==null&&Jt!==void 0?Jt:ft)!==vt&&(qe.current.push(vt),v==null||v(vt))}),Ot=d.useRef(),Ge=function(){clearTimeout(Ot.current)},Je=function(vt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ge(),Jt===0?wt(vt):Ot.current=setTimeout(function(){wt(vt)},Jt*1e3)};d.useEffect(function(){return Ge},[]);var Ke=d.useState(!1),it=te(Ke,2),ee=it[0],Z=it[1];Xt(function(vt){(!vt||ft)&&Z(!0)},[ft]);var ve=d.useState(null),Se=te(ve,2),_e=Se[0],Ue=Se[1],gt=d.useState(null),lt=te(gt,2),mt=lt[0],kt=lt[1],ot=function(vt){kt([vt.clientX,vt.clientY])},Nt=jD(ft,ue,T&&mt!==null?mt:Ne,F,I,P,D),Ee=te(Nt,11),Qe=Ee[0],Fe=Ee[1],Le=Ee[2],Be=Ee[3],ht=Ee[4],yt=Ee[5],Dt=Ee[6],Ft=Ee[7],Qt=Ee[8],qt=Ee[9],dn=Ee[10],Mn=MD(he,l,c,u),or=te(Mn,2),Rn=or[0],Xn=or[1],Er=Rn.has("click"),$r=Xn.has("click")||Xn.has("contextMenu"),Qn=Gt(function(){ee||dn()}),Xr=function(){tt.current&&T&&$r&&Je(!1)};AD(ft,Ne,ue,Qn,Xr),Xt(function(){Qn()},[mt,F]),Xt(function(){ft&&!(I!=null&&I[F])&&Qn()},[JSON.stringify(P)]);var Tt=d.useMemo(function(){var vt=FD(I,i,qt,T);return ae(vt,B==null?void 0:B(qt))},[qt,B,I,i,T]);d.useImperativeHandle(r,function(){return{nativeElement:fe.current,popupElement:Te.current,forceAlign:Qn}});var ct=d.useState(0),jt=te(ct,2),on=jt[0],nt=jt[1],zt=d.useState(0),Cn=te(zt,2),Pn=Cn[0],cr=Cn[1],Jn=function(){if(z&&Ne){var vt=Ne.getBoundingClientRect();nt(vt.width),cr(vt.height)}},ir=function(){Jn(),Qn()},Gr=function(vt){Z(!1),dn(),h==null||h(vt)},Ct=function(){return new Promise(function(vt){Jn(),Ue(function(){return vt})})};Xt(function(){_e&&(dn(),_e(),Ue(null))},[_e]);function Bt(vt,Jt,er,ar){Ze[vt]=function(Dn){var Mc;ar==null||ar(Dn),Je(Jt,er);for(var Uf=arguments.length,Fb=new Array(Uf>1?Uf-1:0),Pc=1;Pc<Uf;Pc++)Fb[Pc-1]=arguments[Pc];(Mc=ge[vt])===null||Mc===void 0||Mc.call.apply(Mc,[ge,Dn].concat(Fb))}}(Er||$r)&&(Ze.onClick=function(vt){var Jt;tt.current&&$r?Je(!1):!tt.current&&Er&&(ot(vt),Je(!0));for(var er=arguments.length,ar=new Array(er>1?er-1:0),Dn=1;Dn<er;Dn++)ar[Dn-1]=arguments[Dn];(Jt=ge.onClick)===null||Jt===void 0||Jt.call.apply(Jt,[ge,vt].concat(ar))});var Fn=RD(ft,$r,Ne,ue,w,S,ut,Je),an=Rn.has("hover"),fo=Xn.has("hover"),Xo,Ic;an&&(Bt("onMouseEnter",!0,p,function(vt){ot(vt)}),Bt("onPointerEnter",!0,p,function(vt){ot(vt)}),Xo=function(vt){(ft||ee)&&ue!==null&&ue!==void 0&&ue.contains(vt.target)&&Je(!0,p)},T&&(Ze.onMouseMove=function(vt){var Jt;(Jt=ge.onMouseMove)===null||Jt===void 0||Jt.call(ge,vt)})),fo&&(Bt("onMouseLeave",!1,b),Bt("onPointerLeave",!1,b),Ic=function(){Je(!1,b)}),Rn.has("focus")&&Bt("onFocus",!0,y),Xn.has("focus")&&Bt("onBlur",!1,x),Rn.has("contextMenu")&&(Ze.onContextMenu=function(vt){var Jt;tt.current&&Xn.has("contextMenu")?Je(!1):(ot(vt),Je(!0)),vt.preventDefault();for(var er=arguments.length,ar=new Array(er>1?er-1:0),Dn=1;Dn<er;Dn++)ar[Dn-1]=arguments[Dn];(Jt=ge.onContextMenu)===null||Jt===void 0||Jt.call.apply(Jt,[ge,vt].concat(ar))}),Y&&(Ze.className=ae(ge.className,Y));var ui=G(G({},ge),Ze),Ls={},Nc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Nc.forEach(function(vt){re[vt]&&(Ls[vt]=function(){for(var Jt,er=arguments.length,ar=new Array(er),Dn=0;Dn<er;Dn++)ar[Dn]=arguments[Dn];(Jt=ui[vt])===null||Jt===void 0||Jt.call.apply(Jt,[ui].concat(ar)),re[vt].apply(re,ar)})});var Wf=d.cloneElement(Ve,G(G({},ui),Ls)),qf={x:yt,y:Dt},Kf=L?G({},L!==!0?L:{}):null;return d.createElement(d.Fragment,null,d.createElement(Uo,{disabled:!ft,ref:ye,onResize:ir},d.createElement(ND,{getTriggerDOMNode:X},Wf)),d.createElement(xx.Provider,{value:we},d.createElement(ID,{portal:e,ref:De,prefixCls:i,popup:N,className:ae(_,Tt),style:j,target:Ne,onMouseEnter:Xo,onMouseLeave:Ic,onPointerEnter:Xo,zIndex:M,open:ft,keepDom:ee,fresh:H,onClick:R,onPointerDownCapture:Fn,mask:w,motion:xt,maskMotion:It,onVisibleChanged:Gr,onPrepare:Ct,forceRender:k,autoDestroy:le,getPopupContainer:E,align:qt,arrow:Kf,arrowPos:qf,ready:Qe,offsetX:Fe,offsetY:Le,offsetR:Be,offsetB:ht,onAlign:Qn,stretch:z,targetWidth:on/Ft,targetHeight:Pn/Qt})))});return t}const hc=DD(e2);var _D=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],BD=function(e){var 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"}}},zD=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,i=e.popupElement,a=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,f=u===void 0?"ltr":u,m=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,p=e.dropdownRender,g=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,S=$t(e,_D),E="".concat(n,"-dropdown"),k=i;p&&(k=p(i));var O=d.useMemo(function(){return v||BD(h)},[v,h]),$=a?"".concat(E,"-").concat(a):s,N=typeof h=="number",_=d.useMemo(function(){return N?null:h===!1?"minWidth":"width"},[h,N]),j=l;N&&(j=G(G({},j),{},{width:h}));var F=d.useRef(null);return d.useImperativeHandle(t,function(){return{getPopupElement:function(){var A;return(A=F.current)===null||A===void 0?void 0:A.popupElement}}}),d.createElement(hc,Me({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:m||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:E,popupTransitionName:$,popup:d.createElement("div",{onMouseEnter:C},k),ref:F,stretch:_,popupAlign:g,popupVisible:r,getPopupContainer:b,popupClassName:ae(c,W({},"".concat(E,"-empty"),y)),popupStyle:j,getTriggerDOMNode:x,onPopupVisibleChange:w}),o)},LD=d.forwardRef(zD);function Ox(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Tg(e){return typeof e<"u"&&!Number.isNaN(e)}function C2(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function HD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=C2(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(l in v)){var h=v[s];o.push({key:Ox(v,o.length),groupOption:m,data:v,label:v[a],value:h})}else{var p=v[c];p===void 0&&r&&(p=v.label),o.push({key:Ox(v,o.length),group:!0,data:v,label:p}),u(v[l],!0)}})}return u(e,!1),o}function Dg(e){var t=G({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var VD=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function a(s,l){var c=n$(l),u=c[0],f=c.slice(1);if(!u)return[s];var m=s.split(u);return r=r||m.length>1,m.reduce(function(v,h){return[].concat(Ae(v),Ae(a(h,f)))},[]).filter(Boolean)},i=o(e,t);return r?typeof n<"u"?i.slice(0,n):i:null},p0=d.createContext(null);function WD(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(dt(i))?i:a}).join(", ")),n.length>r?", ...":null)}var qD=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],KD=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],_g=function(e){return e==="tags"||e==="multiple"},UD=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,p=e.onClear,g=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,w=e.getRawInputElement,C=e.open,S=e.defaultOpen,E=e.onDropdownVisibleChange,k=e.activeValue,O=e.onActiveValueChange,$=e.activeDescendantId,N=e.searchValue,_=e.autoClearSearchValue,j=e.onSearch,F=e.onSearchSplit,A=e.tokenSeparators,I=e.allowClear,P=e.prefix,M=e.suffixIcon,z=e.clearIcon,B=e.OptionList,H=e.animation,T=e.transitionName,R=e.dropdownStyle,D=e.dropdownClassName,L=e.dropdownMatchSelectWidth,V=e.dropdownRender,q=e.dropdownAlign,K=e.placement,Q=e.builtinPlacements,U=e.getPopupContainer,J=e.showAction,Y=J===void 0?[]:J,X=e.onFocus,re=e.onBlur,le=e.onKeyUp,oe=e.onKeyDown,de=e.onMouseDown,he=$t(e,qD),ke=_g(g),Oe=(a!==void 0?a:ke)||g==="combobox",pe=G({},he);KD.forEach(function(ct){delete pe[ct]}),c==null||c.forEach(function(ct){delete pe[ct]});var we=d.useState(!1),ne=te(we,2),xe=ne[0],Pe=ne[1];d.useEffect(function(){Pe(f0())},[]);var ue=d.useRef(null),Re=d.useRef(null),Te=d.useRef(null),De=d.useRef(null),be=d.useRef(null),Ie=d.useRef(!1),Ne=eD(),$e=te(Ne,3),fe=$e[0],ye=$e[1],Ve=$e[2];d.useImperativeHandle(t,function(){var ct,jt;return{focus:(ct=De.current)===null||ct===void 0?void 0:ct.focus,blur:(jt=De.current)===null||jt===void 0?void 0:jt.blur,scrollTo:function(on){var nt;return(nt=be.current)===null||nt===void 0?void 0:nt.scrollTo(on)},nativeElement:ue.current||Re.current}});var ge=d.useMemo(function(){var ct;if(g!=="combobox")return N;var jt=(ct=u[0])===null||ct===void 0?void 0:ct.value;return typeof jt=="string"||typeof jt=="number"?String(jt):""},[N,g,u]),Ze=g==="combobox"&&typeof x=="function"&&x()||null,ut=typeof w=="function"&&w(),xt=Ti(Re,ut==null||(n=ut.props)===null||n===void 0?void 0:n.ref),It=d.useState(!1),ze=te(It,2),Xe=ze[0],We=ze[1];Xt(function(){We(!0)},[]);var bt=mn(!1,{defaultValue:S,value:C}),ft=te(bt,2),at=ft[0],tt=ft[1],qe=Xe?at:!1,wt=!h&&m;(b||wt&&qe&&g==="combobox")&&(qe=!1);var Ot=wt?!1:qe,Ge=d.useCallback(function(ct){var jt=ct!==void 0?ct:!qe;b||(tt(jt),qe!==jt&&(E==null||E(jt)))},[b,qe,tt,E]),Je=d.useMemo(function(){return(A||[]).some(function(ct){return[`
354
- `,`\r
355
- `].includes(ct)})},[A]),Ke=d.useContext(p0)||{},it=Ke.maxCount,ee=Ke.rawValues,Z=function(ct,jt,on){if(!(ke&&Tg(it)&&(ee==null?void 0:ee.size)>=it)){var nt=!0,zt=ct;O==null||O(null);var Cn=VD(ct,A,Tg(it)?it-ee.size:void 0),Pn=on?null:Cn;return g!=="combobox"&&Pn&&(zt="",F==null||F(Pn),Ge(!1),nt=!1),j&&ge!==zt&&j(zt,{source:jt?"typing":"effect"}),nt}},ve=function(ct){!ct||!ct.trim()||j(ct,{source:"submit"})};d.useEffect(function(){!qe&&!ke&&g!=="combobox"&&Z("",!1,!1)},[qe]),d.useEffect(function(){at&&b&&tt(!1),b&&!Ie.current&&ye(!1)},[b]);var Se=g2(),_e=te(Se,2),Ue=_e[0],gt=_e[1],lt=d.useRef(!1),mt=function(ct){var jt=Ue(),on=ct.key,nt=on==="Enter";if(nt&&(g!=="combobox"&&ct.preventDefault(),qe||Ge(!0)),gt(!!ge),on==="Backspace"&&!jt&&ke&&!ge&&u.length){for(var zt=Ae(u),Cn=null,Pn=zt.length-1;Pn>=0;Pn-=1){var cr=zt[Pn];if(!cr.disabled){zt.splice(Pn,1),Cn=cr;break}}Cn&&f(zt,{type:"remove",values:[Cn]})}for(var Jn=arguments.length,ir=new Array(Jn>1?Jn-1:0),Gr=1;Gr<Jn;Gr++)ir[Gr-1]=arguments[Gr];if(qe&&(!nt||!lt.current)){var Ct;nt&&(lt.current=!0),(Ct=be.current)===null||Ct===void 0||Ct.onKeyDown.apply(Ct,[ct].concat(ir))}oe==null||oe.apply(void 0,[ct].concat(ir))},kt=function(ct){for(var jt=arguments.length,on=new Array(jt>1?jt-1:0),nt=1;nt<jt;nt++)on[nt-1]=arguments[nt];if(qe){var zt;(zt=be.current)===null||zt===void 0||zt.onKeyUp.apply(zt,[ct].concat(on))}ct.key==="Enter"&&(lt.current=!1),le==null||le.apply(void 0,[ct].concat(on))},ot=function(ct){var jt=u.filter(function(on){return on!==ct});f(jt,{type:"remove",values:[ct]})},Nt=function(){lt.current=!1},Ee=d.useRef(!1),Qe=function(){ye(!0),b||(X&&!Ee.current&&X.apply(void 0,arguments),Y.includes("focus")&&Ge(!0)),Ee.current=!0},Fe=function(){Ie.current=!0,ye(!1,function(){Ee.current=!1,Ie.current=!1,Ge(!1)}),!b&&(ge&&(g==="tags"?j(ge,{source:"submit"}):g==="multiple"&&j("",{source:"blur"})),re&&re.apply(void 0,arguments))},Le=[];d.useEffect(function(){return function(){Le.forEach(function(ct){return clearTimeout(ct)}),Le.splice(0,Le.length)}},[]);var Be=function(ct){var jt,on=ct.target,nt=(jt=Te.current)===null||jt===void 0?void 0:jt.getPopupElement();if(nt&&nt.contains(on)){var zt=setTimeout(function(){var Jn=Le.indexOf(zt);if(Jn!==-1&&Le.splice(Jn,1),Ve(),!xe&&!nt.contains(document.activeElement)){var ir;(ir=De.current)===null||ir===void 0||ir.focus()}});Le.push(zt)}for(var Cn=arguments.length,Pn=new Array(Cn>1?Cn-1:0),cr=1;cr<Cn;cr++)Pn[cr-1]=arguments[cr];de==null||de.apply(void 0,[ct].concat(Pn))},ht=d.useState({}),yt=te(ht,2),Dt=yt[1];function Ft(){Dt({})}var Qt;ut&&(Qt=function(ct){Ge(ct)}),tD(function(){var ct;return[ue.current,(ct=Te.current)===null||ct===void 0?void 0:ct.getPopupElement()]},Ot,Ge,!!ut);var qt=d.useMemo(function(){return G(G({},e),{},{notFoundContent:h,open:qe,triggerOpen:Ot,id:r,showSearch:Oe,multiple:ke,toggleOpen:Ge})},[e,h,Ot,qe,r,Oe,ke,Ge]),dn=!!M||y,Mn;dn&&(Mn=d.createElement(of,{className:ae("".concat(o,"-arrow"),W({},"".concat(o,"-arrow-loading"),y)),customizeIcon:M,customizeIconProps:{loading:y,searchValue:ge,open:qe,focused:fe,showSearch:Oe}}));var or=function(){var ct;p==null||p(),(ct=De.current)===null||ct===void 0||ct.focus(),f([],{type:"clear",values:u}),Z("",!1,!1)},Rn=Q3(o,or,u,I,z,b,ge,g),Xn=Rn.allowClear,Er=Rn.clearIcon,$r=d.createElement(B,{ref:be}),Qn=ae(o,i,W(W(W(W(W(W(W(W(W(W({},"".concat(o,"-focused"),fe),"".concat(o,"-multiple"),ke),"".concat(o,"-single"),!ke),"".concat(o,"-allow-clear"),I),"".concat(o,"-show-arrow"),dn),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),qe),"".concat(o,"-customize-input"),Ze),"".concat(o,"-show-search"),Oe)),Xr=d.createElement(LD,{ref:Te,disabled:b,prefixCls:o,visible:Ot,popupElement:$r,animation:H,transitionName:T,dropdownStyle:R,dropdownClassName:D,direction:l,dropdownMatchSelectWidth:L,dropdownRender:V,dropdownAlign:q,placement:K,builtinPlacements:Q,getPopupContainer:U,empty:m,getTriggerDOMNode:function(ct){return Re.current||ct},onPopupVisibleChange:Qt,onPopupMouseEnter:Ft},ut?d.cloneElement(ut,{ref:xt}):d.createElement(kD,Me({},e,{domRef:Re,prefixCls:o,inputElement:Ze,ref:De,id:r,prefix:P,showSearch:Oe,autoClearSearchValue:_,mode:g,activeDescendantId:$,tagRender:s,values:u,open:qe,onToggleOpen:Ge,activeValue:k,searchValue:ge,onSearch:Z,onSearchSubmit:ve,onRemove:ot,tokenWithEnter:Je,onInputBlur:Nt}))),Tt;return ut?Tt=Xr:Tt=d.createElement("div",Me({className:Qn},pe,{ref:ue,onMouseDown:Be,onKeyDown:mt,onKeyUp:kt,onFocus:Qe,onBlur:Fe}),d.createElement(WD,{visible:fe&&!qe,values:u}),Xr,Mn,Xn&&Er),d.createElement(m2.Provider,{value:qt},Tt)}),m0=function(){return null};m0.isSelectOptGroup=!0;var g0=function(){return null};g0.isSelectOption=!0;var S2=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=G(G({},m),{},W(W(W(W(W({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:f},d.createElement(Uo,{onResize:function(v){var h=v.offsetHeight;h&&s&&s()}},d.createElement("div",Me({style:m,className:ae(W({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))});S2.displayName="Filler";function XD(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function GD(e,t,n,r,o,i,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var f=t+u,m=a(c,f,{style:{width:r},offsetX:o}),v=l(c);return d.createElement(XD,{key:v,setRef:function(h){return i(c,h)}},m)})}function YD(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=l(i[f]),v=l(a[f]);if(m!==v){c=f,u=u||m!==l(a[f+1]);break}}return c===null?null:{index:c,multiple:u}}function ZD(e,t,n){var r=d.useState(e),o=te(r,2),i=o[0],a=o[1],s=d.useState(null),l=te(s,2),c=l[0],u=l[1];return d.useEffect(function(){var f=YD(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&u(e[f.index]),a(e)},[e]),[c]}var Ix=(typeof navigator>"u"?"undefined":dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const k2=function(e,t,n,r){var o=Ye(!1),i=Ye(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=Ye({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function QD(e,t,n,r,o,i,a){var s=Ye(0),l=Ye(null),c=Ye(null),u=Ye(!1),f=k2(t,n,r,o);function m(y,x){if(_t.cancel(l.current),!f(!1,x)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=x,c.current=x,Ix||w.preventDefault(),l.current=_t(function(){var C=u.current?10:1;a(s.current*C,!1),s.current=0})}}function v(y,x){a(x,!0),Ix||y.preventDefault()}var h=Ye(null),p=Ye(null);function g(y){if(e){_t.cancel(p.current),p.current=_t(function(){h.current=null},2);var x=y.deltaX,w=y.deltaY,C=y.shiftKey,S=x,E=w;(h.current==="sx"||!h.current&&C&&w&&!x)&&(S=w,E=0,h.current="sx");var k=Math.abs(S),O=Math.abs(E);h.current===null&&(h.current=i&&k>O?"x":"y"),h.current==="y"?m(y,E):v(y,S)}}function b(y){e&&(u.current=y.detail===c.current)}return[g,b]}function JD(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=te(o,2),a=i[0],s=i[1],l=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=a.get(c),m=a.get(u);if(f===void 0||m===void 0)for(var v=e.length,h=s.length;h<v;h+=1){var p,g=e[h],b=t(g);a.set(b,h);var y=(p=n.get(b))!==null&&p!==void 0?p:r;if(s[h]=(s[h-1]||0)+y,b===c&&(f=h),b===u&&(m=h),f!==void 0&&m!==void 0)break}return{top:s[f-1]||0,bottom:s[m]}};return l}var e_=(function(){function e(){$n(this,e),W(this,"maps",void 0),W(this,"id",0),W(this,"diffKeys",new Set),this.maps=Object.create(null)}return On(e,[{key:"set",value:function(t,n){this.maps[t]=n,this.id+=1,this.diffKeys.add(t)}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e})();function Nx(e){var t=parseFloat(e);return isNaN(t)?0:t}function t_(e,t,n){var r=d.useState(0),o=te(r,2),i=o[0],a=o[1],s=Ye(new Map),l=Ye(new e_),c=Ye(0);function u(){c.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(b,y){if(b&&b.offsetParent){var x=b.offsetHeight,w=getComputedStyle(b),C=w.marginTop,S=w.marginBottom,E=Nx(C),k=Nx(S),O=x+E+k;l.current.get(y)!==O&&(l.current.set(y,O),g=!0)}}),g&&a(function(b){return b+1})};if(v)h();else{c.current+=1;var p=c.current;Promise.resolve().then(function(){p===c.current&&h()})}}function m(v,h){var p=e(v);s.current.get(p),h?(s.current.set(p,h),f()):s.current.delete(p)}return St(function(){return u},[]),[m,f,l.current,i]}var Mx=14/15;function n_(e,t,n){var r=Ye(!1),o=Ye(0),i=Ye(0),a=Ye(null),s=Ye(null),l,c=function(m){if(r.current){var v=Math.ceil(m.touches[0].pageX),h=Math.ceil(m.touches[0].pageY),p=o.current-v,g=i.current-h,b=Math.abs(p)>Math.abs(g);b?o.current=v:i.current=h;var y=n(b,b?p:g,!1,m);y&&m.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){b?p*=Mx:g*=Mx;var x=Math.floor(b?p:g);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Xt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function Px(e){return Math.floor(Math.pow(e,.5))}function Bg(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function r_(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,a,s=function(){_t.cancel(i)},l=function m(){s(),i=_t(function(){n(a),m()})},c=function(m){if(!(m.target.draggable||m.button!==0)){var v=m;v._virtualHandled||(v._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(m){if(o){var v=Bg(m,!1),h=r.getBoundingClientRect(),p=h.top,g=h.bottom;if(v<=p){var b=p-v;a=-Px(b),l()}else if(v>=g){var y=v-g;a=Px(y),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var o_=10;function i_(e,t,n,r,o,i,a,s){var l=d.useRef(),c=d.useState(null),u=te(c,2),f=u[0],m=u[1];return Xt(function(){if(f&&f.times<o_){if(!e.current){m(function(z){return G({},z)});return}i();var v=f.targetAlign,h=f.originAlign,p=f.index,g=f.offset,b=e.current.clientHeight,y=!1,x=v,w=null;if(b){for(var C=v||h,S=0,E=0,k=0,O=Math.min(t.length-1,p),$=0;$<=O;$+=1){var N=o(t[$]);E=S;var _=n.get(N);k=E+(_===void 0?r:_),S=k}for(var j=C==="top"?g:b-g,F=O;F>=0;F-=1){var A=o(t[F]),I=n.get(A);if(I===void 0){y=!0;break}if(j-=I,j<=0)break}switch(C){case"top":w=E-g;break;case"bottom":w=k-b+g;break;default:{var P=e.current.scrollTop,M=P+b;E<P?x="top":k>M&&(x="bottom")}}w!==null&&a(w),w!==f.lastTop&&(y=!0)}y&&m(G(G({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(v){if(v==null){s();return}if(_t.cancel(l.current),typeof v=="number")a(v);else if(v&&dt(v)==="object"){var h,p=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var g=v.offset,b=g===void 0?0:g;m({times:0,index:h,offset:b,originAlign:p})}}}var Fx=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,h=e.showScrollBar,p=d.useState(!1),g=te(p,2),b=g[0],y=g[1],x=d.useState(null),w=te(x,2),C=w[0],S=w[1],E=d.useState(null),k=te(E,2),O=k[0],$=k[1],N=!r,_=d.useRef(),j=d.useRef(),F=d.useState(h),A=te(F,2),I=A[0],P=A[1],M=d.useRef(),z=function(){h===!0||h===!1||(clearTimeout(M.current),P(!0),M.current=setTimeout(function(){P(!1)},3e3))},B=i-f||0,H=f-u||0,T=d.useMemo(function(){if(o===0||B===0)return 0;var J=o/B;return J*H},[o,B,H]),R=function(J){J.stopPropagation(),J.preventDefault()},D=d.useRef({top:T,dragging:b,pageY:C,startTop:O});D.current={top:T,dragging:b,pageY:C,startTop:O};var L=function(J){y(!0),S(Bg(J,c)),$(D.current.top),a(),J.stopPropagation(),J.preventDefault()};d.useEffect(function(){var J=function(re){re.preventDefault()},Y=_.current,X=j.current;return Y.addEventListener("touchstart",J,{passive:!1}),X.addEventListener("touchstart",L,{passive:!1}),function(){Y.removeEventListener("touchstart",J),X.removeEventListener("touchstart",L)}},[]);var V=d.useRef();V.current=B;var q=d.useRef();q.current=H,d.useEffect(function(){if(b){var J,Y=function(re){var le=D.current,oe=le.dragging,de=le.pageY,he=le.startTop;_t.cancel(J);var ke=_.current.getBoundingClientRect(),Oe=f/(c?ke.width:ke.height);if(oe){var pe=(Bg(re,c)-de)*Oe,we=he;!N&&c?we-=pe:we+=pe;var ne=V.current,xe=q.current,Pe=xe?we/xe:0,ue=Math.ceil(Pe*ne);ue=Math.max(ue,0),ue=Math.min(ue,ne),J=_t(function(){l(ue,c)})}},X=function(){y(!1),s()};return window.addEventListener("mousemove",Y,{passive:!0}),window.addEventListener("touchmove",Y,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),_t.cancel(J)}}},[b]),d.useEffect(function(){return z(),function(){clearTimeout(M.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:z}});var K="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:I?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,U.height="100%",U.width=u,N?U.left=T:U.right=T):(Q.width=8,Q.top=0,Q.bottom=0,N?Q.right=0:Q.left=0,U.width="100%",U.height=u,U.top=T),d.createElement("div",{ref:_,className:ae(K,W(W(W({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),I)),style:G(G({},Q),m),onMouseDown:R,onMouseMove:z},d.createElement("div",{ref:j,className:ae("".concat(K,"-thumb"),W({},"".concat(K,"-thumb-moving"),b)),style:G(G({},U),v),onMouseDown:L}))}),a_=20;function jx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,a_),Math.floor(n)}var s_=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],l_=[],c_={overflowY:"auto",overflowAnchor:"none"};function u_(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,m=e.itemKey,v=e.virtual,h=e.direction,p=e.scrollWidth,g=e.component,b=g===void 0?"div":g,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,S=e.extraRender,E=e.styles,k=e.showScrollBar,O=k===void 0?"optional":k,$=$t(e,s_),N=d.useCallback(function(Ee){return typeof m=="function"?m(Ee):Ee==null?void 0:Ee[m]},[m]),_=t_(N),j=te(_,4),F=j[0],A=j[1],I=j[2],P=j[3],M=!!(v!==!1&&i&&a),z=d.useMemo(function(){return Object.values(I.maps).reduce(function(Ee,Qe){return Ee+Qe},0)},[I.id,I.maps]),B=M&&u&&(Math.max(a*u.length,z)>i||!!p),H=h==="rtl",T=ae(r,W({},"".concat(r,"-rtl"),H),o),R=u||l_,D=Ye(),L=Ye(),V=Ye(),q=Et(0),K=te(q,2),Q=K[0],U=K[1],J=Et(0),Y=te(J,2),X=Y[0],re=Y[1],le=Et(!1),oe=te(le,2),de=oe[0],he=oe[1],ke=function(){he(!0)},Oe=function(){he(!1)},pe={getKey:N};function we(Ee){U(function(Qe){var Fe;typeof Ee=="function"?Fe=Ee(Qe):Fe=Ee;var Le=We(Fe);return D.current.scrollTop=Le,Le})}var ne=Ye({start:0,end:R.length}),xe=Ye(),Pe=ZD(R,N),ue=te(Pe,1),Re=ue[0];xe.current=Re;var Te=d.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};if(!B){var Ee;return{scrollHeight:((Ee=L.current)===null||Ee===void 0?void 0:Ee.offsetHeight)||0,start:0,end:R.length-1,offset:void 0}}for(var Qe=0,Fe,Le,Be,ht=R.length,yt=0;yt<ht;yt+=1){var Dt=R[yt],Ft=N(Dt),Qt=I.get(Ft),qt=Qe+(Qt===void 0?a:Qt);qt>=Q&&Fe===void 0&&(Fe=yt,Le=Qe),qt>Q+i&&Be===void 0&&(Be=yt),Qe=qt}return Fe===void 0&&(Fe=0,Le=0,Be=Math.ceil(i/a)),Be===void 0&&(Be=R.length-1),Be=Math.min(Be+1,R.length-1),{scrollHeight:Qe,start:Fe,end:Be,offset:Le}},[B,M,Q,R,P,i]),De=Te.scrollHeight,be=Te.start,Ie=Te.end,Ne=Te.offset;ne.current.start=be,ne.current.end=Ie,d.useLayoutEffect(function(){var Ee=I.getRecord();if(Ee.size===1){var Qe=Array.from(Ee)[0],Fe=R[be];if(Fe){var Le=N(Fe);if(Le===Qe){var Be=I.get(Qe),ht=Be-a;we(function(yt){return yt+ht})}}}I.resetRecord()},[De]);var $e=d.useState({width:0,height:i}),fe=te($e,2),ye=fe[0],Ve=fe[1],ge=function(Ee){Ve({width:Ee.offsetWidth,height:Ee.offsetHeight})},Ze=Ye(),ut=Ye(),xt=d.useMemo(function(){return jx(ye.width,p)},[ye.width,p]),It=d.useMemo(function(){return jx(ye.height,De)},[ye.height,De]),ze=De-i,Xe=Ye(ze);Xe.current=ze;function We(Ee){var Qe=Ee;return Number.isNaN(Xe.current)||(Qe=Math.min(Qe,Xe.current)),Qe=Math.max(Qe,0),Qe}var bt=Q<=0,ft=Q>=ze,at=X<=0,tt=X>=p,qe=k2(bt,ft,at,tt),wt=function(){return{x:H?-X:X,y:Q}},Ot=Ye(wt()),Ge=Gt(function(Ee){if(x){var Qe=G(G({},wt()),Ee);(Ot.current.x!==Qe.x||Ot.current.y!==Qe.y)&&(x(Qe),Ot.current=Qe)}});function Je(Ee,Qe){var Fe=Ee;Qe?(ts(function(){re(Fe)}),Ge()):we(Fe)}function Ke(Ee){var Qe=Ee.currentTarget.scrollTop;Qe!==Q&&we(Qe),y==null||y(Ee),Ge()}var it=function(Ee){var Qe=Ee,Fe=p?p-ye.width:0;return Qe=Math.max(Qe,0),Qe=Math.min(Qe,Fe),Qe},ee=Gt(function(Ee,Qe){Qe?(ts(function(){re(function(Fe){var Le=Fe+(H?-Ee:Ee);return it(Le)})}),Ge()):we(function(Fe){var Le=Fe+Ee;return Le})}),Z=QD(M,bt,ft,at,tt,!!p,ee),ve=te(Z,2),Se=ve[0],_e=ve[1];n_(M,D,function(Ee,Qe,Fe,Le){var Be=Le;return qe(Ee,Qe,Fe)?!1:!Be||!Be._virtualHandled?(Be&&(Be._virtualHandled=!0),Se({preventDefault:function(){},deltaX:Ee?Qe:0,deltaY:Ee?0:Qe}),!0):!1}),r_(B,D,function(Ee){we(function(Qe){return Qe+Ee})}),Xt(function(){function Ee(Fe){var Le=bt&&Fe.detail<0,Be=ft&&Fe.detail>0;M&&!Le&&!Be&&Fe.preventDefault()}var Qe=D.current;return Qe.addEventListener("wheel",Se,{passive:!1}),Qe.addEventListener("DOMMouseScroll",_e,{passive:!0}),Qe.addEventListener("MozMousePixelScroll",Ee,{passive:!1}),function(){Qe.removeEventListener("wheel",Se),Qe.removeEventListener("DOMMouseScroll",_e),Qe.removeEventListener("MozMousePixelScroll",Ee)}},[M,bt,ft]),Xt(function(){if(p){var Ee=it(X);re(Ee),Ge({x:Ee})}},[ye.width,p]);var Ue=function(){var Ee,Qe;(Ee=Ze.current)===null||Ee===void 0||Ee.delayHidden(),(Qe=ut.current)===null||Qe===void 0||Qe.delayHidden()},gt=i_(D,R,I,a,N,function(){return A(!0)},we,Ue);d.useImperativeHandle(t,function(){return{nativeElement:V.current,getScrollInfo:wt,scrollTo:function(Ee){function Qe(Fe){return Fe&&dt(Fe)==="object"&&("left"in Fe||"top"in Fe)}Qe(Ee)?(Ee.left!==void 0&&re(it(Ee.left)),gt(Ee.top)):gt(Ee)}}}),Xt(function(){if(w){var Ee=R.slice(be,Ie+1);w(Ee,R)}},[be,Ie,R]);var lt=JD(R,N,I,a),mt=S==null?void 0:S({start:be,end:Ie,virtual:B,offsetX:X,offsetY:Ne,rtl:H,getSize:lt}),kt=GD(R,be,Ie,p,X,F,f,pe),ot=null;i&&(ot=G(W({},l?"height":"maxHeight",i),c_),M&&(ot.overflowY="hidden",p&&(ot.overflowX="hidden"),de&&(ot.pointerEvents="none")));var Nt={};return H&&(Nt.dir="rtl"),d.createElement("div",Me({ref:V,style:G(G({},c),{},{position:"relative"}),className:T},Nt,$),d.createElement(Uo,{onResize:ge},d.createElement(b,{className:"".concat(r,"-holder"),style:ot,ref:D,onScroll:Ke,onMouseEnter:Ue},d.createElement(S2,{prefixCls:r,height:De,offsetX:X,offsetY:Ne,scrollWidth:p,onInnerResize:A,ref:L,innerProps:C,rtl:H,extra:mt},kt))),B&&De>i&&d.createElement(Fx,{ref:Ze,prefixCls:r,scrollOffset:Q,scrollRange:De,rtl:H,onScroll:Je,onStartMove:ke,onStopMove:Oe,spinSize:It,containerSize:ye.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:O}),B&&p>ye.width&&d.createElement(Fx,{ref:ut,prefixCls:r,scrollOffset:X,scrollRange:p,rtl:H,onScroll:Je,onStartMove:ke,onStopMove:Oe,spinSize:xt,containerSize:ye.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:O}))}var h0=d.forwardRef(u_);h0.displayName="List";function d_(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var f_=["disabled","title","children","style","className"];function Ax(e){return typeof e=="string"||typeof e=="number"}var p_=function(e,t){var n=J3(),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,f=n.onPopupScroll,m=d.useContext(p0),v=m.maxCount,h=m.flattenOptions,p=m.onActiveValue,g=m.defaultActiveFirstOption,b=m.onSelect,y=m.menuItemSelectedIcon,x=m.rawValues,w=m.fieldNames,C=m.virtual,S=m.direction,E=m.listHeight,k=m.listItemHeight,O=m.optionRender,$="".concat(r,"-item"),N=ic(function(){return h},[i,h],function(U,J){return J[0]&&U[1]!==J[1]}),_=d.useRef(null),j=d.useMemo(function(){return a&&Tg(v)&&(x==null?void 0:x.size)>=v},[a,v,x==null?void 0:x.size]),F=function(U){U.preventDefault()},A=function(U){var J;(J=_.current)===null||J===void 0||J.scrollTo(typeof U=="number"?{index:U}:U)},I=d.useCallback(function(U){return s==="combobox"?!1:x.has(U)},[s,Ae(x).toString(),x.size]),P=function(U){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=N.length,X=0;X<Y;X+=1){var re=(U+X*J+Y)%Y,le=N[re]||{},oe=le.group,de=le.data;if(!oe&&!(de!=null&&de.disabled)&&(I(de.value)||!j))return re}return-1},M=d.useState(function(){return P(0)}),z=te(M,2),B=z[0],H=z[1],T=function(U){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;H(U);var Y={source:J?"keyboard":"mouse"},X=N[U];if(!X){p(null,-1,Y);return}p(X.value,U,Y)};St(function(){T(g!==!1?P(0):-1)},[N.length,l]);var R=d.useCallback(function(U){return s==="combobox"?String(U).toLowerCase()===l.toLowerCase():x.has(U)},[s,l,Ae(x).toString(),x.size]);St(function(){var U=setTimeout(function(){if(!a&&i&&x.size===1){var Y=Array.from(x)[0],X=N.findIndex(function(re){var le=re.data;return le.value===Y});X!==-1&&(T(X),A(X))}});if(i){var J;(J=_.current)===null||J===void 0||J.scrollTo(void 0)}return function(){return clearTimeout(U)}},[i,l]);var D=function(U){U!==void 0&&b(U,{selected:!x.has(U)}),a||c(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(U){var J=U.which,Y=U.ctrlKey;switch(J){case st.N:case st.P:case st.UP:case st.DOWN:{var X=0;if(J===st.UP?X=-1:J===st.DOWN?X=1:d_()&&Y&&(J===st.N?X=1:J===st.P&&(X=-1)),X!==0){var re=P(B+X,X);A(re),T(re,!0)}break}case st.TAB:case st.ENTER:{var le,oe=N[B];oe&&!(oe!=null&&(le=oe.data)!==null&&le!==void 0&&le.disabled)&&!j?D(oe.value):D(void 0),i&&U.preventDefault();break}case st.ESC:c(!1),i&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){A(U)}}}),N.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:F},u);var L=Object.keys(w).map(function(U){return w[U]}),V=function(U){return U.label};function q(U,J){var Y=U.group;return{role:Y?"presentation":"option",id:"".concat(o,"_list_").concat(J)}}var K=function(U){var J=N[U];if(!J)return null;var Y=J.data||{},X=Y.value,re=J.group,le=wr(Y,!0),oe=V(J);return J?d.createElement("div",Me({"aria-label":typeof oe=="string"&&!re?oe:null},le,{key:U},q(J,U),{"aria-selected":R(X)}),X):null},Q={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,C&&d.createElement("div",Me({},Q,{style:{height:0,width:0,overflow:"hidden"}}),K(B-1),K(B),K(B+1)),d.createElement(h0,{itemKey:"key",ref:_,data:N,height:E,itemHeight:k,fullHeight:!1,onMouseDown:F,onScroll:f,virtual:C,direction:S,innerProps:C?null:Q},function(U,J){var Y=U.group,X=U.groupOption,re=U.data,le=U.label,oe=U.value,de=re.key;if(Y){var he,ke=(he=re.title)!==null&&he!==void 0?he:Ax(le)?le.toString():void 0;return d.createElement("div",{className:ae($,"".concat($,"-group"),re.className),title:ke},le!==void 0?le:de)}var Oe=re.disabled,pe=re.title;re.children;var we=re.style,ne=re.className,xe=$t(re,f_),Pe=Vn(xe,L),ue=I(oe),Re=Oe||!ue&&j,Te="".concat($,"-option"),De=ae($,Te,ne,W(W(W(W({},"".concat(Te,"-grouped"),X),"".concat(Te,"-active"),B===J&&!Re),"".concat(Te,"-disabled"),Re),"".concat(Te,"-selected"),ue)),be=V(U),Ie=!y||typeof y=="function"||ue,Ne=typeof be=="number"?be:be||oe,$e=Ax(Ne)?Ne.toString():void 0;return pe!==void 0&&($e=pe),d.createElement("div",Me({},wr(Pe),C?{}:q(U,J),{"aria-selected":R(oe),className:De,title:$e,onMouseMove:function(){B===J||Re||T(J)},onClick:function(){Re||D(oe)},style:we}),d.createElement("div",{className:"".concat(Te,"-content")},typeof O=="function"?O(U,{index:J}):Ne),d.isValidElement(y)||ue,Ie&&d.createElement(of,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:oe,disabled:Re,isSelected:ue}},ue?"\u2713":null))}))},m_=d.forwardRef(p_);const g_=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var m;return G(G({},f),{},{label:(m=a.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=d.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function xp(e,t){return x2(e).join("").toUpperCase().includes(t)}const h_=function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(v,h){return o?xp(h[o],u):h[i]?xp(h[a!=="children"?a:"label"],u):xp(h[s],u)},m=c?function(v){return Dg(v)}:function(v){return v};return e.forEach(function(v){if(v[i]){var h=f(n,m(v));if(h)l.push(v);else{var p=v[i].filter(function(g){return f(n,m(g))});p.length&&l.push(G(G({},v),{},W({},i,p)))}return}f(n,m(v))&&l.push(v)}),l},[e,r,o,n,t])};var Rx=0,v_=hr();function b_(){var e;return v_?(e=Rx,Rx+=1):e="TEST_OR_SSR",e}function y_(e){var t=d.useState(),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(b_()))},[]),e||r}var x_=["children","value"],w_=["children"];function C_(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=$t(r,x_);return G({key:n,value:i!==void 0?i:n,children:o},a)}function E2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Io(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=$t(s,w_);return t||!i?C_(n):G(G({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:E2(l)})}).filter(function(n){return n})}var S_=function(e,t,n,r,o){return d.useMemo(function(){var i=e,a=!e;a&&(i=E2(t));var s=new Map,l=new Map,c=function(f,m,v){v&&typeof v=="string"&&f.set(m[v],m)},u=function f(m){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<m.length;h+=1){var p=m[h];!p[n.options]||v?(s.set(p[n.value],p),c(l,p,n.label),c(l,p,r),c(l,p,o)):f(p[n.options],!0)}};return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])};function Tx(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var k_=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],E_=["inputValue"];function $_(e){return!e||dt(e)!=="object"}var O_=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,p=e.dropdownMatchSelectWidth,g=p===void 0?!0:p,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,C=e.options,S=e.optionRender,E=e.children,k=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,$=e.virtual,N=e.direction,_=e.listHeight,j=_===void 0?200:_,F=e.listItemHeight,A=F===void 0?20:F,I=e.labelRender,P=e.value,M=e.defaultValue,z=e.labelInValue,B=e.onChange,H=e.maxCount,T=$t(e,k_),R=y_(n),D=_g(r),L=!!(!C&&E),V=d.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),q=d.useMemo(function(){return C2(s,L)},[JSON.stringify(s),L]),K=mn("",{value:c!==void 0?c:l,postState:function(Ge){return Ge||""}}),Q=te(K,2),U=Q[0],J=Q[1],Y=S_(C,E,q,x,w),X=Y.valueOptions,re=Y.labelOptions,le=Y.options,oe=d.useCallback(function(Ge){var Je=x2(Ge);return Je.map(function(Ke){var it,ee,Z,ve,Se;if($_(Ke))it=Ke;else{var _e;Z=Ke.key,ee=Ke.label,it=(_e=Ke.value)!==null&&_e!==void 0?_e:Z}var Ue=X.get(it);if(Ue){var gt;ee===void 0&&(ee=Ue==null?void 0:Ue[w||q.label]),Z===void 0&&(Z=(gt=Ue==null?void 0:Ue.key)!==null&&gt!==void 0?gt:it),ve=Ue==null?void 0:Ue.disabled,Se=Ue==null?void 0:Ue.title}return{label:ee,value:it,key:Z,disabled:ve,title:Se}})},[q,w,X]),de=mn(M,{value:P}),he=te(de,2),ke=he[0],Oe=he[1],pe=d.useMemo(function(){var Ge,Je=D&&ke===null?[]:ke,Ke=oe(Je);return r==="combobox"&&bD((Ge=Ke[0])===null||Ge===void 0?void 0:Ge.value)?[]:Ke},[ke,oe,r,D]),we=g_(pe,X),ne=te(we,2),xe=ne[0],Pe=ne[1],ue=d.useMemo(function(){if(!r&&xe.length===1){var Ge=xe[0];if(Ge.value===null&&(Ge.label===null||Ge.label===void 0))return[]}return xe.map(function(Je){var Ke;return G(G({},Je),{},{label:(Ke=typeof I=="function"?I(Je):Je.label)!==null&&Ke!==void 0?Ke:Je.value})})},[r,xe,I]),Re=d.useMemo(function(){return new Set(xe.map(function(Ge){return Ge.value}))},[xe]);d.useEffect(function(){if(r==="combobox"){var Ge,Je=(Ge=xe[0])===null||Ge===void 0?void 0:Ge.value;J(vD(Je)?String(Je):"")}},[xe]);var Te=Tx(function(Ge,Je){var Ke=Je??Ge;return W(W({},q.value,Ge),q.label,Ke)}),De=d.useMemo(function(){if(r!=="tags")return le;var Ge=Ae(le),Je=function(Ke){return X.has(Ke)};return Ae(xe).sort(function(Ke,it){return Ke.value<it.value?-1:1}).forEach(function(Ke){var it=Ke.value;Je(it)||Ge.push(Te(it,Ke.label))}),Ge},[Te,le,X,xe,r]),be=h_(De,q,U,V,x),Ie=d.useMemo(function(){return r!=="tags"||!U||be.some(function(Ge){return Ge[x||"value"]===U})||be.some(function(Ge){return Ge[q.value]===U})?be:[Te(U)].concat(Ae(be))},[Te,x,r,be,U,q]),Ne=function Ge(Je){var Ke=Ae(Je).sort(function(it,ee){return y(it,ee,{searchValue:U})});return Ke.map(function(it){return Array.isArray(it.options)?G(G({},it),{},{options:it.options.length>0?Ge(it.options):it.options}):it})},$e=d.useMemo(function(){return y?Ne(Ie):Ie},[Ie,y,U]),fe=d.useMemo(function(){return HD($e,{fieldNames:q,childrenAsData:L})},[$e,q,L]),ye=function(Ge){var Je=oe(Ge);if(Oe(Je),B&&(Je.length!==xe.length||Je.some(function(ee,Z){var ve;return((ve=xe[Z])===null||ve===void 0?void 0:ve.value)!==(ee==null?void 0:ee.value)}))){var Ke=z?Je:Je.map(function(ee){return ee.value}),it=Je.map(function(ee){return Dg(Pe(ee.value))});B(D?Ke:Ke[0],D?it:it[0])}},Ve=d.useState(null),ge=te(Ve,2),Ze=ge[0],ut=ge[1],xt=d.useState(0),It=te(xt,2),ze=It[0],Xe=It[1],We=k!==void 0?k:r!=="combobox",bt=d.useCallback(function(Ge,Je){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},it=Ke.source,ee=it===void 0?"keyboard":it;Xe(Je),a&&r==="combobox"&&Ge!==null&&ee==="keyboard"&&ut(String(Ge))},[a,r]),ft=function(Ge,Je,Ke){var it=function(){var mt,kt=Pe(Ge);return[z?{label:kt==null?void 0:kt[q.label],value:Ge,key:(mt=kt==null?void 0:kt.key)!==null&&mt!==void 0?mt:Ge}:Ge,Dg(kt)]};if(Je&&v){var ee=it(),Z=te(ee,2),ve=Z[0],Se=Z[1];v(ve,Se)}else if(!Je&&h&&Ke!=="clear"){var _e=it(),Ue=te(_e,2),gt=Ue[0],lt=Ue[1];h(gt,lt)}},at=Tx(function(Ge,Je){var Ke,it=D?Je.selected:!0;it?Ke=D?[].concat(Ae(xe),[Ge]):[Ge]:Ke=xe.filter(function(ee){return ee.value!==Ge}),ye(Ke),ft(Ge,it),r==="combobox"?ut(""):(!_g||m)&&(J(""),ut(""))}),tt=function(Ge,Je){ye(Ge);var Ke=Je.type,it=Je.values;(Ke==="remove"||Ke==="clear")&&it.forEach(function(ee){ft(ee.value,!1,Ke)})},qe=function(Ge,Je){if(J(Ge),ut(null),Je.source==="submit"){var Ke=(Ge||"").trim();if(Ke){var it=Array.from(new Set([].concat(Ae(Re),[Ke])));ye(it),ft(Ke,!0),J("")}return}Je.source!=="blur"&&(r==="combobox"&&ye(Ge),u==null||u(Ge))},wt=function(Ge){var Je=Ge;r!=="tags"&&(Je=Ge.map(function(it){var ee=re.get(it);return ee==null?void 0:ee.value}).filter(function(it){return it!==void 0}));var Ke=Array.from(new Set([].concat(Ae(Re),Ae(Je))));ye(Ke),Ke.forEach(function(it){ft(it,!0)})},Ot=d.useMemo(function(){var Ge=$!==!1&&g!==!1;return G(G({},Y),{},{flattenOptions:fe,onActiveValue:bt,defaultActiveFirstOption:We,onSelect:at,menuItemSelectedIcon:O,rawValues:Re,fieldNames:q,virtual:Ge,direction:N,listHeight:j,listItemHeight:A,childrenAsData:L,maxCount:H,optionRender:S})},[H,Y,fe,bt,We,at,O,Re,q,$,g,N,j,A,L,S]);return d.createElement(p0.Provider,{value:Ot},d.createElement(UD,Me({},T,{id:R,prefixCls:i,ref:t,omitDomProps:E_,mode:r,displayValues:ue,onDisplayValuesChange:tt,direction:N,searchValue:U,onSearch:qe,autoClearSearchValue:m,onSearchSplit:wt,dropdownMatchSelectWidth:g,OptionList:m_,emptyOptions:!fe.length,activeValue:Ze,activeDescendantId:"".concat(R,"_list_").concat(ze)})))}),v0=O_;v0.Option=g0;v0.OptGroup=m0;function ji(e,t,n){return ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ya=(e,t)=>t||e,I_=()=>{const[,e]=Pr(),[t]=_i("Empty"),n=new Zt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},N_=()=>{const[,e]=Pr(),[t]=_i("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=tn(()=>({borderColor:new Zt(n).onBackground(i).toHexString(),shadowColor:new Zt(r).onBackground(i).toHexString(),contentColor:new Zt(o).onBackground(i).toHexString()}),[n,r,o,i]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:a},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},M_=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},P_=cn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Wt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[M_(o)]});var F_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $2=d.createElement(I_,null),O2=d.createElement(N_,null),Ki=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=$2,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=F_(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:v,className:h,style:p,classNames:g,styles:b}=Mo("empty"),y=m("empty",r),[x,w,C]=P_(y),[S]=_i("Empty"),E=typeof i<"u"?i:S==null?void 0:S.description,k=typeof E=="string"?E:"empty";let O=null;return typeof o=="string"?O=d.createElement("img",{alt:k,src:o}):O=o,x(d.createElement("div",Object.assign({className:ae(w,C,y,h,{[`${y}-normal`]:o===O2,[`${y}-rtl`]:v==="rtl"},t,n,g.root,c==null?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),p),u==null?void 0:u.root),l)},f),d.createElement("div",{className:ae(`${y}-image`,g.image,c==null?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},s),b.image),u==null?void 0:u.image)},O),E&&d.createElement("div",{className:ae(`${y}-description`,g.description,c==null?void 0:c.description),style:Object.assign(Object.assign({},b.description),u==null?void 0:u.description)},E),a&&d.createElement("div",{className:ae(`${y}-footer`,g.footer,c==null?void 0:c.footer),style:Object.assign(Object.assign({},b.footer),u==null?void 0:u.footer)},a)))};Ki.PRESENTED_IMAGE_DEFAULT=$2;Ki.PRESENTED_IMAGE_SIMPLE=O2;const j_=e=>{const{componentName:t}=e,{getPrefixCls:n}=sn(At),r=n("empty");switch(t){case"Table":case"List":return se.createElement(Ki,{image:Ki.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(Ki,{image:Ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return se.createElement(Ki,null)}},ks=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=d.useContext(At),s=d.useContext(u2),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=g5.includes(c);return[c,u]},A_=e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};function R_(e,t){return e||A_(t)}const Dx=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},T_=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},un(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,[`
356
- ${o}${s}bottomLeft,
357
- ${i}${s}bottomLeft
358
- `]:{animationName:Kd},[`
359
- ${o}${s}topLeft,
360
- ${i}${s}topLeft,
361
- ${o}${s}topRight,
362
- ${i}${s}topRight
363
- `]:{animationName:Xd},[`${a}${s}bottomLeft`]:{animationName:Ud},[`
364
- ${a}${s}topLeft,
365
- ${a}${s}topRight
366
- `]:{animationName:Gd},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Dx(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ua),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Dx(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Pi(e,"slide-up"),Pi(e,"slide-down"),cs(e,"move-up"),cs(e,"move-down")]},I2=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:ie(t),itemLineHeight:ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},D_=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},N2=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ys()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},__=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=D_(e),s=t?`${n}-${t}`:"",l=I2(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},N2(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ie(r)} 0`,lineHeight:ie(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ie(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ie(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
367
- ${n}-prefix + ${n}-selection-wrap
368
- `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:ie(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function wp(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
369
- &${n}-show-arrow ${n}-selector,
370
- &${n}-allow-clear ${n}-selector
371
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[__(e,t),o]}const B_=e=>{const{componentCls:t}=e,n=Wt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Wt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[wp(e),wp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},wp(r,"lg")]};function Cp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},un(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ie(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
372
- ${n}-selection-item,
373
- ${n}-selection-placeholder
374
- `]:{display:"block",padding:0,lineHeight:ie(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
375
- &${n}-show-arrow ${n}-selection-item,
376
- &${n}-show-arrow ${n}-selection-search,
377
- &${n}-show-arrow ${n}-selection-placeholder
378
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ie(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:ie(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ie(r)}`,"&:after":{display:"none"}}}}}}}function z_(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Cp(e),Cp(Wt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ie(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
379
- &${t}-show-arrow ${t}-selection-item,
380
- &${t}-show-arrow ${t}-selection-placeholder
381
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Cp(Wt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const L_=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:p,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:x,controlOutline:w}=e,C=s*2,S=r*2,E=Math.min(o-C,o-S),k=Math.min(i-C,i-S),O=Math.min(a-C,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:p,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:k,multipleItemHeightLG:O,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:w,selectAffixPadding:s}},M2=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ie(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},_x=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},M2(e,t))}),H_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},M2(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),_x(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),_x(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),P2=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Bx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},P2(e,t))}),V_=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},P2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Bx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Bx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),W_=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),F2=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ie(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},zx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},F2(e,t))}),q_=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},F2(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),zx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),zx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),K_=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},H_(e)),V_(e)),W_(e)),q_(e))}),U_=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},X_=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},G_=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},un(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},U_(e)),X_(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ua),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ua),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ys()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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 ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Y_=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},G_(e),z_(e),B_(e),T_(e),{[`${t}-rtl`]:{direction:"rtl"}},pc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Z_=cn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Wt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Y_(r),K_(r)]},L_,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Q_={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"},J_=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:Q_}))},j2=d.forwardRef(J_),e8={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"},t8=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:e8}))},A2=d.forwardRef(t8),n8={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"},r8=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:n8}))},R2=d.forwardRef(r8);function T2(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:m}=e;const v=n??d.createElement(cc,null),h=y=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&y,s&&u);let p=null;if(t!==void 0)p=h(t);else if(i)p=h(d.createElement(Mi,{spin:!0}));else{const y=`${l}-suffix`;p=x=>{let{open:w,showSearch:C}=x;return h(w&&C?d.createElement(R2,{className:y}):d.createElement(A2,{className:y}))}}let g=null;r!==void 0?g=r:a?g=d.createElement(j2,null):g=null;let b=null;return o!==void 0?b=o:b=d.createElement(Bd,null),{clearIcon:v,suffixIcon:p,itemIcon:g,removeIcon:b}}function o8(e,t){return t!==void 0?t:e!==null}var i8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const D2="SECRET_COMBOBOX_MODE_DO_NOT_USE",a8=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:m,size:v,disabled:h,notFoundContent:p,status:g,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:C,allowClear:S,variant:E,dropdownStyle:k,transitionName:O,tagRender:$,maxCount:N,prefix:_}=e,j=i8(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:F,getPrefixCls:A,renderEmpty:I,direction:P,virtual:M,popupMatchSelectWidth:z,popupOverflow:B}=d.useContext(At),H=Mo("select"),[,T]=Pr(),R=m??(T==null?void 0:T.controlHeight),D=A("select",r),L=A(),V=w??P,{compactSize:q,compactItemClassnames:K}=si(D,V),[Q,U]=ks("select",E,o),J=Cr(D),[Y,X,re]=Z_(D,J),le=d.useMemo(()=>{const{mode:Ze}=e;if(Ze!=="combobox")return Ze===D2?"combobox":Ze},[e.mode]),oe=le==="multiple"||le==="tags",de=o8(e.suffixIcon,e.showArrow),he=(n=x??y)!==null&&n!==void 0?n:z,{status:ke,hasFeedback:Oe,isFormItemInput:pe,feedbackIcon:we}=d.useContext(lr),ne=ya(ke,g);let xe;p!==void 0?xe=p:le==="combobox"?xe=null:xe=(I==null?void 0:I("Select"))||d.createElement(j_,{componentName:"Select"});const{suffixIcon:Pe,itemIcon:ue,removeIcon:Re,clearIcon:Te}=T2(Object.assign(Object.assign({},j),{multiple:oe,hasFeedback:Oe,feedbackIcon:we,showSuffixIcon:de,prefixCls:D,componentName:"Select"})),De=S===!0?{clearIcon:Te}:S,be=Vn(j,["suffixIcon","itemIcon"]),Ie=ae(l||c,{[`${D}-dropdown-${V}`]:V==="rtl"},a,re,J,X),Ne=Ur(Ze=>{var ut;return(ut=v??q)!==null&&ut!==void 0?ut:Ze}),$e=d.useContext(vr),fe=h??$e,ye=ae({[`${D}-lg`]:Ne==="large",[`${D}-sm`]:Ne==="small",[`${D}-rtl`]:V==="rtl",[`${D}-${Q}`]:U,[`${D}-in-form-item`]:pe},ji(D,ne,Oe),K,H.className,i,a,re,J,X),Ve=d.useMemo(()=>f!==void 0?f:V==="rtl"?"bottomRight":"bottomLeft",[f,V]),[ge]=Cs("SelectLike",k==null?void 0:k.zIndex);return Y(d.createElement(v0,Object.assign({ref:t,virtual:M,showSearch:H.showSearch},be,{style:Object.assign(Object.assign({},H.style),C),dropdownMatchSelectWidth:he,transitionName:r0(L,"slide-up",O),builtinPlacements:R_(b,B),listHeight:u,listItemHeight:R,mode:le,prefixCls:D,placement:Ve,direction:V,prefix:_,suffixIcon:Pe,menuItemSelectedIcon:ue,removeIcon:Re,allowClear:De,notFoundContent:xe,className:ye,getPopupContainer:s||F,dropdownClassName:Ie,disabled:fe,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:ge}),maxCount:oe?N:void 0,tagRender:oe?$:void 0})))},Es=d.forwardRef(a8),s8=rf(Es,"dropdownAlign");Es.SECRET_COMBOBOX_MODE_DO_NOT_USE=D2;Es.Option=g0;Es.OptGroup=m0;Es._InternalPanelDoNotUseOrYouWillBeFired=s8;const zl=["xxl","xl","lg","md","sm","xs"],l8=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)`}),c8=e=>{const t=e,n=[].concat(zl).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const c=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`)}}),e},u8=()=>{const[,e]=Pr(),t=l8(c8(e));return se.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()}}},[e])};function _2(){const[,e]=d.useReducer(t=>t+1,0);return e}function d8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Ye(t),r=_2(),o=u8();return Xt(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const us=e=>e?typeof e=="function"?e():e:null;function b0(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return d.createElement("div",{className:ae("".concat(n,"-content"),a),style:s},d.createElement("div",{className:ae("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Pa={shiftX:64,adjustY:1},Fa={adjustX:1,shiftY:!0},Qr=[0,0],f8={left:{points:["cr","cl"],overflow:Fa,offset:[-4,0],targetOffset:Qr},right:{points:["cl","cr"],overflow:Fa,offset:[4,0],targetOffset:Qr},top:{points:["bc","tc"],overflow:Pa,offset:[0,-4],targetOffset:Qr},bottom:{points:["tc","bc"],overflow:Pa,offset:[0,4],targetOffset:Qr},topLeft:{points:["bl","tl"],overflow:Pa,offset:[0,-4],targetOffset:Qr},leftTop:{points:["tr","tl"],overflow:Fa,offset:[-4,0],targetOffset:Qr},topRight:{points:["br","tr"],overflow:Pa,offset:[0,-4],targetOffset:Qr},rightTop:{points:["tl","tr"],overflow:Fa,offset:[4,0],targetOffset:Qr},bottomRight:{points:["tr","br"],overflow:Pa,offset:[0,4],targetOffset:Qr},rightBottom:{points:["bl","br"],overflow:Fa,offset:[4,0],targetOffset:Qr},bottomLeft:{points:["tl","bl"],overflow:Pa,offset:[0,4],targetOffset:Qr},leftBottom:{points:["br","bl"],overflow:Fa,offset:[-4,0],targetOffset:Qr}},p8=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],m8=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,i=e.mouseEnterDelay,a=i===void 0?0:i,s=e.mouseLeaveDelay,l=s===void 0?.1:s,c=e.overlayStyle,u=e.prefixCls,f=u===void 0?"rc-tooltip":u,m=e.children,v=e.onVisibleChange,h=e.afterVisibleChange,p=e.transitionName,g=e.animation,b=e.motion,y=e.placement,x=y===void 0?"right":y,w=e.align,C=w===void 0?{}:w,S=e.destroyTooltipOnHide,E=S===void 0?!1:S,k=e.defaultVisible,O=e.getTooltipContainer,$=e.overlayInnerStyle;e.arrowContent;var N=e.overlay,_=e.id,j=e.showArrow,F=j===void 0?!0:j,A=e.classNames,I=e.styles,P=$t(e,p8),M=s0(_),z=Ye(null);Ri(t,function(){return z.current});var B=G({},P);"visible"in e&&(B.popupVisible=e.visible);var H=function(){return d.createElement(b0,{key:"content",prefixCls:f,id:M,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:G(G({},$),I==null?void 0:I.body)},N)},T=function(){var R=d.Children.only(m),D=(R==null?void 0:R.props)||{},L=G(G({},D),{},{"aria-describedby":N?M:null});return d.cloneElement(m,L)};return d.createElement(hc,Me({popupClassName:ae(n,A==null?void 0:A.root),prefixCls:f,popup:H,action:o,builtinPlacements:f8,popupPlacement:x,ref:z,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:g,popupMotion:b,defaultPopupVisible:k,autoDestroy:E,mouseLeaveDelay:l,popupStyle:G(G({},c),I==null?void 0:I.root),mouseEnterDelay:a,arrow:F},B),T())};const g8=Nr(m8);function af(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,m=u,v=2*o-s,h=l,p=2*o-i,g=a,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),x=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${h} A ${r} ${r} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:x}}const B2=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},z2=8;function sf(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?z2:r}}function Wc(e,t){return e?t:{}}function y0(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},B2(e,t,o)),{"&:before":{background:t}})]},Wc(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Wc(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Wc(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Wc(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function h8(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Lx={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"]}},v8={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"]}},b8=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function L2(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Lx).forEach(c=>{const u=r&&v8[c]||Lx[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,b8.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const m=sf({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal*2-s;break}f.overflow=h8(c,m,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const y8=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:v}=e,h=t(a).add(v).add(m).equal(),p=t(a).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:p,minHeight:l,padding:`${ie(e.calc(u).div(2).equal())} ${ie(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,z2)}},[`${n}-content`]:{position:"relative"}}),_d(e,(g,b)=>{let{darkColor:y}=b;return{[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},y0(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},x8=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},sf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),af(Wt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),H2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return cn("Tooltip",n=>{const{borderRadius:r,colorTextLightSolid:o,colorBgSpotlight:i}=n,a=Wt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:r,tooltipBg:i});return[y8(a),fc(n,"zoom-big-fast")]},x8,{resetStyle:!1,injectStyle:t})(e)},w8=Ni.map(e=>`${e}-inverse`),C8=["success","processing","error","default","warning"];function lf(e){return!(arguments.length>1&&arguments[1]!==void 0)||arguments[1]?[].concat(Ae(w8),Ae(Ni)).includes(e):Ni.includes(e)}function S8(e){return C8.includes(e)}function V2(e,t){const n=lf(t),r=ae({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const k8=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(At),l=s("tooltip",t),[c,u,f]=H2(l),m=V2(l,i),v=m.arrowStyle,h=Object.assign(Object.assign({},a),m.overlayStyle),p=ae(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,m.className);return c(d.createElement("div",{className:p,style:v},d.createElement("div",{className:`${l}-arrow`}),d.createElement(b0,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var E8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $8=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:m,arrow:v=!0,title:h,overlay:p,builtinPlacements:g,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0,motion:x,getPopupContainer:w,placement:C="top",mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,overlayStyle:k,rootClassName:O,overlayClassName:$,styles:N,classNames:_}=e,j=E8(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!v,[,A]=Pr(),{getPopupContainer:I,getPrefixCls:P,direction:M,className:z,style:B,classNames:H,styles:T}=Mo("tooltip"),R=sc(),D=d.useRef(null),L=()=>{var be;(be=D.current)===null||be===void 0||be.forceAlign()};d.useImperativeHandle(t,()=>{var be,Ie;return{forceAlign:L,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),L()},nativeElement:(be=D.current)===null||be===void 0?void 0:be.nativeElement,popupElement:(Ie=D.current)===null||Ie===void 0?void 0:Ie.popupElement}});const[V,q]=mn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),K=!h&&!p&&h!==0,Q=be=>{var Ie,Ne;q(K?!1:be),K||((Ie=e.onOpenChange)===null||Ie===void 0||Ie.call(e,be),(Ne=e.onVisibleChange)===null||Ne===void 0||Ne.call(e,be))},U=d.useMemo(()=>{var be,Ie;let Ne=b;return typeof v=="object"&&(Ne=(Ie=(be=v.pointAtCenter)!==null&&be!==void 0?be:v.arrowPointAtCenter)!==null&&Ie!==void 0?Ie:b),g||L2({arrowPointAtCenter:Ne,autoAdjustOverflow:y,arrowWidth:F?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[b,v,g,A]),J=d.useMemo(()=>h===0?h:p||h||"",[p,h]),Y=d.createElement(Fi,{space:!0},typeof J=="function"?J():J),X=P("tooltip",o),re=P(),le=e["data-popover-inject"];let oe=V;!("open"in e)&&!("visible"in e)&&K&&(oe=!1);const de=d.isValidElement(c)&&!T$(c)?c:d.createElement("span",null,c),he=de.props,ke=!he.className||typeof he.className=="string"?ae(he.className,i||`${X}-open`):he.className,[Oe,pe,we]=H2(X,!le),ne=V2(X,s),xe=ne.arrowStyle,Pe=ae($,{[`${X}-rtl`]:M==="rtl"},ne.className,O,pe,we,z,H.root,_==null?void 0:_.root),ue=ae(H.body,_==null?void 0:_.body),[Re,Te]=Cs("Tooltip",j.zIndex),De=d.createElement(g8,Object.assign({},j,{zIndex:Re,showArrow:F,placement:C,mouseEnterDelay:S,mouseLeaveDelay:E,prefixCls:X,classNames:{root:Pe,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),T.root),B),k),N==null?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},T.body),l),N==null?void 0:N.body),ne.overlayStyle)},getTooltipContainer:w||a||I,ref:D,builtinPlacements:U,overlay:Y,visible:oe,onVisibleChange:Q,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:r0(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),oe?sr(de,{className:ke}):de);return Oe(d.createElement(t0.Provider,{value:Te},De))}),zi=$8;zi._InternalPanelDoNotUseOrYouWillBeFired=k8;const O8=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:m,titleBorderBottom:v,innerContentPadding:h,titlePadding:p}=e;return[{[t]:Object.assign(Object.assign({},un(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:v,padding:p},[`${t}-inner-content`]:{color:n,padding:h}})},y0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},I8=e=>{const{componentCls:t}=e;return{[t]:Ni.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},N8=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,m=n-r,v=m/2,h=m/2-t,p=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},af(e)),sf({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${v}px ${p}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${p}px`:0})},W2=cn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Wt(e,{popoverBg:t,popoverColor:n});return[O8(r),I8(r),fc(r,"zoom-big")]},N8,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var M8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q2=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},P8=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=us(a),u=us(s),f=ae(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return d.createElement("div",{className:f,style:o},d.createElement("div",{className:`${n}-arrow`}),d.createElement(b0,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(q2,{prefixCls:n,title:c,content:u})))},K2=e=>{const{prefixCls:t,className:n}=e,r=M8(e,["prefixCls","className"]),{getPrefixCls:o}=d.useContext(At),i=o("popover",t),[a,s,l]=W2(i);return a(d.createElement(P8,Object.assign({},r,{prefixCls:i,hashId:s,className:ae(n,l)})))};var F8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j8=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:v,overlayStyle:h={},styles:p,classNames:g}=e,b=F8(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:w,classNames:C,styles:S}=Mo("popover"),E=y("popover",o),[k,O,$]=W2(E),N=y(),_=ae(s,O,$,x,C.root,g==null?void 0:g.root),j=ae(C.body,g==null?void 0:g.body),[F,A]=mn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=(H,T)=>{A(H,!0),v==null||v(H,T)},P=H=>{H.keyCode===st.ESC&&I(!1,H)},M=H=>{I(H)},z=us(i),B=us(a);return k(d.createElement(zi,Object.assign({placement:l,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:m},b,{prefixCls:E,classNames:{root:_,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),w),h),p==null?void 0:p.root),body:Object.assign(Object.assign({},S.body),p==null?void 0:p.body)},ref:t,open:F,onOpenChange:M,overlay:z||B?d.createElement(q2,{prefixCls:E,title:z,content:B}):null,transitionName:r0(N,"zoom-big",b.transitionName),"data-popover-inject":!0}),sr(u,{onKeyDown:H=>{var T,R;d.isValidElement(u)&&((R=u==null?void 0:(T=u.props).onKeyDown)===null||R===void 0||R.call(T,H)),P(H)}})))}),U2=j8;U2._InternalPanelDoNotUseOrYouWillBeFired=K2;const A8=new Vt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),R8=new Vt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),T8=new Vt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),D8=new Vt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),_8=new Vt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),B8=new Vt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),z8=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:m,calc:v}=e,h=`${r}-scroll-number`,p=_d(e,(g,b)=>{let{darkColor:y}=b;return{[`&${t} ${t}-color-${g}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:ie(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(u).div(2).equal(),boxShadow:`0 0 0 ${ie(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:ie(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ie(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ie(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:B8,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:A8,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:m,color:e.colorText,fontSize:e.fontSize}}}),p),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:R8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:T8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:D8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:_8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},X2=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Wt(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},G2=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},L8=cn("Badge",e=>{const t=X2(e);return z8(t)},G2),H8=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=_d(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),{position:"absolute",top:r,padding:`0 ${ie(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ie(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${ie(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},V8=cn(["Badge","Ribbon"],e=>{const t=X2(e);return H8(t)},G2),W8=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(At),f=c("ribbon",n),m=`${f}-wrapper`,[v,h,p]=V8(f,m),g=lf(o,!1),b=ae(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:g},t),y={},x={};return o&&!g&&(y.background=o,x.color=o),v(d.createElement("div",{className:ae(m,l,h,p)},i,d.createElement("div",{className:ae(b,h),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},a),d.createElement("div",{className:`${f}-corner`,style:x}))))},Hx=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:i,className:ae(`${t}-only-unit`,{current:r})},n)};function q8(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const K8=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=d.useState(o),[l,c]=d.useState(i),u=()=>{s(o),c(i)};d.useEffect(()=>{const v=setTimeout(u,1e3);return()=>clearTimeout(v)},[o]);let f,m;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[d.createElement(Hx,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else{f=[];const v=o+10,h=[];for(let b=o;b<=v;b+=1)h.push(b);const p=l<i?1:-1,g=h.findIndex(b=>b%10===a);f=(p<0?h.slice(0,g+1):h.slice(g)).map((b,y)=>{const x=b%10;return d.createElement(Hx,Object.assign({},e,{key:b,value:x,offset:p<0?y-g:y,current:y===g}))}),m={transform:`translateY(${-q8(a,o,p)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:u},f)};var U8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X8=d.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,f=U8(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=d.useContext(At),v=m("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":l,style:a,className:ae(v,o,i),title:s});let p=r;if(r&&Number(r)%1===0){const g=String(r).split("");p=d.createElement("bdi",null,g.map((b,y)=>d.createElement(K8,{prefixCls:v,count:Number(r),value:b,key:g.length-y})))}return a!=null&&a.borderColor&&(h.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?sr(u,g=>({className:ae(`${v}-custom-component`,g==null?void 0:g.className,i)})):d.createElement(c,Object.assign({},h,{ref:t}),p)});var G8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y8=d.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:m,count:v=null,overflowCount:h=99,dot:p=!1,size:g="default",title:b,offset:y,style:x,className:w,rootClassName:C,classNames:S,styles:E,showZero:k=!1}=e,O=G8(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:$,direction:N,badge:_}=d.useContext(At),j=$("badge",s),[F,A,I]=L8(j),P=v>h?`${h}+`:v,M=P==="0"||P===0,z=v===null||M&&!k,B=(u!=null||m!=null)&&z,H=p&&!M,T=H?"":P,R=tn(()=>(T==null||T===""||M&&!k)&&!H,[T,M,k,H]),D=Ye(v);R||(D.current=v);const L=D.current,V=Ye(T);R||(V.current=T);const q=V.current,K=Ye(H);R||(K.current=H);const Q=tn(()=>{if(!y)return Object.assign(Object.assign({},_==null?void 0:_.style),x);const de={marginTop:y[1]};return N==="rtl"?de.left=parseInt(y[0],10):de.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},de),_==null?void 0:_.style),x)},[N,y,x,_==null?void 0:_.style]),U=b??(typeof L=="string"||typeof L=="number"?L:void 0),J=R||!f?null:d.createElement("span",{className:`${j}-status-text`},f),Y=!L||typeof L!="object"?void 0:sr(L,de=>({style:Object.assign(Object.assign({},Q),de.style)})),X=lf(m,!1),re=ae(S==null?void 0:S.indicator,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.indicator,{[`${j}-status-dot`]:B,[`${j}-status-${u}`]:!!u,[`${j}-color-${m}`]:X}),le={};m&&!X&&(le.color=m,le.background=m);const oe=ae(j,{[`${j}-status`]:B,[`${j}-not-a-wrapper`]:!c,[`${j}-rtl`]:N==="rtl"},w,C,_==null?void 0:_.className,(r=_==null?void 0:_.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,A,I);if(!c&&B){const de=Q.color;return F(d.createElement("span",Object.assign({},O,{className:oe,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(o=_==null?void 0:_.styles)===null||o===void 0?void 0:o.root),Q)}),d.createElement("span",{className:re,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(i=_==null?void 0:_.styles)===null||i===void 0?void 0:i.indicator),le)}),f&&d.createElement("span",{style:{color:de},className:`${j}-status-text`},f)))}return F(d.createElement("span",Object.assign({ref:t},O,{className:oe,style:Object.assign(Object.assign({},(a=_==null?void 0:_.styles)===null||a===void 0?void 0:a.root),E==null?void 0:E.root)}),c,d.createElement(uo,{visible:!R,motionName:`${j}-zoom`,motionAppear:!1,motionDeadline:1e3},de=>{let{className:he}=de;var ke,Oe;const pe=$("scroll-number",l),we=K.current,ne=ae(S==null?void 0:S.indicator,(ke=_==null?void 0:_.classNames)===null||ke===void 0?void 0:ke.indicator,{[`${j}-dot`]:we,[`${j}-count`]:!we,[`${j}-count-sm`]:g==="small",[`${j}-multiple-words`]:!we&&q&&q.toString().length>1,[`${j}-status-${u}`]:!!u,[`${j}-color-${m}`]:X});let xe=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(Oe=_==null?void 0:_.styles)===null||Oe===void 0?void 0:Oe.indicator),Q);return m&&!X&&(xe=xe||{},xe.background=m),d.createElement(X8,{prefixCls:pe,show:!R,motionClassName:he,className:ne,count:q,title:U,style:xe,key:"scrollNumber"},Y)}),J))}),Y2=Y8;Y2.Ribbon=W8;var Z8={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"},Q8=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:Z8}))},J8=d.forwardRef(Q8),eB=st.ESC,tB=st.TAB;function nB(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var u,f;(u=n.current)===null||u===void 0||(f=u.focus)===null||f===void 0||f.call(u),r==null||r(!1)}},l=function(){var u;return(u=i.current)!==null&&u!==void 0&&u.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(u){switch(u.keyCode){case eB:s();break;case tB:{var f=!1;a.current||(f=l()),f?u.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&_t(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var rB=Nr(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=tn(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Mr(t,Di(i));return se.createElement(se.Fragment,null,r&&se.createElement("div",{className:"".concat(o,"-arrow")}),se.cloneElement(i,{ref:ai(i)?a:void 0}))}),ja={adjustX:1,adjustY:1},Aa=[0,0],oB={topLeft:{points:["bl","tl"],overflow:ja,offset:[0,-4],targetOffset:Aa},top:{points:["bc","tc"],overflow:ja,offset:[0,-4],targetOffset:Aa},topRight:{points:["br","tr"],overflow:ja,offset:[0,-4],targetOffset:Aa},bottomLeft:{points:["tl","bl"],overflow:ja,offset:[0,4],targetOffset:Aa},bottom:{points:["tc","bc"],overflow:ja,offset:[0,4],targetOffset:Aa},bottomRight:{points:["tr","br"],overflow:ja,offset:[0,4],targetOffset:Aa}},iB=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function aB(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,m=e.placements,v=m===void 0?oB:m,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,x=e.visible,w=e.trigger,C=w===void 0?["hover"]:w,S=e.autoFocus,E=e.overlay,k=e.children,O=e.onVisibleChange,$=$t(e,iB),N=se.useState(),_=te(N,2),j=_[0],F=_[1],A="visible"in e?x:j,I=se.useRef(null),P=se.useRef(null),M=se.useRef(null);se.useImperativeHandle(t,function(){return I.current});var z=function(q){F(q),O==null||O(q)};nB({visible:A,triggerRef:M,onVisibleChange:z,autoFocus:S,overlayRef:P});var B=function(q){var K=e.onOverlayClick;F(!1),K&&K(q)},H=function(){return se.createElement(rB,{ref:P,overlay:E,prefixCls:a,arrow:o})},T=function(){return typeof E=="function"?H:H()},R=function(){var q=e.minOverlayWidthMatchTrigger,K=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!K},D=function(){var q=e.openClassName;return q!==void 0?q:"".concat(a,"-open")},L=se.cloneElement(k,{className:ae((n=k.props)===null||n===void 0?void 0:n.className,A&&D()),ref:ai(k)?Mr(M,Di(k)):void 0}),V=g;return!V&&C.indexOf("contextMenu")!==-1&&(V=["click"]),se.createElement(hc,Me({builtinPlacements:v},$,{prefixCls:a,ref:I,popupClassName:ae(b,W({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:p,hideAction:V,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:R()?"minWidth":"",popup:T(),onPopupVisibleChange:z,onPopupClick:B,getPopupContainer:h}),L)}const sB=se.forwardRef(aB),lB=e=>typeof e!="object"&&typeof e!="function"||e===null;var Z2=d.createContext(null);function Q2(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function J2(e){var t=d.useContext(Z2);return Q2(t,e)}var cB=["children","locked"],No=d.createContext(null);function uB(e,t){var n=G({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ll(e){var t=e.children,n=e.locked,r=$t(e,cB),o=d.useContext(No),i=ic(function(){return uB(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!rs(a[1],s[1],!0))});return d.createElement(No.Provider,{value:i},t)}var dB=[],eO=d.createContext(null);function cf(){return d.useContext(eO)}var tO=d.createContext(dB);function $s(e){var t=d.useContext(tO);return d.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var nO=d.createContext(null),x0=d.createContext({});function Vx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(dc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function fB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return Vx(r,t)});return Vx(e,t)&&n.unshift(e),n}var zg=st.LEFT,Lg=st.RIGHT,Hg=st.UP,$u=st.DOWN,Ou=st.ENTER,rO=st.ESC,Us=st.HOME,Xs=st.END,Wx=[Hg,$u,zg,Lg];function pB(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if(e==="inline"&&r===Ou)return{inlineTrigger:!0};var c=W(W({},Hg,i),$u,a),u=W(W(W(W({},zg,n?a:i),Lg,n?i:a),$u,s),Ou,s),f=W(W(W(W(W(W({},Hg,i),$u,a),Ou,s),rO,l),zg,n?s:l),Lg,n?l:s),m={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function mB(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function gB(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function w0(e,t){var n=fB(e,!0);return n.filter(function(r){return t.has(r)})}function qx(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=w0(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var Vg=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(i){var a=document.querySelector("[data-menu-id='".concat(Q2(t,i),"']"));a&&(n.add(a),o.set(a,i),r.set(i,a))}),{elements:n,key2element:r,element2key:o}};function hB(e,t,n,r,o,i,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var m=function(){_t.cancel(u.current)};return d.useEffect(function(){return function(){m()}},[]),function(v){var h=v.which;if([].concat(Wx,[Ou,rO,Us,Xs]).includes(h)){var p=i(),g=Vg(p,r),b=g,y=b.elements,x=b.key2element,w=b.element2key,C=x.get(t),S=gB(C,y),E=w.get(S),k=pB(e,a(E,!0).length===1,n,h);if(!k&&h!==Us&&h!==Xs)return;(Wx.includes(h)||[Us,Xs].includes(h))&&v.preventDefault();var O=function(I){if(I){var P=I,M=I.querySelector("a");M!=null&&M.getAttribute("href")&&(P=M);var z=w.get(I);s(z),m(),u.current=_t(function(){f.current===z&&P.focus()})}};if([Us,Xs].includes(h)||k.sibling||!S){var $;!S||e==="inline"?$=o.current:$=mB(S);var N,_=w0($,y);h===Us?N=_[0]:h===Xs?N=_[_.length-1]:N=qx($,y,S,k.offset),O(N)}else if(k.inlineTrigger)l(E);else if(k.offset>0)l(E,!0),m(),u.current=_t(function(){g=Vg(p,r);var I=S.getAttribute("aria-controls"),P=document.getElementById(I),M=qx(P,g.elements);O(M)},5);else if(k.offset<0){var j=a(E,!0),F=j[j.length-2],A=x.get(F);l(F,!1),O(A)}}c==null||c(v)}}function vB(e){Promise.resolve().then(e)}var C0="__RC_UTIL_PATH_SPLIT__",Kx=function(e){return e.join(C0)},bB=function(e){return e.split(C0)},Wg="rc-menu-more";function yB(){var e=d.useState({}),t=te(e,2),n=t[1],r=Ye(new Map),o=Ye(new Map),i=d.useState([]),a=te(i,2),s=a[0],l=a[1],c=Ye(0),u=Ye(!1),f=function(){u.current||n({})},m=yi(function(x,w){var C=Kx(w);o.current.set(C,x),r.current.set(x,C),c.current+=1;var S=c.current;vB(function(){S===c.current&&f()})},[]),v=yi(function(x,w){var C=Kx(w);o.current.delete(C),r.current.delete(x)},[]),h=yi(function(x){l(x)},[]),p=yi(function(x,w){var C=r.current.get(x)||"",S=bB(C);return w&&s.includes(S[0])&&S.unshift(Wg),S},[s]),g=yi(function(x,w){return x.filter(function(C){return C!==void 0}).some(function(C){var S=p(C,!0);return S.includes(w)})},[p]),b=function(){var x=Ae(r.current.keys());return s.length&&x.push(Wg),x},y=yi(function(x){var w="".concat(r.current.get(x)).concat(C0),C=new Set;return Ae(o.current.keys()).forEach(function(S){S.startsWith(w)&&C.add(o.current.get(S))}),C},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:b,getSubPathKeys:y}}function il(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var xB=Math.random().toFixed(5).toString().slice(2),Ux=0;function wB(e){var t=mn(e,{value:e}),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){Ux+=1;var i="".concat(xB,"-").concat(Ux);o("rc-menu-uuid-".concat(i))},[]),r}function oO(e,t,n,r){var o=d.useContext(No),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function iO(e){var t=d.useContext(No),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function aO(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=d.createElement(t,G({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var CB=["item"];function ed(e){var t=e.item,n=$t(e,CB);return Object.defineProperty(n,"item",{get:function(){return vn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var SB=["title","attribute","elementRef"],kB=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],EB=["active"],$B=(function(e){lo(n,e);var t=co(n);function n(){return $n(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){var r=this.props,o=r.title,i=r.attribute,a=r.elementRef,s=$t(r,SB),l=Vn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return vn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(So.Item,Me({},i,{title:typeof o=="string"?o:void 0},l,{ref:a}))}}]),n})(d.Component),OB=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,v=e.onFocus,h=$t(e,kB),p=J2(o),g=d.useContext(No),b=g.prefixCls,y=g.onItemClick,x=g.disabled,w=g.overflowDisabled,C=g.itemIcon,S=g.selectedKeys,E=g.onActive,k=d.useContext(x0),O=k._internalRenderMenuItem,$="".concat(b,"-item"),N=d.useRef(),_=d.useRef(),j=x||i,F=Ti(t,_),A=$s(o),I=function(K){return{key:o,keyPath:Ae(A).reverse(),item:N.current,domEvent:K}},P=a||C,M=oO(o,j,c,u),z=M.active,B=$t(M,EB),H=S.includes(o),T=iO(A.length),R=function(K){if(!j){var Q=I(K);f==null||f(ed(Q)),y(Q)}},D=function(K){if(m==null||m(K),K.which===st.ENTER){var Q=I(K);f==null||f(ed(Q)),y(Q)}},L=function(K){E(o),v==null||v(K)},V={};e.role==="option"&&(V["aria-selected"]=H);var q=d.createElement($B,Me({ref:N,elementRef:F,role:l===null?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&p?null:p},Vn(h,["extra"]),B,V,{component:"li","aria-disabled":i,style:G(G({},T),n),className:ae($,W(W(W({},"".concat($,"-active"),z),"".concat($,"-selected"),H),"".concat($,"-disabled"),j),r),onClick:R,onKeyDown:D,onFocus:L}),s,d.createElement(aO,{props:G(G({},e),{},{isSelected:H}),icon:P}));return O&&(q=O(q,e,{selected:H})),q});function IB(e,t){var n=e.eventKey,r=cf(),o=$s(n);return d.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:d.createElement(OB,Me({},e,{ref:t}))}const uf=d.forwardRef(IB);var NB=["className","children"],MB=function(e,t){var n=e.className,r=e.children,o=$t(e,NB),i=d.useContext(No),a=i.prefixCls,s=i.mode,l=i.rtl;return d.createElement("ul",Me({className:ae(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat(s==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},S0=d.forwardRef(MB);S0.displayName="SubMenuList";function k0(e,t){return Io(e).map(function(n,r){if(d.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var c={key:s,eventKey:s};return d.cloneElement(n,c)}return n})}var dr={adjustX:1,adjustY:1},PB={topLeft:{points:["bl","tl"],overflow:dr},topRight:{points:["br","tr"],overflow:dr},bottomLeft:{points:["tl","bl"],overflow:dr},bottomRight:{points:["tr","br"],overflow:dr},leftTop:{points:["tr","tl"],overflow:dr},leftBottom:{points:["br","bl"],overflow:dr},rightTop:{points:["tl","tr"],overflow:dr},rightBottom:{points:["bl","br"],overflow:dr}},FB={topLeft:{points:["bl","tl"],overflow:dr},topRight:{points:["br","tr"],overflow:dr},bottomLeft:{points:["tl","bl"],overflow:dr},bottomRight:{points:["tr","br"],overflow:dr},rightTop:{points:["tr","tl"],overflow:dr},rightBottom:{points:["br","bl"],overflow:dr},leftTop:{points:["tl","tr"],overflow:dr},leftBottom:{points:["bl","br"],overflow:dr}};function sO(e,t,n){if(t)return t;if(n)return n[e]||n.other}var jB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function AB(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,f=d.useContext(No),m=f.getPopupContainer,v=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,w=f.motion,C=f.defaultMotions,S=d.useState(!1),E=te(S,2),k=E[0],O=E[1],$=G(v?G({},FB):G({},PB),g),N=jB[c],_=sO(c,w,C),j=d.useRef(_);c!=="inline"&&(j.current=_);var F=G(G({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),A=d.useRef();return d.useEffect(function(){return A.current=_t(function(){O(n)}),function(){_t.cancel(A.current)}},[n]),d.createElement(hc,{prefixCls:t,popupClassName:ae("".concat(t,"-popup"),W({},"".concat(t,"-rtl"),v),a,x),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:$,popupPlacement:N,popupVisible:k,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:u,forceRender:y,popupMotion:F,fresh:!0},r)}function RB(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=d.useContext(No),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,f=a.mode,m=d.useRef(!1);m.current=f===i;var v=d.useState(!m.current),h=te(v,2),p=h[0],g=h[1],b=m.current?n:!1;d.useEffect(function(){m.current&&g(!1)},[f]);var y=G({},sO(i,c,u));r.length>1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!m.current&&!w&&g(!0),x==null?void 0:x(w)},p?null:d.createElement(Ll,{mode:i,locked:!m.current},d.createElement(uo,Me({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var C=w.className,S=w.style;return d.createElement(S0,{id:t,className:C,style:S},o)}))}var TB=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],DB=["active"],_B=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,m=e.popupOffset,v=e.popupStyle,h=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=$t(e,TB),C=J2(i),S=d.useContext(No),E=S.prefixCls,k=S.mode,O=S.openKeys,$=S.disabled,N=S.overflowDisabled,_=S.activeKey,j=S.selectedKeys,F=S.itemIcon,A=S.expandIcon,I=S.onItemClick,P=S.onOpenChange,M=S.onActive,z=d.useContext(x0),B=z._internalRenderSubMenuItem,H=d.useContext(nO),T=H.isSubPathKey,R=$s(),D="".concat(E,"-submenu"),L=$||a,V=d.useRef(),q=d.useRef(),K=c??F,Q=u??A,U=O.includes(i),J=!N&&U,Y=T(j,i),X=oO(i,L,y,x),re=X.active,le=$t(X,DB),oe=d.useState(!1),de=te(oe,2),he=de[0],ke=de[1],Oe=function(ye){L||ke(ye)},pe=function(ye){Oe(!0),p==null||p({key:i,domEvent:ye})},we=function(ye){Oe(!1),g==null||g({key:i,domEvent:ye})},ne=d.useMemo(function(){return re||(k!=="inline"?he||T([_],i):!1)},[k,re,_,he,i,T]),xe=iO(R.length),Pe=function(ye){L||(b==null||b({key:i,domEvent:ye}),k==="inline"&&P(i,!U))},ue=il(function(ye){h==null||h(ed(ye)),I(ye)}),Re=function(ye){k!=="inline"&&P(i,ye)},Te=function(){M(i)},De=C&&"".concat(C,"-popup"),be=d.useMemo(function(){return d.createElement(aO,{icon:k!=="horizontal"?Q:void 0,props:G(G({},e),{},{isOpen:J,isSubMenu:!0})},d.createElement("i",{className:"".concat(D,"-arrow")}))},[k,Q,e,J,D]),Ie=d.createElement("div",Me({role:"menuitem",style:xe,className:"".concat(D,"-title"),tabIndex:L?null:-1,ref:V,title:typeof o=="string"?o:null,"data-menu-id":N&&C?null:C,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":L,onClick:Pe,onFocus:Te},le),o,be),Ne=d.useRef(k);if(k!=="inline"&&R.length>1?Ne.current="vertical":Ne.current=k,!N){var $e=Ne.current;Ie=d.createElement(AB,{mode:$e,prefixCls:D,visible:!s&&J&&k!=="inline",popupClassName:f,popupOffset:m,popupStyle:v,popup:d.createElement(Ll,{mode:$e==="horizontal"?"vertical":$e},d.createElement(S0,{id:De,ref:q},l)),disabled:L,onVisibleChange:Re},Ie)}var fe=d.createElement(So.Item,Me({ref:t,role:"none"},w,{component:"li",style:n,className:ae(D,"".concat(D,"-").concat(k),r,W(W(W(W({},"".concat(D,"-open"),J),"".concat(D,"-active"),ne),"".concat(D,"-selected"),Y),"".concat(D,"-disabled"),L)),onMouseEnter:pe,onMouseLeave:we}),Ie,!N&&d.createElement(RB,{id:De,open:J,keyPath:R},l));return B&&(fe=B(fe,e,{selected:Y,active:ne,open:J,disabled:L})),d.createElement(Ll,{onItemClick:ue,mode:k==="horizontal"?"vertical":k,itemIcon:K,expandIcon:Q},fe)}),df=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=$s(n),i=k0(r,o),a=cf();d.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=d.createElement(_B,Me({ref:t},e),i),d.createElement(tO.Provider,{value:o},s)});function E0(e){var t=e.className,n=e.style,r=d.useContext(No),o=r.prefixCls,i=cf();return i?null:d.createElement("li",{role:"separator",className:ae("".concat(o,"-item-divider"),t),style:n})}var BB=["className","title","eventKey","children"],zB=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=$t(e,BB),a=d.useContext(No),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Me({ref:t,role:"presentation"},i,{onClick:function(c){return c.stopPropagation()},className:ae(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),$0=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=$s(n),i=k0(r,o),a=cf();return a?i:d.createElement(zB,Me({ref:t},Vn(e,["warnKey"])),i)}),LB=["label","children","key","type","extra"];function qg(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&dt(s)==="object"){var c=s,u=c.label,f=c.children,m=c.key,v=c.type,h=c.extra,p=$t(c,LB),g=m??"tmp-".concat(l);return f||v==="group"?v==="group"?d.createElement(o,Me({key:g},p,{title:u}),qg(f,t,n)):d.createElement(i,Me({key:g},p,{title:u}),qg(f,t,n)):v==="divider"?d.createElement(a,Me({key:g},p)):d.createElement(r,Me({key:g},p,{extra:h}),u,(!!h||h===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function Xx(e,t,n,r,o){var i=e,a=G({divider:E0,item:uf,group:$0,submenu:df},r);return t&&(i=qg(t,a,o)),k0(i,n)}var HB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Hi=[],VB=d.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,m=r.children,v=r.direction,h=r.id,p=r.mode,g=p===void 0?"vertical":p,b=r.inlineCollapsed,y=r.disabled,x=r.disabledOverflow,w=r.subMenuOpenDelay,C=w===void 0?.1:w,S=r.subMenuCloseDelay,E=S===void 0?.1:S,k=r.forceSubMenuRender,O=r.defaultOpenKeys,$=r.openKeys,N=r.activeKey,_=r.defaultActiveFirst,j=r.selectable,F=j===void 0?!0:j,A=r.multiple,I=A===void 0?!1:A,P=r.defaultSelectedKeys,M=r.selectedKeys,z=r.onSelect,B=r.onDeselect,H=r.inlineIndent,T=H===void 0?24:H,R=r.motion,D=r.defaultMotions,L=r.triggerSubMenuAction,V=L===void 0?"hover":L,q=r.builtinPlacements,K=r.itemIcon,Q=r.expandIcon,U=r.overflowedIndicator,J=U===void 0?"...":U,Y=r.overflowedIndicatorPopupClassName,X=r.getPopupContainer,re=r.onClick,le=r.onOpenChange,oe=r.onKeyDown;r.openAnimation,r.openTransitionName;var de=r._internalRenderMenuItem,he=r._internalRenderSubMenuItem,ke=r._internalComponents,Oe=$t(r,HB),pe=d.useMemo(function(){return[Xx(m,f,Hi,ke,i),Xx(m,f,Hi,{},i)]},[m,f,ke]),we=te(pe,2),ne=we[0],xe=we[1],Pe=d.useState(!1),ue=te(Pe,2),Re=ue[0],Te=ue[1],De=d.useRef(),be=wB(h),Ie=v==="rtl",Ne=mn(O,{value:$,postState:function(Tt){return Tt||Hi}}),$e=te(Ne,2),fe=$e[0],ye=$e[1],Ve=function(Tt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function jt(){ye(Tt),le==null||le(Tt)}ct?ts(jt):jt()},ge=d.useState(fe),Ze=te(ge,2),ut=Ze[0],xt=Ze[1],It=d.useRef(!1),ze=d.useMemo(function(){return(g==="inline"||g==="vertical")&&b?["vertical",b]:[g,!1]},[g,b]),Xe=te(ze,2),We=Xe[0],bt=Xe[1],ft=We==="inline",at=d.useState(We),tt=te(at,2),qe=tt[0],wt=tt[1],Ot=d.useState(bt),Ge=te(Ot,2),Je=Ge[0],Ke=Ge[1];d.useEffect(function(){wt(We),Ke(bt),It.current&&(ft?ye(ut):Ve(Hi))},[We,bt]);var it=d.useState(0),ee=te(it,2),Z=ee[0],ve=ee[1],Se=Z>=ne.length-1||qe!=="horizontal"||x;d.useEffect(function(){ft&&xt(fe)},[fe]),d.useEffect(function(){return It.current=!0,function(){It.current=!1}},[]);var _e=yB(),Ue=_e.registerPath,gt=_e.unregisterPath,lt=_e.refreshOverflowKeys,mt=_e.isSubPathKey,kt=_e.getKeyPath,ot=_e.getKeys,Nt=_e.getSubPathKeys,Ee=d.useMemo(function(){return{registerPath:Ue,unregisterPath:gt}},[Ue,gt]),Qe=d.useMemo(function(){return{isSubPathKey:mt}},[mt]);d.useEffect(function(){lt(Se?Hi:ne.slice(Z+1).map(function(Tt){return Tt.key}))},[Z,Se]);var Fe=mn(N||_&&((n=ne[0])===null||n===void 0?void 0:n.key),{value:N}),Le=te(Fe,2),Be=Le[0],ht=Le[1],yt=il(function(Tt){ht(Tt)}),Dt=il(function(){ht(void 0)});Ri(t,function(){return{list:De.current,focus:function(Tt){var ct,jt=ot(),on=Vg(jt,be),nt=on.elements,zt=on.key2element,Cn=on.element2key,Pn=w0(De.current,nt),cr=Be??(Pn[0]?Cn.get(Pn[0]):(ct=ne.find(function(Gr){return!Gr.props.disabled}))===null||ct===void 0?void 0:ct.key),Jn=zt.get(cr);if(cr&&Jn){var ir;Jn==null||(ir=Jn.focus)===null||ir===void 0||ir.call(Jn,Tt)}}}});var Ft=mn(P||[],{value:M,postState:function(Tt){return Array.isArray(Tt)?Tt:Tt==null?Hi:[Tt]}}),Qt=te(Ft,2),qt=Qt[0],dn=Qt[1],Mn=function(Tt){if(F){var ct=Tt.key,jt=qt.includes(ct),on;I?jt?on=qt.filter(function(zt){return zt!==ct}):on=[].concat(Ae(qt),[ct]):on=[ct],dn(on);var nt=G(G({},Tt),{},{selectedKeys:on});jt?B==null||B(nt):z==null||z(nt)}!I&&fe.length&&qe!=="inline"&&Ve(Hi)},or=il(function(Tt){re==null||re(ed(Tt)),Mn(Tt)}),Rn=il(function(Tt,ct){var jt=fe.filter(function(nt){return nt!==Tt});if(ct)jt.push(Tt);else if(qe!=="inline"){var on=Nt(Tt);jt=jt.filter(function(nt){return!on.has(nt)})}rs(fe,jt,!0)||Ve(jt,!0)}),Xn=function(Tt,ct){var jt=ct??!fe.includes(Tt);Rn(Tt,jt)},Er=hB(qe,Be,Ie,be,De,ot,kt,ht,Xn,oe);d.useEffect(function(){Te(!0)},[]);var $r=d.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:he}},[de,he]),Qn=qe!=="horizontal"||x?ne:ne.map(function(Tt,ct){return d.createElement(Ll,{key:Tt.key,overflowDisabled:ct>Z},Tt)}),Xr=d.createElement(So,Me({id:h,ref:De,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:uf,className:ae(i,"".concat(i,"-root"),"".concat(i,"-").concat(qe),l,W(W({},"".concat(i,"-inline-collapsed"),Je),"".concat(i,"-rtl"),Ie),a),dir:v,style:s,role:"menu",tabIndex:u,data:Qn,renderRawItem:function(Tt){return Tt},renderRawRest:function(Tt){var ct=Tt.length,jt=ct?ne.slice(-ct):null;return d.createElement(df,{eventKey:Wg,title:J,disabled:Se,internalPopupClose:ct===0,popupClassName:Y},jt)},maxCount:qe!=="horizontal"||x?So.INVALIDATE:So.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Tt){ve(Tt)},onKeyDown:Er},Oe));return d.createElement(x0.Provider,{value:$r},d.createElement(Z2.Provider,{value:be},d.createElement(Ll,{prefixCls:i,rootClassName:a,mode:qe,openKeys:fe,rtl:Ie,disabled:y,motion:Re?R:null,defaultMotions:Re?D:null,activeKey:Be,onActive:yt,onInactive:Dt,selectedKeys:qt,inlineIndent:T,subMenuOpenDelay:C,subMenuCloseDelay:E,forceSubMenuRender:k,builtinPlacements:q,triggerSubMenuAction:V,getPopupContainer:X,itemIcon:K,expandIcon:Q,onItemClick:or,onOpenChange:Rn},d.createElement(nO.Provider,{value:Qe},Xr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(eO.Provider,{value:Ee},xe)))))}),vc=VB;vc.Item=uf;vc.SubMenu=df;vc.ItemGroup=$0;vc.Divider=E0;const WB=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:s,lineHeight:ie(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},lO=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}},cO=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];cn("Layout",e=>[WB(e)],lO,{deprecatedTokens:cO});const qB=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:v,lightTriggerColor:h,lightTriggerBg:p,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:ie(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ie(m)} ${ie(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${ie(m)} 0 0 ${ie(m)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:h,background:p},[`${t}-zero-width-trigger`]:{color:h,background:p,border:`1px solid ${g}`,borderInlineStart:0}}}}};cn(["Layout","Sider"],e=>[qB(e)],lO,{deprecatedTokens:cO});const uO=d.createContext({});var KB={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"},UB=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:KB}))},dO=d.forwardRef(UB);const td=Kr({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var XB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fO=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=XB(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(At),a=i("menu",t),s=ae({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(E0,Object.assign({className:s},o))},pO=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=d.useContext(td),v=x=>{const w=r==null?void 0:r[0],C=d.createElement("span",{className:ae(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!o||d.isValidElement(r)&&r.type==="span")&&r&&x&&c&&typeof w=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},w.charAt(0)):C},{siderCollapsed:h}=d.useContext(uO);let p=i;typeof i>"u"?p=c?r:"":i===!1&&(p="");const g={title:p};!h&&!m&&(g.title=null,g.open=!1);const b=Io(r).length;let y=d.createElement(uf,Object.assign({},Vn(e,["title","icon","danger"]),{className:ae({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),sr(o,{className:ae(d.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),v(m));return f||(y=d.createElement(zi,Object.assign({},g,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var GB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nd=d.createContext(null),YB=d.forwardRef((e,t)=>{const{children:n}=e,r=GB(e,["children"]),o=d.useContext(nd),i=d.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=uj(n),s=Ti(t,a?Di(n):null);return d.createElement(nd.Provider,{value:i},d.createElement(Fi,{space:!0},a?d.cloneElement(n,{ref:s}):n))}),ZB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ie(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
382
- > ${t}-item-active,
383
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},QB=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
384
- ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ie(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ie(n)})`}}}}},Gx=e=>Object.assign({},xs(e)),Yx=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:v,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:y,lineType:x,colorSplit:w,itemDisabledColor:C,dangerItemColor:S,dangerItemHoverColor:E,dangerItemSelectedColor:k,dangerItemActiveBg:O,dangerItemSelectedBg:$,popupBg:N,itemHoverBg:_,itemActiveBg:j,menuSubMenuBg:F,horizontalItemSelectedColor:A,horizontalItemSelectedBg:I,horizontalItemBorderRadius:P,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Gx(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Gx(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:F},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${ie(u)} solid transparent`,transition:`border-color ${v} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ie(m)} ${x} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ie(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${p}`,`opacity ${b} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${h}`,`opacity ${b} ${h}`].join(",")}}}}}},Zx=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ie(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
385
- > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ie(n)},[`${t}-item-group-list ${t}-submenu-title,
386
- ${t}-submenu-title`]:{paddingInlineEnd:u}}},JB=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:h,collapsedWidth:p,collapsedIconSize:g}=e,b={height:r,lineHeight:ie(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Zx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Zx(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${ie(e.calc(a).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 ${m}`,`background ${m}`,`padding ${f} ${s}`].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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,
387
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
388
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
389
- > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ie(e.calc(g).div(2).equal())} - ${ie(c)})`,textOverflow:"clip",[`
390
- ${t}-submenu-arrow,
391
- ${t}-submenu-expand-icon
392
- `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:ie(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ua),{paddingInline:v})}}]},Qx=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ys()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},Jx=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ie(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ie(a)})`}}}}},ez=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:h,menuArrowOffset:p,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},ls()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),ls()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ie(s)} ${ie(l)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ie(e.calc(r).mul(2).equal())} ${ie(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Qx(e)),Jx(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Jx(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
393
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie(p)})`},"&::after":{transform:`rotate(45deg) translateX(${ie(e.calc(p).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ie(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ie(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ie(p)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},tz=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:h,controlItemBgActive:p,colorBgTextHover:g,controlHeightLG:b,lineHeight:y,colorBgElevated:x,marginXXS:w,padding:C,fontSize:S,controlHeightSM:E,fontSizeLG:k,colorTextLightSolid:O,colorErrorHover:$}=e,N=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,j=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,F=new Zt(O).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:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:v,activeBarBorderWidth:_,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:x,itemMarginBlock:w,itemPaddingInline:C,horizontalLineHeight:`${b*1.15}px`,iconSize:S,iconMarginInlineEnd:E-S,collapsedIconSize:k,groupTitleFontSize:S,darkItemDisabledColor:new Zt(O).setA(.25).toRgbString(),darkItemColor:F,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:F,darkItemHoverColor:O,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:i,itemWidth:N?`calc(100% + ${_}px)`:`calc(100% - ${j*2}px)`}},nz=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return cn("Menu",r=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:f,darkItemSelectedBg:m,darkDangerItemSelectedBg:v,darkItemHoverBg:h,darkGroupTitleColor:p,darkItemHoverColor:g,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:w,popupBg:C,darkPopupBg:S}=r,E=r.calc(a).div(7).mul(5).equal(),k=Wt(r,{menuArrowSize:E,menuHorizontalHeight:r.calc(i).mul(1.15).equal(),menuArrowOffset:r.calc(E).mul(.25).equal(),menuSubMenuBg:o,calc:r.calc,popupBg:C}),O=Wt(k,{itemColor:s,itemHoverColor:g,groupTitleColor:p,itemSelectedColor:f,subMenuItemSelectedColor:f,itemBg:c,popupBg:S,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:x,dangerItemActiveBg:w,dangerItemSelectedBg:v,menuSubMenuBg:u,horizontalItemSelectedColor:f,horizontalItemSelectedBg:m});return[ez(k),ZB(k),JB(k),Yx(k,"light"),Yx(O,"dark"),QB(k),Wd(k),Pi(k,"slide-up"),Pi(k,"slide-down"),fc(k,"zoom-big")]},tz,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t)},mO=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=d.useContext(td),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=$s();let f;if(!r)f=l&&!u.length&&o&&typeof o=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):d.createElement("span",{className:`${s}-title-content`},o);else{const h=d.isValidElement(o)&&o.type==="span";f=d.createElement(d.Fragment,null,sr(r,{className:ae(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:d.createElement("span",{className:`${s}-title-content`},o))}const m=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[v]=Cs("Menu");return d.createElement(td.Provider,{value:m},d.createElement(df,Object.assign({},Vn(e,["icon"]),{title:f,popupClassName:ae(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:v},e.popupStyle)})))};var rz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Sp(e){return e===null||e===!1}const oz={item:pO,submenu:mO,divider:fO},iz=Nr((e,t)=>{var n;const r=d.useContext(nd),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=d.useContext(At),c=i(),{prefixCls:u,className:f,style:m,theme:v="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:b,rootClassName:y,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:S}=e,E=rz(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Vn(E,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:x});const O=Gt(function(){var T;C==null||C.apply(void 0,arguments),(T=o.onClick)===null||T===void 0||T.call(o)}),$=o.mode||x,N=w??o.selectable,_=g??b,j={horizontal:{motionName:`${c}-slide-up`},inline:Tl(c),other:{motionName:`${c}-zoom-big`}},F=i("menu",u||o.prefixCls),A=Cr(F),[I,P,M]=nz(F,A,!r),z=ae(`${F}-${v}`,l==null?void 0:l.className,f),B=d.useMemo(()=>{var T,R;if(typeof h=="function"||Sp(h))return h||null;if(typeof o.expandIcon=="function"||Sp(o.expandIcon))return o.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||Sp(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const D=(T=h??(o==null?void 0:o.expandIcon))!==null&&T!==void 0?T:l==null?void 0:l.expandIcon;return sr(D,{className:ae(`${F}-submenu-expand-icon`,d.isValidElement(D)?(R=D.props)===null||R===void 0?void 0:R.className:void 0)})},[h,o==null?void 0:o.expandIcon,l==null?void 0:l.expandIcon,F]),H=d.useMemo(()=>({prefixCls:F,inlineCollapsed:_||!1,direction:s,firstLevel:!0,theme:v,mode:$,disableMenuItemTitleTooltip:p}),[F,_,s,p,v]);return I(d.createElement(nd.Provider,{value:null},d.createElement(td.Provider,{value:H},d.createElement(vc,Object.assign({getPopupContainer:a,overflowedIndicator:d.createElement(dO,null),overflowedIndicatorPopupClassName:ae(F,`${F}-${v}`,S),mode:$,selectable:N,onClick:O},k,{inlineCollapsed:_,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),className:z,prefixCls:F,direction:s,defaultMotions:j,expandIcon:B,ref:t,rootClassName:ae(y,P,o.rootClassName,M,A),_internalComponents:oz})))))}),bc=Nr((e,t)=>{const n=Ye(null),r=d.useContext(uO);return Ri(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),d.createElement(iz,Object.assign({ref:n},e,r))});bc.Item=pO;bc.SubMenu=mO;bc.Divider=fO;bc.ItemGroup=$0;const az=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},sz=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:p}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
394
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
395
- &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
396
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
397
- &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
398
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Kd},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
399
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
400
- &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
401
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
402
- &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
403
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Xd},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
404
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
405
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ud},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
406
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
407
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Gd}}},y0(e,p,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},un(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Rl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ie(c)} ${ie(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ie(c)} ${ie(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Rl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ie(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ie(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Pi(e,"slide-up"),Pi(e,"slide-down"),cs(e,"move-up"),cs(e,"move-down"),fc(e,"zoom-big")]]},lz=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},sf({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),af(e)),cz=cn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=Wt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[sz(i),az(i)]},lz,{resetStyle:!1}),ff=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:m,open:v,onOpenChange:h,visible:p,onVisibleChange:g,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:w="",overlay:C,transitionName:S}=e,{getPopupContainer:E,getPrefixCls:k,direction:O,dropdown:$}=d.useContext(At);sc();const N=d.useMemo(()=>{const X=k();return S!==void 0?S:w.includes("top")?`${X}-slide-down`:`${X}-slide-up`},[k,w,S]),_=d.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:O==="rtl"?"bottomRight":"bottomLeft",[w,O]),j=k("dropdown",o),F=Cr(j),[A,I,P]=cz(j,F),[,M]=Pr(),z=d.Children.only(lB(i)?d.createElement("span",null,i):i),B=sr(z,{className:ae(`${j}-trigger`,{[`${j}-rtl`]:O==="rtl"},z.props.className),disabled:(t=z.props.disabled)!==null&&t!==void 0?t:s}),H=s?[]:a,T=!!(H!=null&&H.includes("contextMenu")),[R,D]=mn(!1,{value:v??p}),L=Gt(X=>{h==null||h(X,{source:"trigger"}),g==null||g(X),D(X)}),V=ae(u,f,I,P,F,$==null?void 0:$.className,{[`${j}-rtl`]:O==="rtl"}),q=L2({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:x,offset:M.marginXXS,arrowWidth:r?M.sizePopupArrow:0,borderRadius:M.borderRadius}),K=d.useCallback(()=>{n!=null&&n.selectable&&n!=null&&n.multiple||(h==null||h(!1,{source:"menu"}),D(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),Q=()=>{let X;return n!=null&&n.items?X=d.createElement(bc,Object.assign({},n)):typeof C=="function"?X=C():X=C,l&&(X=l(X)),X=d.Children.only(typeof X=="string"?d.createElement("span",null,X):X),d.createElement(YB,{prefixCls:`${j}-menu`,rootClassName:ae(P,F),expandIcon:d.createElement("span",{className:`${j}-menu-submenu-arrow`},O==="rtl"?d.createElement(J8,{className:`${j}-menu-submenu-arrow-icon`}):d.createElement(uR,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:K,validator:re=>{let{mode:le}=re}},X)},[U,J]=Cs("Dropdown",m==null?void 0:m.zIndex);let Y=d.createElement(sB,Object.assign({alignPoint:T},Vn(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:R,builtinPlacements:q,arrow:!!r,overlayClassName:V,prefixCls:j,getPopupContainer:c||E,transitionName:N,trigger:H,overlay:Q,placement:_,onVisibleChange:L,overlayStyle:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),m),{zIndex:U})}),B);return U&&(Y=d.createElement(t0.Provider,{value:J},Y)),A(Y)},uz=rf(ff,"align",void 0,"dropdown",e=>e),dz=e=>d.createElement(uz,Object.assign({},e),d.createElement("span",null));ff._InternalPanelDoNotUseOrYouWillBeFired=dz;var Kg={exports:{}},fz=Kg.exports,ew;function pz(){return ew||(ew=1,(function(e,t){(function(n,r){e.exports=r()})(fz,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",m="quarter",v="year",h="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var A=["th","st","nd","rd"],I=F%100;return"["+F+(A[(I-20)%10]||A[I]||A[0])+"]"}},x=function(F,A,I){var P=String(F);return!P||P.length>=A?F:""+Array(A+1-P.length).join(I)+F},w={s:x,z:function(F){var A=-F.utcOffset(),I=Math.abs(A),P=Math.floor(I/60),M=I%60;return(A<=0?"+":"-")+x(P,2,"0")+":"+x(M,2,"0")},m:function F(A,I){if(A.date()<I.date())return-F(I,A);var P=12*(I.year()-A.year())+(I.month()-A.month()),M=A.clone().add(P,f),z=I-M<0,B=A.clone().add(P+(z?-1:1),f);return+(-(P+(I-M)/(z?M-B:B-M))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:a,ms:i,Q:m}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},C="en",S={};S[C]=y;var E="$isDayjsObject",k=function(F){return F instanceof _||!(!F||!F[E])},O=function F(A,I,P){var M;if(!A)return C;if(typeof A=="string"){var z=A.toLowerCase();S[z]&&(M=z),I&&(S[z]=I,M=z);var B=A.split("-");if(!M&&B.length>1)return F(B[0])}else{var H=A.name;S[H]=A,M=H}return!P&&M&&(C=M),M||!P&&C},$=function(F,A){if(k(F))return F.clone();var I=typeof A=="object"?A:{};return I.date=F,I.args=arguments,new _(I)},N=w;N.l=O,N.i=k,N.w=function(F,A){return $(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var _=(function(){function F(I){this.$L=O(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[E]=!0}var A=F.prototype;return A.parse=function(I){this.$d=(function(P){var M=P.date,z=P.utc;if(M===null)return new Date(NaN);if(N.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var B=M.match(g);if(B){var H=B[2]-1||0,T=(B[7]||"0").substring(0,3);return z?new Date(Date.UTC(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,T)):new Date(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,T)}}return new Date(M)})(I),this.init()},A.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},A.$utils=function(){return N},A.isValid=function(){return this.$d.toString()!==p},A.isSame=function(I,P){var M=$(I);return this.startOf(P)<=M&&M<=this.endOf(P)},A.isAfter=function(I,P){return $(I)<this.startOf(P)},A.isBefore=function(I,P){return this.endOf(P)<$(I)},A.$g=function(I,P,M){return N.u(I)?this[P]:this.set(M,I)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(I,P){var M=this,z=!!N.u(P)||P,B=N.p(I),H=function(Q,U){var J=N.w(M.$u?Date.UTC(M.$y,U,Q):new Date(M.$y,U,Q),M);return z?J:J.endOf(c)},T=function(Q,U){return N.w(M.toDate()[Q].apply(M.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),M)},R=this.$W,D=this.$M,L=this.$D,V="set"+(this.$u?"UTC":"");switch(B){case v:return z?H(1,0):H(31,11);case f:return z?H(1,D):H(0,D+1);case u:var q=this.$locale().weekStart||0,K=(R<q?R+7:R)-q;return H(z?L-K:L+(6-K),D);case c:case h:return T(V+"Hours",0);case l:return T(V+"Minutes",1);case s:return T(V+"Seconds",2);case a:return T(V+"Milliseconds",3);default:return this.clone()}},A.endOf=function(I){return this.startOf(I,!1)},A.$set=function(I,P){var M,z=N.p(I),B="set"+(this.$u?"UTC":""),H=(M={},M[c]=B+"Date",M[h]=B+"Date",M[f]=B+"Month",M[v]=B+"FullYear",M[l]=B+"Hours",M[s]=B+"Minutes",M[a]=B+"Seconds",M[i]=B+"Milliseconds",M)[z],T=z===c?this.$D+(P-this.$W):P;if(z===f||z===v){var R=this.clone().set(h,1);R.$d[H](T),R.init(),this.$d=R.set(h,Math.min(this.$D,R.daysInMonth())).$d}else H&&this.$d[H](T);return this.init(),this},A.set=function(I,P){return this.clone().$set(I,P)},A.get=function(I){return this[N.p(I)]()},A.add=function(I,P){var M,z=this;I=Number(I);var B=N.p(P),H=function(D){var L=$(z);return N.w(L.date(L.date()+Math.round(D*I)),z)};if(B===f)return this.set(f,this.$M+I);if(B===v)return this.set(v,this.$y+I);if(B===c)return H(1);if(B===u)return H(7);var T=(M={},M[s]=r,M[l]=o,M[a]=n,M)[B]||1,R=this.$d.getTime()+I*T;return N.w(R,this)},A.subtract=function(I,P){return this.add(-1*I,P)},A.format=function(I){var P=this,M=this.$locale();if(!this.isValid())return M.invalidDate||p;var z=I||"YYYY-MM-DDTHH:mm:ssZ",B=N.z(this),H=this.$H,T=this.$m,R=this.$M,D=M.weekdays,L=M.months,V=M.meridiem,q=function(U,J,Y,X){return U&&(U[J]||U(P,z))||Y[J].slice(0,X)},K=function(U){return N.s(H%12||12,U,"0")},Q=V||function(U,J,Y){var X=U<12?"AM":"PM";return Y?X.toLowerCase():X};return z.replace(b,function(U,J){return J||(function(Y){switch(Y){case"YY":return String(P.$y).slice(-2);case"YYYY":return N.s(P.$y,4,"0");case"M":return R+1;case"MM":return N.s(R+1,2,"0");case"MMM":return q(M.monthsShort,R,L,3);case"MMMM":return q(L,R);case"D":return P.$D;case"DD":return N.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return q(M.weekdaysMin,P.$W,D,2);case"ddd":return q(M.weekdaysShort,P.$W,D,3);case"dddd":return D[P.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return Q(H,T,!0);case"A":return Q(H,T,!1);case"m":return String(T);case"mm":return N.s(T,2,"0");case"s":return String(P.$s);case"ss":return N.s(P.$s,2,"0");case"SSS":return N.s(P.$ms,3,"0");case"Z":return B}return null})(U)||B.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(I,P,M){var z,B=this,H=N.p(P),T=$(I),R=(T.utcOffset()-this.utcOffset())*r,D=this-T,L=function(){return N.m(B,T)};switch(H){case v:z=L()/12;break;case f:z=L();break;case m:z=L()/3;break;case u:z=(D-R)/6048e5;break;case c:z=(D-R)/864e5;break;case l:z=D/o;break;case s:z=D/r;break;case a:z=D/n;break;default:z=D}return M?z:N.a(z)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return S[this.$L]},A.locale=function(I,P){if(!I)return this.$L;var M=this.clone(),z=O(I,P,!0);return z&&(M.$L=z),M},A.clone=function(){return N.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},F})(),j=_.prototype;return $.prototype=j,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach(function(F){j[F[1]]=function(A){return this.$g(A,F[0],F[1])}}),$.extend=function(F,A){return F.$i||(F(A,_,$),F.$i=!0),$},$.locale=O,$.isDayjs=k,$.unix=function(F){return $(1e3*F)},$.en=S[C],$.Ls=S,$.p={},$})})(Kg)),Kg.exports}var mz=pz();const fr=ii(mz);var Ug={exports:{}},gz=Ug.exports,tw;function hz(){return tw||(tw=1,(function(e,t){(function(n,r){e.exports=r()})(gz,function(){return function(n,r){r.prototype.weekday=function(o){var i=this.$locale().weekStart||0,a=this.$W,s=(a<i?a+7:a)-i;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}})})(Ug)),Ug.exports}var vz=hz();const bz=ii(vz);var Xg={exports:{}},yz=Xg.exports,nw;function xz(){return nw||(nw=1,(function(e,t){(function(n,r){e.exports=r()})(yz,function(){return function(n,r,o){var i=r.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,m,v,h,p){var g=f.name?f:f.$locale(),b=a(g[m]),y=a(g[v]),x=b||y.map(function(C){return C.slice(0,h)});if(!p)return x;var w=g.weekStart;return x.map(function(C,S){return x[(S+(w||0))%7]})},l=function(){return o.Ls[o.locale()]},c=function(f,m){return f.formats[m]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,p,g){return p||g.slice(1)})})(f.formats[m.toUpperCase()])},u=function(){var f=this;return{months:function(m){return m?m.format("MMMM"):s(f,"months")},monthsShort:function(m){return m?m.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):s(f,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return c(f.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return u.bind(this)()},o.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(m){return c(f,m)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(f){return s(l(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(Xg)),Xg.exports}var wz=xz();const Cz=ii(wz);var Gg={exports:{}},Sz=Gg.exports,rw;function kz(){return rw||(rw=1,(function(e,t){(function(n,r){e.exports=r()})(Sz,function(){var n="week",r="year";return function(o,i,a){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=a(this).startOf(r).add(1,r).date(c),f=a(this).endOf(n);if(u.isBefore(f))return 1}var m=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(m,n,!0);return v<0?a(this).startOf("week").week():Math.ceil(v)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Gg)),Gg.exports}var Ez=kz();const $z=ii(Ez);var Yg={exports:{}},Oz=Yg.exports,ow;function Iz(){return ow||(ow=1,(function(e,t){(function(n,r){e.exports=r()})(Oz,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(Yg)),Yg.exports}var Nz=Iz();const Mz=ii(Nz);var Zg={exports:{}},Pz=Zg.exports,iw;function Fz(){return iw||(iw=1,(function(e,t){(function(n,r){e.exports=r()})(Pz,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(u)}}})})(Zg)),Zg.exports}var jz=Fz();const Az=ii(jz);var Qg={exports:{}},Rz=Qg.exports,aw;function Tz(){return aw||(aw=1,(function(e,t){(function(n,r){e.exports=r()})(Rz,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(b){this[g]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x})(g)}],m=function(g){var b=l[g];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(g,b){var y,x=l.meridiem;if(x){for(var w=1;w<=24;w+=1)if(g.indexOf(x(w,0,b))>-1){y=w>12;break}}else y=g===(b?"pm":"PM");return y},h={A:[s,function(g){this.afternoon=v(g,!1)}],a:[s,function(g){this.afternoon=v(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(g){var b=l.ordinal,y=g.match(/\d+/);if(this.day=y[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(g){var b=m("months"),y=(m("monthsShort")||b.map(function(x){return x.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(g){var b=m("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function p(g){var b,y;b=g,y=l&&l.formats;for(var x=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,N,_){var j=_&&_.toUpperCase();return N||y[_]||n[_]||y[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,A,I){return A||I.slice(1)})})).match(r),w=x.length,C=0;C<w;C+=1){var S=x[C],E=h[S],k=E&&E[0],O=E&&E[1];x[C]=O?{regex:k,parser:O}:S.replace(/^\[|\]$/g,"")}return function($){for(var N={},_=0,j=0;_<w;_+=1){var F=x[_];if(typeof F=="string")j+=F.length;else{var A=F.regex,I=F.parser,P=$.slice(j),M=A.exec(P)[0];I.call(N,M),$=$.replace(M,"")}}return(function(z){var B=z.afternoon;if(B!==void 0){var H=z.hours;B?H<12&&(z.hours+=12):H===12&&(z.hours=0),delete z.afternoon}})(N),N}}return function(g,b,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var x=b.prototype,w=x.parse;x.parse=function(C){var S=C.date,E=C.utc,k=C.args;this.$u=E;var O=k[1];if(typeof O=="string"){var $=k[2]===!0,N=k[3]===!0,_=$||N,j=k[2];N&&(j=k[2]),l=this.$locale(),!$&&j&&(l=y.Ls[j]),this.$d=(function(P,M,z,B){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*P);var H=p(M)(P),T=H.year,R=H.month,D=H.day,L=H.hours,V=H.minutes,q=H.seconds,K=H.milliseconds,Q=H.zone,U=H.week,J=new Date,Y=D||(T||R?1:J.getDate()),X=T||J.getFullYear(),re=0;T&&!R||(re=R>0?R-1:J.getMonth());var le,oe=L||0,de=V||0,he=q||0,ke=K||0;return Q?new Date(Date.UTC(X,re,Y,oe,de,he,ke+60*Q.offset*1e3)):z?new Date(Date.UTC(X,re,Y,oe,de,he,ke)):(le=new Date(X,re,Y,oe,de,he,ke),U&&(le=B(le).week(U).toDate()),le)}catch{return new Date("")}})(S,O,E,y),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),_&&S!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var F=O.length,A=1;A<=F;A+=1){k[1]=O[A-1];var I=y.apply(this,k);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}A===F&&(this.$d=new Date(""))}else w.call(this,C)}}})})(Qg)),Qg.exports}var Dz=Tz();const _z=ii(Dz);fr.extend(_z);fr.extend(Az);fr.extend(bz);fr.extend(Cz);fr.extend($z);fr.extend(Mz);fr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var Bz={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Vi=function(e){var t=Bz[e];return t||e.split("_")[0]},zz={getNow:function(){var e=fr();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return fr(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return fr().locale(Vi(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(Vi(e)).weekday(0)},getWeek:function(e,t){return t.locale(Vi(e)).week()},getShortWeekDays:function(e){return fr().locale(Vi(e)).localeData().weekdaysMin()},getShortMonths:function(e){return fr().locale(Vi(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(Vi(e)).format(n)},parse:function(e,t,n){for(var r=Vi(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var s=a.split("-")[0],l=a.split("-")[1],c=fr(s,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var f=c.add(u,"week");if(f.format("Wo")===l)return f}return null}var m=fr(a,i,!0).locale(r);if(m.isValid())return m}return null}}};function Lz(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Po=d.createContext(null),Hz={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function gO(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,i=e.transitionName,a=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,f=u===void 0?Hz:u,m=e.direction,v=e.visible,h=e.onClose,p=d.useContext(Po),g=p.prefixCls,b="".concat(g,"-dropdown"),y=Lz(c,m==="rtl");return d.createElement(hc,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:b,popupTransitionName:i,popup:t,popupAlign:o,popupVisible:v,popupClassName:ae(r,W(W({},"".concat(b,"-range"),l),"".concat(b,"-rtl"),m==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(x){x||h()}},s)}function O0(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function xa(e){return e==null?[]:Array.isArray(e)?e:[e]}function vl(e,t,n){var r=Ae(e);return r[t]=n,r}function pf(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function hO(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function vO(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(i){return e[i]});return r!==o?e[o]:void 0}function bO(e){return pf(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function I0(e,t,n,r){var o=d.useMemo(function(){return e||function(a,s){var l=a;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),i=d.useCallback(function(a,s){return o(a,G(G({},s),{},{range:r}))},[o,r]);return i}function yO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=te(r,2),i=o[0],a=o[1],s=function(c,u){a(function(f){return vl(f,u,c)})},l=d.useMemo(function(){return i.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,i,t,n]);return[l,s]}function xO(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function Vz(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,p=e.cellQuarterFormat,g=e.dayFormat,b=e.cellDateFormat,y=xO(t,n,r,o,i);return G(G({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:p||"[Q]Q",cellDateFormat:b||g||"D"})}function wO(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return se.useMemo(function(){return Vz(e,n,r,o,i,a)},[e,n,r,o,i,a])}function Gs(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Wz=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function qz(e){var t=pf(e,Wz),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=dt(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function Kz(e){return e&&typeof e=="string"}function CO(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function SO(e,t,n,r,o){var i=t,a=n,s=r;if(!e&&!i&&!a&&!s&&!o)i=!0,a=!0,s=!0;else if(e){var l,c,u,f=[i,a,s].some(function(h){return h===!1}),m=[i,a,s].some(function(h){return h===!0}),v=f?!0:!m;i=(l=i)!==null&&l!==void 0?l:v,a=(c=a)!==null&&c!==void 0?c:v,s=(u=s)!==null&&u!==void 0?u:v}return[i,a,s,o]}function kO(e){var t=e.showTime,n=qz(e),r=te(n,2),o=r[0],i=r[1],a=t&&dt(t)==="object"?t:{},s=G(G({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,m=CO(c,u,f,l),v=SO(m,c,u,f,l),h=te(v,3);return c=h[0],u=h[1],f=h[2],[s,G(G({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,i]}function EO(e,t,n,r,o){var i=e==="time";if(e==="datetime"||i){for(var a=r,s=hO(e,o,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var f=xa(c[u])[0];if(Kz(f)){l=f;break}}var m=a.showHour,v=a.showMinute,h=a.showSecond,p=a.showMillisecond,g=a.use12Hours,b=Gs(l,["a","A","LT","LLL","LTS"],g),y=CO(m,v,h,p);y||(m=Gs(l,["H","h","k","LT","LLL"]),v=Gs(l,["m","LT","LLL"]),h=Gs(l,["s","LTS"]),p=Gs(l,["SSS"]));var x=SO(y,m,v,h,p),w=te(x,3);m=w[0],v=w[1],h=w[2];var C=t||xO(m,v,h,p,b);return G(G({},a),{},{format:C,showHour:m,showMinute:v,showSecond:h,showMillisecond:p,use12Hours:b})}return null}function Uz(e,t,n){if(t===!1)return null;var r=t&&dt(t)==="object"?t:{};return r.clearIcon||n||d.createElement("span",{className:"".concat(e,"-clear-btn")})}var kp=7;function Li(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Jg(e,t,n){return Li(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function fa(e,t,n){return Li(t,n,function(){return e.getYear(t)===e.getYear(n)})}function sw(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function Xz(e,t,n){return Li(t,n,function(){return fa(e,t,n)&&sw(e,t)===sw(e,n)})}function N0(e,t,n){return Li(t,n,function(){return fa(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function M0(e,t,n){return Li(t,n,function(){return fa(e,t,n)&&N0(e,t,n)&&e.getDate(t)===e.getDate(n)})}function $O(e,t,n){return Li(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function OO(e,t,n){return Li(t,n,function(){return M0(e,t,n)&&$O(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function al(e,t,n,r){return Li(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return fa(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function gr(e,t,n,r,o){switch(o){case"date":return M0(e,n,r);case"week":return al(e,t.locale,n,r);case"month":return N0(e,n,r);case"quarter":return Xz(e,n,r);case"year":return fa(e,n,r);case"decade":return Jg(e,n,r);case"time":return $O(e,n,r);default:return OO(e,n,r)}}function mf(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function qc(e,t,n,r,o){return gr(e,t,n,r,o)?!0:e.isAfter(n,r)}function Gz(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function Gn(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function rd(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(a,s){n?r=e[a](r,e[o[s]](n)):r=e[a](r,0)}),r}function Yz(e,t,n,r,o){var i=Gt(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!gr(e,t,r,a,s.type)||o&&e.isAfter(a,o)&&!gr(e,t,o,a,s.type))});return i}function Zz(e,t,n){return d.useMemo(function(){var r=hO(e,t,n),o=xa(r),i=o[0],a=dt(i)==="object"&&i.type==="mask"?i.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function Qz(e,t,n){return typeof e[0]=="function"||n?!0:t}function Jz(e,t,n,r){var o=Gt(function(i,a){var s=G({type:t},a);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,s))return!0;if((t==="date"||t==="time")&&r){var l,c=a&&a.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,i,c,{from:s.from}))||{},f=u.disabledHours,m=u.disabledMinutes,v=u.disabledSeconds,h=u.disabledMilliseconds,p=r.disabledHours,g=r.disabledMinutes,b=r.disabledSeconds,y=f||p,x=m||g,w=v||b,C=e.getHour(i),S=e.getMinute(i),E=e.getSecond(i),k=e.getMillisecond(i);if(y&&y().includes(C)||x&&x(C).includes(S)||w&&w(C,S).includes(E)||h&&h(C,S,E).includes(k))return!0}return!1});return o}function Kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&xa(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function IO(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=o===void 0?"date":o,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,m=e.order,v=m===void 0?!0:m,h=e.components,p=h===void 0?{}:h,g=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,w=e.multiple,C=e.format,S=e.inputReadOnly,E=e.disabledDate,k=e.minDate,O=e.maxDate,$=e.showTime,N=e.value,_=e.defaultValue,j=e.pickerValue,F=e.defaultPickerValue,A=Kc(N),I=Kc(_),P=Kc(j),M=Kc(F),z=i==="date"&&$?"datetime":i,B=z==="time"||z==="datetime",H=B||w,T=x??B,R=kO(e),D=te(R,4),L=D[0],V=D[1],q=D[2],K=D[3],Q=wO(r,V),U=d.useMemo(function(){return EO(z,q,K,L,Q)},[z,q,K,L,Q]),J=d.useMemo(function(){return G(G({},e),{},{prefixCls:s,locale:Q,picker:i,styles:c,classNames:f,order:v,components:G({input:g},p),clearIcon:Uz(s,b,y),showTime:U,value:A,defaultValue:I,pickerValue:P,defaultPickerValue:M},t==null?void 0:t())},[e]),Y=Zz(z,Q,C),X=te(Y,2),re=X[0],le=X[1],oe=Qz(re,S,w),de=Yz(n,r,E,k,O),he=Jz(n,i,de,U),ke=d.useMemo(function(){return G(G({},J),{},{needConfirm:T,inputReadOnly:oe,disabledDate:de})},[J,T,oe,de]);return[ke,z,H,re,le,he]}function eL(e,t,n){var r=mn(t,{value:e}),o=te(r,2),i=o[0],a=o[1],s=se.useRef(e),l=se.useRef(),c=function(){_t.cancel(l.current)},u=Gt(function(){a(s.current),n&&i!==s.current&&n(s.current)}),f=Gt(function(m,v){c(),s.current=m,m||v?u():l.current=_t(u)});return se.useEffect(function(){return c},[]),[i,f]}function NO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(u){return u})?!1:e,i=eL(o,t||!1,r),a=te(i,2),s=a[0],l=a[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function MO(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var o;(o=t.current)===null||o===void 0||o.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function PO(e,t){return d.useMemo(function(){return e||(t?(vn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=te(n,2),o=r[0],i=r[1];return{label:o,value:i}})):[])},[e,t])}function P0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Ua(function(){if(e)r.current(e);else{var o=_t(function(){r.current(e)},n);return function(){_t.cancel(o)}}},[e])}function FO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),o=te(r,2),i=o[0],a=o[1],s=d.useState(!1),l=te(s,2),c=l[0],u=l[1],f=d.useRef([]),m=d.useRef(null),v=d.useRef(null),h=function(x){m.current=x},p=function(x){return m.current===x},g=function(x){u(x)},b=function(x){return x&&(v.current=x),v.current},y=function(x){var w=f.current,C=new Set(w.filter(function(E){return x[E]||t[E]})),S=w[w.length-1]===0?1:0;return C.size>=2||e[S]?null:S};return P0(c||n,function(){c||(f.current=[],h(null))}),d.useEffect(function(){c&&f.current.push(i)},[c,i]),[c,g,b,i,a,y,f.current,h,p]}function tL(e,t,n,r,o,i){var a=n[n.length-1],s=function(l,c){var u=te(e,2),f=u[0],m=u[1],v=G(G({},c),{},{from:vO(e,n)});return a===1&&t[0]&&f&&!gr(r,o,f,l,v.type)&&r.isAfter(f,l)||a===0&&t[1]&&m&&!gr(r,o,m,l,v.type)&&r.isAfter(l,m)?!0:i==null?void 0:i(l,v)};return s}function sl(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Ep=[];function jO(e,t,n,r,o,i,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Ep,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Ep,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Ep,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=a==="time",p=i||0,g=function(I){var P=e.getNow();return h&&(P=rd(e,P)),l[I]||n[I]||P},b=te(c,2),y=b[0],x=b[1],w=mn(function(){return g(0)},{value:y}),C=te(w,2),S=C[0],E=C[1],k=mn(function(){return g(1)},{value:x}),O=te(k,2),$=O[0],N=O[1],_=d.useMemo(function(){var I=[S,$][p];return h?I:rd(e,I,u[p])},[h,S,$,p,e,u]),j=function(I){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",M=[E,N][p];M(I);var z=[S,$];z[p]=I,f&&(!gr(e,t,S,z[0],a)||!gr(e,t,$,z[1],a))&&f(z,{source:P,range:p===1?"end":"start",mode:r})},F=function(I,P){if(s){var M={date:"month",week:"month",month:"year",quarter:"year"},z=M[a];if(z&&!gr(e,t,I,P,z))return sl(e,a,P,-1);if(a==="year"&&I){var B=Math.floor(e.getYear(I)/10),H=Math.floor(e.getYear(P)/10);if(B!==H)return sl(e,a,P,-1)}}return P},A=d.useRef(null);return Xt(function(){if(o&&!l[p]){var I=h?null:e.getNow();if(A.current!==null&&A.current!==p?I=[S,$][p^1]:n[p]?I=p===0?n[0]:F(n[0],n[1]):n[p^1]&&(I=n[p^1]),I){m&&e.isAfter(m,I)&&(I=m);var P=s?sl(e,a,I,1):I;v&&e.isAfter(P,v)&&(I=s?sl(e,a,v,-1):v),j(I,"reset")}}},[o,p,n[p]]),d.useEffect(function(){o?A.current=p:A.current=null},[o,p]),Xt(function(){o&&l&&l[p]&&j(l[p],"reset")},[o,p]),[_,j]}function AO(e,t){var n=d.useRef(e),r=d.useState({}),o=te(r,2),i=o[1],a=function(l){return l&&t!==void 0?t:n.current},s=function(l){n.current=l,i({})};return[a,s,a(!0)]}var nL=[];function RO(e,t,n){var r=function(i){return i.map(function(a){return Gn(a,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,a){for(var s=Math.max(i.length,a.length),l=-1,c=0;c<s;c+=1){var u=i[c]||null,f=a[c]||null;if(u!==f&&!OO(e,u,f)){l=c;break}}return[l<0,l!==0]};return[r,o]}function TO(e,t){return Ae(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function rL(e){var t=AO(e),n=te(t,2),r=n[0],o=n[1],i=Gt(function(){o(e)});return d.useEffect(function(){i()},[e]),[r,o]}function DO(e,t,n,r,o,i,a,s,l){var c=mn(i,{value:a}),u=te(c,2),f=u[0],m=u[1],v=f||nL,h=rL(v),p=te(h,2),g=p[0],b=p[1],y=RO(e,t,n),x=te(y,2),w=x[0],C=x[1],S=Gt(function(k){var O=Ae(k);if(r)for(var $=0;$<2;$+=1)O[$]=O[$]||null;else o&&(O=TO(O.filter(function(I){return I}),e));var N=C(g(),O),_=te(N,2),j=_[0],F=_[1];if(!j&&(b(O),s)){var A=w(O);s(O,A,{range:F?"end":"start"})}}),E=function(){l&&l(g())};return[v,m,g,S,E]}function _O(e,t,n,r,o,i,a,s,l,c){var u=e.generateConfig,f=e.locale,m=e.picker,v=e.onChange,h=e.allowEmpty,p=e.order,g=i.some(function(j){return j})?!1:p,b=RO(u,f,a),y=te(b,2),x=y[0],w=y[1],C=AO(t),S=te(C,2),E=S[0],k=S[1],O=Gt(function(){k(t)});d.useEffect(function(){O()},[t]);var $=Gt(function(j){var F=j===null,A=Ae(j||E());if(F)for(var I=Math.max(i.length,A.length),P=0;P<I;P+=1)i[P]||(A[P]=null);g&&A[0]&&A[1]&&(A=TO(A,u)),o(A);var M=A,z=te(M,2),B=z[0],H=z[1],T=!B,R=!H,D=h?(!T||h[0])&&(!R||h[1]):!0,L=!p||T||R||gr(u,f,B,H,m)||u.isAfter(H,B),V=(i[0]||!B||!c(B,{activeIndex:0}))&&(i[1]||!H||!c(H,{from:B,activeIndex:1})),q=F||D&&L&&V;if(q){n(A);var K=w(A,t),Q=te(K,1),U=Q[0];v&&!U&&v(F&&A.every(function(J){return!J})?null:A,x(A))}return q}),N=Gt(function(j,F){var A=vl(E(),j,r()[j]);k(A),F&&$()}),_=!s&&!l;return P0(!_,function(){_&&($(),o(t),O())},2),[N,$]}function BO(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function oL(e,t,n,r,o,i){var a=e;function s(f,m,v){var h=i[f](a),p=v.find(function(x){return x.value===h});if(!p||p.disabled){var g=v.filter(function(x){return!x.disabled}),b=Ae(g).reverse(),y=b.find(function(x){return x.value<=h})||g[0];y&&(h=y.value,a=i[m](a,h))}return h}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",o(l,c,u)),a}function Uc(){return[]}function Xc(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=o.includes(l);(!c||!r)&&a.push({label:O0(l,i),value:l,disabled:c})}return a}function F0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,i=r.hourStep,a=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,m=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,p=r.disabledHours,g=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),x=d.useCallback(function(M){var z=(h==null?void 0:h(M))||{};return[z.disabledHours||p||Uc,z.disabledMinutes||g||Uc,z.disabledSeconds||b||Uc,z.disabledMilliseconds||Uc]},[h,p,g,b]),w=d.useMemo(function(){return x(y)},[y,x]),C=te(w,4),S=C[0],E=C[1],k=C[2],O=C[3],$=d.useCallback(function(M,z,B,H){var T=Xc(0,23,a,v,M()),R=o?T.map(function(q){return G(G({},q),{},{label:O0(q.value%12||12,2)})}):T,D=function(q){return Xc(0,59,l,v,z(q))},L=function(q,K){return Xc(0,59,u,v,B(q,K))},V=function(q,K,Q){return Xc(0,999,m,v,H(q,K,Q),3)};return[R,D,L,V]},[v,a,o,m,l,u]),N=d.useMemo(function(){return $(S,E,k,O)},[$,S,E,k,O]),_=te(N,4),j=_[0],F=_[1],A=_[2],I=_[3],P=function(M,z){var B=function(){return j},H=F,T=A,R=I;if(z){var D=x(z),L=te(D,4),V=L[0],q=L[1],K=L[2],Q=L[3],U=$(V,q,K,Q),J=te(U,4),Y=J[0],X=J[1],re=J[2],le=J[3];B=function(){return Y},H=X,T=re,R=le}var oe=oL(M,B,H,T,R,e);return oe};return[P,j,F,A,I]}function iL(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,m=d.useContext(Po),v=m.prefixCls,h=m.locale,p=m.button,g=p===void 0?"button":p,b=u.getNow(),y=F0(u,i,b),x=te(y,1),w=x[0],C=r==null?void 0:r(t),S=f(b,{type:t}),E=function(){if(!S){var j=w(b);s(j)}},k="".concat(v,"-now"),O="".concat(k,"-btn"),$=o&&d.createElement("li",{className:k},d.createElement("a",{className:ae(O,S&&"".concat(O,"-disabled")),"aria-disabled":S,onClick:E},n==="date"?h.today:h.now)),N=c&&d.createElement("li",{className:"".concat(v,"-ok")},d.createElement(g,{disabled:l,onClick:a},h.ok)),_=($||N)&&d.createElement("ul",{className:"".concat(v,"-ranges")},$,N);return!C&&!_?null:d.createElement("div",{className:"".concat(v,"-footer")},C&&d.createElement("div",{className:"".concat(v,"-footer-extra")},C),_)}function zO(e,t,n){function r(o,i){var a=o.findIndex(function(l){return gr(e,t,l,i,n)});if(a===-1)return[].concat(Ae(o),[i]);var s=Ae(o);return s.splice(a,1),s}return r}var wa=d.createContext(null);function gf(){return d.useContext(wa)}function Os(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,m=e.values,v=e.pickerValue,h=e.onSelect,p=e.prevIcon,g=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),w={now:x,values:m,pickerValue:v,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:p,nextIcon:g,superPrevIcon:b,superNextIcon:y};return[w,x]}var Oi=d.createContext({});function yc(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,v=e.disabledDate,h=gf(),p=h.prefixCls,g=h.panelType,b=h.now,y=h.disabledDate,x=h.cellRender,w=h.onHover,C=h.hoverValue,S=h.hoverRangeValue,E=h.generateConfig,k=h.values,O=h.locale,$=h.onSelect,N=v||y,_="".concat(p,"-cell"),j=d.useContext(Oi),F=j.onCellDblClick,A=function(T){return k.some(function(R){return R&&gr(E,O,T,R,g)})},I=[],P=0;P<t;P+=1){for(var M=[],z=void 0,B=function(){var T=P*n+H,R=o(r,T),D=N==null?void 0:N(R,{type:g});H===0&&(z=R,i&&M.push(i(z)));var L=!1,V=!1,q=!1;if(m&&S){var K=te(S,2),Q=K[0],U=K[1];L=mf(E,Q,U,R),V=gr(E,O,R,Q,g),q=gr(E,O,R,U,g)}var J=s?Gn(R,{locale:O,format:s,generateConfig:E}):void 0,Y=d.createElement("div",{className:"".concat(_,"-inner")},l(R));M.push(d.createElement("td",{key:H,title:J,className:ae(_,G(W(W(W(W(W(W({},"".concat(_,"-disabled"),D),"".concat(_,"-hover"),(C||[]).some(function(X){return gr(E,O,R,X,g)})),"".concat(_,"-in-range"),L&&!V&&!q),"".concat(_,"-range-start"),V),"".concat(_,"-range-end"),q),"".concat(p,"-cell-selected"),!S&&g!=="week"&&A(R)),c(R))),onClick:function(){D||$(R)},onDoubleClick:function(){!D&&F&&F()},onMouseEnter:function(){D||w==null||w(R)},onMouseLeave:function(){D||w==null||w(null)}},x?x(R,{prefixCls:p,originNode:Y,today:b,type:g,locale:O}):Y))},H=0;H<n;H+=1)B();I.push(d.createElement("tr",{key:P,className:a==null?void 0:a(z)},M))}return d.createElement("div",{className:"".concat(p,"-body")},d.createElement("table",{className:"".concat(p,"-content")},u&&d.createElement("thead",null,d.createElement("tr",null,u)),d.createElement("tbody",null,I)))}var Gc={visibility:"hidden"};function Is(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,i=e.getEnd,a=e.children,s=gf(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"\u2039":c,f=s.nextIcon,m=f===void 0?"\u203A":f,v=s.superPrevIcon,h=v===void 0?"\xAB":v,p=s.superNextIcon,g=p===void 0?"\xBB":p,b=s.minDate,y=s.maxDate,x=s.generateConfig,w=s.locale,C=s.pickerValue,S=s.panelType,E="".concat(l,"-header"),k=d.useContext(Oi),O=k.hidePrev,$=k.hideNext,N=k.hideHeader,_=d.useMemo(function(){if(!b||!t||!i)return!1;var T=i(t(-1,C));return!qc(x,w,T,b,S)},[b,t,C,i,x,w,S]),j=d.useMemo(function(){if(!b||!n||!i)return!1;var T=i(n(-1,C));return!qc(x,w,T,b,S)},[b,n,C,i,x,w,S]),F=d.useMemo(function(){if(!y||!t||!o)return!1;var T=o(t(1,C));return!qc(x,w,y,T,S)},[y,t,C,o,x,w,S]),A=d.useMemo(function(){if(!y||!n||!o)return!1;var T=o(n(1,C));return!qc(x,w,y,T,S)},[y,n,C,o,x,w,S]),I=function(T){t&&r(t(T,C))},P=function(T){n&&r(n(T,C))};if(N)return null;var M="".concat(E,"-prev-btn"),z="".concat(E,"-next-btn"),B="".concat(E,"-super-prev-btn"),H="".concat(E,"-super-next-btn");return d.createElement("div",{className:E},n&&d.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return P(-1)},tabIndex:-1,className:ae(B,j&&"".concat(B,"-disabled")),disabled:j,style:O?Gc:{}},h),t&&d.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:ae(M,_&&"".concat(M,"-disabled")),disabled:_,style:O?Gc:{}},u),d.createElement("div",{className:"".concat(E,"-view")},a),t&&d.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:ae(z,F&&"".concat(z,"-disabled")),disabled:F,style:$?Gc:{}},m),n&&d.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return P(1)},tabIndex:-1,className:ae(H,A&&"".concat(H,"-disabled")),disabled:A,style:$?Gc:{}},g))}function hf(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,i=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,f=e.disabledDate,m=e.onSelect,v=e.onHover,h=e.showWeek,p="".concat(t,"-").concat(r,"-panel"),g="".concat(t,"-cell"),b=u==="week",y=Os(e,u),x=te(y,2),w=x[0],C=x[1],S=i.locale.getWeekFirstDay(o.locale),E=i.setDate(a,1),k=Gz(o.locale,i,E),O=i.getMonth(a),$=h===void 0?b:h,N=$?function(T){var R=f==null?void 0:f(T,{type:"week"});return d.createElement("td",{key:"week",className:ae(g,"".concat(g,"-week"),W({},"".concat(g,"-disabled"),R)),onClick:function(){R||m(T)},onMouseEnter:function(){R||v==null||v(T)},onMouseLeave:function(){R||v==null||v(null)}},d.createElement("div",{className:"".concat(g,"-inner")},i.locale.getWeek(o.locale,T)))}:null,_=[],j=o.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(o.locale):[]);N&&_.push(d.createElement("th",{key:"empty"},d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var F=0;F<kp;F+=1)_.push(d.createElement("th",{key:F},j[(F+S)%kp]));var A=function(T,R){return i.addDate(T,R)},I=function(T){return Gn(T,{locale:o,format:o.cellDateFormat,generateConfig:i})},P=function(T){var R=W(W({},"".concat(t,"-cell-in-view"),N0(i,T,a)),"".concat(t,"-cell-today"),M0(i,T,C));return R},M=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),z=d.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},Gn(a,{locale:o,format:o.yearFormat,generateConfig:i})),B=d.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?Gn(a,{locale:o,format:o.monthFormat,generateConfig:i}):M[O]),H=o.monthBeforeYear?[B,z]:[z,B];return d.createElement(wa.Provider,{value:w},d.createElement("div",{className:ae(p,h&&"".concat(p,"-show-week"))},d.createElement(Is,{offset:function(T){return i.addMonth(a,T)},superOffset:function(T){return i.addYear(a,T)},onChange:s,getStart:function(T){return i.setDate(T,1)},getEnd:function(T){var R=i.setDate(T,1);return R=i.addMonth(R,1),i.addDate(R,-1)}},H),d.createElement(yc,Me({titleFormat:o.fieldDateFormat},e,{colNum:kp,rowNum:6,baseDate:k,headerCells:_,getCellDate:A,getCellText:I,getCellClassName:P,prefixColumn:N,cellSelection:!b}))))}var aL=1/3;function sL(e,t){var n=d.useRef(!1),r=d.useRef(null),o=d.useRef(null),i=function(){return n.current},a=function(){_t.cancel(r.current),n.current=!1},s=d.useRef(),l=function(){var u=e.current;if(o.current=null,s.current=0,u){var f=u.querySelector('[data-value="'.concat(t,'"]')),m=u.querySelector("li"),v=function h(){a(),n.current=!0,s.current+=1;var p=u.scrollTop,g=m.offsetTop,b=f.offsetTop,y=b-g;if(b===0&&f!==m||!dc(u)){s.current<=5&&(r.current=_t(h));return}var x=p+(y-p)*aL,w=Math.abs(y-x);if(o.current!==null&&o.current<w){a();return}if(o.current=w,w<=1){u.scrollTop=y,a();return}u.scrollTop=x,r.current=_t(h)};f&&m&&v()}},c=Gt(l);return[c,a,i]}var lL=300;function cL(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Ys(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,i=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=gf(),u=c.prefixCls,f=c.cellRender,m=c.now,v=c.locale,h="".concat(u,"-time-panel"),p="".concat(u,"-time-panel-cell"),g=d.useRef(null),b=d.useRef(),y=function(){clearTimeout(b.current)},x=sL(g,n??r),w=te(x,3),C=w[0],S=w[1],E=w[2];Xt(function(){return C(),y(),function(){S(),y()}},[n,r,cL(t)]);var k=function($){y();var N=$.target;!E()&&l&&(b.current=setTimeout(function(){var _=g.current,j=_.querySelector("li").offsetTop,F=Array.from(_.querySelectorAll("li")),A=F.map(function(B){return B.offsetTop-j}),I=A.map(function(B,H){return t[H].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-N.scrollTop)}),P=Math.min.apply(Math,Ae(I)),M=I.findIndex(function(B){return B===P}),z=t[M];z&&!z.disabled&&i(z.value)},lL))},O="".concat(h,"-column");return d.createElement("ul",{className:O,ref:g,"data-type":o,onScroll:k},t.map(function($){var N=$.label,_=$.value,j=$.disabled,F=d.createElement("div",{className:"".concat(p,"-inner")},N);return d.createElement("li",{key:_,className:ae(p,W(W({},"".concat(p,"-selected"),n===_),"".concat(p,"-disabled"),j)),onClick:function(){j||i(_)},onDoubleClick:function(){!j&&s&&s()},onMouseEnter:function(){a(_)},onMouseLeave:function(){a(null)},"data-value":_},f?f(_,{prefixCls:u,originNode:F,today:m,type:"time",subType:o,locale:v}):F)}))}function fi(e){return e<12}function uL(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,i=e.use12Hours,a=e.changeOnScroll,s=gf(),l=s.prefixCls,c=s.values,u=s.generateConfig,f=s.locale,m=s.onSelect,v=s.onHover,h=v===void 0?function(){}:v,p=s.pickerValue,g=(c==null?void 0:c[0])||null,b=d.useContext(Oi),y=b.onCellDblClick,x=F0(u,e,g),w=te(x,5),C=w[0],S=w[1],E=w[2],k=w[3],O=w[4],$=function(ge){var Ze=g&&u[ge](g),ut=p&&u[ge](p);return[Ze,ut]},N=$("getHour"),_=te(N,2),j=_[0],F=_[1],A=$("getMinute"),I=te(A,2),P=I[0],M=I[1],z=$("getSecond"),B=te(z,2),H=B[0],T=B[1],R=$("getMillisecond"),D=te(R,2),L=D[0],V=D[1],q=j===null?null:fi(j)?"am":"pm",K=d.useMemo(function(){return i?fi(j)?S.filter(function(ge){return fi(ge.value)}):S.filter(function(ge){return!fi(ge.value)}):S},[j,S,i]),Q=function(ge,Ze){var ut,xt=ge.filter(function(It){return!It.disabled});return Ze??(xt==null||(ut=xt[0])===null||ut===void 0?void 0:ut.value)},U=Q(S,j),J=d.useMemo(function(){return E(U)},[E,U]),Y=Q(J,P),X=d.useMemo(function(){return k(U,Y)},[k,U,Y]),re=Q(X,H),le=d.useMemo(function(){return O(U,Y,re)},[O,U,Y,re]),oe=Q(le,L),de=d.useMemo(function(){if(!i)return[];var ge=u.getNow(),Ze=u.setHour(ge,6),ut=u.setHour(ge,18),xt=function(It,ze){var Xe=f.cellMeridiemFormat;return Xe?Gn(It,{generateConfig:u,locale:f,format:Xe}):ze};return[{label:xt(Ze,"AM"),value:"am",disabled:S.every(function(It){return It.disabled||!fi(It.value)})},{label:xt(ut,"PM"),value:"pm",disabled:S.every(function(It){return It.disabled||fi(It.value)})}]},[S,i,u,f]),he=function(ge){var Ze=C(ge);m(Ze)},ke=d.useMemo(function(){var ge=g||p||u.getNow(),Ze=function(ut){return ut!=null};return Ze(j)?(ge=u.setHour(ge,j),ge=u.setMinute(ge,P),ge=u.setSecond(ge,H),ge=u.setMillisecond(ge,L)):Ze(F)?(ge=u.setHour(ge,F),ge=u.setMinute(ge,M),ge=u.setSecond(ge,T),ge=u.setMillisecond(ge,V)):Ze(U)&&(ge=u.setHour(ge,U),ge=u.setMinute(ge,Y),ge=u.setSecond(ge,re),ge=u.setMillisecond(ge,oe)),ge},[g,p,j,P,H,L,U,Y,re,oe,F,M,T,V,u]),Oe=function(ge,Ze){return ge===null?null:u[Ze](ke,ge)},pe=function(ge){return Oe(ge,"setHour")},we=function(ge){return Oe(ge,"setMinute")},ne=function(ge){return Oe(ge,"setSecond")},xe=function(ge){return Oe(ge,"setMillisecond")},Pe=function(ge){return ge===null?null:ge==="am"&&!fi(j)?u.setHour(ke,j-12):ge==="pm"&&fi(j)?u.setHour(ke,j+12):ke},ue=function(ge){he(pe(ge))},Re=function(ge){he(we(ge))},Te=function(ge){he(ne(ge))},De=function(ge){he(xe(ge))},be=function(ge){he(Pe(ge))},Ie=function(ge){h(pe(ge))},Ne=function(ge){h(we(ge))},$e=function(ge){h(ne(ge))},fe=function(ge){h(xe(ge))},ye=function(ge){h(Pe(ge))},Ve={onDblClick:y,changeOnScroll:a};return d.createElement("div",{className:"".concat(l,"-content")},t&&d.createElement(Ys,Me({units:K,value:j,optionalValue:F,type:"hour",onChange:ue,onHover:Ie},Ve)),n&&d.createElement(Ys,Me({units:J,value:P,optionalValue:M,type:"minute",onChange:Re,onHover:Ne},Ve)),r&&d.createElement(Ys,Me({units:X,value:H,optionalValue:T,type:"second",onChange:Te,onHover:$e},Ve)),o&&d.createElement(Ys,Me({units:le,value:L,optionalValue:V,type:"millisecond",onChange:De,onHover:fe},Ve)),i&&d.createElement(Ys,Me({units:de,value:q,type:"meridiem",onChange:be,onHover:ye},Ve)))}function LO(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,i=e.showTime,a=i||{},s=a.format,l="".concat(t,"-time-panel"),c=Os(e,"time"),u=te(c,1),f=u[0];return d.createElement(wa.Provider,{value:f},d.createElement("div",{className:ae(l)},d.createElement(Is,null,n?Gn(n,{locale:r,format:s,generateConfig:o}):"\xA0"),d.createElement(uL,i)))}function dL(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,i=e.value,a=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=F0(n,r),u=te(c,1),f=u[0],m=function(p){return i?rd(n,p,i):rd(n,p,a)},v=function(p){s==null||s(p&&m(p))},h=function(p){var g=m(p);o(f(g,g))};return d.createElement("div",{className:l},d.createElement(hf,Me({},e,{onSelect:h,onHover:v})),d.createElement(LO,e))}function fL(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=Os(e,"decade"),c=te(l,1),u=c[0],f=function(C){var S=Math.floor(r.getYear(C)/100)*100;return r.setYear(C,S)},m=function(C){var S=f(C);return r.addYear(S,99)},v=f(o),h=m(o),p=r.addYear(v,-10),g=function(C,S){return r.addYear(C,S*10)},b=function(C){var S=n.cellYearFormat,E=Gn(C,{locale:n,format:S,generateConfig:r}),k=Gn(r.addYear(C,9),{locale:n,format:S,generateConfig:r});return"".concat(E,"-").concat(k)},y=function(C){return W({},"".concat(t,"-cell-in-view"),Jg(r,C,v)||Jg(r,C,h)||mf(r,v,h,C))},x=i?function(C,S){var E=r.setDate(C,1),k=r.setMonth(E,0),O=r.setYear(k,Math.floor(r.getYear(k)/10)*10),$=r.addYear(O,10),N=r.addDate($,-1);return i(O,S)&&i(N,S)}:null,w="".concat(Gn(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Gn(h,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(wa.Provider,{value:u},d.createElement("div",{className:s},d.createElement(Is,{superOffset:function(C){return r.addYear(o,C*100)},onChange:a,getStart:f,getEnd:m},w),d.createElement(yc,Me({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:p,getCellDate:g,getCellText:b,getCellClassName:y}))))}function pL(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=Os(e,"month"),u=te(c,1),f=u[0],m=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(x,w){return r.addMonth(x,w)},p=function(x){var w=r.getMonth(x);return n.monthFormat?Gn(x,{locale:n,format:n.monthFormat,generateConfig:r}):v[w]},g=function(){return W({},"".concat(t,"-cell-in-view"),!0)},b=i?function(x,w){var C=r.setDate(x,1),S=r.setMonth(C,r.getMonth(C)+1),E=r.addDate(S,-1);return i(C,w)&&i(E,w)}:null,y=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Gn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(wa.Provider,{value:f},d.createElement("div",{className:l},d.createElement(Is,{superOffset:function(x){return r.addYear(o,x)},onChange:a,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},y),d.createElement(yc,Me({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:p,getCellClassName:g}))))}function mL(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.onPickerValueChange,a=e.onModeChange,s="".concat(t,"-quarter-panel"),l=Os(e,"quarter"),c=te(l,1),u=c[0],f=r.setMonth(o,0),m=function(g,b){return r.addMonth(g,b*3)},v=function(g){return Gn(g,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return W({},"".concat(t,"-cell-in-view"),!0)},p=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Gn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(wa.Provider,{value:u},d.createElement("div",{className:s},d.createElement(Is,{superOffset:function(g){return r.addYear(o,g)},onChange:i,getStart:function(g){return r.setMonth(g,0)},getEnd:function(g){return r.setMonth(g,11)}},p),d.createElement(yc,Me({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:m,getCellText:v,getCellClassName:h}))))}function gL(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.hoverValue,a=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(u){var f={};if(a){var m=te(a,2),v=m[0],h=m[1],p=al(n,s,v,u),g=al(n,s,h,u);f["".concat(l,"-range-start")]=p,f["".concat(l,"-range-end")]=g,f["".concat(l,"-range-hover")]=!p&&!g&&mf(n,v,h,u)}return i&&(f["".concat(l,"-hover")]=i.some(function(b){return al(n,s,u,b)})),ae(l,W({},"".concat(l,"-selected"),!a&&al(n,s,o,u)),f)};return d.createElement(hf,Me({},e,{mode:"week",panelName:"week",rowClassName:c}))}function hL(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=Os(e,"year"),u=te(c,1),f=u[0],m=function(S){var E=Math.floor(r.getYear(S)/10)*10;return r.setYear(S,E)},v=function(S){var E=m(S);return r.addYear(E,9)},h=m(o),p=v(o),g=r.addYear(h,-1),b=function(S,E){return r.addYear(S,E)},y=function(S){return Gn(S,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(S){return W({},"".concat(t,"-cell-in-view"),fa(r,S,h)||fa(r,S,p)||mf(r,h,p,S))},w=i?function(S,E){var k=r.setMonth(S,0),O=r.setDate(k,1),$=r.addYear(O,1),N=r.addDate($,-1);return i(O,E)&&i(N,E)}:null,C=d.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Gn(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Gn(p,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(wa.Provider,{value:f},d.createElement("div",{className:l},d.createElement(Is,{superOffset:function(S){return r.addYear(o,S*10)},onChange:a,getStart:m,getEnd:v},C),d.createElement(yc,Me({},e,{disabledDate:w,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:b,getCellText:y,getCellClassName:x}))))}var vL={date:hf,datetime:dL,week:gL,month:pL,quarter:mL,year:hL,decade:fL,time:LO};function bL(e,t){var n,r=e.locale,o=e.generateConfig,i=e.direction,a=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,f=e.value,m=e.onChange,v=e.onSelect,h=e.defaultPickerValue,p=e.pickerValue,g=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,w=x===void 0?"date":x,C=e.showTime,S=e.hoverValue,E=e.hoverRangeValue,k=e.cellRender,O=e.dateRender,$=e.monthCellRender,N=e.components,_=N===void 0?{}:N,j=e.hideHeader,F=((n=d.useContext(Po))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",A=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:A.current}});var I=kO(e),P=te(I,4),M=P[0],z=P[1],B=P[2],H=P[3],T=wO(r,z),R=w==="date"&&C?"datetime":w,D=d.useMemo(function(){return EO(R,B,H,M,T)},[R,B,H,M,T]),L=o.getNow(),V=mn(w,{value:b,postState:function(fe){return fe||"date"}}),q=te(V,2),K=q[0],Q=q[1],U=K==="date"&&D?"datetime":K,J=zO(o,r,R),Y=mn(u,{value:f}),X=te(Y,2),re=X[0],le=X[1],oe=d.useMemo(function(){var fe=xa(re).filter(function(ye){return ye});return c?fe:fe.slice(0,1)},[re,c]),de=Gt(function(fe){le(fe),m&&(fe===null||oe.length!==fe.length||oe.some(function(ye,Ve){return!gr(o,r,ye,fe[Ve],R)}))&&(m==null||m(c?fe:fe[0]))}),he=Gt(function(fe){if(v==null||v(fe),K===w){var ye=c?J(oe,fe):[fe];de(ye)}}),ke=mn(h||oe[0]||L,{value:p}),Oe=te(ke,2),pe=Oe[0],we=Oe[1];d.useEffect(function(){oe[0]&&!p&&we(oe[0])},[oe[0]]);var ne=function(fe,ye){y==null||y(fe||p,ye||K)},xe=function(fe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;we(fe),g==null||g(fe),ye&&ne(fe)},Pe=function(fe,ye){Q(fe),ye&&xe(ye),ne(ye,fe)},ue=function(fe){if(he(fe),xe(fe),K!==w){var ye=["decade","year"],Ve=[].concat(ye,["month"]),ge={quarter:[].concat(ye,["quarter"]),week:[].concat(Ae(Ve),["week"]),date:[].concat(Ae(Ve),["date"])},Ze=ge[w]||Ve,ut=Ze.indexOf(K),xt=Ze[ut+1];xt&&Pe(xt,fe)}},Re=d.useMemo(function(){var fe,ye;if(Array.isArray(E)){var Ve=te(E,2);fe=Ve[0],ye=Ve[1]}else fe=E;return!fe&&!ye?null:(fe=fe||ye,ye=ye||fe,o.isAfter(fe,ye)?[ye,fe]:[fe,ye])},[E,o]),Te=I0(k,O,$),De=_[U]||vL[U]||hf,be=d.useContext(Oi),Ie=d.useMemo(function(){return G(G({},be),{},{hideHeader:j})},[be,j]),Ne="".concat(F,"-panel"),$e=pf(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Oi.Provider,{value:Ie},d.createElement("div",{ref:A,tabIndex:l,className:ae(Ne,W({},"".concat(Ne,"-rtl"),i==="rtl"))},d.createElement(De,Me({},$e,{showTime:D,prefixCls:F,locale:T,generateConfig:o,onModeChange:Pe,pickerValue:pe,onPickerValueChange:function(fe){xe(fe,!0)},value:oe[0],onSelect:ue,values:oe,cellRender:Te,hoverRangeValue:Re,hoverValue:S}))))}var $p=d.memo(d.forwardRef(bL));function yL(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Po),u=c.prefixCls,f=c.generateConfig,m=d.useCallback(function(y,x){return sl(f,t,y,x)},[f,t]),v=d.useMemo(function(){return m(r,1)},[r,m]),h=function(y){o(m(y,-1))},p={onCellDblClick:function(){i&&a()}},g=t==="time",b=G(G({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(Oi.Provider,{value:G(G({},p),{},{hideNext:!0})},d.createElement($p,b)),d.createElement(Oi.Provider,{value:G(G({},p),{},{hidePrev:!0})},d.createElement($p,Me({},b,{pickerValue:v,onPickerValueChange:h})))):d.createElement(Oi.Provider,{value:G({},p)},d.createElement($p,b))}function lw(e){return typeof e=="function"?e():e}function xL(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(i,a){var s=i.label,l=i.value;return d.createElement("li",{key:a,onClick:function(){r(lw(l))},onMouseEnter:function(){o(lw(l))},onMouseLeave:function(){o(null)}},s)}))):null}function HO(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,p=e.direction,g=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,S=d.useContext(Po),E=S.prefixCls,k="".concat(E,"-panel"),O=p==="rtl",$=d.useRef(null),N=d.useRef(null),_=d.useState(0),j=te(_,2),F=j[0],A=j[1],I=d.useState(0),P=te(I,2),M=P[0],z=P[1],B=d.useState(0),H=te(B,2),T=H[0],R=H[1],D=function(Pe){Pe.width&&A(Pe.width)},L=te(l,3),V=L[0],q=L[1],K=L[2],Q=d.useState(0),U=te(Q,2),J=U[0],Y=U[1];d.useEffect(function(){Y(10)},[V]),d.useEffect(function(){if(i&&N.current){var Pe,ue=((Pe=$.current)===null||Pe===void 0?void 0:Pe.offsetWidth)||0,Re=N.current.getBoundingClientRect();if(!Re.height||Re.right<0){Y(function(Ie){return Math.max(0,Ie-1)});return}var Te=(O?q-ue:V)-Re.left;if(R(Te),F&&F<K){var De=O?Re.right-(q-ue+F):V+ue-Re.left-F,be=Math.max(0,De);z(be)}else z(0)}},[J,O,F,V,q,K,i]);function X(Pe){return Pe.filter(function(ue){return ue})}var re=d.useMemo(function(){return X(xa(g))},[g]),le=r==="time"&&!re.length,oe=d.useMemo(function(){return le?X([x]):re},[le,re,x]),de=le?x:re,he=d.useMemo(function(){return oe.length?oe.some(function(Pe){return y(Pe)}):!0},[oe,y]),ke=function(){le&&b(x),w(),C()},Oe=d.createElement("div",{className:"".concat(E,"-panel-layout")},d.createElement(xL,{prefixCls:E,presets:c,onClick:f,onHover:u}),d.createElement("div",null,d.createElement(yL,Me({},e,{value:de})),d.createElement(iL,Me({},e,{showNow:a?!1:o,invalid:he,onSubmit:ke}))));t&&(Oe=t(Oe));var pe="".concat(k,"-container"),we="marginLeft",ne="marginRight",xe=d.createElement("div",{onMouseDown:h,tabIndex:-1,className:ae(pe,"".concat(E,"-").concat(n,"-panel-container")),style:W(W({},O?ne:we,M),O?we:ne,"auto"),onFocus:m,onBlur:v},Oe);return i&&(xe=d.createElement("div",{onMouseDown:h,ref:N,className:ae("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:$,className:"".concat(E,"-range-arrow"),style:{left:T}}),d.createElement(Uo,{onResize:D},xe))),xe}function VO(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,m=e.onBlur,v=e.onInputChange,h=e.onInvalid,p=e.open,g=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,w=e.name,C=e.autoComplete,S=e.id,E=e.value,k=e.invalid,O=e.placeholder,$=e.disabled,N=e.activeIndex,_=e.allHelp,j=e.picker,F=function(H,T){var R=o.locale.parse(i.locale,H,[T]);return R&&o.isValidate(R)?R:null},A=n[0],I=d.useCallback(function(H){return Gn(H,{locale:i,format:A,generateConfig:o})},[i,o,A]),P=d.useMemo(function(){return E.map(I)},[E,I]),M=d.useMemo(function(){var H=j==="time"?8:10,T=typeof A=="function"?A(o.getNow()).length:A.length;return Math.max(H,T)+2},[A,j,o]),z=function(H){for(var T=0;T<n.length;T+=1){var R=n[T];if(typeof R=="string"){var D=F(H,R);if(D)return D}}return!1},B=function(H){function T(L){return H!==void 0?L[H]:L}var R=wr(e,{aria:!0,data:!0}),D=G(G({},R),{},{format:r,validateFormat:function(L){return!!z(L)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:w,autoComplete:C,size:M,id:T(S),value:T(P)||"",invalid:T(k),placeholder:T(O),active:N===H,helped:_||x&&N===H,disabled:T($),onFocus:function(L){f(L,H)},onBlur:function(L){m(L,H)},onSubmit:u,onChange:function(L){v();var V=z(L);if(V){h(!1,H),y(V,H);return}h(!!L,H)},onHelp:function(){g(!0,{index:H})},onKeyDown:function(L){var V=!1;if(b==null||b(L,function(){V=!0}),!L.defaultPrevented&&!V)switch(L.key){case"Escape":g(!1,{index:H});break;case"Enter":p||g(!0);break}}},t==null?void 0:t({valueTexts:P}));return Object.keys(D).forEach(function(L){D[L]===void 0&&delete D[L]}),D};return[B,I]}var wL=["onMouseEnter","onMouseLeave"];function WO(e){return d.useMemo(function(){return pf(e,wL)},[e])}var CL=["icon","type"],SL=["onClear"];function vf(e){var t=e.icon,n=e.type,r=$t(e,CL),o=d.useContext(Po),i=o.prefixCls;return t?d.createElement("span",Me({className:"".concat(i,"-").concat(n)},r),t):null}function eh(e){var t=e.onClear,n=$t(e,SL);return d.createElement(vf,Me({},n,{type:"clear",role:"button",onMouseDown:function(r){r.preventDefault()},onClick:function(r){r.stopPropagation(),t()}}))}var Op=["YYYY","MM","DD","HH","mm","ss","SSS"],cw="\u9867",kL=(function(){function e(t){$n(this,e),W(this,"format",void 0),W(this,"maskFormat",void 0),W(this,"cells",void 0),W(this,"maskCells",void 0),this.format=t;var n=Op.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return cw.repeat(s.length)});var o=new RegExp("(".concat(Op.join("|"),")")),i=(t.split(o)||[]).filter(function(s){return s}),a=0;this.cells=i.map(function(s){var l=Op.includes(s),c=a,u=a+s.length;return a=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return On(e,[{key:"getSelection",value:function(t){var n=this.maskCells[t]||{},r=n.start,o=n.end;return[r||0,o||0]}},{key:"match",value:function(t){for(var n=0;n<this.maskFormat.length;n+=1){var r=this.maskFormat[n],o=t[n];if(!o||r!==cw&&r!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var n=Number.MAX_SAFE_INTEGER,r=0,o=0;o<this.maskCells.length;o+=1){var i=this.maskCells[o],a=i.start,s=i.end;if(t>=a&&t<=s)return o;var l=Math.min(Math.abs(t-a),Math.abs(t-s));l<n&&(n=l,r=o)}return r}}]),e})();function EL(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var $L=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],th=d.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,i=e.suffixIcon,a=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,f=e.onSubmit,m=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,p=e.invalid,g=e.clearIcon,b=$t(e,$L),y=e.value,x=e.onFocus,w=e.onBlur,C=e.onMouseUp,S=d.useContext(Po),E=S.prefixCls,k=S.input,O=k===void 0?"input":k,$="".concat(E,"-input"),N=d.useState(!1),_=te(N,2),j=_[0],F=_[1],A=d.useState(y),I=te(A,2),P=I[0],M=I[1],z=d.useState(""),B=te(z,2),H=B[0],T=B[1],R=d.useState(null),D=te(R,2),L=D[0],V=D[1],q=d.useState(null),K=te(q,2),Q=K[0],U=K[1],J=P||"";d.useEffect(function(){M(y)},[y]);var Y=d.useRef(),X=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:Y.current,inputElement:X.current,focus:function($e){X.current.focus($e)},blur:function(){X.current.blur()}}});var re=d.useMemo(function(){return new kL(a||"")},[a]),le=d.useMemo(function(){return c?[0,0]:re.getSelection(L)},[re,L,c]),oe=te(le,2),de=oe[0],he=oe[1],ke=function($e){$e&&$e!==a&&$e!==y&&u()},Oe=Gt(function($e){s($e)&&l($e),M($e),ke($e)}),pe=function($e){if(!a){var fe=$e.target.value;ke(fe),M(fe),l(fe)}},we=function($e){var fe=$e.clipboardData.getData("text");s(fe)&&Oe(fe)},ne=d.useRef(!1),xe=function(){ne.current=!0},Pe=function($e){var fe=$e.target,ye=fe.selectionStart,Ve=re.getMaskCellIndex(ye);V(Ve),U({}),C==null||C($e),ne.current=!1},ue=function($e){F(!0),V(0),T(""),x($e)},Re=function($e){w($e)},Te=function($e){F(!1),Re($e)};P0(n,function(){!n&&!h&&M(y)});var De=function($e){$e.key==="Enter"&&s(J)&&f(),m==null||m($e)},be=function($e){De($e);var fe=$e.key,ye=null,Ve=null,ge=he-de,Ze=a.slice(de,he),ut=function(ze){V(function(Xe){var We=Xe+ze;return We=Math.max(We,0),We=Math.min(We,re.size()-1),We})},xt=function(ze){var Xe=EL(Ze),We=te(Xe,3),bt=We[0],ft=We[1],at=We[2],tt=J.slice(de,he),qe=Number(tt);if(isNaN(qe))return String(at||(ze>0?bt:ft));var wt=qe+ze,Ot=ft-bt+1;return String(bt+(Ot+wt-bt)%Ot)};switch(fe){case"Backspace":case"Delete":ye="",Ve=Ze;break;case"ArrowLeft":ye="",ut(-1);break;case"ArrowRight":ye="",ut(1);break;case"ArrowUp":ye="",Ve=xt(1);break;case"ArrowDown":ye="",Ve=xt(-1);break;default:isNaN(Number(fe))||(ye=H+fe,Ve=ye);break}if(ye!==null&&(T(ye),ye.length>=ge&&(ut(1),T(""))),Ve!==null){var It=J.slice(0,de)+O0(Ve,ge)+J.slice(he);Oe(It.slice(0,a.length))}U({})},Ie=d.useRef();Xt(function(){if(!(!j||!a||ne.current)){if(!re.match(J)){Oe(a);return}return X.current.setSelectionRange(de,he),Ie.current=_t(function(){X.current.setSelectionRange(de,he)}),function(){_t.cancel(Ie.current)}}},[re,a,j,J,L,de,he,Q,Oe]);var Ne=a?{onFocus:ue,onBlur:Te,onKeyDown:be,onMouseDown:xe,onMouseUp:Pe,onPaste:we}:{};return d.createElement("div",{ref:Y,className:ae($,W(W({},"".concat($,"-active"),n&&o),"".concat($,"-placeholder"),c))},d.createElement(O,Me({ref:X,"aria-invalid":p,autoComplete:"off"},b,{onKeyDown:De,onBlur:Re},Ne,{value:J,onChange:pe})),d.createElement(vf,{type:"suffix",icon:i}),g)}),OL=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],IL=["index"];function NL(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,m=e.style,v=e.onClick,h=e.onClear,p=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,b=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,S=e.tabIndex,E=$t(e,OL),k=y==="rtl",O=d.useContext(Po),$=O.prefixCls,N=d.useMemo(function(){if(typeof n=="string")return[n];var Q=n||{};return[Q.start,Q.end]},[n]),_=d.useRef(),j=d.useRef(),F=d.useRef(),A=function(Q){var U;return(U=[j,F][Q])===null||U===void 0?void 0:U.current};d.useImperativeHandle(t,function(){return{nativeElement:_.current,focus:function(Q){if(dt(Q)==="object"){var U,J=Q||{},Y=J.index,X=Y===void 0?0:Y,re=$t(J,IL);(U=A(X))===null||U===void 0||U.focus(re)}else{var le;(le=A(Q??0))===null||le===void 0||le.focus()}},blur:function(){var Q,U;(Q=A(0))===null||Q===void 0||Q.blur(),(U=A(1))===null||U===void 0||U.blur()}}});var I=WO(E),P=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),M=VO(G(G({},e),{},{id:N,placeholder:P})),z=te(M,1),B=z[0],H=d.useState({position:"absolute",width:0}),T=te(H,2),R=T[0],D=T[1],L=Gt(function(){var Q=A(l);if(Q){var U=Q.nativeElement.getBoundingClientRect(),J=_.current.getBoundingClientRect(),Y=U.left-J.left;D(function(X){return G(G({},X),{},{width:U.width,left:Y})}),x([U.left,U.right,J.width])}});d.useEffect(function(){L()},[l]);var V=o&&(p[0]&&!g[0]||p[1]&&!g[1]),q=C&&!g[0],K=C&&!q&&!g[1];return d.createElement(Uo,{onResize:L},d.createElement("div",Me({},I,{className:ae($,"".concat($,"-range"),W(W(W(W({},"".concat($,"-focused"),c),"".concat($,"-disabled"),g.every(function(Q){return Q})),"".concat($,"-invalid"),b.some(function(Q){return Q})),"".concat($,"-rtl"),k),f),style:m,ref:_,onClick:v,onMouseDown:function(Q){var U=Q.target;U!==j.current.inputElement&&U!==F.current.inputElement&&Q.preventDefault(),w==null||w(Q)}}),r&&d.createElement("div",{className:"".concat($,"-prefix")},r),d.createElement(th,Me({ref:j},B(0),{autoFocus:q,tabIndex:S,"date-range":"start"})),d.createElement("div",{className:"".concat($,"-range-separator")},s),d.createElement(th,Me({ref:F},B(1),{autoFocus:K,tabIndex:S,"date-range":"end"})),d.createElement("div",{className:"".concat($,"-active-bar"),style:R}),d.createElement(vf,{type:"suffix",icon:i}),V&&d.createElement(eh,{icon:o,onClear:h})))}var ML=d.forwardRef(NL);function uw(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Yc(e){return e===1?"end":"start"}function PL(e,t){var n=IO(e,function(){var Ct=e.disabled,Bt=e.allowEmpty,Fn=uw(Ct,!1),an=uw(Bt,!1);return{disabled:Fn,allowEmpty:an}}),r=te(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,m=o.classNames,v=o.defaultValue,h=o.value,p=o.needConfirm,g=o.onKeyDown,b=o.disabled,y=o.allowEmpty,x=o.disabledDate,w=o.minDate,C=o.maxDate,S=o.defaultOpen,E=o.open,k=o.onOpenChange,O=o.locale,$=o.generateConfig,N=o.picker,_=o.showNow,j=o.showToday,F=o.showTime,A=o.mode,I=o.onPanelChange,P=o.onCalendarChange,M=o.onOk,z=o.defaultPickerValue,B=o.pickerValue,H=o.onPickerValueChange,T=o.inputReadOnly,R=o.suffixIcon,D=o.onFocus,L=o.onBlur,V=o.presets,q=o.ranges,K=o.components,Q=o.cellRender,U=o.dateRender,J=o.monthCellRender,Y=o.onClick,X=MO(t),re=NO(E,S,b,k),le=te(re,2),oe=le[0],de=le[1],he=function(Ct,Bt){(b.some(function(Fn){return!Fn})||!Ct)&&de(Ct,Bt)},ke=DO($,O,s,!0,!1,v,h,P,M),Oe=te(ke,5),pe=Oe[0],we=Oe[1],ne=Oe[2],xe=Oe[3],Pe=Oe[4],ue=ne(),Re=FO(b,y,oe),Te=te(Re,9),De=Te[0],be=Te[1],Ie=Te[2],Ne=Te[3],$e=Te[4],fe=Te[5],ye=Te[6],Ve=Te[7],ge=Te[8],Ze=function(Ct,Bt){be(!0),D==null||D(Ct,{range:Yc(Bt??Ne)})},ut=function(Ct,Bt){be(!1),L==null||L(Ct,{range:Yc(Bt??Ne)})},xt=d.useMemo(function(){if(!F)return null;var Ct=F.disabledTime,Bt=Ct?function(Fn){var an=Yc(Ne),fo=vO(ue,ye,Ne);return Ct(Fn,an,{from:fo})}:void 0;return G(G({},F),{},{disabledTime:Bt})},[F,Ne,ue,ye]),It=mn([N,N],{value:A}),ze=te(It,2),Xe=ze[0],We=ze[1],bt=Xe[Ne]||N,ft=bt==="date"&&xt?"datetime":bt,at=ft===N&&ft!=="time",tt=BO(N,bt,_,j,!0),qe=_O(o,pe,we,ne,xe,b,s,De,oe,c),wt=te(qe,2),Ot=wt[0],Ge=wt[1],Je=tL(ue,b,ye,$,O,x),Ke=yO(ue,c,y),it=te(Ke,2),ee=it[0],Z=it[1],ve=jO($,O,ue,Xe,oe,Ne,i,at,z,B,xt==null?void 0:xt.defaultOpenValue,H,w,C),Se=te(ve,2),_e=Se[0],Ue=Se[1],gt=Gt(function(Ct,Bt,Fn){var an=vl(Xe,Ne,Bt);if((an[0]!==Xe[0]||an[1]!==Xe[1])&&We(an),I&&Fn!==!1){var fo=Ae(ue);Ct&&(fo[Ne]=Ct),I(fo,an)}}),lt=function(Ct,Bt){return vl(ue,Bt,Ct)},mt=function(Ct,Bt){var Fn=ue;Ct&&(Fn=lt(Ct,Ne)),Ve(Ne);var an=fe(Fn);xe(Fn),Ot(Ne,an===null),an===null?he(!1,{force:!0}):Bt||X.current.focus({index:an})},kt=function(Ct){var Bt,Fn=Ct.target.getRootNode();if(!X.current.nativeElement.contains((Bt=Fn.activeElement)!==null&&Bt!==void 0?Bt:document.activeElement)){var an=b.findIndex(function(fo){return!fo});an>=0&&X.current.focus({index:an})}he(!0),Y==null||Y(Ct)},ot=function(){Ge(null),he(!1,{force:!0})},Nt=d.useState(null),Ee=te(Nt,2),Qe=Ee[0],Fe=Ee[1],Le=d.useState(null),Be=te(Le,2),ht=Be[0],yt=Be[1],Dt=d.useMemo(function(){return ht||ue},[ue,ht]);d.useEffect(function(){oe||yt(null)},[oe]);var Ft=d.useState([0,0,0]),Qt=te(Ft,2),qt=Qt[0],dn=Qt[1],Mn=PO(V,q),or=function(Ct){yt(Ct),Fe("preset")},Rn=function(Ct){var Bt=Ge(Ct);Bt&&he(!1,{force:!0})},Xn=function(Ct){mt(Ct)},Er=function(Ct){yt(Ct?lt(Ct,Ne):null),Fe("cell")},$r=function(Ct){he(!0),Ze(Ct)},Qn=function(){Ie("panel")},Xr=function(Ct){var Bt=vl(ue,Ne,Ct);xe(Bt),!p&&!a&&i===ft&&mt(Ct)},Tt=function(){he(!1)},ct=I0(Q,U,J,Yc(Ne)),jt=ue[Ne]||null,on=Gt(function(Ct){return c(Ct,{activeIndex:Ne})}),nt=d.useMemo(function(){var Ct=wr(o,!1),Bt=Vn(o,[].concat(Ae(Object.keys(Ct)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Bt},[o]),zt=d.createElement(HO,Me({},nt,{showNow:tt,showTime:xt,range:!0,multiplePanel:at,activeInfo:qt,disabledDate:Je,onFocus:$r,onBlur:ut,onPanelMouseDown:Qn,picker:N,mode:bt,internalMode:ft,onPanelChange:gt,format:l,value:jt,isInvalid:on,onChange:null,onSelect:Xr,pickerValue:_e,defaultOpenValue:xa(F==null?void 0:F.defaultOpenValue)[Ne],onPickerValueChange:Ue,hoverValue:Dt,onHover:Er,needConfirm:p,onSubmit:mt,onOk:Pe,presets:Mn,onPresetHover:or,onPresetSubmit:Rn,onNow:Xn,cellRender:ct})),Cn=function(Ct,Bt){var Fn=lt(Ct,Bt);xe(Fn)},Pn=function(){Ie("input")},cr=function(Ct,Bt){var Fn=ye.length,an=ye[Fn-1];if(Fn&&an!==Bt&&p&&!y[an]&&!ge(an)&&ue[an]){X.current.focus({index:an});return}Ie("input"),he(!0,{inherit:!0}),Ne!==Bt&&oe&&!p&&a&&mt(null,!0),$e(Bt),Ze(Ct,Bt)},Jn=function(Ct,Bt){if(he(!1),!p&&Ie()==="input"){var Fn=fe(ue);Ot(Ne,Fn===null)}ut(Ct,Bt)},ir=function(Ct,Bt){Ct.key==="Tab"&&mt(null,!0),g==null||g(Ct,Bt)},Gr=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:$,button:K.button,input:K.input}},[u,O,$,K.button,K.input]);return Xt(function(){oe&&Ne!==void 0&&gt(null,N,!1)},[oe,Ne,N]),Xt(function(){var Ct=Ie();!oe&&Ct==="input"&&(he(!1),mt(null,!0)),!oe&&a&&!p&&Ct==="panel"&&(he(!0),mt())},[oe]),d.createElement(Po.Provider,{value:Gr},d.createElement(gO,Me({},bO(o),{popupElement:zt,popupStyle:f.popup,popupClassName:m.popup,visible:oe,onClose:Tt,range:!0}),d.createElement(ML,Me({},o,{ref:X,suffixIcon:R,activeIndex:De||oe?Ne:null,activeHelp:!!ht,allHelp:!!ht&&Qe==="preset",focused:De,onFocus:cr,onBlur:Jn,onKeyDown:ir,onSubmit:mt,value:Dt,maskFormat:l,onChange:Cn,onInputChange:Pn,format:s,inputReadOnly:T,disabled:b,open:oe,onOpenChange:he,onClick:kt,onClear:ot,invalid:ee,onInvalid:Z,onActiveInfo:dn}))))}var FL=d.forwardRef(PL);function jL(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=o===void 0?"\xD7":o,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function v(g,b){return d.createElement("span",{className:ae("".concat(f,"-item")),title:typeof g=="string"?g:null},d.createElement("span",{className:"".concat(f,"-item-content")},g),!s&&b&&d.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},i))}function h(g){var b=a(g),y=function(x){x&&x.stopPropagation(),r(g)};return v(b,y)}function p(g){var b="+ ".concat(g.length," ...");return v(b)}return d.createElement("div",{className:u},d.createElement(So,{prefixCls:m,data:n,renderItem:h,renderRest:p,itemKey:function(g){return a(g)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var AL=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function RL(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,m=e.onClick,v=e.onClear,h=e.internalPicker,p=e.value,g=e.onChange,b=e.onSubmit;e.onInputChange;var y=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,C=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,O=e.tabIndex,$=e.removeIcon,N=$t(e,AL),_=S==="rtl",j=d.useContext(Po),F=j.prefixCls,A=d.useRef(),I=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(V){var q;(q=I.current)===null||q===void 0||q.focus(V)},blur:function(){var V;(V=I.current)===null||V===void 0||V.blur()}}});var P=WO(N),M=function(V){g([V])},z=function(V){var q=p.filter(function(K){return K&&!gr(l,s,K,V,h)});g(q),n||b()},B=VO(G(G({},e),{},{onChange:M}),function(V){var q=V.valueTexts;return{value:q[0]||"",active:a}}),H=te(B,2),T=H[0],R=H[1],D=!!(o&&p.length&&!w),L=y?d.createElement(d.Fragment,null,d.createElement(jL,{prefixCls:F,value:p,onRemove:z,formatDate:R,maxTagCount:x,disabled:w,removeIcon:$,placeholder:c}),d.createElement("input",{className:"".concat(F,"-multiple-input"),value:p.map(R).join(","),ref:I,readOnly:!0,autoFocus:k,tabIndex:O}),d.createElement(vf,{type:"suffix",icon:i}),D&&d.createElement(eh,{icon:o,onClear:v})):d.createElement(th,Me({ref:I},T(),{autoFocus:k,tabIndex:O,suffixIcon:i,clearIcon:D&&d.createElement(eh,{icon:o,onClear:v}),showActiveCls:!1}));return d.createElement("div",Me({},P,{className:ae(F,W(W(W(W(W({},"".concat(F,"-multiple"),y),"".concat(F,"-focused"),a),"".concat(F,"-disabled"),w),"".concat(F,"-invalid"),C),"".concat(F,"-rtl"),_),u),style:f,ref:A,onClick:m,onMouseDown:function(V){var q,K=V.target;K!==((q=I.current)===null||q===void 0?void 0:q.inputElement)&&V.preventDefault(),E==null||E(V)}}),r&&d.createElement("div",{className:"".concat(F,"-prefix")},r),L)}var TL=d.forwardRef(RL);function DL(e,t){var n=IO(e),r=te(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,m=u.styles,v=u.classNames,h=u.order,p=u.defaultValue,g=u.value,b=u.needConfirm,y=u.onChange,x=u.onKeyDown,w=u.disabled,C=u.disabledDate,S=u.minDate,E=u.maxDate,k=u.defaultOpen,O=u.open,$=u.onOpenChange,N=u.locale,_=u.generateConfig,j=u.picker,F=u.showNow,A=u.showToday,I=u.showTime,P=u.mode,M=u.onPanelChange,z=u.onCalendarChange,B=u.onOk,H=u.multiple,T=u.defaultPickerValue,R=u.pickerValue,D=u.onPickerValueChange,L=u.inputReadOnly,V=u.suffixIcon,q=u.removeIcon,K=u.onFocus,Q=u.onBlur,U=u.presets,J=u.components,Y=u.cellRender,X=u.dateRender,re=u.monthCellRender,le=u.onClick,oe=MO(t);function de(nt){return nt===null?null:H?nt:nt[0]}var he=zO(_,N,i),ke=NO(O,k,[w],$),Oe=te(ke,2),pe=Oe[0],we=Oe[1],ne=function(nt,zt,Cn){if(z){var Pn=G({},Cn);delete Pn.range,z(de(nt),de(zt),Pn)}},xe=function(nt){B==null||B(de(nt))},Pe=DO(_,N,s,!1,h,p,g,ne,xe),ue=te(Pe,5),Re=ue[0],Te=ue[1],De=ue[2],be=ue[3],Ie=ue[4],Ne=De(),$e=FO([w]),fe=te($e,4),ye=fe[0],Ve=fe[1],ge=fe[2],Ze=fe[3],ut=function(nt){Ve(!0),K==null||K(nt,{})},xt=function(nt){Ve(!1),Q==null||Q(nt,{})},It=mn(j,{value:P}),ze=te(It,2),Xe=ze[0],We=ze[1],bt=Xe==="date"&&I?"datetime":Xe,ft=BO(j,Xe,F,A),at=y&&function(nt,zt){y(de(nt),de(zt))},tt=_O(G(G({},o),{},{onChange:at}),Re,Te,De,be,[],s,ye,pe,c),qe=te(tt,2),wt=qe[1],Ot=yO(Ne,c),Ge=te(Ot,2),Je=Ge[0],Ke=Ge[1],it=d.useMemo(function(){return Je.some(function(nt){return nt})},[Je]),ee=function(nt,zt){if(D){var Cn=G(G({},zt),{},{mode:zt.mode[0]});delete Cn.range,D(nt[0],Cn)}},Z=jO(_,N,Ne,[Xe],pe,Ze,i,!1,T,R,xa(I==null?void 0:I.defaultOpenValue),ee,S,E),ve=te(Z,2),Se=ve[0],_e=ve[1],Ue=Gt(function(nt,zt,Cn){if(We(zt),M&&Cn!==!1){var Pn=nt||Ne[Ne.length-1];M(Pn,zt)}}),gt=function(){wt(De()),we(!1,{force:!0})},lt=function(nt){!w&&!oe.current.nativeElement.contains(document.activeElement)&&oe.current.focus(),we(!0),le==null||le(nt)},mt=function(){wt(null),we(!1,{force:!0})},kt=d.useState(null),ot=te(kt,2),Nt=ot[0],Ee=ot[1],Qe=d.useState(null),Fe=te(Qe,2),Le=Fe[0],Be=Fe[1],ht=d.useMemo(function(){var nt=[Le].concat(Ae(Ne)).filter(function(zt){return zt});return H?nt:nt.slice(0,1)},[Ne,Le,H]),yt=d.useMemo(function(){return!H&&Le?[Le]:Ne.filter(function(nt){return nt})},[Ne,Le,H]);d.useEffect(function(){pe||Be(null)},[pe]);var Dt=PO(U),Ft=function(nt){Be(nt),Ee("preset")},Qt=function(nt){var zt=H?he(De(),nt):[nt],Cn=wt(zt);Cn&&!H&&we(!1,{force:!0})},qt=function(nt){Qt(nt)},dn=function(nt){Be(nt),Ee("cell")},Mn=function(nt){we(!0),ut(nt)},or=function(nt){if(ge("panel"),!(H&&bt!==j)){var zt=H?he(De(),nt):[nt];be(zt),!b&&!a&&i===bt&&gt()}},Rn=function(){we(!1)},Xn=I0(Y,X,re),Er=d.useMemo(function(){var nt=wr(o,!1),zt=Vn(o,[].concat(Ae(Object.keys(nt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return G(G({},zt),{},{multiple:o.multiple})},[o]),$r=d.createElement(HO,Me({},Er,{showNow:ft,showTime:I,disabledDate:C,onFocus:Mn,onBlur:xt,picker:j,mode:Xe,internalMode:bt,onPanelChange:Ue,format:l,value:Ne,isInvalid:c,onChange:null,onSelect:or,pickerValue:Se,defaultOpenValue:I==null?void 0:I.defaultOpenValue,onPickerValueChange:_e,hoverValue:ht,onHover:dn,needConfirm:b,onSubmit:gt,onOk:Ie,presets:Dt,onPresetHover:Ft,onPresetSubmit:Qt,onNow:qt,cellRender:Xn})),Qn=function(nt){be(nt)},Xr=function(){ge("input")},Tt=function(nt){ge("input"),we(!0,{inherit:!0}),ut(nt)},ct=function(nt){we(!1),xt(nt)},jt=function(nt,zt){nt.key==="Tab"&&gt(),x==null||x(nt,zt)},on=d.useMemo(function(){return{prefixCls:f,locale:N,generateConfig:_,button:J.button,input:J.input}},[f,N,_,J.button,J.input]);return Xt(function(){pe&&Ze!==void 0&&Ue(null,j,!1)},[pe,Ze,j]),Xt(function(){var nt=ge();!pe&&nt==="input"&&(we(!1),gt()),!pe&&a&&!b&&nt==="panel"&&gt()},[pe]),d.createElement(Po.Provider,{value:on},d.createElement(gO,Me({},bO(o),{popupElement:$r,popupStyle:m.popup,popupClassName:v.popup,visible:pe,onClose:Rn}),d.createElement(TL,Me({},o,{ref:oe,suffixIcon:V,removeIcon:q,activeHelp:!!Le,allHelp:!!Le&&Nt==="preset",focused:ye,onFocus:Tt,onBlur:ct,onKeyDown:jt,onSubmit:gt,value:yt,maskFormat:l,onChange:Qn,onInputChange:Xr,internalPicker:i,format:s,inputReadOnly:L,disabled:w,open:pe,onOpenChange:we,onClick:lt,onClear:mt,invalid:it,onInvalid:function(nt){Ke(nt,0)}}))))}var _L=d.forwardRef(DL);const qO=d.createContext(null),BL=qO.Provider,KO=d.createContext(null),zL=KO.Provider;var LL=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],HL=Nr(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,m=e.title,v=e.onChange,h=$t(e,LL),p=Ye(null),g=Ye(null),b=mn(c,{value:a}),y=te(b,2),x=y[0],w=y[1];Ri(t,function(){return{focus:function(E){var k;(k=p.current)===null||k===void 0||k.focus(E)},blur:function(){var E;(E=p.current)===null||E===void 0||E.blur()},input:p.current,nativeElement:g.current}});var C=ae(r,o,W(W({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),S=function(E){s||("checked"in e||w(E.target.checked),v==null||v({target:G(G({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return d.createElement("span",{className:C,title:m,style:i,ref:g},d.createElement("input",Me({},h,{className:"".concat(r,"-input"),ref:p,onChange:S,disabled:s,checked:!!x,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function VL(e){const t=se.useRef(null),n=()=>{_t.cancel(t.current),t.current=null};return[()=>{n(),t.current=_t(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}const WL=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},un(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},qL=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:b,calc:y}=e,x=`${t}-inner`,w=y(o).sub(y(4).mul(2)),C=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},un(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ie(u)} ${p} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},un(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
408
- &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},xs(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},KL=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:m,controlHeightLG:v,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:k,colorPrimary:O,colorPrimaryHover:$,colorPrimaryActive:N,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:F,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:ie(A(n).sub(A(o).mul(2)).equal()),background:f,border:`${ie(o)} ${i} ${a}`,borderBlockStartWidth:A(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(o).mul(-1).equal(),insetInlineStart:A(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ie(o)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:v,fontSize:m,lineHeight:ie(A(v).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:A(p).sub(o).equal(),paddingBlock:0,lineHeight:ie(A(h).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},xs(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:x,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:$,borderColor:$,"&::before":{backgroundColor:$}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:_,borderColor:_,"&:hover":{color:w,background:j,borderColor:j},"&:active":{color:w,background:F,borderColor:F}},"&-disabled":{color:C,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:E,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},UL=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:h}=e,p=4,g=i,b=t?g-p*2:g-(p+o)*2;return{radioSize:g,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},UO=cn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ie(n)} ${t}`,o=Wt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[WL(o),qL(o),KL(o)]},UL,{unitless:{radioSize:!0,dotSize:!0}});var XL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const GL=(e,t)=>{var n,r;const o=d.useContext(qO),i=d.useContext(KO),{getPrefixCls:a,direction:s,radio:l}=d.useContext(At),c=d.useRef(null),u=Mr(t,c),{isFormItemInput:f}=d.useContext(lr),m=I=>{var P,M;(P=e.onChange)===null||P===void 0||P.call(e,I),(M=o==null?void 0:o.onChange)===null||M===void 0||M.call(o,I)},{prefixCls:v,className:h,rootClassName:p,children:g,style:b,title:y}=e,x=XL(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",v),C=((o==null?void 0:o.optionType)||i)==="button",S=C?`${w}-button`:w,E=Cr(w),[k,O,$]=UO(w,E),N=Object.assign({},x),_=d.useContext(vr);o&&(N.name=o.name,N.onChange=m,N.checked=e.value===o.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:o.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:_;const j=ae(`${S}-wrapper`,{[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:N.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,h,p,O,$,E),[F,A]=VL(N.onClick);return k(d.createElement(Hd,{component:"Radio",disabled:N.disabled},d.createElement("label",{className:j,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:F},d.createElement(HL,Object.assign({},N,{className:ae(N.className,{[o0]:!C}),type:"radio",prefixCls:S,ref:u,onClick:A})),g!==void 0?d.createElement("span",{className:`${S}-label`},g):null)))},od=d.forwardRef(GL),YL=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),o=s0(),{prefixCls:i,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:m,style:v,id:h,optionType:p,name:g=o,defaultValue:b,value:y,block:x=!1,onChange:w,onMouseEnter:C,onMouseLeave:S,onFocus:E,onBlur:k}=e,[O,$]=mn(b,{value:y}),N=d.useCallback(T=>{const R=O,D=T.target.value;"value"in e||$(D),D!==R&&(w==null||w(T))},[O,$,w]),_=n("radio",i),j=`${_}-group`,F=Cr(_),[A,I,P]=UO(_,F);let M=f;l&&l.length>0&&(M=l.map(T=>typeof T=="string"||typeof T=="number"?d.createElement(od,{key:T.toString(),prefixCls:_,disabled:u,value:T,checked:O===T},T):d.createElement(od,{key:`radio-group-value-options-${T.value}`,prefixCls:_,disabled:T.disabled||u,value:T.value,checked:O===T.value,title:T.title,style:T.style,id:T.id,required:T.required},T.label)));const z=Ur(m),B=ae(j,`${j}-${c}`,{[`${j}-${z}`]:z,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:x},a,s,I,P,F),H=d.useMemo(()=>({onChange:N,value:O,disabled:u,name:g,optionType:p,block:x}),[N,O,u,g,p,x]);return A(d.createElement("div",Object.assign({},wr(e,{aria:!0,data:!0}),{className:B,style:v,onMouseEnter:C,onMouseLeave:S,onFocus:E,onBlur:k,id:h,ref:t}),d.createElement(BL,{value:H},M)))}),ZL=d.memo(YL);var QL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JL=(e,t)=>{const{getPrefixCls:n}=d.useContext(At),{prefixCls:r}=e,o=QL(e,["prefixCls"]),i=n("radio",r);return d.createElement(zL,{value:"button"},d.createElement(od,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},eH=d.forwardRef(JL),bf=od;bf.Button=eH;bf.Group=ZL;bf.__ANT_RADIO=!0;function Ns(e){return Wt(e,{inputAffixPadding:e.paddingXXS})}const Ms=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:x,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:S}=e,E=w||n,k=S||E,O=C||s,$=Math.round((t-E*r)/2*10)/10-o,N=Math.round((i-k*r)/2*10)/10-o,_=Math.ceil((a-O*l)/2*10)/10-o;return{paddingBlock:Math.max($,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(_,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${b}`,warningActiveShadow:`0 0 0 ${p}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:E,inputFontSizeLG:O,inputFontSizeSM:k}},tH=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),j0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},tH(Wt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),XO=(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}}),dw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},XO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),A0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XO(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},j0(e))}),dw(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),dw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),GO=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},fw(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),fw(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},j0(e))}})}),R0=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},YO=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},pw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},YO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),T0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},j0(e))}),pw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),pw(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),mw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ZO=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},mw(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),mw(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),QO=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),gw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QO(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`}}),D0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QO(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"}}),gw(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),gw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),_0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),JO=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},eI=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),yf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_0(e.colorTextPlaceholder)),{"&-lg":Object.assign({},JO(e)),"&-sm":Object.assign({},eI(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),tI=e=>{const{componentCls:t,antCls:n}=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`]:Object.assign({},JO(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},eI(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{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 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-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}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{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,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ls()),{[`${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},[`
409
- & > ${t}-affix-wrapper,
410
- & > ${t}-number-affix-wrapper,
411
- & > ${n}-picker-range
412
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
413
- & > ${n}-select-auto-complete ${t},
414
- & > ${n}-cascader-picker ${t},
415
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
416
- & > ${n}-select:first-child > ${n}-select-selector,
417
- & > ${n}-select-auto-complete:first-child ${t},
418
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
419
- & > ${n}-select:last-child > ${n}-select-selector,
420
- & > ${n}-cascader-picker:last-child ${t},
421
- & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},nH=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),yf(e)),A0(e)),T0(e)),R0(e)),D0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},rH=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.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ie(e.inputAffixPadding)}`}}}},oH=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},yf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),rH(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},iH=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},un(e)),tI(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},GO(e)),ZO(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}}})})}},aH=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
422
- > ${t},
423
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},sH=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},nI=cn(["Input","Shared"],e=>{const t=Wt(e,Ns(e));return[nH(t),oH(t)]},Ms,{resetFont:!1}),rI=cn(["Input","Component"],e=>{const t=Wt(e,Ns(e));return[iH(t),aH(t),sH(t),pc(t)]},Ms,{resetFont:!1}),Ip=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=I2(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:ie(i.itemLineHeight)}}}]},lH=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Wt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Wt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ip(o,"small"),Ip(e),Ip(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},N2(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},cH=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:v,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ie(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
424
- &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ie(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
425
- &-in-view${t}-range-start,
426
- &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
427
- &-in-view${t}-range-start,
428
- &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},uH=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:m,borderRadiusLG:v,colorPrimary:h,colorTextHeading:p,colorSplit:g,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:x,motionDurationMid:w,colorIconHover:C,fontWeightStrong:S,cellHeight:E,pickerCellPaddingVertical:k,colorTextDisabled:O,colorText:$,fontSize:N,motionDurationSlow:_,withoutTimeCellHeight:j,pickerQuarterPanelContentHeight:F,borderRadiusSM:A,colorTextLightSolid:I,cellHoverBg:P,timeColumnHeight:M,timeColumnWidth:z,timeCellHeight:B,controlItemBgActive:H,marginXXS:T,pickerDatePanelPaddingHorizontal:R,pickerControlIconMargin:D}=e,L=e.calc(a).mul(7).add(e.calc(R).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:v,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
429
- ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
430
- ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:L},"&-header":{display:"flex",padding:`0 ${ie(l)}`,color:p,borderBottom:`${ie(f)} ${m} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:ie(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:ie(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:D,insetInlineStart:D,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(k).mul(2)).equal(),color:$,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ie(k)} 0`,color:O,cursor:"pointer","&-in-view":{color:$}},cH(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(j).mul(4).equal()},[r]:{padding:`0 ${ie(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},"&-decade-panel":{[r]:{padding:`0 ${ie(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ie(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${ie(l)} ${ie(R)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
431
- &-selected ${r},
432
- ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Zt(I).setA(.5).toHexString()},[r]:{color:I}}},"&-range-hover td:before":{background:H}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ie(l)} ${ie(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ie(f)} ${m} ${g}`},[`${t}-date-panel,
433
- ${t}-time-panel`]:{transition:`opacity ${_}`},"&-active":{[`${t}-date-panel,
434
- ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:M},"&-column":{flex:"1 0 auto",width:z,margin:`${ie(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ie(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ie(f)} ${m} ${g}`},"&-active":{background:new Zt(H).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:T,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(T).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(B).div(2).equal(),color:$,lineHeight:ie(B),borderRadius:A,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},dH=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ie(r)} ${c} ${u}`,"&-extra":{padding:`0 ${ie(o)}`,lineHeight:ie(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ie(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ie(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ie(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},fH=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},pH=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=i*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Zt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Zt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},mH=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ms(e)),pH(e)),af(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),gH=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},A0(e)),D0(e)),T0(e)),R0(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Np=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${ie(i)} ${ie(r)} ${ie(a)}`}},hH=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},vH=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:m,fontSizeLG:v,controlHeightSM:h,paddingInlineSM:p,paddingXS:g,marginXS:b,colorTextDescription:y,lineWidthBold:x,colorPrimary:w,motionDurationSlow:C,zIndexPopup:S,paddingXXS:E,sizePopupArrow:k,colorBgElevated:O,borderRadiusLG:$,boxShadowSecondary:N,borderRadiusSM:_,colorSplit:j,cellHoverBg:F,presetsWidth:A,presetsMaxWidth:I,boxShadowPopoverArrow:P,fontHeight:M,fontHeightLG:z,lineHeightLG:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},un(e)),Np(e,r,M,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},_0(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},Np(e,m,z,o)),{[`${t}-input > input`]:{fontSize:v,lineHeight:B}}),"&-small":Object.assign({},Np(e,h,M,p)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:u,fontSize:v,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:w,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ie(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:p}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},un(e)),uH(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
435
- &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
436
- &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
437
- &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
438
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
439
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Xd},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
440
- &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
441
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
442
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Kd},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
443
- &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Gd},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
444
- &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Ud},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},B2(e,O,P)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:O,borderRadius:$,boxShadow:N,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${ie(i)} ${a} ${j}`,li:Object.assign(Object.assign({},ua),{borderRadius:_,paddingInline:g,paddingBlock:e.calc(h).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:b},"&:hover":{background:F}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${ie(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Pi(e,"slide-up"),Pi(e,"slide-down"),cs(e,"move-up"),cs(e,"move-down")]},oI=cn("DatePicker",e=>{const t=Wt(Ns(e),fH(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dH(t),vH(t),gH(t),hH(t),lH(t),pc(e,{focusElCls:`${e.componentCls}-focused`})]},mH);function Or(e,t){return e[t]}var bH=["children"];function iI(e,t){return"".concat(e,"-").concat(t)}function yH(e){return e&&e.type&&e.type.isTreeNode}function xc(e,t){return e??t}function ds(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function aI(e){function t(n){var r=Io(n);return r.map(function(o){if(!yH(o))return vn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,s=a.children,l=$t(a,bH),c=G({key:i},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(o){return o})}return t(e)}function Mp(e,t,n){var r=ds(n),o=r._title,i=r.key,a=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(m,v){for(var h=iI(f?f.pos:"0",v),p=xc(m[i],h),g,b=0;b<o.length;b+=1){var y=o[b];if(m[y]!==void 0){g=m[y];break}}var x=Object.assign(Vn(m,[].concat(Ae(o),[i,a])),{title:g,key:p,parent:f,pos:h,children:null,data:m,isStart:[].concat(Ae(f?f.isStart:[]),[v===0]),isEnd:[].concat(Ae(f?f.isEnd:[]),[v===u.length-1])});return l.push(x),t===!0||s.has(p)?x.children=c(m[a]||[],x):x.children=[],x})}return c(e),l}function xH(e,t,n){var r={};dt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,s=o.fieldNames,l=ds(s),c=l.key,u=l.children,f=i||u,m;a?typeof a=="string"?m=function(h){return h[a]}:typeof a=="function"&&(m=function(h){return a(h)}):m=function(h,p){return xc(h[c],p)};function v(h,p,g,b){var y=h?h[f]:e,x=h?iI(g.pos,p):"0",w=h?[].concat(Ae(b),[h]):[];if(h){var C=m(h,x),S={node:h,index:p,pos:x,key:C,parentPos:g.node?g.pos:null,level:g.level+1,nodes:w};t(S)}y&&y.forEach(function(E,k){v(E,k,{node:h,pos:x,level:g?g.level+1:-1},w)})}v(null)}function sI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},f={},m={posEntities:u,keyEntities:f};return n&&(m=n(m)||m),xH(e,function(v){var h=v.node,p=v.index,g=v.pos,b=v.key,y=v.parentPos,x=v.level,w=v.nodes,C={node:h,nodes:w,index:p,key:b,pos:g,level:x},S=xc(b,g);u[g]=C,f[S]=C,C.parent=u[y],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,m)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),o&&o(m),m}function bl(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=Or(u,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return m}function qn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,h=G(G({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:m,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return vn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function lI(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function wH(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function CH(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var m=f.key,v=f.node,h=f.children,p=h===void 0?[]:h;o.has(m)&&!r(v)&&p.filter(function(g){return!r(g.node)}).forEach(function(g){o.add(g.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(m.key);return}var h=!0,p=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var b=g.key,y=o.has(b);h&&!y&&(h=!1),!p&&(y||i.has(b))&&(p=!0)}),h&&o.add(m.key),p&&i.add(m.key),l.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(lI(i,o))}}function SH(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(m){var v=m.key,h=m.node,p=m.children,g=p===void 0?[]:p;!i.has(v)&&!a.has(v)&&!o(h)&&g.filter(function(b){return!o(b.node)}).forEach(function(b){i.delete(b.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(m){var v=m.parent,h=m.node;if(!(o(h)||!m.parent||c.has(m.parent.key))){if(o(m.parent.node)){c.add(v.key);return}var p=!0,g=!1;(v.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,x=i.has(y);p&&!x&&(p=!1),!g&&(x||a.has(y))&&(g=!0)}),p||i.delete(v.key),g&&a.add(v.key),c.add(v.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(lI(a,i))}}function Pp(e,t,n,r){var o=[],i;i=wH;var a=new Set(e.filter(function(u){var f=!!Or(n,u);return f||o.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),l=Math.max(l,m)}),vn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=CH(a,s,l,i):c=SH(a,t.halfCheckedKeys,s,l,i),c}const kH=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},un(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},un(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},un(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},xs(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ie(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
445
- ${n}:not(${n}-disabled),
446
- ${t}:not(${t}-disabled)
447
- `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
448
- ${n}-checked:not(${n}-disabled),
449
- ${t}-checked:not(${t}-disabled)
450
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function cI(e,t){const n=Wt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[kH(n)]}cn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[cI(n,e)]});const uI=Kr({});var EH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hw(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const $H=["xs","sm","md","lg","xl","xxl"],id=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),{gutter:o,wrap:i}=d.useContext(uI),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:m,children:v,flex:h,style:p}=e,g=EH(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,x,w]=V3(b),C={};let S={};$H.forEach(O=>{let $={};const N=e[O];typeof N=="number"?$.span=N:typeof N=="object"&&($=N||{}),delete g[O],S=Object.assign(Object.assign({},S),{[`${b}-${O}-${$.span}`]:$.span!==void 0,[`${b}-${O}-order-${$.order}`]:$.order||$.order===0,[`${b}-${O}-offset-${$.offset}`]:$.offset||$.offset===0,[`${b}-${O}-push-${$.push}`]:$.push||$.push===0,[`${b}-${O}-pull-${$.pull}`]:$.pull||$.pull===0,[`${b}-rtl`]:r==="rtl"}),$.flex&&(S[`${b}-${O}-flex`]=!0,C[`--${b}-${O}-flex`]=hw($.flex))});const E=ae(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},m,S,x,w),k={};if(o&&o[0]>0){const O=o[0]/2;k.paddingLeft=O,k.paddingRight=O}return h&&(k.flex=hw(h),i===!1&&!k.minWidth&&(k.minWidth=0)),y(d.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},k),p),C),className:E,ref:t}),v))});function OH(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,a)=>{if(typeof i=="object"&&i!==null)for(let s=0;s<zl.length;s++){const l=zl[s];if(o[l]&&i[l]!==void 0){n[a]=i[l];break}}else n[a]=i}),n}var IH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function vw(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<zl.length;i++){const a=zl[i];if(!t||!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const dI=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=IH(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=d.useContext(At),v=d8(!0,null),h=vw(o,v),p=vw(r,v),g=f("row",n),[b,y,x]=H3(g),w=OH(l,v),C=ae(g,{[`${g}-no-wrap`]:c===!1,[`${g}-${p}`]:p,[`${g}-${h}`]:h,[`${g}-rtl`]:m==="rtl"},i,y,x),S={},E=w[0]!=null&&w[0]>0?w[0]/-2:void 0;E&&(S.marginLeft=E,S.marginRight=E);const[k,O]=w;S.rowGap=O;const $=d.useMemo(()=>({gutter:[k,O],wrap:c}),[k,O,c]);return b(d.createElement(uI.Provider,{value:$},d.createElement("div",Object.assign({},u,{className:C,style:Object.assign(Object.assign({},S),a),ref:t}),s)))});var NH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},MH=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:NH}))},PH=d.forwardRef(MH);function nh(){return typeof BigInt=="function"}function fI(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ra(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function B0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Yi(e){var t=String(e);if(B0(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&z0(t)?t.length-t.indexOf(".")-1:0}function xf(e){var t=String(e);if(B0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(nh()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(nh()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Yi(t))}return ra(t).fullStr}function z0(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var FH=(function(){function e(t){if($n(this,e),W(this,"origin",""),W(this,"negative",void 0),W(this,"integer",void 0),W(this,"decimal",void 0),W(this,"decimalLen",void 0),W(this,"empty",void 0),W(this,"nan",void 0),fI(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(B0(n)&&(n=Number(n)),n=typeof n=="string"?n:xf(n),z0(n)){var r=ra(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return On(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(n)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=this.alignDecimal(o),a=t.alignDecimal(o),s=n(i,a).toString(),l=r(o),c=ra(s),u=c.negativeStr,f=c.trimStr,m="".concat(u).concat(f.padStart(l+1,"0"));return new e("".concat(m.slice(0,-l),".").concat(m.slice(-l)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(r,o){return r+o},function(r){return r})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(r,o){return r*o},function(r){return r*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":ra("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),jH=(function(){function e(t){if($n(this,e),W(this,"origin",""),W(this,"number",void 0),W(this,"empty",void 0),fI(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return On(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Yi(this.number),Yi(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Yi(this.number),Yi(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toNumber()===(t==null?void 0:t.toNumber())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":xf(this.number):this.origin}}]),e})();function mo(e){return nh()?new FH(e):new jH(e)}function Iu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ra(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=mo(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return Iu(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function AH(e){return!!(e.addonBefore||e.addonAfter)}function RH(e){return!!(e.prefix||e.suffix||e.allowClear)}function bw(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function ad(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=bw(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=bw(t,e,r),n(o);return}n(o)}}function L0(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var H0=se.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,m=e.className,v=e.style,h=e.disabled,p=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,w=e.handleReset,C=e.hidden,S=e.classes,E=e.classNames,k=e.dataAttrs,O=e.styles,$=e.components,N=e.onClear,_=a??i,j=($==null?void 0:$.affixWrapper)||"span",F=($==null?void 0:$.groupWrapper)||"span",A=($==null?void 0:$.wrapper)||"span",I=($==null?void 0:$.groupAddon)||"span",P=Ye(null),M=function(re){var le;(le=P.current)!==null&&le!==void 0&&le.contains(re.target)&&(b==null||b())},z=RH(e),B=Qk(_,{value:x,className:ae((n=_.props)===null||n===void 0?void 0:n.className,!z&&(E==null?void 0:E.variant))||null}),H=Ye(null);if(se.useImperativeHandle(t,function(){return{nativeElement:H.current||P.current}}),z){var T=null;if(y){var R=!h&&!p&&x,D="".concat(s,"-clear-icon"),L=dt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";T=se.createElement("button",{type:"button",tabIndex:-1,onClick:function(re){w==null||w(re),N==null||N()},onMouseDown:function(re){return re.preventDefault()},className:ae(D,W(W({},"".concat(D,"-hidden"),!R),"".concat(D,"-has-suffix"),!!c))},L)}var V="".concat(s,"-affix-wrapper"),q=ae(V,W(W(W(W(W({},"".concat(s,"-disabled"),h),"".concat(V,"-disabled"),h),"".concat(V,"-focused"),g),"".concat(V,"-readonly"),p),"".concat(V,"-input-with-clear-btn"),c&&y&&x),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),K=(c||y)&&se.createElement("span",{className:ae("".concat(s,"-suffix"),E==null?void 0:E.suffix),style:O==null?void 0:O.suffix},T,c);B=se.createElement(j,Me({className:q,style:O==null?void 0:O.affixWrapper,onClick:M},k==null?void 0:k.affixWrapper,{ref:P}),l&&se.createElement("span",{className:ae("".concat(s,"-prefix"),E==null?void 0:E.prefix),style:O==null?void 0:O.prefix},l),B,K)}if(AH(e)){var Q="".concat(s,"-group"),U="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),Y=ae("".concat(s,"-wrapper"),Q,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),X=ae(J,W({},"".concat(J,"-disabled"),h),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);B=se.createElement(F,{className:X,ref:H},se.createElement(A,{className:Y},u&&se.createElement(I,{className:U},u),B,f&&se.createElement(I,{className:U},f)))}return se.cloneElement(B,{className:ae((r=B.props)===null||r===void 0?void 0:r.className,m)||null,style:G(G({},(o=B.props)===null||o===void 0?void 0:o.style),v),hidden:C})}),TH=["show"];function pI(e,t){return d.useMemo(function(){var n={};t&&(n.show=dt(t)==="object"&&t.formatter?t.formatter:!!t),n=G(G({},n),e);var r=n,o=r.show,i=$t(r,TH);return G(G({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var DH=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],_H=Nr(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,m=e.htmlSize,v=e.className,h=e.maxLength,p=e.suffix,g=e.showCount,b=e.count,y=e.type,x=y===void 0?"text":y,w=e.classes,C=e.classNames,S=e.styles,E=e.onCompositionStart,k=e.onCompositionEnd,O=$t(e,DH),$=Et(!1),N=te($,2),_=N[0],j=N[1],F=Ye(!1),A=Ye(!1),I=Ye(null),P=Ye(null),M=function(ne){I.current&&L0(I.current,ne)},z=mn(e.defaultValue,{value:e.value}),B=te(z,2),H=B[0],T=B[1],R=H==null?"":String(H),D=Et(null),L=te(D,2),V=L[0],q=L[1],K=pI(b,g),Q=K.max||h,U=K.strategy(R),J=!!Q&&U>Q;Ri(t,function(){var ne;return{focus:M,blur:function(){var xe;(xe=I.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,Pe,ue){var Re;(Re=I.current)===null||Re===void 0||Re.setSelectionRange(xe,Pe,ue)},select:function(){var xe;(xe=I.current)===null||xe===void 0||xe.select()},input:I.current,nativeElement:((ne=P.current)===null||ne===void 0?void 0:ne.nativeElement)||I.current}}),St(function(){A.current&&(A.current=!1),j(function(ne){return ne&&f?!1:ne})},[f]);var Y=function(ne,xe,Pe){var ue=xe;if(!F.current&&K.exceedFormatter&&K.max&&K.strategy(xe)>K.max){if(ue=K.exceedFormatter(xe,{max:K.max}),xe!==ue){var Re,Te;q([((Re=I.current)===null||Re===void 0?void 0:Re.selectionStart)||0,((Te=I.current)===null||Te===void 0?void 0:Te.selectionEnd)||0])}}else if(Pe.source==="compositionEnd")return;T(ue),I.current&&ad(I.current,ne,r,ue)};St(function(){if(V){var ne;(ne=I.current)===null||ne===void 0||ne.setSelectionRange.apply(ne,Ae(V))}},[V]);var X=function(ne){Y(ne,ne.target.value,{source:"change"})},re=function(ne){F.current=!1,Y(ne,ne.currentTarget.value,{source:"compositionEnd"}),k==null||k(ne)},le=function(ne){a&&ne.key==="Enter"&&!A.current&&(A.current=!0,a(ne)),s==null||s(ne)},oe=function(ne){ne.key==="Enter"&&(A.current=!1),l==null||l(ne)},de=function(ne){j(!0),o==null||o(ne)},he=function(ne){A.current&&(A.current=!1),j(!1),i==null||i(ne)},ke=function(ne){T(""),M(),I.current&&ad(I.current,ne,r)},Oe=J&&"".concat(u,"-out-of-range"),pe=function(){var ne=Vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return se.createElement("input",Me({autoComplete:n},ne,{onChange:X,onFocus:de,onBlur:he,onKeyDown:le,onKeyUp:oe,className:ae(u,W({},"".concat(u,"-disabled"),f),C==null?void 0:C.input),style:S==null?void 0:S.input,ref:I,size:m,type:x,onCompositionStart:function(xe){F.current=!0,E==null||E(xe)},onCompositionEnd:re}))},we=function(){var ne=Number(Q)>0;if(p||K.show){var xe=K.showFormatter?K.showFormatter({value:R,count:U,maxLength:Q}):"".concat(U).concat(ne?" / ".concat(Q):"");return se.createElement(se.Fragment,null,K.show&&se.createElement("span",{className:ae("".concat(u,"-show-count-suffix"),W({},"".concat(u,"-show-count-has-suffix"),!!p),C==null?void 0:C.count),style:G({},S==null?void 0:S.count)},xe),p)}return null};return se.createElement(H0,Me({},O,{prefixCls:u,className:ae(v,Oe),handleReset:ke,value:R,focused:_,triggerFocus:M,suffix:we(),disabled:f,classes:w,classNames:C,styles:S}),pe())});function BH(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,r){if(t[r])return t[r];var o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function zH(e,t){var n=Ye(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else{var f=s[c-1],m=i.indexOf(f,c-1);m!==-1&&(u=m+1)}e.setSelectionRange(u,u)}catch(v){vn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var LH=function(){var e=Et(!1),t=te(e,2),n=t[0],r=t[1];return Xt(function(){r(f0())},[]),n},HH=200,VH=600;function WH(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(y,x){y.preventDefault(),u(),c.current(x);function w(){c.current(x),s.current=setTimeout(w,HH)}s.current=setTimeout(w,VH)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return _t.cancel(y)})}},[]);var m=LH();if(m)return null;var v="".concat(t,"-handler"),h=ae(v,"".concat(v,"-up"),W({},"".concat(v,"-up-disabled"),o)),p=ae(v,"".concat(v,"-down"),W({},"".concat(v,"-down-disabled"),i)),g=function(){return l.current.push(_t(u))},b={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return d.createElement("div",{className:"".concat(v,"-wrap")},d.createElement("span",Me({},b,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Me({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:p}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function yw(e){var t=typeof e=="number"?xf(e):ra(e).fullStr,n=t.includes(".");return n?ra(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const qH=function(){var e=Ye(0),t=function(){_t.cancel(e.current)};return St(function(){return t},[]),function(n){t(),e.current=_t(function(){n()})}};var KH=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],UH=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],xw=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},ww=function(e){var t=mo(e);return t.isInvalidate()?null:t},XH=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,m=e.readOnly,v=e.upHandler,h=e.downHandler,p=e.keyboard,g=e.changeOnWheel,b=g===void 0?!1:g,y=e.controls,x=y===void 0?!0:y;e.classNames;var w=e.stringMode,C=e.parser,S=e.formatter,E=e.precision,k=e.decimalSeparator,O=e.onChange,$=e.onInput,N=e.onPressEnter,_=e.onStep,j=e.changeOnBlur,F=j===void 0?!0:j,A=e.domRef,I=$t(e,KH),P="".concat(n,"-input"),M=d.useRef(null),z=d.useState(!1),B=te(z,2),H=B[0],T=B[1],R=d.useRef(!1),D=d.useRef(!1),L=d.useRef(!1),V=d.useState(function(){return mo(u??c)}),q=te(V,2),K=q[0],Q=q[1];function U(ze){u===void 0&&Q(ze)}var J=d.useCallback(function(ze,Xe){if(!Xe)return E>=0?E:Math.max(Yi(ze),Yi(l))},[E,l]),Y=d.useCallback(function(ze){var Xe=String(ze);if(C)return C(Xe);var We=Xe;return k&&(We=We.replace(k,".")),We.replace(/[^\w.-]+/g,"")},[C,k]),X=d.useRef(""),re=d.useCallback(function(ze,Xe){if(S)return S(ze,{userTyping:Xe,input:String(X.current)});var We=typeof ze=="number"?xf(ze):ze;if(!Xe){var bt=J(We,Xe);if(z0(We)&&(k||bt>=0)){var ft=k||".";We=Iu(We,ft,bt)}}return We},[S,J,k]),le=d.useState(function(){var ze=c??u;return K.isInvalidate()&&["string","number"].includes(dt(ze))?Number.isNaN(ze)?"":ze:re(K.toString(),!1)}),oe=te(le,2),de=oe[0],he=oe[1];X.current=de;function ke(ze,Xe){he(re(ze.isInvalidate()?ze.toString(!1):ze.toString(!Xe),Xe))}var Oe=d.useMemo(function(){return ww(a)},[a,E]),pe=d.useMemo(function(){return ww(i)},[i,E]),we=d.useMemo(function(){return!Oe||!K||K.isInvalidate()?!1:Oe.lessEquals(K)},[Oe,K]),ne=d.useMemo(function(){return!pe||!K||K.isInvalidate()?!1:K.lessEquals(pe)},[pe,K]),xe=zH(M.current,H),Pe=te(xe,2),ue=Pe[0],Re=Pe[1],Te=function(ze){return Oe&&!ze.lessEquals(Oe)?Oe:pe&&!pe.lessEquals(ze)?pe:null},De=function(ze){return!Te(ze)},be=function(ze,Xe){var We=ze,bt=De(We)||We.isEmpty();if(!We.isEmpty()&&!Xe&&(We=Te(We)||We,bt=!0),!m&&!f&&bt){var ft=We.toString(),at=J(ft,Xe);return at>=0&&(We=mo(Iu(ft,".",at)),De(We)||(We=mo(Iu(ft,".",at,!0)))),We.equals(K)||(U(We),O==null||O(We.isEmpty()?null:xw(w,We)),u===void 0&&ke(We,Xe)),We}return K},Ie=qH(),Ne=function ze(Xe){if(ue(),X.current=Xe,he(Xe),!D.current){var We=Y(Xe),bt=mo(We);bt.isNaN()||be(bt,!0)}$==null||$(Xe),Ie(function(){var ft=Xe;C||(ft=Xe.replace(/。/g,".")),ft!==Xe&&ze(ft)})},$e=function(){D.current=!0},fe=function(){D.current=!1,Ne(M.current.value)},ye=function(ze){Ne(ze.target.value)},Ve=function(ze){var Xe;if(!(ze&&we||!ze&&ne)){R.current=!1;var We=mo(L.current?yw(l):l);ze||(We=We.negate());var bt=(K||mo(0)).add(We.toString()),ft=be(bt,!1);_==null||_(xw(w,ft),{offset:L.current?yw(l):l,type:ze?"up":"down"}),(Xe=M.current)===null||Xe===void 0||Xe.focus()}},ge=function(ze){var Xe=mo(Y(de)),We;Xe.isNaN()?We=be(K,ze):We=be(Xe,ze),u!==void 0?ke(K,!1):We.isNaN()||ke(We,!1)},Ze=function(){R.current=!0},ut=function(ze){var Xe=ze.key,We=ze.shiftKey;R.current=!0,L.current=We,Xe==="Enter"&&(D.current||(R.current=!1),ge(!1),N==null||N(ze)),p!==!1&&!D.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xe)&&(Ve(Xe==="Up"||Xe==="ArrowUp"),ze.preventDefault())},xt=function(){R.current=!1,L.current=!1};d.useEffect(function(){if(b&&H){var ze=function(We){Ve(We.deltaY<0),We.preventDefault()},Xe=M.current;if(Xe)return Xe.addEventListener("wheel",ze,{passive:!1}),function(){return Xe.removeEventListener("wheel",ze)}}});var It=function(){F&&ge(!1),T(!1),R.current=!1};return Ua(function(){K.isInvalidate()||ke(K,!1)},[E,S]),Ua(function(){var ze=mo(u);Q(ze);var Xe=mo(Y(de));(!ze.equals(Xe)||!R.current||S)&&ke(ze,R.current)},[u]),Ua(function(){S&&Re()},[de]),d.createElement("div",{ref:A,className:ae(n,r,W(W(W(W(W({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!De(K))),style:o,onFocus:function(){T(!0)},onBlur:It,onKeyDown:ut,onKeyUp:xt,onCompositionStart:$e,onCompositionEnd:fe,onBeforeInput:Ze},x&&d.createElement(WH,{prefixCls:n,upNode:v,downNode:h,upDisabled:we,downDisabled:ne,onStep:Ve}),d.createElement("div",{className:"".concat(P,"-wrap")},d.createElement("input",Me({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},I,{ref:Mr(M,t),className:P,value:de,onChange:ye,disabled:f,readOnly:m}))))}),GH=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,m=e.classNames,v=$t(e,UH),h=d.useRef(null),p=d.useRef(null),g=d.useRef(null),b=function(y){g.current&&L0(g.current,y)};return d.useImperativeHandle(t,function(){return BH(g.current,{focus:b,nativeElement:h.current.nativeElement||p.current})}),d.createElement(H0,{className:f,triggerFocus:b,prefixCls:i,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},d.createElement(XH,Me({prefixCls:i,disabled:n,ref:g,domRef:p,className:m==null?void 0:m.input},v)))});const YH=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ms(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Zt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Cw=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},ZH=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:v,colorTextDescription:h,motionDurationMid:p,handleHoverColor:g,handleOpacity:b,paddingInline:y,paddingBlock:x,handleBg:w,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:E,borderRadiusLG:k,controlWidth:O,handleBorderColor:$,filledHandleBg:N,lineHeightLG:_,calc:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),yf(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),A0(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ie(n)} ${r} ${$}`}}})),T0(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${ie(n)} ${r} ${$}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),D0(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ie(n)} ${r} ${$}`}}})),R0(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:_,borderRadius:k,[`input${t}-input`]:{height:j(s).sub(j(n).mul(2)).equal(),padding:`${ie(m)} ${ie(v)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:E,[`input${t}-input`]:{height:j(l).sub(j(n).mul(2)).equal(),padding:`${ie(f)} ${ie(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},un(e)),tI(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},GO(e)),ZO(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),{width:"100%",padding:`${ie(x)} ${ie(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),_0(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${p}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
451
- ${t}-handler-up-inner,
452
- ${t}-handler-down-inner
453
- `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ie(n)} ${r} ${$}`,transition:`all ${p} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
454
- ${t}-handler-up-inner,
455
- ${t}-handler-down-inner
456
- `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ys()),{color:h,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Cw(e,"lg")),Cw(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
457
- ${t}-handler-up-disabled,
458
- ${t}-handler-down-disabled
459
- `]:{cursor:"not-allowed"},[`
460
- ${t}-handler-up-disabled:hover &-handler-up-inner,
461
- ${t}-handler-down-disabled:hover &-handler-down-inner
462
- `]:{color:S}})}]},QH=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ie(n)} 0`}},yf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ie(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ie(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},JH=cn("InputNumber",e=>{const t=Wt(e,Ns(e));return[ZH(t),QH(t),pc(t)]},YH,{unitless:{handleOpacity:!0}});var e9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mI=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:m,suffix:v,bordered:h,readOnly:p,status:g,controls:b,variant:y}=e,x=e9(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),C=Cr(w),[S,E,k]=JH(w,C),{compactSize:O,compactItemClassnames:$}=si(w,r);let N=d.createElement(PH,{className:`${w}-handler-up-inner`}),_=d.createElement(A2,{className:`${w}-handler-down-inner`});const j=typeof b=="boolean"?b:void 0;typeof b=="object"&&(N=typeof b.upIcon>"u"?N:d.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),_=typeof b.downIcon>"u"?_:d.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:F,status:A,isFormItemInput:I,feedbackIcon:P}=d.useContext(lr),M=ya(A,g),z=Ur(K=>{var Q;return(Q=s??O)!==null&&Q!==void 0?Q:K}),B=d.useContext(vr),H=l??B,[T,R]=ks("inputNumber",y,h),D=F&&d.createElement(d.Fragment,null,P),L=ae({[`${w}-lg`]:z==="large",[`${w}-sm`]:z==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:I},E),V=`${w}-group`,q=d.createElement(GH,Object.assign({ref:o,disabled:H,className:ae(k,C,i,a,$),upHandler:N,downHandler:_,prefixCls:w,readOnly:p,controls:j,prefix:m,suffix:D||v,addonBefore:u&&d.createElement(Fi,{form:!0,space:!0},u),addonAfter:f&&d.createElement(Fi,{form:!0,space:!0},f),classNames:{input:L,variant:ae({[`${w}-${T}`]:R},ji(w,M,F)),affixWrapper:ae({[`${w}-affix-wrapper-sm`]:z==="small",[`${w}-affix-wrapper-lg`]:z==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1||H},E),wrapper:ae({[`${V}-rtl`]:r==="rtl"},E),groupWrapper:ae({[`${w}-group-wrapper-sm`]:z==="small",[`${w}-group-wrapper-lg`]:z==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${T}`]:R},ji(`${w}-group-wrapper`,M,F),E)}},x));return S(q)}),rh=mI,t9=e=>d.createElement(Bi,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(mI,Object.assign({},e)));rh._InternalPanelDoNotUseOrYouWillBeFired=t9;const gI=e=>{let t;return typeof e=="object"&&e!=null&&e.clearIcon?t=e:e&&(t={clearIcon:se.createElement(cc,null)}),t};function hI(e,t){const n=Ye([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value")&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return St(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function n9(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var r9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wf=Nr((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:m,className:v,style:h,styles:p,rootClassName:g,onChange:b,classNames:y,variant:x}=e,w=r9(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:S,allowClear:E,autoComplete:k,className:O,style:$,classNames:N,styles:_}=Mo("input"),j=C("input",n),F=Ye(null),A=Cr(j),[I,P,M]=nI(j,g),[z]=rI(j,A),{compactSize:B,compactItemClassnames:H}=si(j,S),T=Ur(he=>{var ke;return(ke=i??B)!==null&&ke!==void 0?ke:he}),R=se.useContext(vr),D=a??R,{status:L,hasFeedback:V,feedbackIcon:q}=sn(lr),K=ya(L,o),Q=n9(e)||!!V;Ye(Q);const U=hI(F,!0),J=he=>{U(),s==null||s(he)},Y=he=>{U(),l==null||l(he)},X=he=>{U(),b==null||b(he)},re=(V||c)&&se.createElement(se.Fragment,null,c,V&&q),le=gI(u??E),[oe,de]=ks("input",x,r);return I(z(se.createElement(_H,Object.assign({ref:Mr(t,F),prefixCls:j,autoComplete:k},w,{disabled:D,onBlur:J,onFocus:Y,style:Object.assign(Object.assign({},$),h),styles:Object.assign(Object.assign({},_),p),suffix:re,allowClear:le,className:ae(v,g,M,A,H,O),onChange:X,addonBefore:m&&se.createElement(Fi,{form:!0,space:!0},m),addonAfter:f&&se.createElement(Fi,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),N),{input:ae({[`${j}-sm`]:T==="small",[`${j}-lg`]:T==="large",[`${j}-rtl`]:S==="rtl"},y==null?void 0:y.input,N.input,P),variant:ae({[`${j}-${oe}`]:de},ji(j,K)),affixWrapper:ae({[`${j}-affix-wrapper-sm`]:T==="small",[`${j}-affix-wrapper-lg`]:T==="large",[`${j}-affix-wrapper-rtl`]:S==="rtl"},P),wrapper:ae({[`${j}-group-rtl`]:S==="rtl"},P),groupWrapper:ae({[`${j}-group-wrapper-sm`]:T==="small",[`${j}-group-wrapper-lg`]:T==="large",[`${j}-group-wrapper-rtl`]:S==="rtl",[`${j}-group-wrapper-${oe}`]:de},ji(`${j}-group-wrapper`,K,V),P)})}))))});function oh(e,t,n){return(e-t)/(n-t)}function V0(e,t,n,r){var o=oh(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function Ui(e,t){return Array.isArray(e)?e[t]:e}var Ca=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),o9=d.createContext({}),i9=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Sw=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,v=e.onFocus,h=e.onMouseEnter,p=$t(e,i9),g=d.useContext(Ca),b=g.min,y=g.max,x=g.direction,w=g.disabled,C=g.keyboard,S=g.range,E=g.tabIndex,k=g.ariaLabelForHandle,O=g.ariaLabelledByForHandle,$=g.ariaRequired,N=g.ariaValueTextFormatterForHandle,_=g.styles,j=g.classNames,F="".concat(n,"-handle"),A=function(D){w||i(D,o)},I=function(D){v==null||v(D,o)},P=function(D){h(D,o)},M=function(D){if(!w&&C){var L=null;switch(D.which||D.keyCode){case st.LEFT:L=x==="ltr"||x==="btt"?-1:1;break;case st.RIGHT:L=x==="ltr"||x==="btt"?1:-1;break;case st.UP:L=x!=="ttb"?1:-1;break;case st.DOWN:L=x!=="ttb"?-1:1;break;case st.HOME:L="min";break;case st.END:L="max";break;case st.PAGE_UP:L=2;break;case st.PAGE_DOWN:L=-2;break;case st.BACKSPACE:case st.DELETE:a(o);break}L!==null&&(D.preventDefault(),f(L,o))}},z=function(D){switch(D.which||D.keyCode){case st.LEFT:case st.RIGHT:case st.UP:case st.DOWN:case st.HOME:case st.END:case st.PAGE_UP:case st.PAGE_DOWN:m==null||m();break}},B=V0(x,r,b,y),H={};if(o!==null){var T;H={tabIndex:w?null:Ui(E,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":Ui(k,o),"aria-labelledby":Ui(O,o),"aria-required":Ui($,o),"aria-valuetext":(T=Ui(N,o))===null||T===void 0?void 0:T(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:I,onMouseEnter:P,onKeyDown:M,onKeyUp:z}}var R=d.createElement("div",Me({ref:t,className:ae(F,W(W(W({},"".concat(F,"-").concat(o+1),o!==null&&S),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),j.handle),style:G(G(G({},B),s),_.handle)},H,p));return l&&(R=l(R,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),R}),a9=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],s9=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,m=$t(e,a9),v=d.useRef({}),h=d.useState(!1),p=te(h,2),g=p[0],b=p[1],y=d.useState(-1),x=te(y,2),w=x[0],C=x[1],S=function($){C($),b(!0)},E=function($,N){S(N),f==null||f($)},k=function($,N){S(N)};d.useImperativeHandle(t,function(){return{focus:function($){var N;(N=v.current[$])===null||N===void 0||N.focus()},hideHelp:function(){ts(function(){b(!1)})}}});var O=G({prefixCls:n,onStartMove:o,onOffsetChange:i,render:s,onFocus:E,onMouseEnter:k},m);return d.createElement(d.Fragment,null,a.map(function($,N){var _=c===N;return d.createElement(Sw,Me({ref:function(j){j?v.current[N]=j:delete v.current[N]},dragging:_,draggingDelete:_&&u,style:Ui(r,N),key:N,value:$,valueIndex:N},O))}),l&&g&&d.createElement(Sw,Me({key:"a11y"},O,{value:a[w],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),l9=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=d.useContext(Ca),s=a.min,l=a.max,c=a.direction,u=a.includedStart,f=a.includedEnd,m=a.included,v="".concat(t,"-text"),h=V0(c,o,s,l);return d.createElement("span",{className:ae(v,W({},"".concat(v,"-active"),m&&u<=o&&o<=f)),style:G(G({},h),n),onMouseDown:function(p){p.stopPropagation()},onClick:function(){i(o)}},r)},c9=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?d.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return d.createElement(l9,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null},u9=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=d.useContext(Ca),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,f=i.includedEnd,m="".concat(t,"-dot"),v=c&&u<=n&&n<=f,h=G(G({},V0(l,n,a,s)),typeof r=="function"?r(n):r);return v&&(h=G(G({},h),typeof o=="function"?o(n):o)),d.createElement("span",{className:ae(m,W({},"".concat(m,"-active"),v)),style:h})},d9=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=d.useContext(Ca),s=a.min,l=a.max,c=a.step,u=d.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),r&&c!==null)for(var m=s;m<=l;)f.add(m),m+=c;return Array.from(f)},[s,l,c,r,n]);return d.createElement("div",{className:"".concat(t,"-step")},u.map(function(f){return d.createElement(u9,{prefixCls:t,key:f,value:f,style:o,activeStyle:i})}))},kw=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=e.replaceCls,l=d.useContext(Ca),c=l.direction,u=l.min,f=l.max,m=l.disabled,v=l.range,h=l.classNames,p="".concat(t,"-track"),g=oh(r,u,f),b=oh(o,u,f),y=function(C){!m&&a&&a(C,-1)},x={};switch(c){case"rtl":x.right="".concat(g*100,"%"),x.width="".concat(b*100-g*100,"%");break;case"btt":x.bottom="".concat(g*100,"%"),x.height="".concat(b*100-g*100,"%");break;case"ttb":x.top="".concat(g*100,"%"),x.height="".concat(b*100-g*100,"%");break;default:x.left="".concat(g*100,"%"),x.width="".concat(b*100-g*100,"%")}var w=s||ae(p,W(W({},"".concat(p,"-").concat(i+1),i!==null&&v),"".concat(t,"-track-draggable"),a),h.track);return d.createElement("div",{className:w,style:G(G({},x),n),onMouseDown:y,onTouchStart:y})},f9=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=d.useContext(Ca),s=a.included,l=a.range,c=a.min,u=a.styles,f=a.classNames,m=d.useMemo(function(){if(!l){if(r.length===0)return[];var h=o??c,p=r[0];return[{start:Math.min(h,p),end:Math.max(h,p)}]}for(var g=[],b=0;b<r.length-1;b+=1)g.push({start:r[b],end:r[b+1]});return g},[r,l,o,c]);if(!s)return null;var v=m!=null&&m.length&&(f.tracks||u.tracks)?d.createElement(kw,{index:null,prefixCls:t,start:m[0].start,end:m[m.length-1].end,replaceCls:ae(f.tracks,"".concat(t,"-tracks")),style:u.tracks}):null;return d.createElement(d.Fragment,null,v,m.map(function(h,p){var g=h.start,b=h.end;return d.createElement(kw,{index:p,prefixCls:t,style:G(G({},Ui(n,p)),u.track),start:g,end:b,key:p,onStartMove:i})}))},p9=130;function Ew(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function m9(e,t,n,r,o,i,a,s,l,c,u){var f=d.useState(null),m=te(f,2),v=m[0],h=m[1],p=d.useState(-1),g=te(p,2),b=g[0],y=g[1],x=d.useState(!1),w=te(x,2),C=w[0],S=w[1],E=d.useState(n),k=te(E,2),O=k[0],$=k[1],N=d.useState(n),_=te(N,2),j=_[0],F=_[1],A=d.useRef(null),I=d.useRef(null),P=d.useRef(null),M=d.useContext(o9),z=M.onDragStart,B=M.onDragChange;Xt(function(){b===-1&&$(n)},[n,b]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",A.current),document.removeEventListener("mouseup",I.current),P.current&&(P.current.removeEventListener("touchmove",A.current),P.current.removeEventListener("touchend",I.current))}},[]);var H=function(L,V,q){V!==void 0&&h(V),$(L);var K=L;q&&(K=L.filter(function(Q,U){return U!==b})),a(K),B&&B({rawValues:L,deleteIndex:q?b:-1,draggingIndex:b,draggingValue:V})},T=Gt(function(L,V,q){if(L===-1){var K=j[0],Q=j[j.length-1],U=r-K,J=o-Q,Y=V*(o-r);Y=Math.max(Y,U),Y=Math.min(Y,J);var X=i(K+Y);Y=X-K;var re=j.map(function(he){return he+Y});H(re)}else{var le=(o-r)*V,oe=Ae(O);oe[L]=j[L];var de=l(oe,le,L,"dist");H(de.values,de.value,q)}}),R=function(L,V,q){L.stopPropagation();var K=q||n,Q=K[V];y(V),h(Q),F(K),$(K),S(!1);var U=Ew(L),J=U.pageX,Y=U.pageY,X=!1;z&&z({rawValues:K,draggingIndex:V,draggingValue:Q});var re=function(oe){oe.preventDefault();var de=Ew(oe),he=de.pageX,ke=de.pageY,Oe=he-J,pe=ke-Y,we=e.current.getBoundingClientRect(),ne=we.width,xe=we.height,Pe,ue;switch(t){case"btt":Pe=-pe/xe,ue=Oe;break;case"ttb":Pe=pe/xe,ue=Oe;break;case"rtl":Pe=-Oe/ne,ue=pe;break;default:Pe=Oe/ne,ue=pe}X=c?Math.abs(ue)>p9&&u<O.length:!1,S(X),T(V,Pe,X)},le=function oe(de){de.preventDefault(),document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",re),P.current&&(P.current.removeEventListener("touchmove",A.current),P.current.removeEventListener("touchend",I.current)),A.current=null,I.current=null,P.current=null,s(X),y(-1),S(!1)};document.addEventListener("mouseup",le),document.addEventListener("mousemove",re),L.currentTarget.addEventListener("touchend",le),L.currentTarget.addEventListener("touchmove",re),A.current=re,I.current=le,P.current=L.currentTarget},D=d.useMemo(function(){var L=Ae(n).sort(function(U,J){return U-J}),V=Ae(O).sort(function(U,J){return U-J}),q={};V.forEach(function(U){q[U]=(q[U]||0)+1}),L.forEach(function(U){q[U]=(q[U]||0)-1});var K=c?1:0,Q=Object.values(q).reduce(function(U,J){return U+Math.abs(J)},0);return Q<=K?O:n},[n,O,c]);return[b,v,C,D,R]}function g9(e,t,n,r,o,i){var a=d.useCallback(function(v){return Math.max(e,Math.min(t,v))},[e,t]),s=d.useCallback(function(v){if(n!==null){var h=e+Math.round((a(v)-e)/n)*n,p=function(y){return(String(y).split(".")[1]||"").length},g=Math.max(p(n),p(t),p(e)),b=Number(h.toFixed(g));return e<=b&&b<=t?b:null}return null},[n,e,t,a]),l=d.useCallback(function(v){var h=a(v),p=r.map(function(y){return y.value});n!==null&&p.push(s(v)),p.push(e,t);var g=p[0],b=t-e;return p.forEach(function(y){var x=Math.abs(h-y);x<=b&&(g=y,b=x)}),g},[e,t,r,n,a,s]),c=function v(h,p,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof p=="number"){var y,x=h[g],w=x+p,C=[];r.forEach(function($){C.push($.value)}),C.push(e,t),C.push(s(x));var S=p>0?1:-1;b==="unit"?C.push(s(x+S*n)):C.push(s(w)),C=C.filter(function($){return $!==null}).filter(function($){return p<0?$<=x:$>=x}),b==="unit"&&(C=C.filter(function($){return $!==x}));var E=b==="unit"?x:w;y=C[0];var k=Math.abs(y-E);if(C.forEach(function($){var N=Math.abs($-E);N<k&&(y=$,k=N)}),y===void 0)return p<0?e:t;if(b==="dist")return y;if(Math.abs(p)>1){var O=Ae(h);return O[g]=y,v(O,p-S,g,b)}return y}else{if(p==="min")return e;if(p==="max")return t}},u=function(v,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[p],y=c(v,h,p,g);return{value:y,changed:y!==b}},f=function(v){return i===null&&v===0||typeof i=="number"&&v<i},m=function(v,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(l),y=b[p],x=c(b,h,p,g);if(b[p]=x,o===!1){var w=i||0;p>0&&b[p-1]!==y&&(b[p]=Math.max(b[p],b[p-1]+w)),p<b.length-1&&b[p+1]!==y&&(b[p]=Math.min(b[p],b[p+1]-w))}else if(typeof i=="number"||i===null){for(var C=p+1;C<b.length;C+=1)for(var S=!0;f(b[C]-b[C-1])&&S;){var E=u(b,1,C);b[C]=E.value,S=E.changed}for(var k=p;k>0;k-=1)for(var O=!0;f(b[k]-b[k-1])&&O;){var $=u(b,-1,k-1);b[k-1]=$.value,O=$.changed}for(var N=b.length-1;N>0;N-=1)for(var _=!0;f(b[N]-b[N-1])&&_;){var j=u(b,-1,N-1);b[N-1]=j.value,_=j.changed}for(var F=0;F<b.length-1;F+=1)for(var A=!0;f(b[F+1]-b[F])&&A;){var I=u(b,1,F+1);b[F+1]=I.value,A=I.changed}}return{value:b[p],values:b}};return[l,m]}function h9(e){return tn(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,o=e.maxCount;return[!0,t,!t&&n,r||0,o]},[e])}var v9=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,i=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,m=f===void 0?!0:f,v=e.autoFocus,h=e.onFocus,p=e.onBlur,g=e.min,b=g===void 0?0:g,y=e.max,x=y===void 0?100:y,w=e.step,C=w===void 0?1:w,S=e.value,E=e.defaultValue,k=e.range,O=e.count,$=e.onChange,N=e.onBeforeChange,_=e.onAfterChange,j=e.onChangeComplete,F=e.allowCross,A=F===void 0?!0:F,I=e.pushable,P=I===void 0?!1:I,M=e.reverse,z=e.vertical,B=e.included,H=B===void 0?!0:B,T=e.startPoint,R=e.trackStyle,D=e.handleStyle,L=e.railStyle,V=e.dotStyle,q=e.activeDotStyle,K=e.marks,Q=e.dots,U=e.handleRender,J=e.activeHandleRender,Y=e.track,X=e.tabIndex,re=X===void 0?0:X,le=e.ariaLabelForHandle,oe=e.ariaLabelledByForHandle,de=e.ariaRequired,he=e.ariaValueTextFormatterForHandle,ke=d.useRef(null),Oe=d.useRef(null),pe=d.useMemo(function(){return z?M?"ttb":"btt":M?"rtl":"ltr"},[M,z]),we=h9(k),ne=te(we,5),xe=ne[0],Pe=ne[1],ue=ne[2],Re=ne[3],Te=ne[4],De=d.useMemo(function(){return isFinite(b)?b:0},[b]),be=d.useMemo(function(){return isFinite(x)?x:100},[x]),Ie=d.useMemo(function(){return C!==null&&C<=0?1:C},[C]),Ne=d.useMemo(function(){return typeof P=="boolean"?P?Ie:!1:P>=0?P:!1},[P,Ie]),$e=d.useMemo(function(){return Object.keys(K||{}).map(function(Fe){var Le=K[Fe],Be={value:Number(Fe)};return Le&&dt(Le)==="object"&&!d.isValidElement(Le)&&("label"in Le||"style"in Le)?(Be.style=Le.style,Be.label=Le.label):Be.label=Le,Be}).filter(function(Fe){var Le=Fe.label;return Le||typeof Le=="number"}).sort(function(Fe,Le){return Fe.value-Le.value})},[K]),fe=g9(De,be,Ie,$e,A,Ne),ye=te(fe,2),Ve=ye[0],ge=ye[1],Ze=mn(E,{value:S}),ut=te(Ze,2),xt=ut[0],It=ut[1],ze=d.useMemo(function(){var Fe=xt==null?[]:Array.isArray(xt)?xt:[xt],Le=te(Fe,1),Be=Le[0],ht=Be===void 0?De:Be,yt=xt===null?[]:[ht];if(xe){if(yt=Ae(Fe),O||xt===void 0){var Dt=O>=0?O+1:2;for(yt=yt.slice(0,Dt);yt.length<Dt;){var Ft;yt.push((Ft=yt[yt.length-1])!==null&&Ft!==void 0?Ft:De)}}yt.sort(function(Qt,qt){return Qt-qt})}return yt.forEach(function(Qt,qt){yt[qt]=Ve(Qt)}),yt},[xt,xe,De,O,Ve]),Xe=function(Fe){return xe?Fe:Fe[0]},We=Gt(function(Fe){var Le=Ae(Fe).sort(function(Be,ht){return Be-ht});$&&!rs(Le,ze,!0)&&$(Xe(Le)),It(Le)}),bt=Gt(function(Fe){Fe&&ke.current.hideHelp();var Le=Xe(ze);_==null||_(Le),vn(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),j==null||j(Le)}),ft=function(Fe){if(!(u||!Pe||ze.length<=Re)){var Le=Ae(ze);Le.splice(Fe,1),N==null||N(Xe(Le)),We(Le);var Be=Math.max(0,Fe-1);ke.current.hideHelp(),ke.current.focus(Be)}},at=m9(Oe,pe,ze,De,be,Ve,We,bt,ge,Pe,Re),tt=te(at,5),qe=tt[0],wt=tt[1],Ot=tt[2],Ge=tt[3],Je=tt[4],Ke=function(Fe,Le){if(!u){var Be=Ae(ze),ht=0,yt=0,Dt=be-De;ze.forEach(function(Mn,or){var Rn=Math.abs(Fe-Mn);Rn<=Dt&&(Dt=Rn,ht=or),Mn<Fe&&(yt=or)});var Ft=ht;Pe&&Dt!==0&&(!Te||ze.length<Te)?(Be.splice(yt+1,0,Fe),Ft=yt+1):Be[ht]=Fe,xe&&!ze.length&&O===void 0&&Be.push(Fe);var Qt=Xe(Be);if(N==null||N(Qt),We(Be),Le){var qt,dn;(qt=document.activeElement)===null||qt===void 0||(dn=qt.blur)===null||dn===void 0||dn.call(qt),ke.current.focus(Ft),Je(Le,Ft,Be)}else _==null||_(Qt),vn(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),j==null||j(Qt)}},it=function(Fe){Fe.preventDefault();var Le=Oe.current.getBoundingClientRect(),Be=Le.width,ht=Le.height,yt=Le.left,Dt=Le.top,Ft=Le.bottom,Qt=Le.right,qt=Fe.clientX,dn=Fe.clientY,Mn;switch(pe){case"btt":Mn=(Ft-dn)/ht;break;case"ttb":Mn=(dn-Dt)/ht;break;case"rtl":Mn=(Qt-qt)/Be;break;default:Mn=(qt-yt)/Be}var or=De+Mn*(be-De);Ke(Ve(or),Fe)},ee=d.useState(null),Z=te(ee,2),ve=Z[0],Se=Z[1],_e=function(Fe,Le){if(!u){var Be=ge(ze,Fe,Le);N==null||N(Xe(ze)),We(Be.values),Se(Be.value)}};d.useEffect(function(){if(ve!==null){var Fe=ze.indexOf(ve);Fe>=0&&ke.current.focus(Fe)}Se(null)},[ve]);var Ue=d.useMemo(function(){return ue&&Ie===null?!1:ue},[ue,Ie]),gt=Gt(function(Fe,Le){Je(Fe,Le),N==null||N(Xe(ze))}),lt=qe!==-1;d.useEffect(function(){if(!lt){var Fe=ze.lastIndexOf(wt);ke.current.focus(Fe)}},[lt]);var mt=d.useMemo(function(){return Ae(Ge).sort(function(Fe,Le){return Fe-Le})},[Ge]),kt=d.useMemo(function(){return xe?[mt[0],mt[mt.length-1]]:[De,mt[0]]},[mt,xe,De]),ot=te(kt,2),Nt=ot[0],Ee=ot[1];d.useImperativeHandle(t,function(){return{focus:function(){ke.current.focus(0)},blur:function(){var Fe,Le=document,Be=Le.activeElement;(Fe=Oe.current)!==null&&Fe!==void 0&&Fe.contains(Be)&&(Be==null||Be.blur())}}}),d.useEffect(function(){v&&ke.current.focus(0)},[]);var Qe=d.useMemo(function(){return{min:De,max:be,direction:pe,disabled:u,keyboard:m,step:Ie,included:H,includedStart:Nt,includedEnd:Ee,range:xe,tabIndex:re,ariaLabelForHandle:le,ariaLabelledByForHandle:oe,ariaRequired:de,ariaValueTextFormatterForHandle:he,styles:s||{},classNames:a||{}}},[De,be,pe,u,m,Ie,H,Nt,Ee,xe,re,le,oe,de,he,s,a]);return d.createElement(Ca.Provider,{value:Qe},d.createElement("div",{ref:Oe,className:ae(r,o,W(W(W(W({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),z),"".concat(r,"-horizontal"),!z),"".concat(r,"-with-marks"),$e.length)),style:i,onMouseDown:it,id:l},d.createElement("div",{className:ae("".concat(r,"-rail"),a==null?void 0:a.rail),style:G(G({},L),s==null?void 0:s.rail)}),Y!==!1&&d.createElement(f9,{prefixCls:r,style:R,values:ze,startPoint:T,onStartMove:Ue?gt:void 0}),d.createElement(d9,{prefixCls:r,marks:$e,dots:Q,style:V,activeStyle:q}),d.createElement(s9,{ref:ke,prefixCls:r,style:D,values:Ge,draggingIndex:qe,draggingDelete:Ot,onStartMove:gt,onOffsetChange:_e,onFocus:h,onBlur:p,handleRender:U,activeHandleRender:J,onChangeComplete:bt,onDelete:Pe?ft:void 0}),d.createElement(c9,{prefixCls:r,marks:$e,onClick:Ke})))});const b9=Kr({}),$w=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,o=Ye(null),i=n&&!r,a=Ye(null);function s(){_t.cancel(a.current),a.current=null}function l(){a.current=_t(()=>{var c;(c=o.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(i?l():s(),s),[i,e.title]),d.createElement(zi,Object.assign({ref:Mr(o,t)},e,{open:i}))}),y9=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:v,handleLineWidth:h,handleLineWidthHover:p,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},un(e)),{position:"relative",height:r,margin:`${ie(a)} ${ie(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ie(i)} ${ie(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ie(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ie(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
463
- inset-inline-start ${g},
464
- inset-block-start ${g},
465
- width ${g},
466
- height ${g},
467
- box-shadow ${g},
468
- outline ${g}
469
- `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(p).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(p).mul(-1).equal(),width:c(f).add(c(p).mul(2)).equal(),height:c(f).add(c(p).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ie(p)} ${m}`,outline:`6px solid ${v}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${ie(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
470
- ${t}-dot
471
- `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${ie(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
472
- ${t}-mark-text,
473
- ${t}-dot
474
- `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},vI=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",v=s(r).mul(3).sub(o).div(2).equal(),h=s(o).sub(r).div(2).equal(),p=t?{borderWidth:`${ie(h)} 0`,transform:`translateY(${ie(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${ie(h)}`,transform:`translateX(${ie(e.calc(h).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},p),[`${n}-handle`]:{[f]:v},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(i).div(2).equal()}}},x9=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},vI(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},w9=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},vI(e,!1)),{height:"100%"})}},C9=e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,a=new Zt(i).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Zt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},S9=cn("Slider",e=>{const t=Wt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[y9(t),x9(t),w9(t)]},C9);function Fp(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{_t.cancel(n.current)},o=i=>{r(),i?t(i):n.current=_t(()=>{t(i)})};return d.useEffect(()=>r,[]),[e,o]}var k9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function E9(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const $9=se.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:m,tooltip:v={},onChangeComplete:h,classNames:p,styles:g}=e,b=k9(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:w,className:C,style:S,classNames:E,styles:k,getPopupContainer:O}=Mo("slider"),$=se.useContext(vr),N=s??$,{handleRender:_,direction:j}=se.useContext(b9),F=(j||w)==="rtl",[A,I]=Fp(),[P,M]=Fp(),z=Object.assign({},v),{open:B,placement:H,getPopupContainer:T,prefixCls:R,formatter:D}=z,L=B??u,V=(A||P)&&L!==!1,q=E9(D,c),[K,Q]=Fp(),U=ne=>{h==null||h(ne),Q(!1)},J=(ne,xe)=>ne||(xe?F?"left":"right":"top"),Y=x("slider",n),[X,re,le]=S9(Y),oe=ae(o,C,E.root,p==null?void 0:p.root,i,{[`${Y}-rtl`]:F,[`${Y}-lock`]:K},re,le);F&&!b.vertical&&(b.reverse=!b.reverse),se.useEffect(()=>{const ne=()=>{_t(()=>{M(!1)},1)};return document.addEventListener("mouseup",ne),()=>{document.removeEventListener("mouseup",ne)}},[]);const de=r&&!L,he=_||((ne,xe)=>{const{index:Pe}=xe,ue=ne.props;function Re(Ie,Ne,$e){var fe,ye,Ve,ge;$e&&((ye=(fe=b)[Ie])===null||ye===void 0||ye.call(fe,Ne)),(ge=(Ve=ue)[Ie])===null||ge===void 0||ge.call(Ve,Ne)}const Te=Object.assign(Object.assign({},ue),{onMouseEnter:Ie=>{I(!0),Re("onMouseEnter",Ie)},onMouseLeave:Ie=>{I(!1),Re("onMouseLeave",Ie)},onMouseDown:Ie=>{M(!0),Q(!0),Re("onMouseDown",Ie)},onFocus:Ie=>{var Ne;M(!0),(Ne=b.onFocus)===null||Ne===void 0||Ne.call(b,Ie),Re("onFocus",Ie,!0)},onBlur:Ie=>{var Ne;M(!1),(Ne=b.onBlur)===null||Ne===void 0||Ne.call(b,Ie),Re("onBlur",Ie,!0)}}),De=se.cloneElement(ne,Te),be=(!!L||V)&&q!==null;return de?De:se.createElement($w,Object.assign({},z,{prefixCls:x("tooltip",R??l),title:q?q(xe.value):"",open:be,placement:J(H??m,y),key:Pe,classNames:{root:`${Y}-tooltip`},getPopupContainer:T||f||O}),De)}),ke=de?(ne,xe)=>{const Pe=se.cloneElement(ne,{style:Object.assign(Object.assign({},ne.props.style),{visibility:"hidden"})});return se.createElement($w,Object.assign({},z,{prefixCls:x("tooltip",R??l),title:q?q(xe.value):"",open:q!==null&&V,placement:J(H??m,y),key:"tooltip",classNames:{root:`${Y}-tooltip`},getPopupContainer:T||f||O,draggingDelete:xe.draggingDelete}),Pe)}:void 0,Oe=Object.assign(Object.assign(Object.assign(Object.assign({},k.root),S),g==null?void 0:g.root),a),pe=Object.assign(Object.assign({},k.tracks),g==null?void 0:g.tracks),we=ae(E.tracks,p==null?void 0:p.tracks);return X(se.createElement(v9,Object.assign({},b,{classNames:Object.assign({handle:ae(E.handle,p==null?void 0:p.handle),rail:ae(E.rail,p==null?void 0:p.rail),track:ae(E.track,p==null?void 0:p.track)},we?{tracks:we}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},k.handle),g==null?void 0:g.handle),rail:Object.assign(Object.assign({},k.rail),g==null?void 0:g.rail),track:Object.assign(Object.assign({},k.track),g==null?void 0:g.track)},Object.keys(pe).length?{tracks:pe}:{}),step:b.step,range:r,className:oe,style:Oe,disabled:N,ref:t,prefixCls:Y,handleRender:he,activeHandleRender:ke,onChangeComplete:U})))});var O9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},I9=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:O9}))},bI=d.forwardRef(I9),N9={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},M9=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:N9}))},yI=d.forwardRef(M9),P9={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},F9=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:P9}))},j9=d.forwardRef(F9);function A9(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function R9(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function xI(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=T2(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[T9,D9]=["week","WeekPicker"],[_9,B9]=["month","MonthPicker"],[z9,L9]=["year","YearPicker"],[H9,V9]=["quarter","QuarterPicker"],[wI,Ow]=["time","TimePicker"],W9=e=>d.createElement(Wo,Object.assign({size:"small",type:"primary"},e));function CI(e){return tn(()=>Object.assign({button:W9},e),[e])}var q9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const K9=e=>Nr((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:f,disabled:m,bordered:v=!0,placeholder:h,popupClassName:p,dropdownClassName:g,status:b,rootClassName:y,variant:x,picker:w}=n,C=q9(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=d.useRef(null),{getPrefixCls:E,direction:k,getPopupContainer:O,rangePicker:$}=sn(At),N=E("picker",i),{compactSize:_,compactItemClassnames:j}=si(N,k),F=E(),[A,I]=ks("rangePicker",x,v),P=Cr(N),[M,z,B]=oI(N,P),[H]=xI(n,N),T=CI(s),R=Ur(re=>{var le;return(le=f??_)!==null&&le!==void 0?le:re}),D=d.useContext(vr),L=m??D,V=sn(lr),{hasFeedback:q,status:K,feedbackIcon:Q}=V,U=d.createElement(d.Fragment,null,w===wI?d.createElement(yI,null):d.createElement(bI,null),q&&Q);Ri(r,()=>S.current);const[J]=_i("Calendar",Yu),Y=Object.assign(Object.assign({},J),n.locale),[X]=Cs("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return M(d.createElement(Fi,{space:!0},d.createElement(FL,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${N}-separator`},d.createElement(j9,null)),disabled:L,ref:S,placement:u,placeholder:R9(Y,w,h),suffixIcon:U,prevIcon:d.createElement("span",{className:`${N}-prev-icon`}),nextIcon:d.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:w},C,{className:ae({[`${N}-${R}`]:R,[`${N}-${A}`]:I},ji(N,ya(K,b),q),z,j,l,$==null?void 0:$.className,B,P,y),style:Object.assign(Object.assign({},$==null?void 0:$.style),c),locale:Y.lang,prefixCls:N,getPopupContainer:a||O,generateConfig:e,components:T,direction:k,classNames:{popup:ae(z,p||g,B,P,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:X})},allowClear:H}))))});var U9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X9=e=>{const t=(l,c)=>{const u=c===Ow?"timePicker":"datePicker";return Nr((m,v)=>{var h;const{prefixCls:p,getPopupContainer:g,components:b,style:y,className:x,rootClassName:w,size:C,bordered:S,placement:E,placeholder:k,popupClassName:O,dropdownClassName:$,disabled:N,status:_,variant:j,onCalendarChange:F}=m,A=U9(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:I,direction:P,getPopupContainer:M,[u]:z}=sn(At),B=I("picker",p),{compactSize:H,compactItemClassnames:T}=si(B,P),R=d.useRef(null),[D,L]=ks("datePicker",j,S),V=Cr(B),[q,K,Q]=oI(B,V);Ri(v,()=>R.current);const U={showToday:!0},J=l||m.picker,Y=I(),{onSelect:X,multiple:re}=A,le=X&&l==="time"&&!re,oe=(Ie,Ne,$e)=>{F==null||F(Ie,Ne,$e),le&&X(Ie)},[de,he]=xI(m,B),ke=CI(b),Oe=Ur(Ie=>{var Ne;return(Ne=C??H)!==null&&Ne!==void 0?Ne:Ie}),pe=d.useContext(vr),we=N??pe,ne=sn(lr),{hasFeedback:xe,status:Pe,feedbackIcon:ue}=ne,Re=d.createElement(d.Fragment,null,J==="time"?d.createElement(yI,null):d.createElement(bI,null),xe&&ue),[Te]=_i("DatePicker",Yu),De=Object.assign(Object.assign({},Te),m.locale),[be]=Cs("DatePicker",(h=m.popupStyle)===null||h===void 0?void 0:h.zIndex);return q(d.createElement(Fi,{space:!0},d.createElement(_L,Object.assign({ref:R,placeholder:A9(De,J,k),suffixIcon:Re,placement:E,prevIcon:d.createElement("span",{className:`${B}-prev-icon`}),nextIcon:d.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${Y}-slide-up`,picker:l,onCalendarChange:oe},U,A,{locale:De.lang,className:ae({[`${B}-${Oe}`]:Oe,[`${B}-${D}`]:L},ji(B,ya(Pe,_),xe),K,T,z==null?void 0:z.className,x,Q,V,w),style:Object.assign(Object.assign({},z==null?void 0:z.style),y),prefixCls:B,getPopupContainer:g||M,generateConfig:e,components:ke,direction:P,disabled:we,classNames:{popup:ae(K,Q,V,w,O||$)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:be})},allowClear:de,removeIcon:he}))))})},n=t(),r=t(T9,D9),o=t(_9,B9),i=t(z9,L9),a=t(H9,V9),s=t(wI,Ow);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:s,QuarterPicker:a}},SI=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=X9(e),s=K9(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},Ps=SI(zz),G9=rf(Ps,"popupAlign",void 0,"picker");Ps._InternalPanelDoNotUseOrYouWillBeFired=G9;const Y9=rf(Ps.RangePicker,"popupAlign",void 0,"picker");Ps._InternalRangePanelDoNotUseOrYouWillBeFired=Y9;Ps.generatePicker=SI;function Iw(e){return["small","middle","large"].includes(e)}function Nw(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const kI=se.createContext({latestIndex:0}),Z9=kI.Provider,Q9=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=d.useContext(kI);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:i},r),n<a&&o&&d.createElement("span",{className:`${t}-split`},o))};var J9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const e7=d.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:s,classNames:l,styles:c}=Mo("space"),{size:u=i??"small",align:f,className:m,rootClassName:v,children:h,direction:p="horizontal",prefixCls:g,split:b,style:y,wrap:x=!1,classNames:w,styles:C}=e,S=J9(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,k]=Array.isArray(u)?u:[u,u],O=Iw(k),$=Iw(E),N=Nw(k),_=Nw(E),j=Io(h,{keepEmpty:!0}),F=f===void 0&&p==="horizontal"?"center":f,A=r("space",g),[I,P,M]=q$(A),z=ae(A,a,P,`${A}-${p}`,{[`${A}-rtl`]:o==="rtl",[`${A}-align-${F}`]:F,[`${A}-gap-row-${k}`]:O,[`${A}-gap-col-${E}`]:$},m,v,M),B=ae(`${A}-item`,(n=w==null?void 0:w.item)!==null&&n!==void 0?n:l.item);let H=0;const T=j.map((L,V)=>{var q;L!=null&&(H=V);const K=(L==null?void 0:L.key)||`${B}-${V}`;return d.createElement(Q9,{className:B,key:K,index:V,split:b,style:(q=C==null?void 0:C.item)!==null&&q!==void 0?q:c.item},L)}),R=d.useMemo(()=>({latestIndex:H}),[H]);if(j.length===0)return null;const D={};return x&&(D.flexWrap="wrap"),!$&&_&&(D.columnGap=E),!O&&N&&(D.rowGap=k),I(d.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},D),s),y)},S),d.createElement(Z9,{value:R},T)))}),EI=e7;EI.Compact=X6;var t7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $I=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(At),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:m,menu:v,arrow:h,autoFocus:p,overlay:g,trigger:b,align:y,open:x,onOpenChange:w,placement:C,getPopupContainer:S,href:E,icon:k=d.createElement(dO,null),title:O,buttonsRender:$=K=>K,mouseEnterDelay:N,mouseLeaveDelay:_,overlayClassName:j,overlayStyle:F,destroyPopupOnHide:A,dropdownRender:I}=e,P=t7(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),M=n("dropdown",o),z=`${M}-button`,B={menu:v,arrow:h,autoFocus:p,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:_,overlayClassName:j,overlayStyle:F,destroyPopupOnHide:A,dropdownRender:I},{compactSize:H,compactItemClassnames:T}=si(M,r),R=ae(z,T,m);"overlay"in e&&(B.overlay=g),"open"in e&&(B.open=x),"placement"in e?B.placement=C:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const D=d.createElement(Wo,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:O},f),L=d.createElement(Wo,{type:i,danger:a,icon:k}),[V,q]=$([D,L]);return d.createElement(EI.Compact,Object.assign({className:R,size:H,block:!0},P),V,d.createElement(ff,Object.assign({},B),q))};$I.__ANT_BUTTON=!0;const n7=ff;n7.Button=$I;function sd(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const r7=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
475
- opacity ${e.motionDurationFast} ${e.motionEaseInOut},
476
- transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},o7=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Mw=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},i7=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},un(e)),o7(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Mw(e,e.controlHeightSM)),"&-large":Object.assign({},Mw(e,e.controlHeightLG))})}},a7=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},un(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
477
- &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:i0,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Pw=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},s7=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
478
- > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},yo=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),OI=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:yo(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},l7=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
479
- ${r}-col-24${n}-label,
480
- ${r}-col-xl-24${n}-label`]:yo(e)}},[`@media (max-width: ${ie(e.screenXSMax)})`]:[OI(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:yo(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:yo(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:yo(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:yo(e)}}}}},c7=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
481
- ${n}-col-24${t}-label,
482
- ${n}-col-xl-24${t}-label`]:yo(e),[`@media (max-width: ${ie(e.screenXSMax)})`]:[OI(e),{[t]:{[`${n}-col-xs-24${t}-label`]:yo(e)}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:yo(e)}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:yo(e)}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:yo(e)}}}},u7=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),II=(e,t)=>Wt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),W0=cn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=II(e,n);return[i7(r),a7(r),r7(r),Pw(r,r.componentCls),Pw(r,r.formItemCls),s7(r),l7(r),c7(r),Wd(r),i0]},u7,{order:-1e3}),Fw=[];function jp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const NI=e=>{let{help:t,helpStatus:n,errors:r=Fw,warnings:o=Fw,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(d0),c=`${l}-item-explain`,u=Cr(l),[f,m,v]=W0(l,u),h=d.useMemo(()=>Tl(l),[l]),p=sd(r),g=sd(o),b=d.useMemo(()=>t!=null?[jp(t,"help",n)]:[].concat(Ae(p.map((w,C)=>jp(w,"error","error",C))),Ae(g.map((w,C)=>jp(w,"warning","warning",C)))),[t,n,p,g]),y=d.useMemo(()=>{const w={};return b.forEach(C=>{let{key:S}=C;w[S]=(w[S]||0)+1}),b.map((C,S)=>Object.assign(Object.assign({},C),{key:w[C.key]>1?`${C.key}-fallback-${S}`:C.key}))},[b]),x={};return a&&(x.id=`${a}_help`),f(d.createElement(uo,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},w=>{const{className:C,style:S}=w;return d.createElement("div",Object.assign({},x,{className:ae(c,C,v,u,i,m),style:S}),d.createElement(Qv,Object.assign({keys:y},Tl(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:k,error:O,errorStatus:$,className:N,style:_}=E;return d.createElement("div",{key:k,className:ae(N,{[`${c}-${$}`]:$}),style:_},O)}))}))},d7=["parentNode"],f7="form_item";function yl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function MI(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:d7.includes(n)?`${f7}_${n}`:n}function PI(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var p7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jw(e){return yl(e).join("_")}function Aw(e,t){const n=t.getFieldInstance(e),r=EE(n);if(r)return r;const o=MI(yl(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function FI(e){const[t]=u0(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=jw(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:a}=i,s=p7(i,["focus"]),l=Aw(o,r);l&&(Y4(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),a&&r.focusField(o))},focusField:o=>{var i,a;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(a=(i=Aw(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=jw(o);return n.current[i]}}),[e,t]);return[r]}var m7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const g7=(e,t)=>{const n=d.useContext(vr),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:s,className:l,style:c}=Mo("form"),{prefixCls:u,className:f,rootClassName:m,size:v,disabled:h=n,form:p,colon:g,labelAlign:b,labelWrap:y,labelCol:x,wrapperCol:w,hideRequiredMark:C,layout:S="horizontal",scrollToFirstError:E,requiredMark:k,onFinishFailed:O,name:$,style:N,feedbackIcons:_,variant:j}=e,F=m7(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),A=Ur(v),I=d.useContext(o$),P=d.useMemo(()=>k!==void 0?k:C?!1:i!==void 0?i:!0,[C,k,i]),M=g??a,z=r("form",u),B=Cr(z),[H,T,R]=W0(z,B),D=ae(z,`${z}-${S}`,{[`${z}-hide-required-mark`]:P===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${A}`]:A},R,B,T,l,f,m),[L]=FI(p),{__INTERNAL__:V}=L;V.name=$;const q=d.useMemo(()=>({name:$,labelAlign:b,labelCol:x,labelWrap:y,wrapperCol:w,vertical:S==="vertical",colon:M,requiredMark:P,itemRef:V.itemRef,form:L,feedbackIcons:_}),[$,b,x,w,S,M,P,L,_]),K=d.useRef(null);d.useImperativeHandle(t,()=>{var J;return Object.assign(Object.assign({},L),{nativeElement:(J=K.current)===null||J===void 0?void 0:J.nativeElement})});const Q=(J,Y)=>{if(J){let X={block:"nearest"};typeof J=="object"&&(X=Object.assign(Object.assign({},X),J)),L.scrollToField(Y,X)}},U=J=>{if(O==null||O(J),J.errorFields.length){const Y=J.errorFields[0].name;if(E!==void 0){Q(E,Y);return}s!==void 0&&Q(s,Y)}};return H(d.createElement(u2.Provider,{value:j},d.createElement(d$,{disabled:h},d.createElement(la.Provider,{value:A},d.createElement(c2,{validateMessages:I},d.createElement(ri.Provider,{value:q},d.createElement(Ss,Object.assign({id:$},F,{name:$,onFinishFailed:U,form:L,ref:K,style:Object.assign(Object.assign({},c),N),className:D}))))))))},h7=d.forwardRef(g7);function v7(e){if(typeof e=="function")return e;const t=Io(e);return t.length<=1?t[0]:t}const jI=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(lr);return{status:e,errors:t,warnings:n}};jI.Context=lr;function b7(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,_t.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=_t(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function y7(){const{itemRef:e}=d.useContext(ri),t=d.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Di(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Mr(e(r),i)),t.current.ref}return n}const x7=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},w7=lc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=II(e,n);return[x7(r)]});var C7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const S7=24,k7=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:m,onErrorVisibleChanged:v,label:h}=e,p=`${t}-item`,g=d.useContext(ri),b=d.useMemo(()=>{let F=Object.assign({},o||g.wrapperCol||{});return h===null&&!r&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const I=A?[A]:[],P=io(g.labelCol,I),M=typeof P=="object"?P:{},z=io(F,I),B=typeof z=="object"?z:{};"span"in M&&!("offset"in B)&&M.span<S7&&(F=oo(F,[].concat(I,["offset"]),M.span))}),F},[o,g]),y=ae(`${p}-control`,b.className),x=d.useMemo(()=>{const{labelCol:F,wrapperCol:A}=g;return C7(g,["labelCol","wrapperCol"])},[g]),w=d.useRef(null),[C,S]=d.useState(0);Xt(()=>{c&&w.current?S(w.current.clientHeight):S(0)},[c]);const E=d.createElement("div",{className:`${p}-control-input`},d.createElement("div",{className:`${p}-control-input-content`},i)),k=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=m!==null||a.length||s.length?d.createElement(d0.Provider,{value:k},d.createElement(NI,{fieldId:f,errors:a,warnings:s,help:u,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:v})):null,$={};f&&($.id=`${f}_extra`);const N=c?d.createElement("div",Object.assign({},$,{className:`${p}-extra`,ref:w}),c):null,_=O||N?d.createElement("div",{className:`${p}-additional`,style:m?{minHeight:m+C}:{}},O,N):null,j=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:O,extra:N}):d.createElement(d.Fragment,null,E,_);return d.createElement(ri.Provider,{value:x},d.createElement(id,Object.assign({},b,{className:y}),j),d.createElement(w7,{prefixCls:t}))};var E7={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},$7=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:E7}))},O7=d.forwardRef($7),I7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function N7(e){return e?typeof e=="object"&&!d.isValidElement(e)?e:{title:e}:null}const M7=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[m]=_i("Form"),{labelAlign:v,labelCol:h,labelWrap:p,colon:g}=d.useContext(ri);if(!n)return null;const b=o||h||{},y=i||v,x=`${t}-item-label`,w=ae(x,y==="left"&&`${x}-left`,b.className,{[`${x}-wrap`]:!!p});let C=n;const S=a===!0||g!==!1&&a!==!1;S&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const E=N7(c);if(E){const{icon:j=d.createElement(O7,null)}=E,F=I7(E,["icon"]),A=d.createElement(zi,Object.assign({},F),d.cloneElement(j,{className:`${t}-item-tooltip`,title:"",onClick:I=>{I.preventDefault()},tabIndex:null}));C=d.createElement(d.Fragment,null,C,A)}const k=l==="optional",O=typeof l=="function",$=l===!1;O?C=l(C,{required:!!s}):k&&!s&&(C=d.createElement(d.Fragment,null,C,d.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=ni.Form)===null||f===void 0?void 0:f.optional))));let N;$?N="hidden":(k||O)&&(N="optional");const _=ae({[`${t}-item-required`]:s,[`${t}-item-required-mark-${N}`]:N,[`${t}-item-no-colon`]:!S});return d.createElement(id,Object.assign({},b,{className:w}),d.createElement("label",{htmlFor:r,className:_,title:typeof n=="string"?n:""},C))},P7={success:e0,warning:zd,error:cc,validating:Mi};function AI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(ri),f=PI(n,r,s,null,!!o,i),{isFormItemInput:m,status:v,hasFeedback:h,feedbackIcon:p}=d.useContext(lr),g=d.useMemo(()=>{var b;let y;if(o){const w=o!==!0&&o.icons||u,C=f&&((b=w==null?void 0:w({status:f,errors:n,warnings:r}))===null||b===void 0?void 0:b[f]),S=f&&P7[f];y=C!==!1&&S?d.createElement("span",{className:ae(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},C||d.createElement(S,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return l&&(x.status=(f??v)||"",x.isFormItemInput=m,x.hasFeedback=!!(o??h),x.feedbackIcon=o!==void 0?x.feedbackIcon:p),x},[f,o,l,m,v]);return d.createElement(lr.Provider,{value:g},t)}var F7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j7(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:m,fieldId:v,required:h,isRequired:p,onSubItemMetaChange:g,layout:b}=e,y=F7(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),x=`${t}-item`,{requiredMark:w,vertical:C}=d.useContext(ri),S=C||b==="vertical",E=d.useRef(null),k=sd(a),O=sd(s),$=i!=null,N=!!($||a.length||s.length),_=!!E.current&&dc(E.current),[j,F]=d.useState(null);Xt(()=>{if(N&&E.current){const M=getComputedStyle(E.current);F(parseInt(M.marginBottom,10))}},[N,_]);const A=M=>{M||F(null)},I=(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const z=M?k:c.errors,B=M?O:c.warnings;return PI(z,B,c,"",!!u,l)})(),P=ae(x,n,r,{[`${x}-with-help`]:$||k.length||O.length,[`${x}-has-feedback`]:I&&u,[`${x}-has-success`]:I==="success",[`${x}-has-warning`]:I==="warning",[`${x}-has-error`]:I==="error",[`${x}-is-validating`]:I==="validating",[`${x}-hidden`]:f,[`${x}-${b}`]:b});return d.createElement("div",{className:P,style:o,ref:E},d.createElement(dI,Object.assign({className:`${x}-row`},Vn(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(M7,Object.assign({htmlFor:v},e,{requiredMark:w,required:h??p,prefixCls:t,vertical:S})),d.createElement(k7,Object.assign({},e,c,{errors:k,warnings:O,prefixCls:t,status:I,help:i,marginBottom:j,onErrorVisibleChanged:A}),d.createElement(l2.Provider,{value:g},d.createElement(AI,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:I},m)))),!!j&&d.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-j}}))}const A7="__SPLIT__";function R7(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const T7=d.memo(e=>{let{children:t}=e;return t},(e,t)=>R7(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Rw(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function D7(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:h,help:p,layout:g}=e,{getPrefixCls:b}=d.useContext(At),{name:y}=d.useContext(ri),x=v7(l),w=typeof x=="function",C=d.useContext(l2),{validateTrigger:S}=d.useContext(da),E=v!==void 0?v:S,k=t!=null,O=b("form",i),$=Cr(O),[N,_,j]=W0(O,$);sc();const F=d.useContext(_l),A=d.useRef(null),[I,P]=b7({}),[M,z]=ca(()=>Rw()),B=q=>{const K=F==null?void 0:F.getKey(q.name);if(z(q.destroy?Rw():q,!0),n&&p!==!1&&C){let Q=q.name;if(q.destroy)Q=A.current||Q;else if(K!==void 0){const[U,J]=K;Q=[U].concat(Ae(J)),A.current=Q}C(q,Q)}},H=(q,K)=>{P(Q=>{const U=Object.assign({},Q),J=[].concat(Ae(q.name.slice(0,-1)),Ae(K)).join(A7);return q.destroy?delete U[J]:U[J]=q,U})},[T,R]=d.useMemo(()=>{const q=Ae(M.errors),K=Ae(M.warnings);return Object.values(I).forEach(Q=>{q.push.apply(q,Ae(Q.errors||[])),K.push.apply(K,Ae(Q.warnings||[]))}),[q,K]},[I,M.errors,M.warnings]),D=y7();function L(q,K,Q){return n&&!h?d.createElement(AI,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:M,errors:T,warnings:R,noStyle:!0},q):d.createElement(j7,Object.assign({key:"row"},e,{className:ae(r,j,$,_),prefixCls:O,fieldId:K,isRequired:Q,errors:T,warnings:R,meta:M,onSubItemMetaChange:H,layout:g}),q)}if(!k&&!w&&!o)return N(L(x));let V={};return typeof u=="string"?V.label=u:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),N(d.createElement(c0,Object.assign({},e,{messageVariables:V,trigger:m,validateTrigger:E,onMetaChange:B}),(q,K,Q)=>{const U=yl(t).length&&K?K.name:[],J=MI(U,y),Y=c!==void 0?c:!!(s!=null&&s.some(le=>{if(le&&typeof le=="object"&&le.required&&!le.warningOnly)return!0;if(typeof le=="function"){const oe=le(Q);return(oe==null?void 0:oe.required)&&!(oe!=null&&oe.warningOnly)}return!1})),X=Object.assign({},q);let re=null;if(Array.isArray(x)&&k)re=x;else if(!(w&&(!(a||o)||k))){if(!(o&&!w&&!k))if(d.isValidElement(x)){const le=Object.assign(Object.assign({},x.props),X);if(le.id||(le.id=J),p||T.length>0||R.length>0||e.extra){const de=[];(p||T.length>0)&&de.push(`${J}_help`),e.extra&&de.push(`${J}_extra`),le["aria-describedby"]=de.join(" ")}T.length>0&&(le["aria-invalid"]="true"),Y&&(le["aria-required"]="true"),ai(x)&&(le.ref=D(U,x)),new Set([].concat(Ae(yl(m)),Ae(yl(E)))).forEach(de=>{le[de]=function(){for(var he,ke,Oe,pe,we,ne=arguments.length,xe=new Array(ne),Pe=0;Pe<ne;Pe++)xe[Pe]=arguments[Pe];(Oe=X[de])===null||Oe===void 0||(he=Oe).call.apply(he,[X].concat(xe)),(we=(pe=x.props)[de])===null||we===void 0||(ke=we).call.apply(ke,[pe].concat(xe))}});const oe=[le["aria-required"],le["aria-invalid"],le["aria-describedby"]];re=d.createElement(T7,{control:X,update:x,childProps:oe},sr(x,le))}else w&&(a||o)&&!k?re=x(Q):re=x}return L(re,J,Y)}))}const RI=D7;RI.useStatus=jI;var _7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B7=e=>{var{prefixCls:t,children:n}=e,r=_7(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(At),i=o("form",t),a=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(o2,Object.assign({},r),(s,l,c)=>d.createElement(d0.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function z7(){const{form:e}=d.useContext(ri);return e}const zn=h7;zn.Item=RI;zn.List=B7;zn.ErrorList=NI;zn.useForm=FI;zn.useFormInstance=z7;zn.useWatch=s2;zn.Provider=c2;zn.create=()=>{};var L7={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"},H7=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:L7}))},TI=d.forwardRef(H7);const V7=e=>{const{getPrefixCls:t,direction:n}=sn(At),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l,c]=rI(a),u=ae(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),f=sn(lr),m=tn(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(lr.Provider,{value:m},e.children)))},W7=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},q7=cn(["Input","OTP"],e=>{const t=Wt(e,Ns(e));return[W7(t)]},Ms);var K7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const U7=d.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=K7(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=h=>{r(i,h.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{_t(()=>{var h;const p=(h=u.current)===null||h===void 0?void 0:h.input;document.activeElement===p&&p&&p.select()})},m=h=>{const{key:p,ctrlKey:g,metaKey:b}=h;p==="ArrowLeft"?o(i-1):p==="ArrowRight"?o(i+1):p==="z"&&(g||b)&&h.preventDefault(),f()},v=h=>{h.key==="Backspace"&&!n&&o(i-1),f()};return d.createElement(wf,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:m,onKeyUp:v,onMouseDown:f,onMouseUp:f}))});var X7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Zc(e){return(e||"").split("")}const G7=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?d.createElement("span",{className:`${n}-separator`},o):null},Y7=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:m,autoFocus:v,mask:h,type:p,onInput:g,inputMode:b}=e,y=X7(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:w}=d.useContext(At),C=x("otp",n),S=wr(y,{aria:!0,data:!0,attr:!0}),[E,k,O]=q7(C),$=Ur(D=>o??D),N=d.useContext(lr),_=ya(N.status,m),j=d.useMemo(()=>Object.assign(Object.assign({},N),{status:_,hasFeedback:!1,feedbackIcon:null}),[N,_]),F=d.useRef(null),A=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var D;(D=A.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let L=0;L<r;L+=1)(D=A.current[L])===null||D===void 0||D.blur()},nativeElement:F.current}));const I=D=>l?l(D):D,[P,M]=d.useState(()=>Zc(I(i||"")));d.useEffect(()=>{a!==void 0&&M(Zc(a))},[a]);const z=Gt(D=>{M(D),g&&g(D),s&&D.length===r&&D.every(L=>L)&&D.some((L,V)=>P[V]!==L)&&s(D.join(""))}),B=Gt((D,L)=>{let V=Ae(P);for(let K=0;K<D;K+=1)V[K]||(V[K]="");L.length<=1?V[D]=L:V=V.slice(0,D).concat(Zc(L)),V=V.slice(0,r);for(let K=V.length-1;K>=0&&!V[K];K-=1)V.pop();const q=I(V.map(K=>K||" ").join(""));return V=Zc(q).map((K,Q)=>K===" "&&!V[Q]?V[Q]:K),V}),H=(D,L)=>{var V;const q=B(D,L),K=Math.min(D+L.length,r-1);K!==D&&q[D]!==void 0&&((V=A.current[K])===null||V===void 0||V.focus()),z(q)},T=D=>{var L;(L=A.current[D])===null||L===void 0||L.focus()},R={variant:u,disabled:f,status:_,mask:h,type:p,inputMode:b};return E(d.createElement("div",Object.assign({},S,{ref:F,className:ae(C,{[`${C}-sm`]:$==="small",[`${C}-lg`]:$==="large",[`${C}-rtl`]:w==="rtl"},O,k)}),d.createElement(lr.Provider,{value:j},Array.from({length:r}).map((D,L)=>{const V=`otp-${L}`,q=P[L]||"";return d.createElement(d.Fragment,{key:V},d.createElement(U7,Object.assign({ref:K=>{A.current[L]=K},index:L,size:$,htmlSize:1,className:`${C}-input`,onChange:H,value:q,onActiveChange:T,autoFocus:L===0&&v},R)),L<r-1&&d.createElement(G7,{separator:c,index:L,prefixCls:C}))}))))});var Z7={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"},Q7=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:Z7}))},J7=d.forwardRef(Q7),eV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tV=e=>e?d.createElement(TI,null):d.createElement(J7,null),nV={click:"onClick",hover:"onMouseOver"},rV=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=tV}=e,a=d.useContext(vr),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=Et(()=>l?o.visible:!1),f=Ye(null);d.useEffect(()=>{l&&u(o.visible)},[l,o]);const m=hI(f),v=()=>{var $;if(s)return;c&&m();const N=!c;u(N),typeof o=="object"&&(($=o.onVisibleChange)===null||$===void 0||$.call(o,N))},h=$=>{const N=nV[r]||"",_=i(c),j={[N]:v,className:`${$}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return d.cloneElement(d.isValidElement(_)?_:d.createElement("span",null,_),j)},{className:p,prefixCls:g,inputPrefixCls:b,size:y}=e,x=eV(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(At),C=w("input",b),S=w("input-password",g),E=o&&h(S),k=ae(S,p,{[`${S}-${y}`]:!!y}),O=Object.assign(Object.assign({},Vn(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:C,suffix:E});return y&&(O.size=y),d.createElement(wf,Object.assign({ref:Mr(t,f)},O))});var oV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iV=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:h}=e,p=oV(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=d.useContext(At),y=d.useRef(!1),x=g("input-search",n),w=g("input",r),{compactSize:C}=si(x,b),S=Ur(H=>{var T;return(T=i??C)!==null&&T!==void 0?T:H}),E=d.useRef(null),k=H=>{H!=null&&H.target&&H.type==="click"&&f&&f(H.target.value,H,{source:"clear"}),m==null||m(H)},O=H=>{var T;document.activeElement===((T=E.current)===null||T===void 0?void 0:T.input)&&H.preventDefault()},$=H=>{var T,R;f&&f((R=(T=E.current)===null||T===void 0?void 0:T.input)===null||R===void 0?void 0:R.value,H,{source:"input"})},N=H=>{y.current||c||$(H)},_=typeof s=="boolean"?d.createElement(R2,null):null,j=`${x}-button`;let F;const A=s||{},I=A.type&&A.type.__ANT_BUTTON===!0;I||A.type==="button"?F=sr(A,Object.assign({onMouseDown:O,onClick:H=>{var T,R;(R=(T=A==null?void 0:A.props)===null||T===void 0?void 0:T.onClick)===null||R===void 0||R.call(T,H),$(H)},key:"enterButton"},I?{className:j,size:S}:{})):F=d.createElement(Wo,{className:j,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:O,onClick:$,loading:c,icon:_},s),l&&(F=[F,sr(l,{key:"addonAfter"})]);const P=ae(x,{[`${x}-rtl`]:b==="rtl",[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!s},o),M=Object.assign(Object.assign({},p),{className:P,prefixCls:w,type:"search"}),z=H=>{y.current=!0,v==null||v(H)},B=H=>{y.current=!1,h==null||h(H)};return d.createElement(wf,Object.assign({ref:Mr(E,t),onPressEnter:N},M,{size:S,onCompositionStart:z,onCompositionEnd:B,addonAfter:F,suffix:a,onChange:k,disabled:u}))});var aV=`
483
- min-height:0 !important;
484
- max-height:none !important;
485
- height:0 !important;
486
- visibility:hidden !important;
487
- overflow:hidden !important;
488
- position:absolute !important;
489
- z-index:-1000 !important;
490
- top:0 !important;
491
- right:0 !important;
492
- pointer-events: none !important;
493
- `,sV=["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"],Ap={},Ar;function lV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ap[n])return Ap[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=sV.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Ap[n]=l),l}function cV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ar||(Ar=document.createElement("textarea"),Ar.setAttribute("tab-index","-1"),Ar.setAttribute("aria-hidden","true"),Ar.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ar)),e.getAttribute("wrap")?Ar.setAttribute("wrap",e.getAttribute("wrap")):Ar.removeAttribute("wrap");var o=lV(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Ar.setAttribute("style","".concat(l,";").concat(aV)),Ar.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,m=Ar.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){Ar.value=" ";var v=Ar.scrollHeight-i;n!==null&&(c=v*n,s==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(u=v*r,s==="border-box"&&(u=u+i+a),f=m>u?"":"hidden",m=Math.min(u,m))}var h={height:m,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var uV=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rp=0,Tp=1,Dp=2,dV=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=$t(n,uV),v=mn(o,{value:i,postState:function(R){return R??""}}),h=te(v,2),p=h[0],g=h[1],b=function(R){g(R.target.value),f==null||f(R)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var x=d.useMemo(function(){return a&&dt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=te(x,2),C=w[0],S=w[1],E=!!a,k=function(){try{if(document.activeElement===y.current){var R=y.current,D=R.selectionStart,L=R.selectionEnd,V=R.scrollTop;y.current.setSelectionRange(D,L),y.current.scrollTop=V}}catch{}},O=d.useState(Dp),$=te(O,2),N=$[0],_=$[1],j=d.useState(),F=te(j,2),A=F[0],I=F[1],P=function(){_(Rp)};Xt(function(){E&&P()},[i,C,S,E]),Xt(function(){if(N===Rp)_(Tp);else if(N===Tp){var R=cV(y.current,!1,C,S);_(Dp),I(R)}else k()},[N]);var M=d.useRef(),z=function(){_t.cancel(M.current)},B=function(R){N===Dp&&(s==null||s(R),a&&(z(),M.current=_t(function(){P()})))};d.useEffect(function(){return z},[]);var H=E?A:null,T=G(G({},c),H);return(N===Rp||N===Tp)&&(T.overflowY="hidden",T.overflowX="hidden"),d.createElement(Uo,{onResize:B,disabled:!(a||s)},d.createElement("textarea",Me({},m,{ref:y,style:T,className:ae(r,l,W({},"".concat(r,"-disabled"),u)),disabled:u,value:p,onChange:b})))}),fV=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],pV=se.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,p=e.showCount,g=e.count,b=e.className,y=e.style,x=e.disabled,w=e.hidden,C=e.classNames,S=e.styles,E=e.onResize,k=e.onClear,O=e.onPressEnter,$=e.readOnly,N=e.autoSize,_=e.onKeyDown,j=$t(e,fV),F=mn(r,{value:o,defaultValue:r}),A=te(F,2),I=A[0],P=A[1],M=I==null?"":String(I),z=se.useState(!1),B=te(z,2),H=B[0],T=B[1],R=se.useRef(!1),D=se.useState(null),L=te(D,2),V=L[0],q=L[1],K=Ye(null),Q=Ye(null),U=function(){var $e;return($e=Q.current)===null||$e===void 0?void 0:$e.textArea},J=function(){U().focus()};Ri(t,function(){var $e;return{resizableTextArea:Q.current,focus:J,blur:function(){U().blur()},nativeElement:(($e=K.current)===null||$e===void 0?void 0:$e.nativeElement)||U()}}),St(function(){T(function($e){return!x&&$e})},[x]);var Y=se.useState(null),X=te(Y,2),re=X[0],le=X[1];se.useEffect(function(){if(re){var $e;($e=U()).setSelectionRange.apply($e,Ae(re))}},[re]);var oe=pI(g,p),de=(n=oe.max)!==null&&n!==void 0?n:c,he=Number(de)>0,ke=oe.strategy(M),Oe=!!de&&ke>de,pe=function($e,fe){var ye=fe;!R.current&&oe.exceedFormatter&&oe.max&&oe.strategy(fe)>oe.max&&(ye=oe.exceedFormatter(fe,{max:oe.max}),fe!==ye&&le([U().selectionStart||0,U().selectionEnd||0])),P(ye),ad($e.currentTarget,$e,s,ye)},we=function($e){R.current=!0,u==null||u($e)},ne=function($e){R.current=!1,pe($e,$e.currentTarget.value),f==null||f($e)},xe=function($e){pe($e,$e.target.value)},Pe=function($e){$e.key==="Enter"&&O&&O($e),_==null||_($e)},ue=function($e){T(!0),i==null||i($e)},Re=function($e){T(!1),a==null||a($e)},Te=function($e){P(""),J(),ad(U(),$e,s)},De=m,be;oe.show&&(oe.showFormatter?be=oe.showFormatter({value:M,count:ke,maxLength:de}):be="".concat(ke).concat(he?" / ".concat(de):""),De=se.createElement(se.Fragment,null,De,se.createElement("span",{className:ae("".concat(h,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},be)));var Ie=function($e){var fe;E==null||E($e),(fe=U())!==null&&fe!==void 0&&fe.style.height&&q(!0)},Ne=!N&&!p&&!l;return se.createElement(H0,{ref:K,value:M,allowClear:l,handleReset:Te,suffix:De,prefixCls:h,classNames:G(G({},C),{},{affixWrapper:ae(C==null?void 0:C.affixWrapper,W(W({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:H,className:ae(b,Oe&&"".concat(h,"-out-of-range")),style:G(G({},y),V&&!Ne?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof be=="string"?be:void 0}},hidden:w,readOnly:$,onClear:k},se.createElement(dV,Me({},j,{autoSize:N,maxLength:c,onKeyDown:Pe,onChange:xe,onFocus:ue,onBlur:Re,onCompositionStart:we,onCompositionEnd:ne,className:ae(C==null?void 0:C.textarea),style:G(G({},S==null?void 0:S.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:h,onResize:Ie,ref:Q,readOnly:$})))});const mV=e=>{const{componentCls:t,paddingLG:n}=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}`]:{height:"100%"},[`${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"}},[`
494
- &-allow-clear > ${t},
495
- &-affix-wrapper${r}-has-feedback ${t}
496
- `]:{paddingInlineEnd:n},[`&-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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},gV=cn(["Input","TextArea"],e=>{const t=Wt(e,Ns(e));return[mV(t)]},Ms,{resetFont:!1});var hV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vV=Nr((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:m,styles:v,variant:h,showCount:p,onMouseDown:g,onResize:b}=e,y=hV(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:w,allowClear:C,autoComplete:S,className:E,style:k,classNames:O,styles:$}=Mo("textArea"),N=d.useContext(vr),_=a??N,{status:j,hasFeedback:F,feedbackIcon:A}=d.useContext(lr),I=ya(j,s),P=d.useRef(null);d.useImperativeHandle(t,()=>{var oe;return{resizableTextArea:(oe=P.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:de=>{var he,ke;L0((ke=(he=P.current)===null||he===void 0?void 0:he.resizableTextArea)===null||ke===void 0?void 0:ke.textArea,de)},blur:()=>{var de;return(de=P.current)===null||de===void 0?void 0:de.blur()}}});const M=x("input",r),z=Cr(M),[B,H,T]=nI(M,u),[R]=gV(M,z),{compactSize:D,compactItemClassnames:L}=si(M,w),V=Ur(oe=>{var de;return(de=i??D)!==null&&de!==void 0?de:oe}),[q,K]=ks("textArea",h,o),Q=gI(l??C),[U,J]=d.useState(!1),[Y,X]=d.useState(!1),re=oe=>{J(!0),g==null||g(oe);const de=()=>{J(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},le=oe=>{var de,he;if(b==null||b(oe),U&&typeof getComputedStyle=="function"){const ke=(he=(de=P.current)===null||de===void 0?void 0:de.nativeElement)===null||he===void 0?void 0:he.querySelector("textarea");ke&&getComputedStyle(ke).resize==="both"&&X(!0)}};return B(R(d.createElement(pV,Object.assign({autoComplete:S},y,{style:Object.assign(Object.assign({},k),m),styles:Object.assign(Object.assign({},$),v),disabled:_,allowClear:Q,className:ae(T,z,f,u,L,E,Y&&`${M}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:ae({[`${M}-sm`]:V==="small",[`${M}-lg`]:V==="large"},H,c==null?void 0:c.textarea,O.textarea,U&&`${M}-mouse-active`),variant:ae({[`${M}-${q}`]:K},ji(M,I)),affixWrapper:ae(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:w==="rtl",[`${M}-affix-wrapper-sm`]:V==="small",[`${M}-affix-wrapper-lg`]:V==="large",[`${M}-textarea-show-count`]:p||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:M,suffix:F&&d.createElement("span",{className:`${M}-textarea-suffix`},A),showCount:p,ref:P,onResize:le,onMouseDown:re}))))}),Ai=wf;Ai.Group=V7;Ai.Search=iV;Ai.TextArea=vV;Ai.Password=rV;Ai.OTP=Y7;let Do=null,Zi=e=>e(),Hl=[],Vl={};function Tw(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Vl,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const bV=se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=sn(At),i=Vl.prefixCls||o("message"),a=sn(Y3),[s,l]=V$(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return se.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),yV=se.forwardRef((e,t)=>{const[n,r]=se.useState(Tw),o=()=>{r(Tw)};se.useEffect(o,[]);const i=x4(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=se.createElement(bV,{ref:t,sync:o,messageConfig:n});return se.createElement(Bi,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function Cf(){if(!Do){const e=document.createDocumentFragment(),t={fragment:e};Do=t,Zi(()=>{W$()(se.createElement(yV,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Cf())})}}),e)});return}Do.instance&&(Hl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Zi(()=>{const r=Do.instance.open(Object.assign(Object.assign({},Vl),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Zi(()=>{Do==null||Do.instance.destroy(e.key)});break;default:Zi(()=>{var r;const o=(r=Do.instance)[t].apply(r,Ae(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Hl=[])}function xV(e){Vl=Object.assign(Object.assign({},Vl),e),Zi(()=>{var t;(t=Do==null?void 0:Do.sync)===null||t===void 0||t.call(Do)})}function wV(e){const t=n0(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Hl.push(o),()=>{r?Zi(()=>{r()}):o.skipped=!0}});return Cf(),t}function CV(e,t){const n=n0(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Hl.push(i),()=>{o?Zi(()=>{o()}):i.skipped=!0}});return Cf(),n}const SV=e=>{Hl.push({type:"destroy",key:e}),Cf()},kV=["success","info","warning","error","loading"],EV={open:wV,destroy:SV,config:xV,useMessage:k6,_InternalPanelDoNotUseOrYouWillBeFired:h6},xl=EV;kV.forEach(e=>{xl[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return CV(e,n)}});const $V=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},OV=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},DI=cn("Popconfirm",e=>$V(e),OV,{resetStyle:!1});var IV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _I=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=d.createElement(zd,null),showCancel:u=!0,close:f,onConfirm:m,onCancel:v,onPopupClick:h}=e,{getPrefixCls:p}=d.useContext(At),[g]=_i("Popconfirm",ni.Popconfirm),b=us(o),y=us(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:h},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},b&&d.createElement("div",{className:`${t}-title`},b),y&&d.createElement("div",{className:`${t}-description`},y))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Wo,Object.assign({onClick:v,size:"small"},r),a||(g==null?void 0:g.cancelText)),d.createElement(gT,{buttonProps:Object.assign(Object.assign({size:"small"},X$(l)),n),actionFn:m,close:f,prefixCls:p("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(g==null?void 0:g.okText))))},NV=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=IV(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=d.useContext(At),s=a("popconfirm",t),[l]=DI(s);return l(d.createElement(K2,{placement:n,className:ae(s,r),style:o,content:d.createElement(_I,Object.assign({prefixCls:s},i))}))};var MV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PV=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:s="primary",icon:l=d.createElement(zd,null),children:c,overlayClassName:u,onOpenChange:f,onVisibleChange:m,overlayStyle:v,styles:h,classNames:p}=e,g=MV(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:y,style:x,classNames:w,styles:C}=Mo("popconfirm"),[S,E]=mn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=(P,M)=>{E(P,!0),m==null||m(P),f==null||f(P,M)},O=P=>{k(!1,P)},$=P=>{var M;return(M=e.onConfirm)===null||M===void 0?void 0:M.call(void 0,P)},N=P=>{var M;k(!1,P),(M=e.onCancel)===null||M===void 0||M.call(void 0,P)},_=(P,M)=>{const{disabled:z=!1}=e;z||k(P,M)},j=b("popconfirm",o),F=ae(j,y,u,w.root,p==null?void 0:p.root),A=ae(w.body,p==null?void 0:p.body),[I]=DI(j);return I(d.createElement(U2,Object.assign({},Vn(g,["title"]),{trigger:a,placement:i,onOpenChange:_,open:S,ref:t,classNames:{root:F,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),x),v),h==null?void 0:h.root),body:Object.assign(Object.assign({},C.body),h==null?void 0:h.body)},content:d.createElement(_I,Object.assign({okType:s,icon:l},e,{prefixCls:j,close:O,onConfirm:$,onCancel:N})),"data-popover-inject":!0}),c))}),FV=PV;FV._InternalPanelDoNotUseOrYouWillBeFired=NV;var jV={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},AV=function(){var e=Ye([]),t=Ye(null);return St(function(){var n=Date.now(),r=!1;e.current.forEach(function(o){if(o){r=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(i.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current},Dw=0,RV=hr();function TV(){var e;return RV?(e=Dw,Dw+=1):e="TEST_OR_SSR",e}const DV=function(e){var t=d.useState(),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_progress_".concat(TV()))},[]),e||r};var _w=function(e){var t=e.bg,n=e.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function Bw(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var _V=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,m=r&&dt(r)==="object",v=m?"#FFF":void 0,h=u/2,p=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:v,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!m)return p;var g="".concat(o,"-conic"),b=f?"".concat(180+f/2,"deg"):"0deg",y=Bw(r,(360-f)/360),x=Bw(r,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),C="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:g},p),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(g,")")},d.createElement(_w,{bg:C},d.createElement(_w,{bg:w}))))}),ll=100,_p=function(e,t,n,r,o,i,a,s,l,c){var u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-i)/360),m=i===0?0:{bottom:0,top:180,left:90,right:-90}[a],v=(100-r)/100*t;l==="round"&&r!==100&&(v+=c/2,v>=t&&(v=t-.01));var h=ll/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:v+u,transform:"rotate(".concat(o+f+m,"deg)"),transformOrigin:"".concat(h,"px ").concat(h,"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}},BV=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function zw(e){var t=e??[];return Array.isArray(t)?t:[t]}var zV=function(e){var t=G(G({},jV),e),n=t.id,r=t.prefixCls,o=t.steps,i=t.strokeWidth,a=t.trailWidth,s=t.gapDegree,l=s===void 0?0:s,c=t.gapPosition,u=t.trailColor,f=t.strokeLinecap,m=t.style,v=t.className,h=t.strokeColor,p=t.percent,g=$t(t,BV),b=ll/2,y=DV(n),x="".concat(y,"-gradient"),w=b-i/2,C=Math.PI*2*w,S=l>0?90+l/2:-90,E=C*((360-l)/360),k=dt(o)==="object"?o:{count:o,gap:2},O=k.count,$=k.gap,N=zw(p),_=zw(h),j=_.find(function(B){return B&&dt(B)==="object"}),F=j&&dt(j)==="object",A=F?"butt":f,I=_p(C,E,0,100,S,l,c,u,A,i),P=AV(),M=function(){var B=0;return N.map(function(H,T){var R=_[T]||_[_.length-1],D=_p(C,E,B,H,S,l,c,R,A,i);return B+=H,d.createElement(_V,{key:T,color:R,ptg:H,radius:w,prefixCls:r,gradientId:x,style:D,strokeLinecap:A,strokeWidth:i,gapDegree:l,ref:function(L){P[T]=L},size:ll})}).reverse()},z=function(){var B=Math.round(O*(N[0]/100)),H=100/O,T=0;return new Array(O).fill(null).map(function(R,D){var L=D<=B-1?_[0]:u,V=L&&dt(L)==="object"?"url(#".concat(x,")"):void 0,q=_p(C,E,T,H,S,l,c,L,"butt",i,$);return T+=(E-q.strokeDashoffset+$)*100/E,d.createElement("circle",{key:D,className:"".concat(r,"-circle-path"),r:w,cx:b,cy:b,stroke:V,strokeWidth:i,opacity:1,style:q,ref:function(K){P[D]=K}})})};return d.createElement("svg",Me({className:ae("".concat(r,"-circle"),v),viewBox:"0 0 ".concat(ll," ").concat(ll),style:m,id:n,role:"presentation"},g),!O&&d.createElement("circle",{className:"".concat(r,"-circle-trail"),r:w,cx:b,cy:b,stroke:u,strokeLinecap:A,strokeWidth:a||i,style:I}),O?z():M())};function Ii(e){return!e||e<0?0:e>100?100:e}function ld(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const LV=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Ii(ld({success:n,successPercent:r}));return[o,Ii(Ii(t)-o)]},HV=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ga.green,n||null]},Sf=(e,t,n)=>{var r,o,i,a;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},VV=3,WV=e=>VV/e*100,qV=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[m,v]=Sf(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(WV(m),6));const p={width:m,height:v,fontSize:m*.15+6},g=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=LV(e),y=o||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=HV({success:c,strokeColor:e.strokeColor}),C=ae(`${t}-inner`,{[`${t}-circle-gradient`]:x}),S=d.createElement(zV,{steps:f,percent:f?b[1]:b,strokeWidth:h,trailWidth:h,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:y}),E=m<=20,k=d.createElement("div",{className:C,style:p},S,!E&&l);return E?d.createElement(zi,{title:l},k):k},cd="--progress-line-stroke-color",BI="--progress-percent",Lw=e=>{const t=e?"100%":"-100%";return new Vt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},un(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${cd})`]},height:"100%",width:`calc(1 / var(${BI}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ie(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Lw(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Lw(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},UV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{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%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},XV=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},GV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},YV=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),ZV=cn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Wt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KV(n),UV(n),XV(n),GV(n)]},YV);var QV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JV=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},eW=(e,t)=>{const{from:n=Ga.blue,to:r=Ga.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=QV(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=JV(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[cd]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[cd]:a}},tW=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:m,type:v}=u,h=a&&typeof a!="string"?eW(a,n):{[cd]:a,background:a},p=s==="square"||s==="butt"?0:void 0,g=o??[-1,i||(o==="small"?6:8)],[b,y]=Sf(g,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:p},w=Object.assign(Object.assign({width:`${Ii(r)}%`,height:y,borderRadius:p},h),{[BI]:Ii(r)/100}),C=ld(e),S={width:`${Ii(C)}%`,height:y,borderRadius:p,backgroundColor:f==null?void 0:f.strokeColor},E={width:b<0?"100%":b},k=d.createElement("div",{className:`${t}-inner`,style:x},d.createElement("div",{className:ae(`${t}-bg`,`${t}-bg-${v}`),style:w},v==="inner"&&l),C!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:S})),O=v==="outer"&&m==="start",$=v==="outer"&&m==="end";return v==="outer"&&m==="center"?d.createElement("div",{className:`${t}-layout-bottom`},k,l):d.createElement("div",{className:`${t}-outer`,style:E},O&&l,k,$&&l)},nW=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=r(n*(o/100)),f=t??[t==="small"?2:14,i],[m,v]=Sf(f,"step",{steps:n,strokeWidth:i}),h=m/n,p=Array.from({length:n});for(let g=0;g<n;g++){const b=Array.isArray(a)?a[g]:a;p[g]=d.createElement("div",{key:g,className:ae(`${l}-steps-item`,{[`${l}-steps-item-active`]:g<=u-1}),style:{backgroundColor:g<=u-1?b:s,width:h,height:v}})}return d.createElement("div",{className:`${l}-steps-outer`},p,c)};var rW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oW=["normal","exception","active","success"],iW=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:m,style:v,percentPosition:h={}}=e,p=rW(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:b="outer"}=h,y=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,w=d.useMemo(()=>{if(y){const z=typeof y=="string"?y:Object.values(y)[0];return new Zt(z).isLight()}return!1},[a]),C=d.useMemo(()=>{var z,B;const H=ld(e);return parseInt(H!==void 0?(z=H??0)===null||z===void 0?void 0:z.toString():(B=s??0)===null||B===void 0?void 0:B.toString(),10)},[s,e.success,e.successPercent]),S=d.useMemo(()=>!oW.includes(f)&&C>=100?"success":f||"normal",[f,C]),{getPrefixCls:E,direction:k,progress:O}=d.useContext(At),$=E("progress",n),[N,_,j]=ZV($),F=u==="line",A=F&&!i,I=d.useMemo(()=>{if(!c)return null;const z=ld(e);let B;const H=m||(R=>`${R}%`),T=F&&w&&b==="inner";return b==="inner"||m||S!=="exception"&&S!=="success"?B=H(Ii(s),Ii(z)):S==="exception"?B=F?d.createElement(cc,null):d.createElement(Bd,null):S==="success"&&(B=F?d.createElement(e0,null):d.createElement(j2,null)),d.createElement("span",{className:ae(`${$}-text`,{[`${$}-text-bright`]:T,[`${$}-text-${g}`]:A,[`${$}-text-${b}`]:A}),title:typeof B=="string"?B:void 0},B)},[c,s,C,S,u,$,m]);let P;u==="line"?P=i?d.createElement(nW,Object.assign({},e,{strokeColor:x,prefixCls:$,steps:typeof i=="object"?i.count:i}),I):d.createElement(tW,Object.assign({},e,{strokeColor:y,prefixCls:$,direction:k,percentPosition:{align:g,type:b}}),I):(u==="circle"||u==="dashboard")&&(P=d.createElement(qV,Object.assign({},e,{strokeColor:y,prefixCls:$,progressStatus:S}),I));const M=ae($,`${$}-status-${S}`,{[`${$}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${$}-inline-circle`]:u==="circle"&&Sf(l,"circle")[0]<=20,[`${$}-line`]:A,[`${$}-line-align-${g}`]:A,[`${$}-line-position-${b}`]:A,[`${$}-steps`]:i,[`${$}-show-info`]:c,[`${$}-${l}`]:typeof l=="string",[`${$}-rtl`]:k==="rtl"},O==null?void 0:O.className,r,o,_,j);return N(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),v),className:M,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},Vn(p,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),P))});var aW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},sW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:aW}))},lW=d.forwardRef(sW),cW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},uW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:cW}))},dW=d.forwardRef(uW),fW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:fW}))},mW=d.forwardRef(pW),gW={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 42h216v494z"}}]},name:"file",theme:"outlined"},hW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:gW}))},zI=d.forwardRef(hW),vW={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},bW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:vW}))},yW=d.forwardRef(bW),xW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},wW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:xW}))},CW=d.forwardRef(wW),SW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},kW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:SW}))},EW=d.forwardRef(kW),$W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},OW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:$W}))},IW=d.forwardRef(OW),NW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},MW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:NW}))},PW=d.forwardRef(MW),FW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},jW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:FW}))},AW=d.forwardRef(jW),RW={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},TW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:RW}))},DW=d.forwardRef(TW),_W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},BW=function(e,t){return d.createElement(ln,Me({},e,{ref:t,icon:_W}))},zW=d.forwardRef(BW),LW=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],LI=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,v=e.onChange,h=e.onKeyDown,p=$t(e,LW),g=mn(!1,{value:a,defaultValue:s}),b=te(g,2),y=b[0],x=b[1];function w(k,O){var $=y;return l||($=k,x($),v==null||v($,O)),$}function C(k){k.which===st.LEFT?w(!1,k):k.which===st.RIGHT&&w(!0,k),h==null||h(k)}function S(k){var O=w(!y,k);m==null||m(O,k)}var E=ae(o,i,(n={},W(n,"".concat(o,"-checked"),y),W(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Me({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:E,ref:t,onKeyDown:C,onClick:S}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});LI.displayName="Switch";const HW=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=ie(l(s).add(l(r).mul(2)).equal()),f=ie(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:ie(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},VW=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},WW=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ie(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},qW=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=ie(s(a).add(s(r).mul(2)).equal()),u=ie(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},KW=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ie(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Rl(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},UW=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=2,l=i-s*2,c=a-s*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Zt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},XW=cn("Switch",e=>{const t=Wt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[KW(t),qW(t),WW(t),VW(t),HW(t)]},UW);var GW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YW=d.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:m,onChange:v}=e,h=GW(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,g]=mn(!1,{value:c??u,defaultValue:f??m}),{getPrefixCls:b,direction:y,switch:x}=d.useContext(At),w=d.useContext(vr),C=(o??w)||i,S=b("switch",n),E=d.createElement("div",{className:`${S}-handle`},i&&d.createElement(Mi,{className:`${S}-loading-icon`})),[k,O,$]=XW(S),N=Ur(r),_=ae(x==null?void 0:x.className,{[`${S}-small`]:N==="small",[`${S}-loading`]:i,[`${S}-rtl`]:y==="rtl"},a,s,O,$),j=Object.assign(Object.assign({},x==null?void 0:x.style),l),F=function(){g(arguments.length<=0?void 0:arguments[0]),v==null||v.apply(void 0,arguments)};return k(d.createElement(Hd,{component:"Switch"},d.createElement(LI,Object.assign({},h,{checked:p,onChange:F,prefixCls:S,className:_,style:j,disabled:C,ref:t,loadingIcon:E}))))}),HI=YW;HI.__ANT_SWITCH=!0;var q0=d.createContext(null),ZW=d.createContext({}),QW=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,i="".concat(t,"-indent-unit"),a=[],s=0;s<n;s+=1)a.push(d.createElement("span",{key:s,className:ae(i,W(W({},"".concat(i,"-start"),r[s]),"".concat(i,"-end"),o[s]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)};const JW=d.memo(QW);var eq=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Hw="open",Vw="close",tq="---",Wl=function(e){var t,n,r,o=e.eventKey,i=e.className,a=e.style,s=e.dragOver,l=e.dragOverGapTop,c=e.dragOverGapBottom,u=e.isLeaf,f=e.isStart,m=e.isEnd,v=e.expanded,h=e.selected,p=e.checked,g=e.halfChecked,b=e.loading,y=e.domRef,x=e.active,w=e.data,C=e.onMouseMove,S=e.selectable,E=$t(e,eq),k=se.useContext(q0),O=se.useContext(ZW),$=se.useRef(null),N=se.useState(!1),_=te(N,2),j=_[0],F=_[1],A=!!(k.disabled||e.disabled||(t=O.nodeDisabled)!==null&&t!==void 0&&t.call(O,w)),I=se.useMemo(function(){return!k.checkable||e.checkable===!1?!1:k.checkable},[k.checkable,e.checkable]),P=function(be){A||k.onNodeSelect(be,qn(e))},M=function(be){A||!I||e.disableCheckbox||k.onNodeCheck(be,qn(e),!p)},z=se.useMemo(function(){return typeof S=="boolean"?S:k.selectable},[S,k.selectable]),B=function(be){k.onNodeClick(be,qn(e)),z?P(be):M(be)},H=function(be){k.onNodeDoubleClick(be,qn(e))},T=function(be){k.onNodeMouseEnter(be,qn(e))},R=function(be){k.onNodeMouseLeave(be,qn(e))},D=function(be){k.onNodeContextMenu(be,qn(e))},L=se.useMemo(function(){return!!(k.draggable&&(!k.draggable.nodeDraggable||k.draggable.nodeDraggable(w)))},[k.draggable,w]),V=function(be){be.stopPropagation(),F(!0),k.onNodeDragStart(be,e);try{be.dataTransfer.setData("text/plain","")}catch{}},q=function(be){be.preventDefault(),be.stopPropagation(),k.onNodeDragEnter(be,e)},K=function(be){be.preventDefault(),be.stopPropagation(),k.onNodeDragOver(be,e)},Q=function(be){be.stopPropagation(),k.onNodeDragLeave(be,e)},U=function(be){be.stopPropagation(),F(!1),k.onNodeDragEnd(be,e)},J=function(be){be.preventDefault(),be.stopPropagation(),F(!1),k.onNodeDrop(be,e)},Y=function(be){b||k.onNodeExpand(be,qn(e))},X=se.useMemo(function(){var be=Or(k.keyEntities,o)||{},Ie=be.children;return!!(Ie||[]).length},[k.keyEntities,o]),re=se.useMemo(function(){return u===!1?!1:u||!k.loadData&&!X||k.loadData&&e.loaded&&!X},[u,k.loadData,X,e.loaded]);se.useEffect(function(){b||typeof k.loadData=="function"&&v&&!re&&!e.loaded&&k.onNodeLoad(qn(e))},[b,k.loadData,k.onNodeLoad,v,re,e]);var le=se.useMemo(function(){var be;return(be=k.draggable)!==null&&be!==void 0&&be.icon?se.createElement("span",{className:"".concat(k.prefixCls,"-draggable-icon")},k.draggable.icon):null},[k.draggable]),oe=function(be){var Ie=e.switcherIcon||k.switcherIcon;return typeof Ie=="function"?Ie(G(G({},e),{},{isLeaf:be})):Ie},de=function(){if(re){var be=oe(!0);return be!==!1?se.createElement("span",{className:ae("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher-noop"))},be):null}var Ie=oe(!1);return Ie!==!1?se.createElement("span",{onClick:Y,className:ae("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher_").concat(v?Hw:Vw))},Ie):null},he=se.useMemo(function(){if(!I)return null;var be=typeof I!="boolean"?I:null;return se.createElement("span",{className:ae("".concat(k.prefixCls,"-checkbox"),W(W(W({},"".concat(k.prefixCls,"-checkbox-checked"),p),"".concat(k.prefixCls,"-checkbox-indeterminate"),!p&&g),"".concat(k.prefixCls,"-checkbox-disabled"),A||e.disableCheckbox)),onClick:M,role:"checkbox","aria-checked":g?"mixed":p,"aria-disabled":A||e.disableCheckbox,"aria-label":"Select ".concat(typeof e.title=="string"?e.title:"tree node")},be)},[I,p,g,A,e.disableCheckbox,e.title]),ke=se.useMemo(function(){return re?null:v?Hw:Vw},[re,v]),Oe=se.useMemo(function(){return se.createElement("span",{className:ae("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__").concat(ke||"docu"),W({},"".concat(k.prefixCls,"-icon_loading"),b))})},[k.prefixCls,ke,b]),pe=se.useMemo(function(){var be=!!k.draggable,Ie=!e.disabled&&be&&k.dragOverNodeKey===o;return Ie?k.dropIndicatorRender({dropPosition:k.dropPosition,dropLevelOffset:k.dropLevelOffset,indent:k.indent,prefixCls:k.prefixCls,direction:k.direction}):null},[k.dropPosition,k.dropLevelOffset,k.indent,k.prefixCls,k.direction,k.draggable,k.dragOverNodeKey,k.dropIndicatorRender]),we=se.useMemo(function(){var be=e.title,Ie=be===void 0?tq:be,Ne="".concat(k.prefixCls,"-node-content-wrapper"),$e;if(k.showIcon){var fe=e.icon||k.icon;$e=fe?se.createElement("span",{className:ae("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__customize"))},typeof fe=="function"?fe(e):fe):Oe}else k.loadData&&b&&($e=Oe);var ye;return typeof Ie=="function"?ye=Ie(w):k.titleRender?ye=k.titleRender(w):ye=Ie,se.createElement("span",{ref:$,title:typeof Ie=="string"?Ie:"",className:ae(Ne,"".concat(Ne,"-").concat(ke||"normal"),W({},"".concat(k.prefixCls,"-node-selected"),!A&&(h||j))),onMouseEnter:T,onMouseLeave:R,onContextMenu:D,onClick:B,onDoubleClick:H},$e,se.createElement("span",{className:"".concat(k.prefixCls,"-title")},ye),pe)},[k.prefixCls,k.showIcon,e,k.icon,Oe,k.titleRender,w,ke,T,R,D,B,H]),ne=wr(E,{aria:!0,data:!0}),xe=Or(k.keyEntities,o)||{},Pe=xe.level,ue=m[m.length-1],Re=!A&&L,Te=k.draggingNodeKey===o,De=S!==void 0?{"aria-selected":!!S}:void 0;return se.createElement("div",Me({ref:y,role:"treeitem","aria-expanded":u?void 0:v,className:ae(i,"".concat(k.prefixCls,"-treenode"),(r={},W(W(W(W(W(W(W(W(W(W(r,"".concat(k.prefixCls,"-treenode-disabled"),A),"".concat(k.prefixCls,"-treenode-switcher-").concat(v?"open":"close"),!u),"".concat(k.prefixCls,"-treenode-checkbox-checked"),p),"".concat(k.prefixCls,"-treenode-checkbox-indeterminate"),g),"".concat(k.prefixCls,"-treenode-selected"),h),"".concat(k.prefixCls,"-treenode-loading"),b),"".concat(k.prefixCls,"-treenode-active"),x),"".concat(k.prefixCls,"-treenode-leaf-last"),ue),"".concat(k.prefixCls,"-treenode-draggable"),L),"dragging",Te),W(W(W(W(W(W(W(r,"drop-target",k.dropTargetKey===o),"drop-container",k.dropContainerKey===o),"drag-over",!A&&s),"drag-over-gap-top",!A&&l),"drag-over-gap-bottom",!A&&c),"filter-node",(n=k.filterTreeNode)===null||n===void 0?void 0:n.call(k,qn(e))),"".concat(k.prefixCls,"-treenode-leaf"),re))),style:a,draggable:Re,onDragStart:Re?V:void 0,onDragEnter:L?q:void 0,onDragOver:L?K:void 0,onDragLeave:L?Q:void 0,onDrop:L?J:void 0,onDragEnd:L?U:void 0,onMouseMove:C},De,ne),se.createElement(JW,{prefixCls:k.prefixCls,level:Pe,isStart:f,isEnd:m}),le,de(),he,we)};Wl.isTreeNode=1;function Go(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function pi(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function K0(e){return e.split("-")}function nq(e,t){var n=[],r=Or(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,l=a.children;n.push(s),o(l)})}return o(r.children),n}function rq(e){if(e.parent){var t=K0(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function oq(e){var t=K0(e.pos);return Number(t[t.length-1])===0}function Ww(e,t,n,r,o,i,a,s,l,c){var u,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,p=v.height,g=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(g-12)/r,y=l.filter(function(I){var P;return(P=s[I])===null||P===void 0||(P=P.children)===null||P===void 0?void 0:P.length}),x=Or(s,n.eventKey);if(m<h+p/2){var w=a.findIndex(function(I){return I.key===x.key}),C=w<=0?0:w-1,S=a[C].key;x=Or(s,S)}var E=x.key,k=x,O=x.key,$=0,N=0;if(!y.includes(E))for(var _=0;_<b&&rq(x);_+=1)x=x.parent,N+=1;var j=t.data,F=x.node,A=!0;return oq(x)&&x.level===0&&m<h+p/2&&i({dragNode:j,dropNode:F,dropPosition:-1})&&x.key===n.eventKey?$=-1:(k.children||[]).length&&y.includes(O)?i({dragNode:j,dropNode:F,dropPosition:0})?$=0:A=!1:N===0?b>-1.5?i({dragNode:j,dropNode:F,dropPosition:1})?$=1:A=!1:i({dragNode:j,dropNode:F,dropPosition:0})?$=0:i({dragNode:j,dropNode:F,dropPosition:1})?$=1:A=!1:i({dragNode:j,dropNode:F,dropPosition:1})?$=1:A=!1,{dropPosition:$,dropLevelOffset:N,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:O,dropContainerKey:$===0?null:((u=x.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:A}}function qw(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Bp(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(dt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return vn(!1,"`checkedKeys` is not an array or an object"),null;return t}function ih(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=Or(t,o);if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ae(n)}var iq=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return se.createElement("div",{style:o})};function VI(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function aq(e,t){var n=d.useState(!1),r=te(n,2),o=r[0],i=r[1];Xt(function(){if(o)return e(),function(){t()}},[o]),Xt(function(){return i(!0),function(){i(!1)}},[])}var sq=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],lq=d.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=$t(e,sq),m=d.useState(!0),v=te(m,2),h=v[0],p=v[1],g=d.useContext(q0),b=g.prefixCls,y=i&&a!=="hide";Xt(function(){i&&y!==h&&p(y)},[i]);var x=function(){i&&s()},w=d.useRef(!1),C=function(){i&&!w.current&&(w.current=!0,l())};aq(x,C);var S=function(E){y===E&&C()};return i?d.createElement(uo,Me({ref:t,visible:h},o,{motionAppear:a==="show",onVisibleChanged:S}),function(E,k){var O=E.className,$=E.style;return d.createElement("div",{ref:k,className:ae("".concat(b,"-treenode-motion"),O),style:$},i.map(function(N){var _=Object.assign({},(VI(N.data),N.data)),j=N.title,F=N.key,A=N.isStart,I=N.isEnd;delete _.children;var P=bl(F,u);return d.createElement(Wl,Me({},_,P,{title:j,active:c,data:N.data,key:F,isStart:A,isEnd:I}))}))}):d.createElement(Wl,Me({domRef:t,className:n,style:r},f,{active:c}))});function cq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=a.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function Kw(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],i=t.findIndex(function(s){return s.key===n});if(o){var a=t.findIndex(function(s){return s.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var uq=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Uw={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},dq=function(){},pa="RC_TREE_MOTION_".concat(Math.random()),ah={key:pa},WI={key:pa,level:0,index:0,pos:"0",node:ah,nodes:[ah]},Xw={parent:null,children:[],pos:WI.pos,data:ah,title:null,key:pa,isStart:[],isEnd:[]};function Gw(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Yw(e){var t=e.key,n=e.pos;return xc(t,n)}function fq(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var pq=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,h=e.dropPosition,p=e.motion,g=e.height,b=e.itemHeight,y=e.virtual,x=e.scrollWidth,w=e.focusable,C=e.activeItem,S=e.focused,E=e.tabIndex,k=e.onKeyDown,O=e.onFocus,$=e.onBlur,N=e.onActiveChange,_=e.onListChangeStart,j=e.onListChangeEnd,F=$t(e,uq),A=d.useRef(null),I=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(pe){A.current.scrollTo(pe)},getIndentWidth:function(){return I.current.offsetWidth}}});var P=d.useState(o),M=te(P,2),z=M[0],B=M[1],H=d.useState(r),T=te(H,2),R=T[0],D=T[1],L=d.useState(r),V=te(L,2),q=V[0],K=V[1],Q=d.useState([]),U=te(Q,2),J=U[0],Y=U[1],X=d.useState(null),re=te(X,2),le=re[0],oe=re[1],de=d.useRef(r);de.current=r;function he(){var pe=de.current;D(pe),K(pe),Y([]),oe(null),j()}Xt(function(){B(o);var pe=cq(z,o);if(pe.key!==null)if(pe.add){var we=R.findIndex(function(Te){var De=Te.key;return De===pe.key}),ne=Gw(Kw(R,r,pe.key),y,g,b),xe=R.slice();xe.splice(we+1,0,Xw),K(xe),Y(ne),oe("show")}else{var Pe=r.findIndex(function(Te){var De=Te.key;return De===pe.key}),ue=Gw(Kw(r,R,pe.key),y,g,b),Re=r.slice();Re.splice(Pe+1,0,Xw),K(Re),Y(ue),oe("hide")}else R!==r&&(D(r),K(r))},[o,r]),d.useEffect(function(){m||he()},[m]);var ke=p?q:r,Oe={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:v,dropPosition:h,keyEntities:u};return d.createElement(d.Fragment,null,S&&C&&d.createElement("span",{style:Uw,"aria-live":"assertive"},fq(C)),d.createElement("div",null,d.createElement("input",{style:Uw,disabled:w===!1||f,tabIndex:w!==!1?E:null,onKeyDown:k,onFocus:O,onBlur:$,value:"",onChange:dq,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:I,className:"".concat(n,"-indent-unit")}))),d.createElement(h0,Me({},F,{data:ke,itemKey:Yw,height:g,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:A,role:"tree",onVisibleChange:function(pe){pe.every(function(we){return Yw(we)!==pa})&&he()}}),function(pe){var we=pe.pos,ne=Object.assign({},(VI(pe.data),pe.data)),xe=pe.title,Pe=pe.key,ue=pe.isStart,Re=pe.isEnd,Te=xc(Pe,we);delete ne.key,delete ne.children;var De=bl(Te,Oe);return d.createElement(lq,Me({},ne,De,{title:xe,active:!!C&&Pe===C.key,pos:we,data:pe.data,isStart:ue,isEnd:Re,motion:p,motionNodes:Pe===pa?J:null,motionType:le,onMotionStart:_,onMotionEnd:he,treeNodeRequiredProps:Oe,onMouseMove:function(){N(null)}}))}))}),mq=10,U0=(function(e){lo(n,e);var t=co(n);function n(){var r;$n(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),W(rt(r),"destroyed",!1),W(rt(r),"delayedDragEnterLogic",void 0),W(rt(r),"loadingRetryTimes",{}),W(rt(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:ds()}),W(rt(r),"dragStartMousePosition",null),W(rt(r),"dragNodeProps",null),W(rt(r),"currentMouseOverDroppableNodeKey",null),W(rt(r),"listRef",d.createRef()),W(rt(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,f=c.keyEntities,m=r.props.onDragStart,v=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=Go(u,v);r.setState({draggingNodeKey:v,dragChildrenKeys:nq(v,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:qn(l)})}),W(rt(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,f=c.keyEntities,m=c.dragChildrenKeys,v=c.flattenNodes,h=c.indent,p=r.props,g=p.onDragEnter,b=p.onExpand,y=p.allowDrop,x=p.direction,w=l.pos,C=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==C&&(r.currentMouseOverDroppableNodeKey=C),!r.dragNodeProps){r.resetDragState();return}var S=Ww(s,r.dragNodeProps,l,h,r.dragStartMousePosition,y,v,f,u,x),E=S.dropPosition,k=S.dropLevelOffset,O=S.dropTargetKey,$=S.dropContainerKey,N=S.dropTargetPos,_=S.dropAllowed,j=S.dragOverNodeKey;if(m.includes(O)||!_){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(F){clearTimeout(r.delayedDragEnterLogic[F])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[w]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var F=Ae(u),A=Or(f,l.eventKey);A&&(A.children||[]).length&&(F=pi(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(F),b==null||b(F,{node:qn(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===O&&k===0){r.resetDragState();return}r.setState({dragOverNodeKey:j,dropPosition:E,dropLevelOffset:k,dropTargetKey:O,dropContainerKey:$,dropTargetPos:N,dropAllowed:_}),g==null||g({event:s,node:qn(l),expandedKeys:u})}),W(rt(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,f=c.flattenNodes,m=c.keyEntities,v=c.expandedKeys,h=c.indent,p=r.props,g=p.onDragOver,b=p.allowDrop,y=p.direction;if(r.dragNodeProps){var x=Ww(s,r.dragNodeProps,l,h,r.dragStartMousePosition,b,f,m,v,y),w=x.dropPosition,C=x.dropLevelOffset,S=x.dropTargetKey,E=x.dropContainerKey,k=x.dropTargetPos,O=x.dropAllowed,$=x.dragOverNodeKey;u.includes(S)||!O||(r.dragNodeProps.eventKey===S&&C===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():w===r.state.dropPosition&&C===r.state.dropLevelOffset&&S===r.state.dropTargetKey&&E===r.state.dropContainerKey&&k===r.state.dropTargetPos&&O===r.state.dropAllowed&&$===r.state.dragOverNodeKey||r.setState({dropPosition:w,dropLevelOffset:C,dropTargetKey:S,dropContainerKey:E,dropTargetPos:k,dropAllowed:O,dragOverNodeKey:$}),g==null||g({event:s,node:qn(l)}))}}),W(rt(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:s,node:qn(l)})}),W(rt(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),W(rt(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:qn(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),W(rt(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,h=f.dropTargetKey,p=f.dropTargetPos,g=f.dropAllowed;if(g){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var y=G(G({},bl(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:Or(r.state.keyEntities,h).node}),x=m.includes(h);vn(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=K0(p),C={event:s,node:qn(y),dragNode:r.dragNodeProps?qn(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(w[w.length-1])};u||b==null||b(C),r.dragNodeProps=null}}}),W(rt(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),W(rt(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,m=l.expanded,v=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var p=f.filter(function(b){return b.key===v})[0],g=qn(G(G({},bl(v,r.getTreeNodeRequiredProps())),{},{data:p.data}));r.setExpandedKeys(m?Go(u,v):pi(u,v)),r.onNodeExpand(s,g)}}),W(rt(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),W(rt(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),W(rt(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,m=u.fieldNames,v=r.props,h=v.onSelect,p=v.multiple,g=l.selected,b=l[m.key],y=!g;y?p?c=pi(c,b):c=[b]:c=Go(c,b);var x=c.map(function(w){var C=Or(f,w);return C?C.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),h==null||h(c,{event:"select",selected:y,node:l,selectedNodes:x,nativeEvent:s.nativeEvent})}),W(rt(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,m=u.checkedKeys,v=u.halfCheckedKeys,h=r.props,p=h.checkStrictly,g=h.onCheck,b=l.key,y,x={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(p){var w=c?pi(m,b):Go(m,b),C=Go(v,b);y={checked:w,halfChecked:C},x.checkedNodes=w.map(function(N){return Or(f,N)}).filter(Boolean).map(function(N){return N.node}),r.setUncontrolledState({checkedKeys:w})}else{var S=Pp([].concat(Ae(m),[b]),!0,f),E=S.checkedKeys,k=S.halfCheckedKeys;if(!c){var O=new Set(E);O.delete(b);var $=Pp(Array.from(O),{halfCheckedKeys:k},f);E=$.checkedKeys,k=$.halfCheckedKeys}y=E,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=k,E.forEach(function(N){var _=Or(f,N);if(_){var j=_.node,F=_.pos;x.checkedNodes.push(j),x.checkedNodesPositions.push({node:j,pos:F})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:k})}g==null||g(y,x)}),W(rt(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=Or(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var m=new Promise(function(v,h){r.setState(function(p){var g=p.loadedKeys,b=g===void 0?[]:g,y=p.loadingKeys,x=y===void 0?[]:y,w=r.props,C=w.loadData,S=w.onLoad;if(!C||b.includes(c)||x.includes(c))return null;var E=C(s);return E.then(function(){var k=r.state.loadedKeys,O=pi(k,c);S==null||S(O,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:O}),r.setState(function($){return{loadingKeys:Go($.loadingKeys,c)}}),v()}).catch(function(k){if(r.setState(function($){return{loadingKeys:Go($.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=mq){var O=r.state.loadedKeys;vn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:pi(O,c)}),v()}h(k)}),{loadingKeys:pi(x,c)}})});return m.catch(function(){}),m}}),W(rt(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),W(rt(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),W(rt(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),W(rt(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),W(rt(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),W(rt(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,v=s.halfCheckedKeys,h=s.dragOverNodeKey,p=s.dropPosition,g=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:v||[],dragOverNodeKey:h,dropPosition:p,keyEntities:g}}),W(rt(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,f=Mp(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),W(rt(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,f=u.listChanging,m=u.fieldNames,v=r.props,h=v.onExpand,p=v.loadData,g=l.expanded,b=l[m.key];if(!f){var y=c.includes(b),x=!g;if(vn(g&&y||!g&&!y,"Expand state not sync with index check"),c=x?pi(c,b):Go(c,b),r.setExpandedKeys(c),h==null||h(c,{node:l,expanded:x,nativeEvent:s.nativeEvent}),x&&p){var w=r.onNodeLoad(l);w&&w.then(function(){var C=Mp(r.state.treeData,c,m);r.setUncontrolledState({flattenNodes:C})}).catch(function(){var C=r.state.expandedKeys,S=Go(C,b);r.setExpandedKeys(S)})}}}),W(rt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),W(rt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),W(rt(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,f=c.itemScrollOffset,m=f===void 0?0:f;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),u==null||u(s))}),W(rt(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(u){var f=u.key;return f===l})||null}),W(rt(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,f=c.findIndex(function(h){var p=h.key;return p===u});f===-1&&s<0&&(f=c.length),f=(f+s+c.length)%c.length;var m=c[f];if(m){var v=m.key;r.onActiveChange(v)}else r.onActiveChange(null)}),W(rt(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,f=l.checkedKeys,m=l.fieldNames,v=r.props,h=v.onKeyDown,p=v.checkable,g=v.selectable;switch(s.which){case st.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case st.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var b=r.getActiveItem();if(b&&b.data){var y=r.getTreeNodeRequiredProps(),x=b.data.isLeaf===!1||!!(b.data[m.children]||[]).length,w=qn(G(G({},bl(c,y)),{},{data:b.data,active:!0}));switch(s.which){case st.LEFT:{x&&u.includes(c)?r.onNodeExpand({},w):b.parent&&r.onActiveChange(b.parent.key),s.preventDefault();break}case st.RIGHT:{x&&!u.includes(c)?r.onNodeExpand({},w):b.children&&b.children.length&&r.onActiveChange(b.children[0].key),s.preventDefault();break}case st.ENTER:case st.SPACE:{p&&!w.disabled&&w.checkable!==!1&&!w.disableCheckbox?r.onNodeCheck({},w,!f.includes(c)):!p&&g&&!w.disabled&&w.selectable!==!1&&r.onNodeSelect({},w);break}}}h==null||h(s)}),W(rt(r),"setUncontrolledState",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,m={};Object.keys(s).forEach(function(v){if(r.props.hasOwnProperty(v)){f=!1;return}u=!0,m[v]=s[v]}),u&&(!l||f)&&r.setState(G(G({},m),c))}}),W(rt(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return On(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var r=this.props,o=r.activeKey,i=r.itemScrollOffset,a=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var r=this.state,o=r.focused,i=r.flattenNodes,a=r.keyEntities,s=r.draggingNodeKey,l=r.activeKey,c=r.dropLevelOffset,u=r.dropContainerKey,f=r.dropTargetKey,m=r.dropPosition,v=r.dragOverNodeKey,h=r.indent,p=this.props,g=p.prefixCls,b=p.className,y=p.style,x=p.showLine,w=p.focusable,C=p.tabIndex,S=C===void 0?0:C,E=p.selectable,k=p.showIcon,O=p.icon,$=p.switcherIcon,N=p.draggable,_=p.checkable,j=p.checkStrictly,F=p.disabled,A=p.motion,I=p.loadData,P=p.filterTreeNode,M=p.height,z=p.itemHeight,B=p.scrollWidth,H=p.virtual,T=p.titleRender,R=p.dropIndicatorRender,D=p.onContextMenu,L=p.onScroll,V=p.direction,q=p.rootClassName,K=p.rootStyle,Q=wr(this.props,{aria:!0,data:!0}),U;N&&(dt(N)==="object"?U=N:typeof N=="function"?U={nodeDraggable:N}:U={});var J={prefixCls:g,selectable:E,showIcon:k,icon:O,switcherIcon:$,draggable:U,draggingNodeKey:s,checkable:_,checkStrictly:j,disabled:F,keyEntities:a,dropLevelOffset:c,dropContainerKey:u,dropTargetKey:f,dropPosition:m,dragOverNodeKey:v,indent:h,direction:V,dropIndicatorRender:R,loadData:I,filterTreeNode:P,titleRender:T,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(q0.Provider,{value:J},d.createElement("div",{className:ae(g,b,q,W(W(W({},"".concat(g,"-show-line"),x),"".concat(g,"-focused"),o),"".concat(g,"-active-focused"),l!==null)),style:K},d.createElement(pq,Me({ref:this.listRef,prefixCls:g,style:y,data:i,disabled:F,selectable:E,checkable:!!_,motion:A,dragging:s!==null,height:M,itemHeight:z,virtual:H,focusable:w,focused:o,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:D,onScroll:L,scrollWidth:B},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var i=o.prevProps,a={prevProps:r};function s(S){return!i&&r.hasOwnProperty(S)||i&&i[S]!==r[S]}var l,c=o.fieldNames;if(s("fieldNames")&&(c=ds(r.fieldNames),a.fieldNames=c),s("treeData")?l=r.treeData:s("children")&&(vn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),l=aI(r.children)),l){a.treeData=l;var u=sI(l,{fieldNames:c});a.keyEntities=G(W({},pa,WI),u.keyEntities)}var f=a.keyEntities||o.keyEntities;if(s("expandedKeys")||i&&s("autoExpandParent"))a.expandedKeys=r.autoExpandParent||!i&&r.defaultExpandParent?ih(r.expandedKeys,f):r.expandedKeys;else if(!i&&r.defaultExpandAll){var m=G({},f);delete m[pa];var v=[];Object.keys(m).forEach(function(S){var E=m[S];E.children&&E.children.length&&v.push(E.key)}),a.expandedKeys=v}else!i&&r.defaultExpandedKeys&&(a.expandedKeys=r.autoExpandParent||r.defaultExpandParent?ih(r.defaultExpandedKeys,f):r.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,l||a.expandedKeys){var h=Mp(l||o.treeData,a.expandedKeys||o.expandedKeys,c);a.flattenNodes=h}if(r.selectable&&(s("selectedKeys")?a.selectedKeys=qw(r.selectedKeys,r):!i&&r.defaultSelectedKeys&&(a.selectedKeys=qw(r.defaultSelectedKeys,r))),r.checkable){var p;if(s("checkedKeys")?p=Bp(r.checkedKeys)||{}:!i&&r.defaultCheckedKeys?p=Bp(r.defaultCheckedKeys)||{}:l&&(p=Bp(r.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),p){var g=p,b=g.checkedKeys,y=b===void 0?[]:b,x=g.halfCheckedKeys,w=x===void 0?[]:x;if(!r.checkStrictly){var C=Pp(y,!0,f);y=C.checkedKeys,w=C.halfCheckedKeys}a.checkedKeys=y,a.halfCheckedKeys=w}}return s("loadedKeys")&&(a.loadedKeys=r.loadedKeys),a}}]),n})(d.Component);W(U0,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:iq,allowDrop:function(){return!0},expandAction:!1});W(U0,"TreeNode",Wl);const gq=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},hq=new Vt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),vq=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),bq=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ie(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),yq=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},un(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},xs(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:hq,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:ie(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},vq(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},bq(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ie(t.calc(i).div(2).equal())} !important`}})}},xq=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Wt(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[yq(e,a),n&&gq(a)].filter(Boolean)},wq=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Cq=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},wq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Sq=cn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:cI(`${n}-checkbox`,e)},xq(n,e),Wd(e)]},Cq),Zw=4;function kq(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[a]:-n*o+Zw,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+Zw;break}return se.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Eq=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return d.isValidElement(i)?i:d.createElement(Mi,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const m=typeof c=="function"?c(r):c,v=`${t}-switcher-line-custom-icon`;return d.isValidElement(m)?sr(m,{className:ae(m.props.className||"",v)}):m}return c?d.createElement(zI,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?sr(f,{className:ae(f.props.className||"",u)}):f!==void 0?f:o?s?d.createElement(PW,{className:`${t}-switcher-line-icon`}):d.createElement(zW,{className:`${t}-switcher-line-icon`}):d.createElement(lW,{className:u})},qI=se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=se.useContext(At),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:m,blockNode:v=!1,children:h,checkable:p=!1,selectable:g=!0,draggable:b,motion:y,style:x}=e,w=r("tree",s),C=r(),S=y??Object.assign(Object.assign({},Tl(C)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:p,selectable:g,showIcon:c,motion:S,blockNode:v,showLine:!!u,dropIndicatorRender:kq}),[k,O,$]=Sq(w),[,N]=Pr(),_=N.paddingXS/2+(((n=N.Tree)===null||n===void 0?void 0:n.titleHeight)||N.controlHeightSM),j=se.useMemo(()=>{if(!b)return!1;let A={};switch(typeof b){case"function":A.nodeDraggable=b;break;case"object":A=Object.assign({},b);break}return A.icon!==!1&&(A.icon=A.icon||se.createElement(IW,null)),A},[b]),F=A=>se.createElement(Eq,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:A,showLine:u});return k(se.createElement(U0,Object.assign({itemHeight:_,ref:t,virtual:i},E,{style:Object.assign(Object.assign({},a==null?void 0:a.style),x),prefixCls:w,className:ae({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:v,[`${w}-unselectable`]:!g,[`${w}-rtl`]:o==="rtl"},a==null?void 0:a.className,l,O,$),direction:o,checkable:p&&se.createElement("span",{className:`${w}-checkbox-inner`}),selectable:g,switcherIcon:F,draggable:j}),h))}),Qw=0,zp=1,Jw=2;function X0(e,t,n){const{key:r,children:o}=n;function i(a){const s=a[r],l=a[o];t(s,a)!==!1&&X0(l||[],t,n)}e.forEach(i)}function $q(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let s=Qw;if(r&&r===o)return[r];if(!r||!o)return[];function l(c){return c===r||c===o}return X0(t,c=>{if(s===Jw)return!1;if(l(c)){if(a.push(c),s===Qw)s=zp;else if(s===zp)return s=Jw,!1}else s===zp&&a.push(c);return n.includes(c)},ds(i)),a}function Lp(e,t,n){const r=Ae(t),o=[];return X0(e,(i,a)=>{const s=r.indexOf(i);return s!==-1&&(o.push(a),r.splice(s,1)),!!r.length},ds(n)),o}var eC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Oq(e){const{isLeaf:t,expanded:n}=e;return t?d.createElement(zI,null):n?d.createElement(CW,null):d.createElement(EW,null)}function tC(e){let{treeData:t,children:n}=e;return t||aI(n)}const Iq=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=eC(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:k}=sI(tC(i));let O;return n?O=Object.keys(k):r?O=ih(i.expandedKeys||o||[],k):O=i.expandedKeys||o||[],O},[c,u]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const v=(k,O)=>{var $;return"expandedKeys"in i||m(k),($=i.onExpand)===null||$===void 0?void 0:$.call(i,k,O)},h=(k,O)=>{var $;const{multiple:N,fieldNames:_}=i,{node:j,nativeEvent:F}=O,{key:A=""}=j,I=tC(i),P=Object.assign(Object.assign({},O),{selected:!0}),M=(F==null?void 0:F.ctrlKey)||(F==null?void 0:F.metaKey),z=F==null?void 0:F.shiftKey;let B;N&&M?(B=k,a.current=A,s.current=B,P.selectedNodes=Lp(I,B,_)):N&&z?(B=Array.from(new Set([].concat(Ae(s.current||[]),Ae($q({treeData:I,expandedKeys:f,startKey:A,endKey:a.current,fieldNames:_}))))),P.selectedNodes=Lp(I,B,_)):(B=[A],a.current=A,s.current=B,P.selectedNodes=Lp(I,B,_)),($=i.onSelect)===null||$===void 0||$.call(i,B,P),"selectedKeys"in i||u(B)},{getPrefixCls:p,direction:g}=d.useContext(At),{prefixCls:b,className:y,showIcon:x=!0,expandAction:w="click"}=i,C=eC(i,["prefixCls","className","showIcon","expandAction"]),S=p("tree",b),E=ae(`${S}-directory`,{[`${S}-directory-rtl`]:g==="rtl"},y);return d.createElement(qI,Object.assign({icon:Oq,ref:t,blockNode:!0},C,{showIcon:x,expandAction:w,prefixCls:S,className:E,expandedKeys:f,selectedKeys:c,onSelect:h,onExpand:v}))},Nq=d.forwardRef(Iq),KI=qI;KI.DirectoryTree=Nq;KI.TreeNode=Wl;const Mq=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},un(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},G0=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Wt(e,{tagFontSize:o,tagLineHeight:ie(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Y0=e=>({defaultBg:new Zt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),UI=cn("Tag",e=>{const t=G0(e);return Mq(t)},Y0);var Pq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fq=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=Pq(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(At),f=b=>{a==null||a(!i),s==null||s(b)},m=c("tag",n),[v,h,p]=UI(m),g=ae(m,`${m}-checkable`,{[`${m}-checkable-checked`]:i},u==null?void 0:u.className,o,h,p);return v(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:g,onClick:f})))}),jq=e=>_d(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Aq=lc(["Tag","preset"],e=>{const t=G0(e);return jq(t)},Y0);function Rq(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Qc=(e,t,n)=>{const r=Rq(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Tq=lc(["Tag","status"],e=>{const t=G0(e);return[Qc(t,"success","Success"),Qc(t,"processing","Info"),Qc(t,"error","Error"),Qc(t,"warning","Warning")]},Y0);var Dq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _q=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,m=Dq(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:p}=d.useContext(At),[g,b]=d.useState(!0),y=Vn(m,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const x=lf(l),w=S8(l),C=x||w,S=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},p==null?void 0:p.style),i),E=v("tag",n),[k,O,$]=UI(E),N=ae(E,p==null?void 0:p.className,{[`${E}-${l}`]:C,[`${E}-has-color`]:l&&!C,[`${E}-hidden`]:!g,[`${E}-rtl`]:h==="rtl",[`${E}-borderless`]:!u},r,o,O,$),_=M=>{M.stopPropagation(),c==null||c(M),!M.defaultPrevented&&b(!1)},[,j]=$3(px(e),px(p),{closable:!1,closeIconRender:M=>{const z=d.createElement("span",{className:`${E}-close-icon`,onClick:_},M);return D$(M,z,B=>({onClick:H=>{var T;(T=B==null?void 0:B.onClick)===null||T===void 0||T.call(B,H),_(H)},className:ae(B==null?void 0:B.className,`${E}-close-icon`)}))}}),F=typeof m.onClick=="function"||a&&a.type==="a",A=s||null,I=A?d.createElement(d.Fragment,null,A,a&&d.createElement("span",null,a)):a,P=d.createElement("span",Object.assign({},y,{ref:t,className:N,style:S}),I,j,x&&d.createElement(Aq,{key:"preset",prefixCls:E}),w&&d.createElement(Tq,{key:"status",prefixCls:E}));return k(F?d.createElement(Hd,{component:"Tag"},P):P)}),XI=_q;XI.CheckableTag=Fq;const Hp=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(vn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Bq(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function nC(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function zq(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Bq(e,t),nC(t)):e.onSuccess(nC(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var Lq=(function(){var e=Br(Sn().mark(function t(n,r){var o,i,a,s,l,c,u,f;return Sn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Br(Sn().mark(function v(h){return Sn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(g){h.file(function(b){r(b)?(h.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=h.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),g(b)):g(null)})}));case 1:case"end":return p.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Br(Sn().mark(function v(h){var p,g,b,y,x;return Sn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:p=h.createReader(),g=[];case 2:return w.next=5,new Promise(function(C){p.readEntries(C,function(){return C([])})});case 5:if(b=w.sent,y=b.length,y){w.next=9;break}return w.abrupt("break",12);case 9:for(x=0;x<y;x++)g.push(b[x]);w.next=2;break;case 12:return w.abrupt("return",g);case 13:case"end":return w.stop()}},v)})),s.apply(this,arguments)},a=function(v){return s.apply(this,arguments)},o=[],i=[],n.forEach(function(v){return i.push(v.webkitGetAsEntry())}),u=(function(){var v=Br(Sn().mark(function h(p,g){var b,y;return Sn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(p){x.next=2;break}return x.abrupt("return");case 2:if(p.path=g||"",!p.isFile){x.next=10;break}return x.next=6,l(p);case 6:b=x.sent,b&&o.push(b),x.next=15;break;case 10:if(!p.isDirectory){x.next=15;break}return x.next=13,a(p);case 13:y=x.sent,i.push.apply(i,Ae(y));case 15:case"end":return x.stop()}},h)}));return function(h,p){return v.apply(this,arguments)}})(),f=0;case 9:if(!(f<i.length)){m.next=15;break}return m.next=12,u(i[f]);case 12:f++,m.next=9;break;case 15:return m.abrupt("return",o);case 16:case"end":return m.stop()}},t)}));return function(t,n){return e.apply(this,arguments)}})(),Hq=+new Date,Vq=0;function Vp(){return"rc-upload-".concat(Hq,"-").concat(++Vq)}var Wq=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],qq=(function(e){lo(n,e);var t=co(n);function n(){var r;$n(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),W(rt(r),"state",{uid:Vp()}),W(rt(r),"reqs",{}),W(rt(r),"fileInput",void 0),W(rt(r),"_isMounted",void 0),W(rt(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,f=s.target.files,m=Ae(f).filter(function(v){return!u||Hp(v,c)});r.uploadFiles(m),r.reset()}),W(rt(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var f=l.parentNode;f.focus(),c.blur()}l.click(),u&&u(s)}}),W(rt(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),W(rt(r),"onFileDrop",(function(){var s=Br(Sn().mark(function l(c){var u,f,m;return Sn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(u=r.props.multiple,c.preventDefault(),c.type!=="dragover"){v.next=4;break}return v.abrupt("return");case 4:if(!r.props.directory){v.next=11;break}return v.next=7,Lq(Array.prototype.slice.call(c.dataTransfer.items),function(h){return Hp(h,r.props.accept)});case 7:f=v.sent,r.uploadFiles(f),v.next=14;break;case 11:m=Ae(c.dataTransfer.files).filter(function(h){return Hp(h,r.props.accept)}),u===!1&&(m=m.slice(0,1)),r.uploadFiles(m);case 14:case"end":return v.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),W(rt(r),"uploadFiles",function(s){var l=Ae(s),c=l.map(function(u){return u.uid=Vp(),r.processFile(u,l)});Promise.all(c).then(function(u){var f=r.props.onBatchStart;f==null||f(u.map(function(m){var v=m.origin,h=m.parsedFile;return{file:v,parsedFile:h}})),u.filter(function(m){return m.parsedFile!==null}).forEach(function(m){r.post(m)})})}),W(rt(r),"processFile",(function(){var s=Br(Sn().mark(function l(c,u){var f,m,v,h,p,g,b,y,x;return Sn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=r.props.beforeUpload,m=c,!f){w.next=14;break}return w.prev=3,w.next=6,f(c,u);case 6:m=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),m=!1;case 12:if(m!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(v=r.props.action,typeof v!="function"){w.next=21;break}return w.next=18,v(c);case 18:h=w.sent,w.next=22;break;case 21:h=v;case 22:if(p=r.props.data,typeof p!="function"){w.next=29;break}return w.next=26,p(c);case 26:g=w.sent,w.next=30;break;case 29:g=p;case 30:return b=(dt(m)==="object"||typeof m=="string")&&m?m:c,b instanceof File?y=b:y=new File([b],c.name,{type:c.type}),x=y,x.uid=c.uid,w.abrupt("return",{origin:c,data:g,parsedFile:x,action:h});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}})()),W(rt(r),"saveFileInput",function(s){r.fileInput=s}),r}return On(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(r){var o=this,i=r.data,a=r.origin,s=r.action,l=r.parsedFile;if(this._isMounted){var c=this.props,u=c.onStart,f=c.customRequest,m=c.name,v=c.headers,h=c.withCredentials,p=c.method,g=a.uid,b=f||zq,y={action:s,filename:m,data:i,file:l,headers:v,withCredentials:h,method:p||"post",onProgress:function(x){var w=o.props.onProgress;w==null||w(x,l)},onSuccess:function(x,w){var C=o.props.onSuccess;C==null||C(x,l,w),delete o.reqs[g]},onError:function(x,w){var C=o.props.onError;C==null||C(x,w,l),delete o.reqs[g]}};u(a),this.reqs[g]=b(y)}}},{key:"reset",value:function(){this.setState({uid:Vp()})}},{key:"abort",value:function(r){var o=this.reqs;if(r){var i=r.uid?r.uid:r;o[i]&&o[i].abort&&o[i].abort(),delete o[i]}else Object.keys(o).forEach(function(a){o[a]&&o[a].abort&&o[a].abort(),delete o[a]})}},{key:"render",value:function(){var r=this.props,o=r.component,i=r.prefixCls,a=r.className,s=r.classNames,l=s===void 0?{}:s,c=r.disabled,u=r.id,f=r.name,m=r.style,v=r.styles,h=v===void 0?{}:v,p=r.multiple,g=r.accept,b=r.capture,y=r.children,x=r.directory,w=r.openFileDialogOnClick,C=r.onMouseEnter,S=r.onMouseLeave,E=r.hasControlInside,k=$t(r,Wq),O=ae(W(W(W({},i,!0),"".concat(i,"-disabled"),c),a,a)),$=x?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},N=c?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:S,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:E?void 0:"0"};return se.createElement(o,Me({},N,{className:O,role:E?void 0:"button",style:m}),se.createElement("input",Me({},wr(k,{aria:!0,data:!0}),{id:u,name:f,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(_){return _.stopPropagation()},key:this.state.uid,style:G({display:"none"},h.input),className:l.input,accept:g},$,{multiple:p,onChange:this.onChange},b!=null?{capture:b}:{})),y)}}]),n})(Id);function Wp(){}var sh=(function(e){lo(n,e);var t=co(n);function n(){var r;$n(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),W(rt(r),"uploader",void 0),W(rt(r),"saveUploader",function(s){r.uploader=s}),r}return On(n,[{key:"abort",value:function(r){this.uploader.abort(r)}},{key:"render",value:function(){return se.createElement(qq,Me({},this.props,{ref:this.saveUploader}))}}]),n})(Id);W(sh,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Wp,onError:Wp,onSuccess:Wp,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Kq=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
497
- &:not(${t}-disabled):hover,
498
- &-hover:not(${t}-disabled)
499
- `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ie(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
500
- p${t}-text,
501
- p${t}-hint
502
- `]:{color:e.colorTextDisabled}}}}}},Uq=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},ls()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},ua),{padding:`0 ${ie(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
503
- ${l}:focus-visible,
504
- &.picture ${l}
505
- `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Xq=e=>{const{componentCls:t}=e,n=new Vt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Vt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:G$(e)},n,r]},Gq=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
506
- ${a}${a}-picture,
507
- ${a}${a}-picture-card,
508
- ${a}${a}-picture-circle
509
- `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ua),{width:r,height:r,lineHeight:ie(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${ie(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${ss[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ss.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Yq=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
510
- ${t}-wrapper${t}-picture-card-wrapper,
511
- ${t}-wrapper${t}-picture-circle-wrapper
512
- `]:Object.assign(Object.assign({},ls()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
513
- ${n}-eye,
514
- ${n}-download,
515
- ${n}-delete
516
- `]:{zIndex:10,width:r,margin:`0 ${ie(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Zq=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Qq=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},un(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Jq=e=>({actionsColor:e.colorTextDescription}),eK=cn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=Wt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[Qq(a),Kq(a),Gq(a),Yq(a),Uq(a),Xq(a),Zq(a),Wd(a)]},Jq);function Jc(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function eu(e,t){const n=Ae(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function qp(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function tK(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const nK=function(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]},GI=e=>e.indexOf("image/")===0,rK=e=>{if(e.type&&!e.thumbUrl)return GI(e.type);const t=e.thumbUrl||e.url||"",n=nK(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},mi=200;function oK(e){return new Promise(t=>{if(!e.type||!GI(e.type)){t("");return}const n=document.createElement("canvas");n.width=mi,n.height=mi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${mi}px; height: ${mi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=mi,l=mi,c=0,u=0;i>a?(l=a*(mi/i),u=-(l-s)/2):(s=i*(mi/a),c=-(s-l)/2),r.drawImage(o,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const iK=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:m,isImgUrl:v,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:g,previewIcon:b,removeIcon:y,downloadIcon:x,extra:w,onPreview:C,onDownload:S,onClose:E}=e;var k,O;const{status:$}=s,[N,_]=d.useState($);d.useEffect(()=>{$!=="removed"&&_($)},[$]);const[j,F]=d.useState(!1);d.useEffect(()=>{const X=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(X)}},[]);const A=u(s);let I=d.createElement("div",{className:`${n}-icon`},A);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(N==="uploading"||!s.thumbUrl&&!s.url){const X=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:N!=="uploading"});I=d.createElement("div",{className:X},A)}else{const X=v!=null&&v(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):A,re=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:v&&!v(s)});I=d.createElement("a",{className:re,onClick:le=>C(s,le),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},X)}const P=ae(`${n}-list-item`,`${n}-list-item-${N}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,z=(typeof p=="function"?p(s):p)?f((typeof y=="function"?y(s):y)||d.createElement(dW,null),()=>E(s),n,i.removeFile,!0):null,B=(typeof g=="function"?g(s):g)&&N==="done"?f((typeof x=="function"?x(s):x)||d.createElement(mW,null),()=>S(s),n,i.downloadFile):null,H=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:ae(`${n}-list-item-actions`,{picture:a==="picture"})},B,z),T=typeof w=="function"?w(s):w,R=T&&d.createElement("span",{className:`${n}-list-item-extra`},T),D=ae(`${n}-list-item-name`),L=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:D,title:s.name},M,{href:s.url,onClick:X=>C(s,X)}),s.name,R):d.createElement("span",{key:"view",className:D,onClick:X=>C(s,X),title:s.name},s.name,R),V=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:X=>C(s,X),title:i.previewFile},typeof b=="function"?b(s):b||d.createElement(TI,null)):null,q=(a==="picture-card"||a==="picture-circle")&&N!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},V,N==="done"&&B,z),{getPrefixCls:K}=d.useContext(At),Q=K(),U=d.createElement("div",{className:P},I,L,H,q,j&&d.createElement(uo,{motionName:`${Q}-fade`,visible:N==="uploading",motionDeadline:2e3},X=>{let{className:re}=X;const le="percent"in s?d.createElement(iW,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:ae(`${n}-list-item-progress`,re)},le)})),J=s.response&&typeof s.response=="string"?s.response:((k=s.error)===null||k===void 0?void 0:k.statusText)||((O=s.error)===null||O===void 0?void 0:O.message)||i.uploadError,Y=N==="error"?d.createElement(zi,{title:J,getPopupContainer:X=>X.parentNode},U):U;return d.createElement("div",{className:ae(`${n}-list-item-container`,r),style:o,ref:t},m?m(Y,s,l,{download:S.bind(null,s),preview:C.bind(null,s),remove:E.bind(null,s)}):Y)}),aK=(e,t)=>{const{listType:n="text",previewFile:r=oK,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=rK,prefixCls:u,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:v=!0,showDownloadIcon:h=!1,removeIcon:p,previewIcon:g,downloadIcon:b,extra:y,progress:x={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:C=!0,itemRender:S,disabled:E}=e,k=_2(),[O,$]=d.useState(!1),N=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(R=>{!(R.originFileObj instanceof File||R.originFileObj instanceof Blob)||R.thumbUrl!==void 0||(R.thumbUrl="",r==null||r(R.originFileObj).then(D=>{R.thumbUrl=D||"",k()}))})},[n,f,r]),d.useEffect(()=>{$(!0)},[]);const _=(R,D)=>{if(o)return D==null||D.preventDefault(),o(R)},j=R=>{typeof i=="function"?i(R):R.url&&window.open(R.url)},F=R=>{a==null||a(R)},A=R=>{if(l)return l(R,n);const D=R.status==="uploading";if(n.startsWith("picture")){const L=n==="picture"?d.createElement(Mi,null):s.uploading,V=c!=null&&c(R)?d.createElement(DW,null):d.createElement(yW,null);return D?L:V}return D?d.createElement(Mi,null):d.createElement(AW,null)},I=(R,D,L,V,q)=>{const K={type:"text",size:"small",title:V,onClick:Q=>{var U,J;D(),d.isValidElement(R)&&((J=(U=R.props).onClick)===null||J===void 0||J.call(U,Q))},className:`${L}-list-item-action`};return q&&(K.disabled=E),d.isValidElement(R)?d.createElement(Wo,Object.assign({},K,{icon:sr(R,Object.assign(Object.assign({},R.props),{onClick:()=>{}}))})):d.createElement(Wo,Object.assign({},K),d.createElement("span",null,R))};d.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:j}));const{getPrefixCls:P}=d.useContext(At),M=P("upload",u),z=P(),B=ae(`${M}-list`,`${M}-list-${n}`),H=d.useMemo(()=>Vn(Tl(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),T=Object.assign(Object.assign({},N?{}:H),{motionDeadline:2e3,motionName:`${M}-${N?"animate-inline":"animate"}`,keys:Ae(f.map(R=>({key:R.uid,file:R}))),motionAppear:O});return d.createElement("div",{className:B},d.createElement(Qv,Object.assign({},T,{component:!1}),R=>{let{key:D,file:L,className:V,style:q}=R;return d.createElement(iK,{key:D,locale:s,prefixCls:M,className:V,style:q,file:L,items:f,progress:x,listType:n,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:v,showDownloadIcon:h,removeIcon:p,previewIcon:g,downloadIcon:b,extra:y,iconRender:A,actionIconRender:I,itemRender:S,onPreview:_,onDownload:j,onClose:F})}),w&&d.createElement(uo,Object.assign({},T,{visible:C,forceRender:!0}),R=>{let{className:D,style:L}=R;return sr(w,V=>({className:ae(V.className,D),style:Object.assign(Object.assign(Object.assign({},L),{pointerEvents:D?"none":void 0}),V.style)}))}))},sK=d.forwardRef(aK);var lK=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const cl=`__LIST_IGNORE_${Date.now()}__`,cK=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:m,locale:v,iconRender:h,isImageUrl:p,progress:g,prefixCls:b,className:y,type:x="select",children:w,style:C,itemRender:S,maxCount:E,data:k={},multiple:O=!1,hasControlInside:$=!0,action:N="",accept:_="",supportServerRender:j=!0,rootClassName:F}=e,A=d.useContext(vr),I=m??A,[P,M]=mn(r||[],{value:n,postState:fe=>fe??[]}),[z,B]=d.useState("drop"),H=d.useRef(null),T=d.useRef(null);d.useMemo(()=>{const fe=Date.now();(n||[]).forEach((ye,Ve)=>{!ye.uid&&!Object.isFrozen(ye)&&(ye.uid=`__AUTO__${fe}_${Ve}__`)})},[n]);const R=(fe,ye,Ve)=>{let ge=Ae(ye),Ze=!1;E===1?ge=ge.slice(-1):E&&(Ze=ge.length>E,ge=ge.slice(0,E)),ts(()=>{M(ge)});const ut={file:fe,fileList:ge};Ve&&(ut.event=Ve),(!Ze||fe.status==="removed"||ge.some(xt=>xt.uid===fe.uid))&&ts(()=>{c==null||c(ut)})},D=(fe,ye)=>lK(void 0,void 0,void 0,function*(){const{beforeUpload:Ve,transformFile:ge}=e;let Ze=fe;if(Ve){const ut=yield Ve(fe,ye);if(ut===!1)return!1;if(delete fe[cl],ut===cl)return Object.defineProperty(fe,cl,{value:!0,configurable:!0}),!1;typeof ut=="object"&&ut&&(Ze=ut)}return ge&&(Ze=yield ge(Ze)),Ze}),L=fe=>{const ye=fe.filter(Ze=>!Ze.file[cl]);if(!ye.length)return;const Ve=ye.map(Ze=>Jc(Ze.file));let ge=Ae(P);Ve.forEach(Ze=>{ge=eu(Ze,ge)}),Ve.forEach((Ze,ut)=>{let xt=Ze;if(ye[ut].parsedFile)Ze.status="uploading";else{const{originFileObj:It}=Ze;let ze;try{ze=new File([It],It.name,{type:It.type})}catch{ze=new Blob([It],{type:It.type}),ze.name=It.name,ze.lastModifiedDate=new Date,ze.lastModified=new Date().getTime()}ze.uid=Ze.uid,xt=ze}R(xt,ge)})},V=(fe,ye,Ve)=>{try{typeof fe=="string"&&(fe=JSON.parse(fe))}catch{}if(!qp(ye,P))return;const ge=Jc(ye);ge.status="done",ge.percent=100,ge.response=fe,ge.xhr=Ve;const Ze=eu(ge,P);R(ge,Ze)},q=(fe,ye)=>{if(!qp(ye,P))return;const Ve=Jc(ye);Ve.status="uploading",Ve.percent=fe.percent;const ge=eu(Ve,P);R(Ve,ge,fe)},K=(fe,ye,Ve)=>{if(!qp(Ve,P))return;const ge=Jc(Ve);ge.error=fe,ge.response=ye,ge.status="error";const Ze=eu(ge,P);R(ge,Ze)},Q=fe=>{let ye;Promise.resolve(typeof o=="function"?o(fe):o).then(Ve=>{var ge;if(Ve===!1)return;const Ze=tK(fe,P);Ze&&(ye=Object.assign(Object.assign({},fe),{status:"removed"}),P==null||P.forEach(ut=>{const xt=ye.uid!==void 0?"uid":"name";ut[xt]===ye[xt]&&!Object.isFrozen(ut)&&(ut.status="removed")}),(ge=H.current)===null||ge===void 0||ge.abort(ye),R(ye,Ze))})},U=fe=>{B(fe.type),fe.type==="drop"&&(u==null||u(fe))};d.useImperativeHandle(t,()=>({onBatchStart:L,onSuccess:V,onProgress:q,onError:K,fileList:P,upload:H.current,nativeElement:T.current}));const{getPrefixCls:J,direction:Y,upload:X}=d.useContext(At),re=J("upload",b),le=Object.assign(Object.assign({onBatchStart:L,onError:K,onProgress:q,onSuccess:V},e),{data:k,multiple:O,action:N,accept:_,supportServerRender:j,prefixCls:re,disabled:I,beforeUpload:D,onChange:void 0,hasControlInside:$});delete le.className,delete le.style,(!w||I)&&delete le.id;const oe=`${re}-wrapper`,[de,he,ke]=eK(re,oe),[Oe]=_i("Upload",ni.Upload),{showRemoveIcon:pe,showPreviewIcon:we,showDownloadIcon:ne,removeIcon:xe,previewIcon:Pe,downloadIcon:ue,extra:Re}=typeof i=="boolean"?{}:i,Te=typeof pe>"u"?!I:pe,De=(fe,ye)=>i?d.createElement(sK,{prefixCls:re,listType:a,items:P,previewFile:f,onPreview:s,onDownload:l,onRemove:Q,showRemoveIcon:Te,showPreviewIcon:we,showDownloadIcon:ne,removeIcon:xe,previewIcon:Pe,downloadIcon:ue,iconRender:h,extra:Re,locale:Object.assign(Object.assign({},Oe),v),isImageUrl:p,progress:g,appendAction:fe,appendActionVisible:ye,itemRender:S,disabled:I}):fe,be=ae(oe,y,F,he,ke,X==null?void 0:X.className,{[`${re}-rtl`]:Y==="rtl",[`${re}-picture-card-wrapper`]:a==="picture-card",[`${re}-picture-circle-wrapper`]:a==="picture-circle"}),Ie=Object.assign(Object.assign({},X==null?void 0:X.style),C);if(x==="drag"){const fe=ae(he,re,`${re}-drag`,{[`${re}-drag-uploading`]:P.some(ye=>ye.status==="uploading"),[`${re}-drag-hover`]:z==="dragover",[`${re}-disabled`]:I,[`${re}-rtl`]:Y==="rtl"});return de(d.createElement("span",{className:be,ref:T},d.createElement("div",{className:fe,style:Ie,onDrop:U,onDragOver:U,onDragLeave:U},d.createElement(sh,Object.assign({},le,{ref:H,className:`${re}-btn`}),d.createElement("div",{className:`${re}-drag-container`},w))),De()))}const Ne=ae(re,`${re}-select`,{[`${re}-disabled`]:I,[`${re}-hidden`]:!w}),$e=d.createElement("div",{className:Ne},d.createElement(sh,Object.assign({},le,{ref:H})));return de(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:be,ref:T},De($e,!!w)):d.createElement("span",{className:be,ref:T},$e,De()))},YI=d.forwardRef(cK);var uK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dK=d.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=uK(e,["style","height","hasControlInside"]);return d.createElement(YI,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),ZI=YI;ZI.Dragger=dK;ZI.LIST_IGNORE=cl;const fK=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",pK=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:i,onRemove:a,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:m,style:v})=>me.jsxs("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[me.jsx("div",{className:"pt-1",children:n}),me.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[me.jsxs("div",{className:"flex items-center justify-between gap-1",children:[me.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),me.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:fK(t)})]}),me.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[i,me.jsx("span",{children:r})]})]}),m,c&&!u&&me.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&l?f(l):a&&a()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:me.jsx(oE,{className:"w-3.5 h-3.5"})})]});function mK(e,t){var n;const r=((n=t==null?void 0:t.theme)==null?void 0:n.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return r.docx?me.jsx("img",{src:r.docx,alt:"docx",style:{width:20,height:20}}):me.jsx(Ea,{className:"w-5 h-5 text-blue-400"});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return r.image?me.jsx("img",{src:r.image,alt:"image",style:{width:20,height:20}}):me.jsx(mF,{className:"w-5 h-5 text-blue-400"});case"pptx":case"ppt":return r.pptx?me.jsx("img",{src:r.pptx,alt:"pptx",style:{width:20,height:20}}):me.jsx(Db,{className:"w-5 h-5 text-orange-400"});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return r.sheets?me.jsx("img",{src:r.sheets,alt:"sheets",style:{width:20,height:20}}):me.jsx(gF,{className:"w-5 h-5 text-green-400"});case"pdf":return r.pdf?me.jsx("img",{src:r.pdf,alt:"pdf",style:{width:20,height:20}}):me.jsx(Ea,{className:"w-5 h-5 text-red-400"});case"txt":return r.txt?me.jsx("img",{src:r.txt,alt:"txt",style:{width:20,height:20}}):me.jsx(Ea,{className:"w-5 h-5 text-gray-400"});case"md":return r.md?me.jsx("img",{src:r.md,alt:"txt",style:{width:20,height:20}}):me.jsx(Ea,{className:"w-5 h-5 text-gray-400"});case"json":return r.json?me.jsx("img",{src:r.json,alt:"json",style:{width:20,height:20}}):me.jsx(Ea,{className:"w-5 h-5 text-gray-400"});case"html":case"htm":return r.html?me.jsx("img",{src:r.html,alt:"html",style:{width:20,height:20}}):me.jsx(Ea,{className:"w-5 h-5 text-gray-400"});case"xml":default:return me.jsx(Db,{className:"w-5 h-5 text-gray-400"})}}function gK({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return St(()=>{e.forEach((o,i)=>{o&&console.log("FilesDisplay currentStatus",o.status)})},[e]),St(()=>{e.length>0&&e.every(o=>o.status==="finished")&&kn({targets:".file-display-card",opacity:0,scale:.8,delay:kn.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),me.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((o,i)=>{var a,s;if(!o||!o.file)return null;const l=o.name||o.file.name,c=(a=o.file)==null?void 0:a.size;let{type:u,status:f}=o;f==="finished"&&(f="done");const m={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:me.jsx(_b,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:me.jsx(_b,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:me.jsx(uF,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:me.jsx(cF,{className:"w-3 h-3"}),color:"text-red-500"}}[f||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},v=l.split(".").pop()||"",h=mK(v,r);return me.jsx(pK,{cardId:`file-card-${i}`,fileName:l,fileSize:c,icon:h,statusText:m.text||"\u672A\u77E5",statusColor:m.color||"text-gray-400",statusIcon:m.icon||null,showRemove:f!=="parsing"&&f!=="uploading",onRemoveWithAnim:p=>{kn({targets:`#${p}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(i)}})},themeColors:(s=r==null?void 0:r.theme)==null?void 0:s.colors},l+i)})})}function hK({checked:e,onChange:t,icon:n,children:r,styles:o,disabled:i}){var a,s,l,c,u,f,m,v,h,p,g,b,y,x;const w=((s=(a=o==null?void 0:o.theme)==null?void 0:a.colors)==null?void 0:s.primary)||"#00C26A",C=((c=(l=o==null?void 0:o.theme)==null?void 0:l.colors)==null?void 0:c.text)||"#343a40",S=((f=(u=o==null?void 0:o.theme)==null?void 0:u.colors)==null?void 0:f.background)||"#fff",E=((v=(m=o==null?void 0:o.theme)==null?void 0:m.colors)==null?void 0:v.border)||"#dee2e6",k=((p=(h=o==null?void 0:o.theme)==null?void 0:h.colors)==null?void 0:p.disabledBackground)||"#F5F5F5",O=((b=(g=o==null?void 0:o.theme)==null?void 0:g.colors)==null?void 0:b.disabledText)||"#808080",$=((x=(y=o==null?void 0:o.theme)==null?void 0:y.colors)==null?void 0:x.disabled)||"#808080";return me.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:i,className:"flex items-center gap-1 bg-white px-3 py-1 rounded-full border transition-all duration-200 text-xs select-none",style:{borderWidth:1.5,outline:"none",cursor:i?"not-allowed":"pointer",minWidth:0,background:i?k:e?w:"transparent",color:i?O:e?S:C,borderColor:i?$:e?w:E},children:[n,me.jsx("span",{children:r})]})}function vK({value:e,eventsEmit:t,styles:n,status:r,onUpload:o,onVoice:i,uploadedFiles:a,onRemoveFile:s,senderConfig:l={},recommandQuestions:c=[],fileUploadStatus:u=[]}={}){var f;const{badgeCounts:m}=GF(),v=Ye(null),h=l.switchs||[],[p,g]=Et(()=>{const V={};return h.forEach(q=>{q.type==="checkbox"&&(V[q.name]=q.defaultValue??!1)}),V});St(()=>{console.log(p,"checkboxStates"),t&&t("sender:configChange",{all:p})},[p]);const[b,y]=Et(e||"");St(()=>{y(e||"")},[e]);const x=()=>{const V=v.current;if(V){V.style.height="auto";const q=144,K=V.scrollHeight;K<=q?(V.style.height=`${K}px`,V.style.overflowY="hidden"):(V.style.height=`${q}px`,V.style.overflowY="auto")}},w=V=>{y(V.target.value),t&&t("sender:change",V.target.value),x()},C=V=>{V.key==="Enter"&&!V.shiftKey&&(console.log("enter"),V.preventDefault(),t&&t("sender:send"))};St(()=>{x()},[b]),St(()=>{let V;try{V=typeof c=="string"?JSON.parse(c):c}catch{V=[]}},[c]);const S=tn(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const V=JSON.parse(c);return Array.isArray(V)?V:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[E,k]=Et(!1);St(()=>{if(!S||S.length===0){k(!1);return}k(!1),setTimeout(()=>{k(!0)},0)},[S]),St(()=>{if(!E)return;const V=document.querySelectorAll(".recommand-question-btn");V.forEach(q=>{const K=q;K.style.visibility="visible",K.style.opacity="0",K.style.transform="translateY(20px)"}),kn.remove(V),kn({targets:V,opacity:[0,1],translateY:[20,0],delay:kn.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{V.forEach(q=>{const K=q;K.removeAttribute("style"),K.style.color=T})}})},[E,S]);const O=tn(()=>u&&u.length>0?u:a||[],[u,a]),$=tn(()=>b&&b.trim().length>0,[b]),N=tn(()=>{const V=b&&b.trim().length>0,q=O&&O.length>0;return V||q},[b,O]),_=tn(()=>{const V=N?[{icon:me.jsx(oE,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],q=(l.actions||[]).map(K=>({...K,badgeCount:m[K.name]??K.badgeCount??0}));return[...V,...q]},[N,l.actions,m]),j=(f=n==null?void 0:n.theme)==null?void 0:f.colors,F=(j==null?void 0:j.primary)||"#007bff",A=(j==null?void 0:j.text)||"#343a40",I=(j==null?void 0:j.background)||"#ffffff",P=(j==null?void 0:j.border)||"#dee2e6",M=(j==null?void 0:j.background)||"#ffffff",z=(j==null?void 0:j.disabled)||"#808080",B=(j==null?void 0:j.disabledBackground)||"#F5F5F5",H=(j==null?void 0:j.error)||"#FF0000",T=(j==null?void 0:j.disabledText)||"#808080",R="rgba(255, 255, 255, 0.9)";j!=null&&j.disabledText;const D=(j==null?void 0:j.text)||"#000",L="dynamic-placeholder-style";return St(()=>{const V=document.getElementById(L)||document.createElement("style");V.id=L,V.innerHTML=`
517
- .dynamic-placeholder::placeholder {
518
- color: ${z};
519
- opacity: 1; /* Firefox */
520
- }
521
- .dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
522
- color: ${z};
523
- }
524
- .dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
525
- color: ${z};
526
- }
527
- `,document.head.appendChild(V)},[z]),me.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[me.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),me.jsx("div",{className:"absolute inset-0 bg-transparent! backdrop-blur-[1px] pointer-events-none"}),me.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[me.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:E&&S.map((V,q)=>me.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:V,clearFn:()=>{t&&t("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:R,color:T,border:"none"},onMouseEnter:K=>{K.currentTarget.style.color=D},onMouseOut:K=>{K.currentTarget.style.color=T},children:V},q))}),O.length>0&&me.jsx(gK,{styles:n,uploadedFiles:O,onRemoveFile:s||(()=>{}),eventsEmit:t}),me.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:M,border:`1px solid ${P}`,padding:"0 12px 8px 12px"},children:[me.jsx("textarea",{ref:v,value:b,onChange:w,onKeyDown:C,rows:1,placeholder:"\u6211\u53EF\u4EE5\u9605\u8BFB\u77E5\u8BC6\u5E93\u7684\u8D44\u6599\u5E76\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u56DE\u7B54\u4F60\u7684\u95EE\u9898...",className:`flex-1 py-2 resize-none outline-none border-none min-h-[85px]
528
- max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:A}}),me.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[_.filter(V=>V.enabled!==!1).map((V,q)=>me.jsx(Y2,{count:V.badgeCount,size:"small",style:{backgroundColor:F,color:I,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],showZero:!0,children:me.jsx("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:A,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:V.tip||V.name,onClick:()=>{V.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${V.name}`)},children:V.icon})},V.name||q)),me.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:P}}),me.jsx("div",{className:`
529
- relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
530
- transition-all duration-200
531
- ${r==="processing"?"animate-pulse":""}
532
- `,style:{cursor:r==="processing"||$?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${H}, ${(j==null?void 0:j.error)||"#d9534f"})`:$?`linear-gradient(to bottom right, ${F}, ${(j==null?void 0:j.primary)||"#0275d8"})`:B},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):$&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:me.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!$&&r!=="processing"?T:I},children:r==="processing"?me.jsxs(me.Fragment,{children:[me.jsx(fF,{className:"w-[18px] h-[18px]"}),me.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):me.jsxs(me.Fragment,{children:[me.jsx(vF,{size:12}),me.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),me.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[me.jsx("span",{className:"text-[10px]",style:{color:z},children:"\u652F\u6301\u62D6\u62FD\u6216\u70B9\u51FB\u4E0A\u4F20PDF\u3001Word\u3001\u56FE\u7247\u7B49\u6587\u4EF6"}),me.jsx("div",{className:"flex items-center gap-4",children:h.filter(V=>V.enabled!==!1).map(V=>me.jsx(hK,{styles:n,checked:p[V.name],disabled:!V.enabled,onChange:q=>{g(K=>({...K,[V.name]:q}))},icon:V.icon,children:V.label},V.name))})]})]})]})}function bK({content:e,time:t,sessionContext:n,eventsEmit:r}){const o=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return me.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[me.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-blue-400 to-blue-500 flex items-center justify-center mr-3 shadow-sm",children:me.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),me.jsx("div",{className:"flex-1",children:me.jsxs("div",{className:"flex-col",children:[me.jsx("div",{className:"text-xs text-gray-400 mb-3",children:fr(t).format("YYYY-MM-DD HH:mm:ss")}),me.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4 inline-block max-w-[80%] shadow-sm relative prose prose-sm",children:me.jsx("span",{className:"text-gray-700 break-words",children:e})}),me.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:me.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u91CD\u53D1",children:[me.jsx(hF,{className:"w-4 h-4"}),me.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function yK({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:o}){const i=l=>{r==null||r("action_copy:click",{content:e,event:l})},a=()=>{r==null||r("action_thumbsup",{result:o,sessionContext:n})},s=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return me.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[me.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-purple-400 to-purple-500 flex items-center justify-center mr-3 shadow-sm",children:me.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),me.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:me.jsxs("div",{className:"flex flex-col w-full relative",children:[me.jsx("div",{className:"text-xs text-gray-400 mb-3",children:fr(t).format("YYYY-MM-DD HH:mm:ss")}),me.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:me.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),me.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[me.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:i,title:"\u590D\u5236",children:[me.jsx(pF,{className:"w-4 h-4"}),me.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),me.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===1?"text-blue-700":""}`,onClick:a,title:"\u70B9\u8D5E",children:[me.jsx(yF,{className:"w-4 h-4"}),me.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),me.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===0?"text-blue-700":""}`,onClick:s,title:"\u70B9\u8E29",children:[me.jsx(bF,{className:"w-4 h-4"}),me.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function xK({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:o,eventsEmit:i}){const a=Ye(null);return me.jsxs("div",{style:{direction:"rtl",transform:"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((s,l)=>me.jsx("div",{className:"mb-6",children:s.istype==="user"?n?me.jsx("div",{style:{direction:"ltr"},children:n(s,l)}):me.jsx("div",{style:{direction:"ltr"},children:me.jsx(bK,{...s,sessionContext:r,eventsEmit:i})}):t?me.jsx("div",{style:{direction:"ltr"},children:t(s,l)}):me.jsx("div",{style:{direction:"ltr"},children:me.jsx(yK,{...s,sessionContext:r,eventsEmit:i})})},s.istype==="user"?s.queryId:"relatedTo-"+s.queryId)),me.jsx("div",{ref:a})]})}var Qi=256,QI=[],rC=256,tu;for(;Qi--;)QI[Qi]=(Qi+256).toString(16).substring(1);function wK(e){var t=0,n=e;if(!tu||Qi+n>rC*2)for(tu="",Qi=0;t<rC;t++)tu+=QI[Math.random()*256|0];return tu.substring(Qi,Qi+++n)}var lh={exports:{}};/*!
533
- * clipboard.js v2.0.11
534
- * https://clipboardjs.com/
535
- *
536
- * Licensed MIT © Zeno Rocha
537
- */var CK=lh.exports,oC;function SK(){return oC||(oC=1,(function(e,t){(function(n,r){e.exports=r()})(CK,function(){return(function(){var n={686:(function(i,a,s){s.d(a,{default:function(){return H}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),m=s(817),v=s.n(m);function h(T){try{return document.execCommand(T)}catch{return!1}}var p=function(T){var R=v()(T);return h("cut"),R},g=p;function b(T){var R=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[R?"right":"left"]="-9999px";var L=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(L,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(T,R){var D=b(T);R.container.appendChild(D);var L=v()(D);return h("copy"),D.remove(),L},x=function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof T=="string"?D=y(T,R):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?D=y(T.value,R):(D=v()(T),h("copy")),D},w=x;function C(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(R){return typeof R}:C=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},C(T)}var S=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=T.action,D=R===void 0?"copy":R,L=T.container,V=T.target,q=T.text;if(D!=="copy"&&D!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(V!==void 0)if(V&&C(V)==="object"&&V.nodeType===1){if(D==="copy"&&V.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(D==="cut"&&(V.hasAttribute("readonly")||V.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(q)return w(q,{container:L});if(V)return D==="cut"?g(V):w(V,{container:L})},E=S;function k(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(R){return typeof R}:k=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},k(T)}function O(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function $(T,R){for(var D=0;D<R.length;D++){var L=R[D];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(T,L.key,L)}}function N(T,R,D){return R&&$(T.prototype,R),D&&$(T,D),T}function _(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&j(T,R)}function j(T,R){return j=Object.setPrototypeOf||function(D,L){return D.__proto__=L,D},j(T,R)}function F(T){var R=P();return function(){var D=M(T),L;if(R){var V=M(this).constructor;L=Reflect.construct(D,arguments,V)}else L=D.apply(this,arguments);return A(this,L)}}function A(T,R){return R&&(k(R)==="object"||typeof R=="function")?R:I(T)}function I(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(T){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},M(T)}function z(T,R){var D="data-clipboard-".concat(T);if(R.hasAttribute(D))return R.getAttribute(D)}var B=(function(T){_(D,T);var R=F(D);function D(L,V){var q;return O(this,D),q=R.call(this),q.resolveOptions(V),q.listenClick(L),q}return N(D,[{key:"resolveOptions",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof L.action=="function"?L.action:this.defaultAction,this.target=typeof L.target=="function"?L.target:this.defaultTarget,this.text=typeof L.text=="function"?L.text:this.defaultText,this.container=k(L.container)==="object"?L.container:document.body}},{key:"listenClick",value:function(L){var V=this;this.listener=f()(L,"click",function(q){return V.onClick(q)})}},{key:"onClick",value:function(L){var V=L.delegateTarget||L.currentTarget,q=this.action(V)||"copy",K=E({action:q,container:this.container,target:this.target(V),text:this.text(V)});this.emit(K?"success":"error",{action:q,text:K,trigger:V,clearSelection:function(){V&&V.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(L){return z("action",L)}},{key:"defaultTarget",value:function(L){var V=z("target",L);if(V)return document.querySelector(V)}},{key:"defaultText",value:function(L){return z("text",L)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(L){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(L,V)}},{key:"cut",value:function(L){return g(L)}},{key:"isSupported",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],V=typeof L=="string"?[L]:L,q=!!document.queryCommandSupported;return V.forEach(function(K){q=q&&!!document.queryCommandSupported(K)}),q}}]),D})(c()),H=B}),828:(function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l}),438:(function(i,a,s){var l=s(828);function c(m,v,h,p,g){var b=f.apply(this,arguments);return m.addEventListener(h,b,g),{destroy:function(){m.removeEventListener(h,b,g)}}}function u(m,v,h,p,g){return typeof m.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof m=="string"&&(m=document.querySelectorAll(m)),Array.prototype.map.call(m,function(b){return c(b,v,h,p,g)}))}function f(m,v,h,p){return function(g){g.delegateTarget=l(g.target,v),g.delegateTarget&&p.call(m,g)}}i.exports=u}),879:(function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(i,a,s){var l=s(879),c=s(438);function u(h,p,g){if(!h&&!p&&!g)throw new Error("Missing required arguments");if(!l.string(p))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,p,g);if(l.nodeList(h))return m(h,p,g);if(l.string(h))return v(h,p,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,p,g){return h.addEventListener(p,g),{destroy:function(){h.removeEventListener(p,g)}}}function m(h,p,g){return Array.prototype.forEach.call(h,function(b){b.addEventListener(p,g)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(p,g)})}}}function v(h,p,g){return c(document.body,h,p,g)}i.exports=u}),817:(function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}i.exports=a}),279:(function(i){function a(){}a.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var m=0,v=u.length;m<v;m++)u[m].fn!==l&&u[m].fn._!==l&&f.push(u[m]);return f.length?c[s]=f:delete c[s],this}},i.exports=a,i.exports.TinyEmitter=a})},r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={exports:{}};return n[i](a,a.exports,o),a.exports}return(function(){o.n=function(i){var a=i&&i.__esModule?(function(){return i.default}):(function(){return i});return o.d(a,{a}),a}})(),(function(){o.d=function(i,a){for(var s in a)o.o(a,s)&&!o.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}})(),(function(){o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}})(),o(686)})().default})})(lh)),lh.exports}var kK=SK();const EK=ii(kK),$K=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new EK(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{xl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{xl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),xl.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function gi(e){return me.jsxs("span",{className:"flex items-center gap-1",children:[me.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&me.jsx(zi,{title:e.description,className:" cursor-help",children:me.jsx(dF,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&me.jsx(XI,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function OK(e=[],t,n={}){const[r,o]=se.useState(()=>{const c={};return e.forEach(u=>{u.type==="switch"&&(c[u.name]=n[u.name]??u.defaultValue??!1)}),c}),i=se.useRef(),a=(c,u,f)=>{o(m=>({...m,[c]:u})),i.current&&f&&(u||f.forEach(m=>{i.current.setFieldsValue({[m]:void 0})}))},s=new Set;e.forEach(c=>{c.type==="switch"&&c.controlledItems&&r[c.name]===!1&&c.controlledItems.forEach(u=>s.add(u))});const l=e.map(c=>{var u,f,m,v,h,p;return s.has(c.name)?null:c.type==="divider"?me.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?me.jsx(zn.Item,{label:gi(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:me.jsx(Ai,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?me.jsx(zn.Item,{label:gi(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:me.jsx(Es,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?me.jsx(zn.Item,{label:gi(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:me.jsx(rh,{addonAfter:c.unit?me.jsx("span",{className:"text-[10px] text-gray-300",children:c.unit}):null,min:(u=c.range)==null?void 0:u.min,max:(f=c.range)==null?void 0:f.max,step:c.step,placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="slider"?me.jsxs("div",{className:"mb-6",children:[me.jsxs("div",{className:"flex items-center justify-between mb-3",children:[me.jsx("div",{className:"flex items-center text-sm",children:gi(c)}),me.jsx(zn.Item,{name:c.name,noStyle:!0,children:me.jsx(rh,{min:(m=c.range)==null?void 0:m.min,max:(v=c.range)==null?void 0:v.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&me.jsx("span",{className:"ml-2",children:c.unit})]}),me.jsx(zn.Item,{name:c.name,noStyle:!0,children:me.jsx($9,{min:(h=c.range)==null?void 0:h.min,max:(p=c.range)==null?void 0:p.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?me.jsx(zn.Item,{label:null,colon:!1,style:{marginBottom:16},children:me.jsxs(dI,{align:"middle",justify:"space-between",children:[me.jsx(id,{children:gi(c)}),me.jsx(id,{children:me.jsx(zn.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:me.jsx(HI,{disabled:c.disabled,checked:r[c.name],onChange:g=>a(c.name,g,c.controlledItems)})})})]})},c.name):c.type==="textarea"?me.jsx(zn.Item,{label:gi(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:me.jsx(Ai.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?me.jsx(zn.Item,{label:gi(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:me.jsx(Ps,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?me.jsx(zn.Item,{label:gi(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:me.jsx(bf.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return se.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(i)},[t]),l}function IK({config:e=[],initialValues:t={},onChange:n,styles:r}){const o=OK(e,r,t),[i]=zn.useForm();return me.jsx(zn,{form:i,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(a,s)=>n==null?void 0:n(s),requiredMark:!1,style:{padding:16},children:o})}function NK(){return me.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:me.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function MK(){return me.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:me.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function PK(){return me.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:me.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function FK(){return me.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:me.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function jK(){return me.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[me.jsx("div",{className:"text-2xl text-blue-500 font-bold mb-4",children:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u4E13\u5C5EAI\u52A9\u7406\u3010\u5C0F\u9CB8\u3011"}),me.jsx("div",{className:"text-zinc-500",children:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898\u6216\u9700\u6C42\uFF0C\u6211\u4F1A\u5C3D\u529B\u4E3A\u60A8\u89E3\u7B54\u3002"})]})}function AK(e,t){return t?{...e,...t,colors:{...e.colors,...t.colors},space:{...e.space,...t.space},icons:{...e.icons,...t.icons},others:{...e.others,...t.others}}:e}function RK(e){return{...e,size:Lm[e.size]||e.size,radius:nE[e.radius]||e.radius,padding:nF[e.padding]||e.padding,margin:rF[e.margin]||e.margin,shadow:oF[e.shadow]||e.shadow,lineHeight:iF[e.lineHeight]||e.lineHeight,sidebar:tF[e.sidebar]||e.sidebar}}function TK({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:o,recommandQuestions:i=[],styles:a,senderConfig:s,fileUploadStatus:l,onSenderConfigChange:c,activeSessionId:u}){const f=Ye(null),[m,v]=Et(""),[h,p]=Et([]),[g,b]=Et(!1),y=(t&&t.length>0?t:[]).filter(Y=>Y.enabled!==!1),[x,w]=Et(()=>{var Y;return(Y=y[0])==null?void 0:Y.key}),C=Ye({}),[S,E]=Et(0),k=(e==null?void 0:e.messages)||[],[O,$]=Et({});St(()=>{n==null||n("fileManager:change",{uploadedFiles:h,removeFile:(Y,X,re)=>{p(le=>le.filter((oe,de)=>de!==X))},setUploadedFiles:Y=>{p(X=>typeof Y=="function"?Y(X):[...X,...Y])}})},[h]);const N=()=>{v(""),p([])},_=(Y,X)=>{if(n)switch(console.log(Y,X,"core\u5185\u90E8\u8F6C\u53D1"),Y){case"action_copy:click":X&&$K(X.content,X.event);break;case"sender:configChange":$(X.all),c==null||c(X),n(Y,X);break;case"conversation:create":const re=wK(3);n==null||n("conversation:create",{id:re});break;case"sender:change":X&&v(X);break;case"sender:clear":N();break;case"sender:send_recommandQuestion":{const le={};y.forEach(oe=>{oe.type==="form"&&(le[oe.key]=C.current[oe.key]??oe.initialValues??{})}),n==null||n("sender:send",{content:X.content,files:h,status:r,currentData:e,senderConfig:O,formData:le,clearFn:N}),setTimeout(()=>{f.current&&f.current.scrollTo&&f.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const le={};y.forEach(oe=>{oe.type==="form"&&(le[oe.key]=C.current[oe.key]??oe.initialValues??{})}),n==null||n("sender:send",{content:m,files:h,status:r,currentData:e,senderConfig:O,formData:le,clearFn:N}),setTimeout(()=>{f.current&&f.current.scrollTo&&f.current.scrollTo({top:0,behavior:"smooth"})},120);break}default:n(Y,X)}},j=Y=>{Y.preventDefault(),b(!1);const X=Array.from(Y.dataTransfer.files||[]);if(X.length>0){const re=X.filter(le=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(le.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(le.name));re.length>0&&p(le=>[...le,...re.map(oe=>({file:oe,type:I(oe)}))])}},F=Y=>{Y.preventDefault(),g||b(!0)},A=Y=>{Y.preventDefault(),b(!1)};function I(Y){return Y.type.startsWith("image")?"image":"document"}const P=Y=>{$(Y.all),c==null||c(Y)},M=()=>{f.current.addEventListener("wheel",Y=>{Y.preventDefault();const{deltaY:X}=Y;f.current.scrollTop-=X})},z=Ye(null);St(()=>{if(!z.current)return z.current=setInterval(()=>{var Y;(Y=f==null?void 0:f.current)!=null&&Y.scrollTo&&(M(),clearInterval(z.current),z.current=null)},100),()=>{var Y;clearInterval(z.current),z.current=null,(Y=f==null?void 0:f.current)!=null&&Y.removeEventListener&&f.current.removeEventListener("wheel",M)}},[u]);const B=AK(eF,a==null?void 0:a.theme),H=RK(B.space),T={...B,space:H},R={...a,theme:T};a!=null&&a.mode;const D=T.space.radius,L=T.colors.appBackground,V="",q=T.space.shadow,K=y.length===0?0:T.space.sidebar,Q=T.space.size,U=T.space.padding;T.space.margin,T.space.lineHeight,T.others.baseFontWeight;const J=T.colors.text;return me.jsxs(me.Fragment,{children:[r.app==="initializing"&&(o!=null&&o.AppLoading?me.jsx(o.AppLoading,{}):me.jsx(NK,{})),r.app==="error"&&(o!=null&&o.AppError?me.jsx(o.AppError,{}):me.jsx(PK,{})),r.app==="ready"&&me.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex",background:L},children:[y.length===0?null:me.jsxs("div",{style:{width:K,borderRadius:D,boxShadow:q,background:V,display:"flex",flexDirection:"column",height:"100%"},children:[(o==null?void 0:o.LogoBox)&&me.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${B.colors.border}`,padding:U,fontSize:Lm.lg,fontWeight:700,color:B.colors.primary,background:V,borderTopLeftRadius:D,borderTopRightRadius:D},children:me.jsx(o.LogoBox,{})}),me.jsxs("div",{style:{width:K,borderRadius:D,background:V,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:y.length>1?55:0,borderBottomRightRadius:D},children:[(()=>{const Y=y.find(X=>X.key===x);if(!Y)return null;if(Y.type==="custom")return Y.component;if(Y.type==="form"){const X=C.current[Y.key]||Y.initialValues||{};return me.jsx(IK,{config:Y.formConfig,initialValues:X,onChange:re=>{var le;C.current[Y.key]=re,(le=Y.onChange)==null||le.call(Y,re),typeof n=="function"&&n("form:change",{...C.current})},styles:a},Y.key+"_"+S)}return null})(),y.length>1&&me.jsx("div",{style:{display:"flex",gap:12,margin:"0 auto",width:"100%",alignItems:"center",justifyContent:"end",padding:"8px 12px",position:"absolute",bottom:0,borderBottom:`1px solid ${B.colors.border}`,borderTop:`1px solid ${B.colors.border}`,borderBottomRightRadius:D,background:V},children:y.map(Y=>{const X=Y.icon,re=x===Y.key;return me.jsx("button",{onClick:()=>w(Y.key),style:{padding:8,borderRadius:nE.md,background:re?B.colors.primary+"22":"transparent",color:re?B.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:re?600:400,transition:"all 0.2s"},title:Y.label,children:X},Y.key)})})]})]}),me.jsxs("div",{className:"relative ",style:{width:K===0?"100%":`calc(100% - ${K})`,borderRadius:D,background:L,fontSize:Q,color:J,position:"relative",height:"100%",zIndex:g?10:void 0,display:"flex",flexDirection:"column"},onDrop:j,onDragOver:F,onDragLeave:A,children:[g&&me.jsx("div",{style:{position:"absolute",inset:0,background:B.colors.primary+"14",border:`4px dashed ${B.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:D},children:me.jsx("div",{style:{color:B.colors.primary,fontSize:Lm.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),me.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:g?10:void 0,display:"flex",flexDirection:"column"},children:me.jsx("div",{style:{width:"100%",minWidth:520,margin:"0 auto",flex:1,display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:e.isNew?o!=null&&o.WelcomeComponent?me.jsx(o.WelcomeComponent,{}):me.jsx(jK,{}):r.display==="loading"?o!=null&&o.DisplayLoading?me.jsx(o.DisplayLoading,{}):me.jsx(MK,{}):r.display==="error"?o!=null&&o.DisplayError?me.jsx(o.DisplayError,{}):me.jsx(FK,{}):me.jsxs("div",{ref:f,className:"relative px-8",style:{direction:"rtl",transform:"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[me.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),me.jsx("div",{style:{width:"100%",maxWidth:1200},children:me.jsx(xK,{status:r.display,messages:k,eventsEmit:n,renderAiChatBox:o==null?void 0:o.AiChatBox,renderUserChatBox:o==null?void 0:o.UserChatBox})})]})})}),me.jsx(vK,{value:m,status:r.sender,styles:R,recommandQuestions:i,eventsEmit:(Y,X)=>{_(Y,X)},uploadedFiles:h,fileUploadStatus:l,onUpload:Y=>{Y&&Y.length>0&&p(X=>[...X,...Array.from(Y).map(re=>({file:re,type:I(re)}))])},onRemoveFile:Y=>{p(X=>X.filter((re,le)=>le!==Y))},senderConfig:s,onSenderConfigChange:P})]})]})]})}function JI(e,t){return function(){return e.apply(t,arguments)}}const{toString:DK}=Object.prototype,{getPrototypeOf:Z0}=Object,kf=(e=>t=>{const n=DK.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fo=e=>(e=e.toLowerCase(),t=>kf(t)===e),Ef=e=>t=>typeof t===e,{isArray:Fs}=Array,ql=Ef("undefined");function _K(e){return e!==null&&!ql(e)&&e.constructor!==null&&!ql(e.constructor)&&Hr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eN=Fo("ArrayBuffer");function BK(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eN(e.buffer),t}const zK=Ef("string"),Hr=Ef("function"),tN=Ef("number"),$f=e=>e!==null&&typeof e=="object",LK=e=>e===!0||e===!1,Nu=e=>{if(kf(e)!=="object")return!1;const t=Z0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HK=Fo("Date"),VK=Fo("File"),WK=Fo("Blob"),qK=Fo("FileList"),KK=e=>$f(e)&&Hr(e.pipe),UK=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Hr(e.append)&&((t=kf(e))==="formdata"||t==="object"&&Hr(e.toString)&&e.toString()==="[object FormData]"))},XK=Fo("URLSearchParams"),[GK,YK,ZK,QK]=["ReadableStream","Request","Response","Headers"].map(Fo),JK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function nN(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rN=e=>!ql(e)&&e!==Ji;function ch(){const{caseless:e}=rN(this)&&this||{},t={},n=(r,o)=>{const i=e&&nN(t,o)||o;Nu(t[i])&&Nu(r)?t[i]=ch(t[i],r):Nu(r)?t[i]=ch({},r):Fs(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&wc(arguments[r],n);return t}const eU=(e,t,n,{allOwnKeys:r}={})=>(wc(t,(o,i)=>{n&&Hr(o)?e[i]=JI(o,n):e[i]=o},{allOwnKeys:r}),e),tU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nU=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},rU=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Z0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},oU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},iU=e=>{if(!e)return null;if(Fs(e))return e;let t=e.length;if(!tN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z0(Uint8Array)),sU=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},lU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},cU=Fo("HTMLFormElement"),uU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),iC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dU=Fo("RegExp"),oN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wc(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},fU=e=>{oN(e,(t,n)=>{if(Hr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Hr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pU=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Fs(e)?r(e):r(String(e).split(t)),n},mU=()=>{},gU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hU(e){return!!(e&&Hr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vU=e=>{const t=new Array(10),n=(r,o)=>{if($f(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Fs(r)?[]:{};return wc(r,(a,s)=>{const l=n(a,o+1);!ql(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},bU=Fo("AsyncFunction"),yU=e=>e&&($f(e)||Hr(e))&&Hr(e.then)&&Hr(e.catch),iN=((e,t)=>e?setImmediate:t?((n,r)=>(Ji.addEventListener("message",({source:o,data:i})=>{o===Ji&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ji.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Hr(Ji.postMessage)),xU=typeof queueMicrotask<"u"?queueMicrotask.bind(Ji):typeof process<"u"&&process.nextTick||iN,je={isArray:Fs,isArrayBuffer:eN,isBuffer:_K,isFormData:UK,isArrayBufferView:BK,isString:zK,isNumber:tN,isBoolean:LK,isObject:$f,isPlainObject:Nu,isReadableStream:GK,isRequest:YK,isResponse:ZK,isHeaders:QK,isUndefined:ql,isDate:HK,isFile:VK,isBlob:WK,isRegExp:dU,isFunction:Hr,isStream:KK,isURLSearchParams:XK,isTypedArray:aU,isFileList:qK,forEach:wc,merge:ch,extend:eU,trim:JK,stripBOM:tU,inherits:nU,toFlatObject:rU,kindOf:kf,kindOfTest:Fo,endsWith:oU,toArray:iU,forEachEntry:sU,matchAll:lU,isHTMLForm:cU,hasOwnProperty:iC,hasOwnProp:iC,reduceDescriptors:oN,freezeMethods:fU,toObjectSet:pU,toCamelCase:uU,noop:mU,toFiniteNumber:gU,findKey:nN,global:Ji,isContextDefined:rN,isSpecCompliantForm:hU,toJSONObject:vU,isAsyncFn:bU,isThenable:yU,setImmediate:iN,asap:xU};function Kt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}je.inherits(Kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:je.toJSONObject(this.config),code:this.code,status:this.status}}});const aN=Kt.prototype,sN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{sN[e]={value:e}});Object.defineProperties(Kt,sN);Object.defineProperty(aN,"isAxiosError",{value:!0});Kt.from=(e,t,n,r,o,i)=>{const a=Object.create(aN);return je.toFlatObject(e,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Kt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const wU=null;function uh(e){return je.isPlainObject(e)||je.isArray(e)}function lN(e){return je.endsWith(e,"[]")?e.slice(0,-2):e}function aC(e,t,n){return e?e.concat(t).map(function(r,o){return r=lN(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function CU(e){return je.isArray(e)&&!e.some(uh)}const SU=je.toFlatObject(je,{},null,function(e){return/^is[A-Z]/.test(e)});function Of(e,t,n){if(!je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,h){return!je.isUndefined(h[v])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&je.isSpecCompliantForm(t);if(!je.isFunction(o))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(je.isDate(v))return v.toISOString();if(!s&&je.isBlob(v))throw new Kt("Blob is not supported. Use a Buffer instead.");return je.isArrayBuffer(v)||je.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,h,p){let g=v;if(v&&!p&&typeof v=="object"){if(je.endsWith(h,"{}"))h=r?h:h.slice(0,-2),v=JSON.stringify(v);else if(je.isArray(v)&&CU(v)||(je.isFileList(v)||je.endsWith(h,"[]"))&&(g=je.toArray(v)))return h=lN(h),g.forEach(function(b,y){!(je.isUndefined(b)||b===null)&&t.append(a===!0?aC([h],y,i):a===null?h:h+"[]",l(b))}),!1}return uh(v)?!0:(t.append(aC(p,h,i),l(v)),!1)}const u=[],f=Object.assign(SU,{defaultVisitor:c,convertValue:l,isVisitable:uh});function m(v,h){if(!je.isUndefined(v)){if(u.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(v),je.forEach(v,function(p,g){(!(je.isUndefined(p)||p===null)&&o.call(t,p,je.isString(g)?g.trim():g,h,f))===!0&&m(p,h?h.concat(g):[g])}),u.pop()}}if(!je.isObject(e))throw new TypeError("data must be an object");return m(e),t}function sC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Q0(e,t){this._pairs=[],e&&Of(e,this,t)}const cN=Q0.prototype;cN.append=function(e,t){this._pairs.push([e,t])};cN.toString=function(e){const t=e?function(n){return e.call(this,n,sC)}:sC;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function kU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uN(e,t,n){if(!t)return e;const r=n&&n.encode||kU;je.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=je.isURLSearchParams(t)?t.toString():new Q0(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class lC{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){je.forEach(this.handlers,function(n){n!==null&&t(n)})}}const dN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},EU=typeof URLSearchParams<"u"?URLSearchParams:Q0,$U=typeof FormData<"u"?FormData:null,OU=typeof Blob<"u"?Blob:null,IU={isBrowser:!0,classes:{URLSearchParams:EU,FormData:$U,Blob:OU},protocols:["http","https","file","blob","url","data"]},J0=typeof window<"u"&&typeof document<"u",dh=typeof navigator=="object"&&navigator||void 0,NU=J0&&(!dh||["ReactNative","NativeScript","NS"].indexOf(dh.product)<0),MU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PU=J0&&window.location.href||"http://localhost",FU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:J0,hasStandardBrowserEnv:NU,hasStandardBrowserWebWorkerEnv:MU,navigator:dh,origin:PU},Symbol.toStringTag,{value:"Module"})),mr={...FU,...IU};function jU(e,t){return Of(e,new mr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return mr.isNode&&je.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function AU(e){return je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RU(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function fN(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&je.isArray(o)?o.length:a,l?(je.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!je.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&je.isArray(o[a])&&(o[a]=RU(o[a])),!s)}if(je.isFormData(e)&&je.isFunction(e.entries)){const n={};return je.forEachEntry(e,(r,o)=>{t(AU(r),o,n,0)}),n}return null}function TU(e,t,n){if(je.isString(e))try{return(t||JSON.parse)(e),je.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Cc={transitional:dN,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=je.isObject(e);if(o&&je.isHTMLForm(e)&&(e=new FormData(e)),je.isFormData(e))return r?JSON.stringify(fN(e)):e;if(je.isArrayBuffer(e)||je.isBuffer(e)||je.isStream(e)||je.isFile(e)||je.isBlob(e)||je.isReadableStream(e))return e;if(je.isArrayBufferView(e))return e.buffer;if(je.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return jU(e,this.formSerializer).toString();if((i=je.isFileList(e))||n.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Of(i?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),TU(e)):e}],transformResponse:[function(e){const t=this.transitional||Cc.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(je.isResponse(e)||je.isReadableStream(e))return e;if(e&&je.isString(e)&&(n&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?Kt.from(i,Kt.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mr.classes.FormData,Blob:mr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};je.forEach(["delete","get","head","post","put","patch"],e=>{Cc.headers[e]={}});const DU=je.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_U=e=>{const t={};let n,r,o;return e&&e.split(`
538
- `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&DU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cC=Symbol("internals");function Zs(e){return e&&String(e).trim().toLowerCase()}function Mu(e){return e===!1||e==null?e:je.isArray(e)?e.map(Mu):String(e)}function BU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const zU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kp(e,t,n,r,o){if(je.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!je.isString(t)){if(je.isString(r))return t.indexOf(r)!==-1;if(je.isRegExp(r))return r.test(t)}}function LU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function HU(e,t){const n=je.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Ir=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(a,s,l){const c=Zs(s);if(!c)throw new Error("header name must be a non-empty string");const u=je.findKey(r,c);(!u||r[u]===void 0||l===!0||l===void 0&&r[u]!==!1)&&(r[u||s]=Mu(a))}const i=(a,s)=>je.forEach(a,(l,c)=>o(l,c,s));if(je.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(je.isString(e)&&(e=e.trim())&&!zU(e))i(_U(e),t);else if(je.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else e!=null&&o(t,e,n);return this}get(e,t){if(e=Zs(e),e){const n=je.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return BU(r);if(je.isFunction(t))return t.call(this,r,n);if(je.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Zs(e),e){const n=je.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Kp(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function o(i){if(i=Zs(i),i){const a=je.findKey(n,i);a&&(!t||Kp(n,n[a],a,t))&&(delete n[a],r=!0)}}return je.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!e||Kp(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return je.forEach(this,(r,o)=>{const i=je.findKey(n,o);if(i){t[i]=Mu(r),delete t[o];return}const a=e?LU(o):String(o).trim();a!==o&&delete t[o],t[a]=Mu(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return je.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&je.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
539
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const t=(this[cC]=this[cC]={accessors:{}}).accessors,n=this.prototype;function r(o){const i=Zs(o);t[i]||(HU(n,o),t[i]=!0)}return je.isArray(e)?e.forEach(r):r(e),this}};Ir.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(Ir.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});je.freezeMethods(Ir);function Up(e,t){const n=this||Cc,r=t||n,o=Ir.from(r.headers);let i=r.data;return je.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function pN(e){return!!(e&&e.__CANCEL__)}function js(e,t,n){Kt.call(this,e??"canceled",Kt.ERR_CANCELED,t,n),this.name="CanceledError"}je.inherits(js,Kt,{__CANCEL__:!0});function mN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Kt("Request failed with status code "+n.status,[Kt.ERR_BAD_REQUEST,Kt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function VU(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WU(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),c=r[i];a||(a=l),n[o]=s,r[o]=l;let u=i,f=0;for(;u!==o;)f+=n[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const m=c&&l-c;return m?Math.round(f*1e3/m):void 0}}function qU(e,t){let n=0,r=1e3/t,o,i;const a=(s,l=Date.now())=>{n=l,o=null,i&&(clearTimeout(i),i=null),e.apply(null,s)};return[(...s)=>{const l=Date.now(),c=l-n;c>=r?a(s,l):(o=s,i||(i=setTimeout(()=>{i=null,a(o)},r-c)))},()=>o&&a(o)]}const ud=(e,t,n=3)=>{let r=0;const o=WU(50,250);return qU(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},uC=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dC=e=>(...t)=>je.asap(()=>e(...t)),KU=mr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,mr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(mr.origin),mr.navigator&&/(msie|trident)/i.test(mr.navigator.userAgent)):()=>!0,UU=mr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];je.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),je.isString(r)&&a.push("path="+r),je.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function XU(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GU(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gN(e,t,n){let r=!XU(t);return e&&(r||n==!1)?GU(e,t):t}const fC=e=>e instanceof Ir?{...e}:e;function ma(e,t){t=t||{};const n={};function r(c,u,f,m){return je.isPlainObject(c)&&je.isPlainObject(u)?je.merge.call({caseless:m},c,u):je.isPlainObject(u)?je.merge({},u):je.isArray(u)?u.slice():u}function o(c,u,f,m){if(je.isUndefined(u)){if(!je.isUndefined(c))return r(void 0,c,f,m)}else return r(c,u,f,m)}function i(c,u){if(!je.isUndefined(u))return r(void 0,u)}function a(c,u){if(je.isUndefined(u)){if(!je.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,f)=>o(fC(c),fC(u),f,!0)};return je.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=l[c]||o,f=u(e[c],t[c],c);je.isUndefined(f)&&u!==s||(n[c]=f)}),n}const hN=e=>{const t=ma({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Ir.from(a),t.url=uN(gN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(je.isFormData(n)){if(mr.hasStandardBrowserEnv||mr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(mr.hasStandardBrowserEnv&&(r&&je.isFunction(r)&&(r=r(t)),r||r!==!1&&KU(t.url))){const c=o&&i&&UU.read(i);c&&a.set(o,c)}return t},YU=typeof XMLHttpRequest<"u",ZU=YU&&function(e){return new Promise(function(t,n){const r=hN(e);let o=r.data;const i=Ir.from(r.headers).normalize();let{responseType:a,onUploadProgress:s,onDownloadProgress:l}=r,c,u,f,m,v;function h(){m&&m(),v&&v(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function g(){if(!p)return;const y=Ir.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:y,config:e,request:p};mN(function(w){t(w),h()},function(w){n(w),h()},x),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){p&&(n(new Kt("Request aborted",Kt.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new Kt("Network Error",Kt.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||dN;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),n(new Kt(y,x.clarifyTimeoutError?Kt.ETIMEDOUT:Kt.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&je.forEach(i.toJSON(),function(y,x){p.setRequestHeader(x,y)}),je.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),a&&a!=="json"&&(p.responseType=r.responseType),l&&([f,v]=ud(l,!0),p.addEventListener("progress",f)),s&&p.upload&&([u,m]=ud(s),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(c=y=>{p&&(n(!y||y.type?new js(null,e,p):y),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const b=VU(r.url);if(b&&mr.protocols.indexOf(b)===-1){n(new Kt("Unsupported protocol "+b+":",Kt.ERR_BAD_REQUEST,e));return}p.send(o||null)})},QU=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Kt?u:new js(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new Kt(`timeout ${t} of ms exceeded`,Kt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>je.asap(s),l}},JU=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},eX=async function*(e,t){for await(const n of tX(e))yield*JU(n,t)},tX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},pC=(e,t,n,r)=>{const o=eX(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let m=i+=f;n(m)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},If=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vN=If&&typeof ReadableStream=="function",nX=If&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bN=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rX=vN&&bN(()=>{let e=!1;const t=new Request(mr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mC=64*1024,fh=vN&&bN(()=>je.isReadableStream(new Response("").body)),dd={stream:fh&&(e=>e.body)};If&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!dd[t]&&(dd[t]=je.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Kt(`Response type '${t}' is not supported`,Kt.ERR_NOT_SUPPORT,r)})})})(new Response);const oX=async e=>{if(e==null)return 0;if(je.isBlob(e))return e.size;if(je.isSpecCompliantForm(e))return(await new Request(mr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(je.isArrayBufferView(e)||je.isArrayBuffer(e))return e.byteLength;if(je.isURLSearchParams(e)&&(e=e+""),je.isString(e))return(await nX(e)).byteLength},iX=async(e,t)=>je.toFiniteNumber(e.getContentLength())??oX(t),aX=If&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:m}=hN(e);c=c?(c+"").toLowerCase():"text";let v=QU([o,i&&i.toAbortSignal()],a),h;const p=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let g;try{if(l&&rX&&n!=="get"&&n!=="head"&&(g=await iX(u,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(je.isFormData(r)&&(S=C.headers.get("content-type"))&&u.setContentType(S),C.body){const[E,k]=uC(g,ud(dC(l)));r=pC(C.body,mC,E,k)}}je.isString(f)||(f=f?"include":"omit");const b="credentials"in Request.prototype;h=new Request(t,{...m,signal:v,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?f:void 0});let y=await fetch(h);const x=fh&&(c==="stream"||c==="response");if(fh&&(s||x&&p)){const C={};["status","statusText","headers"].forEach(O=>{C[O]=y[O]});const S=je.toFiniteNumber(y.headers.get("content-length")),[E,k]=s&&uC(S,ud(dC(s),!0))||[];y=new Response(pC(y.body,mC,E,()=>{k&&k(),p&&p()}),C)}c=c||"text";let w=await dd[je.findKey(dd,c)||"text"](y,e);return!x&&p&&p(),await new Promise((C,S)=>{mN(C,S,{data:w,headers:Ir.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(b){throw p&&p(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Kt("Network Error",Kt.ERR_NETWORK,e,h),{cause:b.cause||b}):Kt.from(b,b&&b.code,e,h)}}),ph={http:wU,xhr:ZU,fetch:aX};je.forEach(ph,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gC=e=>`- ${e}`,sX=e=>je.isFunction(e)||e===null||e===!1,yN={getAdapter:e=>{e=je.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!sX(n)&&(r=ph[(a=String(n)).toLowerCase()],r===void 0))throw new Kt(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
540
- `+i.map(gC).join(`
541
- `):" "+gC(i[0]):"as no adapter specified";throw new Kt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:ph};function Xp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new js(null,e)}function hC(e){return Xp(e),e.headers=Ir.from(e.headers),e.data=Up.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yN.getAdapter(e.adapter||Cc.adapter)(e).then(function(t){return Xp(e),t.data=Up.call(e,e.transformResponse,t),t.headers=Ir.from(t.headers),t},function(t){return pN(t)||(Xp(e),t&&t.response&&(t.response.data=Up.call(e,e.transformResponse,t.response),t.response.headers=Ir.from(t.response.headers))),Promise.reject(t)})}const xN="1.8.4",Nf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const vC={};Nf.transitional=function(e,t,n){function r(o,i){return"[Axios v"+xN+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,a)=>{if(e===!1)throw new Kt(r(i," has been removed"+(t?" in "+t:"")),Kt.ERR_DEPRECATED);return t&&!vC[i]&&(vC[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,a):!0}};Nf.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function lX(e,t,n){if(typeof e!="object")throw new Kt("options must be an object",Kt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Kt("option "+i+" must be "+l,Kt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Kt("Unknown option "+i,Kt.ERR_BAD_OPTION)}}const Pu={assertOptions:lX,validators:Nf},jo=Pu.validators;let oa=class{constructor(e){this.defaults=e,this.interceptors={request:new lC,response:new lC}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
542
- `+o):n.stack=o}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ma(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;n!==void 0&&Pu.assertOptions(n,{silentJSONParsing:jo.transitional(jo.boolean),forcedJSONParsing:jo.transitional(jo.boolean),clarifyTimeoutError:jo.transitional(jo.boolean)},!1),r!=null&&(je.isFunction(r)?t.paramsSerializer={serialize:r}:Pu.assertOptions(r,{encode:jo.function,serialize:jo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Pu.assertOptions(t,{baseUrl:jo.spelling("baseURL"),withXsrfToken:jo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&je.merge(o.common,o[t.method]);o&&je.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),t.headers=Ir.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(s=s&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const l=[];this.interceptors.response.forEach(function(v){l.push(v.fulfilled,v.rejected)});let c,u=0,f;if(!s){const v=[hC.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,l),f=v.length,c=Promise.resolve(t);u<f;)c=c.then(v[u++],v[u++]);return c}f=a.length;let m=t;for(u=0;u<f;){const v=a[u++],h=a[u++];try{m=v(m)}catch(p){h.call(this,p);break}}try{c=hC.call(this,m)}catch(v){return Promise.reject(v)}for(u=0,f=l.length;u<f;)c=c.then(l[u++],l[u++]);return c}getUri(e){e=ma(this.defaults,e);const t=gN(e.baseURL,e.url,e.allowAbsoluteUrls);return uN(t,e.params,e.paramsSerializer)}};je.forEach(["delete","get","head","options"],function(e){oa.prototype[e]=function(t,n){return this.request(ma(n||{},{method:e,url:t,data:(n||{}).data}))}});je.forEach(["post","put","patch"],function(e){function t(n){return function(r,o,i){return this.request(ma(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}oa.prototype[e]=t(),oa.prototype[e+"Form"]=t(!0)});let cX=class wN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(o,i,a){r.reason||(r.reason=new js(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new wN(function(n){t=n}),cancel:t}}};function uX(e){return function(t){return e.apply(null,t)}}function dX(e){return je.isObject(e)&&e.isAxiosError===!0}const mh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mh).forEach(([e,t])=>{mh[t]=e});function CN(e){const t=new oa(e),n=JI(oa.prototype.request,t);return je.extend(n,oa.prototype,t,{allOwnKeys:!0}),je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return CN(ma(e,r))},n}const Hn=CN(Cc);Hn.Axios=oa;Hn.CanceledError=js;Hn.CancelToken=cX;Hn.isCancel=pN;Hn.VERSION=xN;Hn.toFormData=Of;Hn.AxiosError=Kt;Hn.Cancel=Hn.CanceledError;Hn.all=function(e){return Promise.all(e)};Hn.spread=uX;Hn.isAxiosError=dX;Hn.mergeConfig=ma;Hn.AxiosHeaders=Ir;Hn.formToJSON=e=>fN(je.isHTMLForm(e)?new FormData(e):e);Hn.getAdapter=yN.getAdapter;Hn.HttpStatusCode=mh;Hn.default=Hn;const{Axios:Xne,AxiosError:Gne,CanceledError:Yne,isCancel:Zne,CancelToken:Qne,VERSION:Jne,all:ere,Cancel:tre,isAxiosError:nre,spread:rre,toFormData:ore,AxiosHeaders:ire,HttpStatusCode:are,formToJSON:sre,getAdapter:lre,mergeConfig:cre}=Hn;var gh;typeof window<"u"&&(gh=window.requestAnimationFrame);var fX=gh=gh||function(e){window.setTimeout(e,1e3/60)},pX=Date.now(),mX=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-pX};function SN(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var gX=(function(){function e(){}return e.prototype.run=function(){var t=this;fX(function(){t.springSystem.loop(mX())})},e})(),Gp=function(){this.position=0,this.velocity=0},hX=0,Jr=.001,vX=(function(){function e(n){this._id="s"+hX++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new Gp,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Gp,this._restSpeedThreshold=.001,this._tempState=new Gp,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(n){return this._springConfig=n,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(n){return Math.abs(this._endValue-n.position)},t.setEndValue=function(n){if(n===this._endValue)return this;if(this.prevEndValue=n,this._endValue===n&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=n,this._springSystem.activateSpring(this.getId());for(var r=0,o=this.listeners.length;r<o;r++){var i=this.listeners[r].onSpringEndStateChange;i&&i(this)}return this},t.setVelocity=function(n){return n===this._currentState.velocity||(this._currentState.velocity=n,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(n){this._startValue=n,this._currentState.position=n;for(var r=0,o=this.listeners.length;r<o;r++){var i=this.listeners[r];i.onSpringUpdate&&i.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(n){return this._overshootClampingEnabled=n,this},t.isOvershooting=function(){var n=this._startValue,r=this._endValue;return this._springConfig.tension>0&&(n<r&&this.getCurrentValue()>r||n>r&&this.getCurrentValue()<r)},t.advance=function(n,r){var o=this.isAtRest();if(!o||!this._wasAtRest){var i=r;r>.064&&(i=.064),this._timeAccumulator+=i;for(var a,s,l,c,u,f,m=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,p=this._currentState.velocity,g=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=Jr;)this._timeAccumulator-=Jr,this._timeAccumulator<Jr&&(this._previousState.position=h,this._previousState.velocity=p),s=m*(this._endValue-g)-v*p,c=m*(this._endValue-(g=h+(a=p)*Jr*.5))-v*(b=p+s*Jr*.5),f=m*(this._endValue-(g=h+(l=b)*Jr*.5))-v*(b=p+c*Jr*.5),g=h+(u=b)*Jr,h+=1/6*(a+2*(l+u)+(b=p+f*Jr))*Jr,p+=1/6*(s+2*(c+f)+(m*(this._endValue-g)-v*b))*Jr;this._tempState.position=g,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=p,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/Jr),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),o=!0);var y=!1;this._wasAtRest&&(this._wasAtRest=!1,y=!0);var x=!1;o&&(this._wasAtRest=!0,x=!0),this.notifyPositionUpdated(y,x)}},t.notifyPositionUpdated=function(n,r){var o=this;this.listeners.filter(Boolean).forEach(function(i){n&&i.onSpringActivate&&!o._onActivateCalled&&(i.onSpringActivate(o),o._onActivateCalled=!0),i.onSpringUpdate&&i.onSpringUpdate(o),r&&i.onSpringAtRest&&i.onSpringAtRest(o)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(n){this._currentState.position=this._currentState.position*n+this._previousState.position*(1-n),this._currentState.velocity=this._currentState.velocity*n+this._previousState.velocity*(1-n)},t.addListener=function(n){return this.listeners.push(n),this},t.addOneTimeListener=function(n){var r=this;return Object.keys(n).forEach(function(o){var i;n[o]=(i=n[o],function(){i.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return SN(this.listeners,n),this},e})(),kN=(function(){function e(n){this.looper=n||new gX,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(n,r){return this.createSpringWithConfig({tension:n,friction:r})},t.createSpringWithConfig=function(n){var r=new vX(this);return this.registerSpring(r),r.setSpringConfig(n),r},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(n){this._springRegistry[n.getId()]=n},t.deregisterSpring=function(n){SN(this._activeSprings,n),delete this._springRegistry[n.getId()]},t.advance=function(n,r){for(var o=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(a){a.systemShouldAdvance()?a.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(a))});this._idleSpringIndices.length>0;){var i=this._idleSpringIndices.pop();i>=0&&this._activeSprings.splice(i,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var i=0,a=this.listeners.length;for(i=0;i<a;i++)(r=this.listeners[i]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),i=0;i<a;i++)(r=this.listeners[i]).onAfterIntegrate&&r.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(n){var r=this._springRegistry[n];this._activeSprings.indexOf(r)===-1&&this._activeSprings.push(r),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e})();new kN;new kN;var Yp,bC;function eb(){if(bC)return Yp;bC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Yp=e,Yp}var Zp,yC;function bX(){if(yC)return Zp;yC=1;var e=typeof jc=="object"&&jc&&jc.Object===Object&&jc;return Zp=e,Zp}var Qp,xC;function EN(){if(xC)return Qp;xC=1;var e=bX(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Qp=n,Qp}var Jp,wC;function yX(){if(wC)return Jp;wC=1;var e=EN(),t=function(){return e.Date.now()};return Jp=t,Jp}var em,CC;function xX(){if(CC)return em;CC=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return em=t,em}var tm,SC;function wX(){if(SC)return tm;SC=1;var e=xX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return tm=n,tm}var nm,kC;function $N(){if(kC)return nm;kC=1;var e=EN(),t=e.Symbol;return nm=t,nm}var rm,EC;function CX(){if(EC)return rm;EC=1;var e=$N(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[o]=l:delete a[o]),u}return rm=i,rm}var om,$C;function SX(){if($C)return om;$C=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return om=n,om}var im,OC;function kX(){if(OC)return im;OC=1;var e=$N(),t=CX(),n=SX(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?t(s):n(s)}return im=a,im}var am,IC;function EX(){if(IC)return am;IC=1;function e(t){return t!=null&&typeof t=="object"}return am=e,am}var sm,NC;function $X(){if(NC)return sm;NC=1;var e=kX(),t=EX(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return sm=r,sm}var lm,MC;function OX(){if(MC)return lm;MC=1;var e=wX(),t=eb(),n=$X(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=i.test(c);return f||a.test(c)?s(c.slice(2),f?2:8):o.test(c)?r:+c}return lm=l,lm}var cm,PC;function ON(){if(PC)return cm;PC=1;var e=eb(),t=yX(),n=OX(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,c){var u,f,m,v,h,p,g=0,b=!1,y=!1,x=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(b=!!c.leading,y="maxWait"in c,m=y?o(n(c.maxWait)||0,l):m,x="trailing"in c?!!c.trailing:x);function w(j){var F=u,A=f;return u=f=void 0,g=j,v=s.apply(A,F),v}function C(j){return g=j,h=setTimeout(k,l),b?w(j):v}function S(j){var F=j-p,A=j-g,I=l-F;return y?i(I,m-A):I}function E(j){var F=j-p,A=j-g;return p===void 0||F>=l||F<0||y&&A>=m}function k(){var j=t();if(E(j))return O(j);h=setTimeout(k,S(j))}function O(j){return h=void 0,x&&u?w(j):(u=f=void 0,v)}function $(){h!==void 0&&clearTimeout(h),g=0,u=p=f=h=void 0}function N(){return h===void 0?v:O(t())}function _(){var j=t(),F=E(j);if(u=arguments,f=this,p=j,F){if(h===void 0)return C(p);if(y)return clearTimeout(h),h=setTimeout(k,l),w(p)}return h===void 0&&(h=setTimeout(k,l)),v}return _.cancel=$,_.flush=N,_}return cm=a,cm}ON();var um,FC;function IX(){if(FC)return um;FC=1;var e=ON(),t=eb(),n="Expected a function";function r(o,i,a){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(a)&&(s="leading"in a?!!a.leading:s,l="trailing"in a?!!a.trailing:l),e(o,i,{leading:s,maxWait:i,trailing:l})}return um=r,um}IX();/*!
543
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
544
- *
545
- * Copyright (c) 2014-2017, Jon Schlinkert.
546
- * Released under the MIT License.
547
- */function jC(e){return Object.prototype.toString.call(e)==="[object Object]"}function pr(e){var t,n;return jC(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(jC(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var IN=Symbol.for("immer-nothing"),AC=Symbol.for("immer-draftable"),Wr=Symbol.for("immer-state");function xo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fs=Object.getPrototypeOf;function ga(e){return!!e&&!!e[Wr]}function ha(e){var t;return e?NN(e)||Array.isArray(e)||!!e[AC]||!!((t=e.constructor)!=null&&t[AC])||Pf(e)||Ff(e):!1}var NX=Object.prototype.constructor.toString();function NN(e){if(!e||typeof e!="object")return!1;const t=fs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===NX}function fd(e,t){Mf(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Mf(e){const t=e[Wr];return t?t.type_:Array.isArray(e)?1:Pf(e)?2:Ff(e)?3:0}function hh(e,t){return Mf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function MN(e,t,n){const r=Mf(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function MX(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pf(e){return e instanceof Map}function Ff(e){return e instanceof Set}function Wi(e){return e.copy_||e.base_}function vh(e,t){if(Pf(e))return new Map(e);if(Ff(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=NN(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Wr];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(fs(e),r)}else{const r=fs(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function tb(e,t=!1){return jf(e)||ga(e)||!ha(e)||(Mf(e)>1&&(e.set=e.add=e.clear=e.delete=PX),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>tb(r,!0))),e}function PX(){xo(2)}function jf(e){return Object.isFrozen(e)}var FX={};function va(e){const t=FX[e];return t||xo(0,e),t}var Kl;function PN(){return Kl}function jX(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function RC(e,t){t&&(va("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bh(e){yh(e),e.drafts_.forEach(AX),e.drafts_=null}function yh(e){e===Kl&&(Kl=e.parent_)}function TC(e){return Kl=jX(Kl,e)}function AX(e){const t=e[Wr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function DC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Wr].modified_&&(bh(t),xo(4)),ha(e)&&(e=pd(t,e),t.parent_||md(t,e)),t.patches_&&va("Patches").generateReplacementPatches_(n[Wr].base_,e,t.patches_,t.inversePatches_)):e=pd(t,n,[]),bh(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==IN?e:void 0}function pd(e,t,n){if(jf(t))return t;const r=t[Wr];if(!r)return fd(t,(o,i)=>_C(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return md(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),fd(i,(s,l)=>_C(e,r,o,s,l,n,a)),md(e,o,!1),n&&e.patches_&&va("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _C(e,t,n,r,o,i,a){if(ga(o)){const s=i&&t&&t.type_!==3&&!hh(t.assigned_,r)?i.concat(r):void 0,l=pd(e,o,s);if(MN(n,r,l),ga(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(ha(o)&&!jf(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;pd(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&md(e,o)}}function md(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tb(t,n)}function RX(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:PN(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=nb;n&&(o=[r],i=Ul);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var nb={get(e,t){if(t===Wr)return e;const n=Wi(e);if(!hh(n,t))return TX(e,n,t);const r=n[t];return e.finalized_||!ha(r)?r:r===dm(e.base_,t)?(fm(e),e.copy_[t]=wh(r,e)):r},has(e,t){return t in Wi(e)},ownKeys(e){return Reflect.ownKeys(Wi(e))},set(e,t,n){const r=FN(Wi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=dm(Wi(e),t),i=o==null?void 0:o[Wr];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(MX(n,o)&&(n!==void 0||hh(e.base_,t)))return!0;fm(e),xh(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return dm(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,fm(e),xh(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Wi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xo(11)},getPrototypeOf(e){return fs(e.base_)},setPrototypeOf(){xo(12)}},Ul={};fd(nb,(e,t)=>{Ul[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ul.deleteProperty=function(e,t){return Ul.set.call(this,e,t,void 0)};Ul.set=function(e,t,n){return nb.set.call(this,e[0],t,n,e[0])};function dm(e,t){const n=e[Wr];return(n?Wi(n):e)[t]}function TX(e,t,n){var r;const o=FN(t,n);return o?"value"in o?o.value:(r=o.get)==null?void 0:r.call(e.draft_):void 0}function FN(e,t){if(!(t in e))return;let n=fs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=fs(n)}}function xh(e){e.modified_||(e.modified_=!0,e.parent_&&xh(e.parent_))}function fm(e){e.copy_||(e.copy_=vh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var DX=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...l){return a.produce(s,c=>n.call(this,c,...l))}}typeof n!="function"&&xo(6),r!==void 0&&typeof r!="function"&&xo(7);let o;if(ha(t)){const i=TC(this),a=wh(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?bh(i):yh(i)}return RC(i,r),DC(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===IN&&(o=void 0),this.autoFreeze_&&tb(o,!0),r){const i=[],a=[];va("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else xo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,s=>t(s,...a));let r,o;return[this.produce(t,n,(i,a)=>{r=i,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ha(e)||xo(8),ga(e)&&(e=_X(e));const t=TC(this),n=wh(e,void 0);return n[Wr].isManual_=!0,yh(t),n}finishDraft(e,t){const n=e&&e[Wr];(!n||!n.isManual_)&&xo(9);const{scope_:r}=n;return RC(r,t),DC(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=va("Patches").applyPatches_;return ga(e)?r(e,t):this.produce(e,o=>r(o,t))}};function wh(e,t){const n=Pf(e)?va("MapSet").proxyMap_(e,t):Ff(e)?va("MapSet").proxySet_(e,t):RX(e,t);return(t?t.scope_:PN()).drafts_.push(n),n}function _X(e){return ga(e)||xo(10,e),jN(e)}function jN(e){if(!ha(e)||jf(e))return e;const t=e[Wr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=vh(e,t.scope_.immer_.useStrictShallowCopy_)}else n=vh(e,!0);return fd(n,(r,o)=>{MN(n,r,jN(o))}),t&&(t.finalized_=!1),n}var qr=new DX,rb=qr.produce;qr.produceWithPatches.bind(qr);qr.setAutoFreeze.bind(qr);qr.setUseStrictShallowCopy.bind(qr);qr.applyPatches.bind(qr);var BC=qr.createDraft.bind(qr),zC=qr.finishDraft.bind(qr),et={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=et.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],i=t[r];if(o!==i)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return et.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return et.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return et.equals(r,o)&&i<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return et.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&et.compare(e,t)===0},isBefore(e,t){return et.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&et.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&et.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&et.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&et.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],i=t[t.length-1];return o!==i&&et.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!et.isAncestor(t,e)&&!et.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:i}=t;(et.equals(i,r)||et.endsBefore(i,r)||et.isAncestor(i,r))&&(r[i.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(et.equals(a,r)||et.isAncestor(a,r))return null;et.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:s,position:l}=t;et.equals(s,r)||et.endsBefore(s,r)?r[s.length-1]-=1:et.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break}case"split_node":{var{path:c,position:u}=t;if(et.equals(c,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else et.endsBefore(c,r)?r[c.length-1]+=1:et.isAncestor(c,r)&&e[c.length]>=u&&(r[c.length-1]+=1,r[c.length]-=u);break}case"move_node":{var{path:f,newPath:m}=t;if(et.equals(f,m))return r;if(et.isAncestor(f,r)||et.equals(f,r)){var v=m.slice();return et.endsBefore(f,m)&&f.length<m.length&&(v[f.length-1]-=1),v.concat(r.slice(f.length))}else et.isSibling(f,m)&&(et.isAncestor(m,r)||et.equals(m,r))?et.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:et.endsBefore(m,r)||et.equals(m,r)||et.isAncestor(m,r)?(et.endsBefore(f,r)&&(r[f.length-1]-=1),r[m.length-1]+=1):et.endsBefore(f,r)&&(et.equals(m,r)&&(r[m.length-1]+=1),r[f.length-1]-=1);break}}return r}};function Xl(e){"@babel/helpers - typeof";return Xl=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},Xl(e)}function BX(e,t){if(Xl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zX(e){var t=BX(e,"string");return Xl(t)==="symbol"?t:String(t)}function As(e,t,n){return t=zX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LC(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var LX=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,i=Ht.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of Yt.points(t))t[l]=Nn.transform(s,n);break}case"insert_text":{var{path:c,offset:u,text:f}=n;if(f.length===0)break;var m=Ht.leaf(e,c),v=m.text.slice(0,u),h=m.text.slice(u);if(m.text=v+f+h,t)for(var[p,g]of Yt.points(t))t[g]=Nn.transform(p,n);break}case"merge_node":{var{path:b}=n,y=Ht.get(e,b),x=et.previous(b),w=Ht.get(e,x),C=Ht.parent(e,b),S=b[b.length-1];if(Tn.isText(y)&&Tn.isText(w))w.text+=y.text;else if(!Tn.isText(y)&&!Tn.isText(w))w.children.push(...y.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b,"] to nodes of different interfaces: ").concat(_r.stringify(y)," ").concat(_r.stringify(w)));if(C.children.splice(S,1),t)for(var[E,k]of Yt.points(t))t[k]=Nn.transform(E,n);break}case"move_node":{var{path:O,newPath:$}=n;if(et.isAncestor(O,$))throw new Error("Cannot move a path [".concat(O,"] to new path [").concat($,"] because the destination is inside itself."));var N=Ht.get(e,O),_=Ht.parent(e,O),j=O[O.length-1];_.children.splice(j,1);var F=et.transform(O,n),A=Ht.get(e,et.parent(F)),I=F[F.length-1];if(A.children.splice(I,0,N),t)for(var[P,M]of Yt.points(t))t[M]=Nn.transform(P,n);break}case"remove_node":{var{path:z}=n,B=z[z.length-1],H=Ht.parent(e,z);if(H.children.splice(B,1),t)for(var[T,R]of Yt.points(t)){var D=Nn.transform(T,n);if(t!=null&&D!=null)t[R]=D;else{var L=void 0,V=void 0;for(var[q,K]of Ht.texts(e))if(et.compare(K,z)===-1)L=[q,K];else{V=[q,K];break}var Q=!1;L&&V&&(et.equals(V[1],z)?Q=!et.hasPrevious(V[1]):Q=et.common(L[1],z).length<et.common(V[1],z).length),L&&!Q?(T.path=L[1],T.offset=L[0].text.length):V?(T.path=V[1],T.offset=0):t=null}}break}case"remove_text":{var{path:U,offset:J,text:Y}=n;if(Y.length===0)break;var X=Ht.leaf(e,U),re=X.text.slice(0,J),le=X.text.slice(J+Y.length);if(X.text=re+le,t)for(var[oe,de]of Yt.points(t))t[de]=Nn.transform(oe,n);break}case"set_node":{var{path:he,properties:ke,newProperties:Oe}=n;if(he.length===0)throw new Error("Cannot set properties on the root node!");var pe=Ht.get(e,he);for(var we in Oe){if(we==="children"||we==="text")throw new Error('Cannot set the "'.concat(we,'" property of nodes!'));var ne=Oe[we];ne==null?delete pe[we]:pe[we]=ne}for(var xe in ke)Oe.hasOwnProperty(xe)||delete pe[xe];break}case"set_selection":{var{newProperties:Pe}=n;if(Pe==null)t=Pe;else{if(t==null){if(!Yt.isRange(Pe))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(_r.stringify(Pe)," when there is no current selection."));t=Qs({},Pe)}for(var ue in Pe){var Re=Pe[ue];if(Re==null){if(ue==="anchor"||ue==="focus")throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=Re}}break}case"split_node":{var{path:Te,position:De,properties:be}=n;if(Te.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Te,"] because the root node cannot be split."));var Ie=Ht.get(e,Te),Ne=Ht.parent(e,Te),$e=Te[Te.length-1],fe;if(Tn.isText(Ie)){var ye=Ie.text.slice(0,De),Ve=Ie.text.slice(De);Ie.text=ye,fe=Qs(Qs({},be),{},{text:Ve})}else{var ge=Ie.children.slice(0,De),Ze=Ie.children.slice(De);Ie.children=ge,fe=Qs(Qs({},be),{},{children:Ze})}if(Ne.children.splice($e+1,0,fe),t)for(var[ut,xt]of Yt.points(t))t[xt]=Nn.transform(ut,n);break}}return t},HX={transform(e,t){e.children=BC(e.children);var n=e.selection&&BC(e.selection);try{n=LX(e,n,t)}finally{e.children=zC(e.children),n?e.selection=ga(n)?zC(n):n:e.selection=null}}},VX={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},WX={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},AN=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(pr(r)&&pr(o)){if(!AN(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0};function qX(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Gl(e,t){if(e==null)return{};var n=qX(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var KX=["anchor","focus"];function HC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function UX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HC(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Yt={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Yt.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Yt.edges(e);return t},equals(e,t){return Nn.equals(e.anchor,t.anchor)&&Nn.equals(e.focus,t.focus)},includes(e,t){if(Yt.isRange(t)){if(Yt.includes(e,t.anchor)||Yt.includes(e,t.focus))return!0;var[n,r]=Yt.edges(e),[o,i]=Yt.edges(t);return Nn.isBefore(n,o)&&Nn.isAfter(r,i)}var[a,s]=Yt.edges(e),l=!1,c=!1;return Nn.isPoint(t)?(l=Nn.compare(t,a)>=0,c=Nn.compare(t,s)<=0):(l=et.compare(t,a.path)>=0,c=et.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=Gl(e,KX),[r,o]=Yt.edges(e),[i,a]=Yt.edges(t),s=Nn.isBefore(r,i)?i:r,l=Nn.isBefore(o,a)?o:a;return Nn.isBefore(l,s)?null:UX({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Nn.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Nn.equals(t,n)},isExpanded(e){return!Yt.isCollapsed(e)},isForward(e){return!Yt.isBackward(e)},isRange(e){return pr(e)&&Nn.isPoint(e.anchor)&&Nn.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Yt.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rb(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,i,a;if(o==="inward"){var s=Yt.isCollapsed(r);Yt.isForward(r)?(i="forward",a=s?i:"backward"):(i="backward",a=s?i:"forward")}else o==="outward"?Yt.isForward(r)?(i="backward",a="forward"):(i="forward",a="backward"):(i=o,a=o);var l=Nn.transform(r.anchor,t,{affinity:i}),c=Nn.transform(r.focus,t,{affinity:a});if(!l||!c)return null;r.anchor=l,r.focus=c})}},VC=e=>pr(e)&&Ht.isNodeList(e.children)&&!xn.isEditor(e),Zo={isAncestor(e){return pr(e)&&Ht.isNodeList(e.children)},isElement:VC,isElementList(e){return Array.isArray(e)&&e.every(t=>Zo.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return VC(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},XX=["children"],GX=["text"],WC=new WeakMap,Ht={ancestor(e,t){var n=Ht.get(e,t);if(Tn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(_r.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of et.ancestors(t,n)){var o=Ht.ancestor(e,r),i=[o,r];yield i}})()},child(e,t){if(Tn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(_r.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(_r.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var{reverse:r=!1}=n,o=Ht.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Ht.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}})()},common(e,t,n){var r=et.common(t,n),o=Ht.get(e,r);return[o,r]},descendant(e,t){var n=Ht.get(e,t);if(xn.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(_r.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Ht.nodes(e,t))r.length!==0&&(yield[n,r])})()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Ht.nodes(e,t))Zo.isElement(n)&&(yield[n,r])})()},extractProps(e){if(Zo.isAncestor(e)){var t=Gl(e,XX);return t}else{var t=Gl(e,GX);return t}},first(e,t){for(var n=t.slice(),r=Ht.get(e,n);r&&!(Tn.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Tn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(_r.stringify(e)));var n=rb({children:e.children},r=>{var[o,i]=Yt.edges(t),a=Ht.nodes(r,{reverse:!0,pass:m=>{var[,v]=m;return!Yt.includes(t,v)}});for(var[,s]of a){if(!Yt.includes(t,s)){var l=Ht.parent(r,s),c=s[s.length-1];l.children.splice(c,1)}if(et.equals(s,i.path)){var u=Ht.leaf(r,s);u.text=u.text.slice(0,i.offset)}if(et.equals(s,o.path)){var f=Ht.leaf(r,s);f.text=f.text.slice(o.offset)}}xn.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Tn.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(_r.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Tn.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Tn.isText(e)||Zo.isElement(e)||xn.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=WC.get(e);if(t!==void 0)return t;var n=e.every(r=>Ht.isNode(r));return WC.set(e,n),n},last(e,t){for(var n=t.slice(),r=Ht.get(e,n);r&&!(Tn.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Ht.get(e,t);if(!Tn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(_r.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of et.levels(t,n)){var o=Ht.get(e,r);yield[o,r]}})()},matches(e,t){return Zo.isElement(e)&&Zo.isElementProps(t)&&Zo.matches(e,t)||Tn.isText(e)&&Tn.isTextProps(t)&&Tn.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!(i&&(r?et.isBefore(s,i):et.isAfter(s,i)));){if(a.has(l)||(yield[l,s]),!a.has(l)&&!Tn.isText(l)&&l.children.length!==0&&(n==null||n([l,s])===!1)){a.add(l);var c=r?l.children.length-1:0;et.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),l=Ht.get(e,s);continue}if(s.length===0)break;if(!r){var u=et.next(s);if(Ht.has(e,u)){s=u,l=Ht.get(e,s);continue}}if(r&&s[s.length-1]!==0){var f=et.previous(s);s=f,l=Ht.get(e,s);continue}s=et.parent(s),l=Ht.get(e,s),a.add(l)}})()},parent(e,t){var n=et.parent(t),r=Ht.get(e,n);if(Tn.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Tn.isText(e)?e.text:e.children.map(Ht.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Ht.nodes(e,t))Tn.isText(n)&&(yield[n,r])})()}};function qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qC(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ul={isNodeOperation(e){return ul.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!pr(e))return!1;switch(e.type){case"insert_node":return et.isPath(e.path)&&Ht.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&et.isPath(e.path);case"merge_node":return typeof e.position=="number"&&et.isPath(e.path)&&pr(e.properties);case"move_node":return et.isPath(e.path)&&et.isPath(e.newPath);case"remove_node":return et.isPath(e.path)&&Ht.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&et.isPath(e.path);case"set_node":return et.isPath(e.path)&&pr(e.properties)&&pr(e.newProperties);case"set_selection":return e.properties===null&&Yt.isRange(e.newProperties)||e.newProperties===null&&Yt.isRange(e.properties)||pr(e.properties)&&pr(e.newProperties);case"split_node":return et.isPath(e.path)&&typeof e.position=="number"&&pr(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>ul.isOperation(t))},isSelectionOperation(e){return ul.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return ul.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return jn(jn({},e),{},{type:"remove_node"});case"insert_text":return jn(jn({},e),{},{type:"remove_text"});case"merge_node":return jn(jn({},e),{},{type:"split_node",path:et.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(et.equals(t,n))return e;if(et.isSibling(n,t))return jn(jn({},e),{},{path:t,newPath:n});var r=et.transform(n,e),o=et.transform(et.next(n),e);return jn(jn({},e),{},{path:r,newPath:o})}case"remove_node":return jn(jn({},e),{},{type:"insert_node"});case"remove_text":return jn(jn({},e),{},{type:"insert_text"});case"set_node":{var{properties:i,newProperties:a}=e;return jn(jn({},e),{},{properties:a,newProperties:i})}case"set_selection":{var{properties:s,newProperties:l}=e;return s==null?jn(jn({},e),{},{properties:l,newProperties:null}):l==null?jn(jn({},e),{},{properties:null,newProperties:s}):jn(jn({},e),{},{properties:l,newProperties:s})}case"split_node":return jn(jn({},e),{},{type:"merge_node",path:et.next(e.path)})}}},KC=new WeakMap,YX=e=>{var t=KC.get(e);if(t!==void 0)return t;if(!pr(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||pr(e.marks))&&(e.selection===null||Yt.isRange(e.selection))&&Ht.isNodeList(e.children)&&ul.isOperationList(e.operations);return KC.set(e,n),n},xn={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return YX(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function UC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function XC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UC(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Nn={compare(e,t){var n=et.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Nn.compare(e,t)===1},isBefore(e,t){return Nn.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&et.equals(e.path,t.path)},isPoint(e){return pr(e)&&typeof e.offset=="number"&&et.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rb(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=et.transform(i,t,n);break}case"insert_text":{et.equals(t.path,i)&&(t.offset<a||t.offset===a&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{et.equals(t.path,i)&&(r.offset+=t.position),r.path=et.transform(i,t,n);break}case"remove_text":{et.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(et.equals(t.path,i)||et.isAncestor(t.path,i))return null;r.path=et.transform(i,t,n);break}case"split_node":{if(et.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=et.transform(i,t,XC(XC({},n),{},{affinity:"forward"})))}else r.path=et.transform(i,t,n);break}}})}},GC=void 0,_r={setScrubber(e){GC=e},stringify(e){return JSON.stringify(e,GC)}},ZX=["text"],QX=["anchor","focus"];function YC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YC(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Tn={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){var a=Gl(i,ZX);return a}return AN(r?o(e):e,r?o(t):t)},isText(e){return pr(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Tn.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Yo({},e)];for(var r of t){var o=Gl(r,QX),[i,a]=Yt.edges(r),s=[],l=0,c=i.offset,u=a.offset;for(var f of n){var{length:m}=f.text,v=l;if(l+=m,c<=v&&l<=u){Object.assign(f,o),s.push(f);continue}if(c!==u&&(c===l||u===v)||c>l||u<v||u===v&&v!==0){s.push(f);continue}var h=f,p=void 0,g=void 0;if(u<l){var b=u-v;g=Yo(Yo({},h),{},{text:h.text.slice(b)}),h=Yo(Yo({},h),{},{text:h.text.slice(0,b)})}if(c>v){var y=c-v;p=Yo(Yo({},h),{},{text:h.text.slice(0,y)}),h=Yo(Yo({},h),{},{text:h.text.slice(y)})}Object.assign(h,o),p&&s.push(p),s.push(h),g&&s.push(g)}n=s}return n}},JX=e=>e.selection?e.selection:e.children.length>0?xn.end(e,[]):[0],In;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(In||(In={}));In.L,In.L|In.V|In.LV|In.LVT,In.LV|In.V,In.V|In.T,In.LVT|In.T,In.T,In.Any,In.Extend|In.ZWJ,In.Any,In.SpacingMark,In.Prepend,In.Any,In.ZWJ,In.ExtPict,In.RI,In.RI;var eG={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};xn.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=JX(e)}=n;if(et.isPath(o)&&(o=xn.range(e,o)),Yt.isRange(o))if(Yt.isCollapsed(o))o=o.anchor;else{var i=Yt.end(o);if(!r&&xn.void(e,{at:i}))return;var a=Yt.start(o),s=xn.pointRef(e,a),l=xn.pointRef(e,i);gd.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,gd.setSelection(e,{anchor:o,focus:o})}if(!(!r&&xn.void(e,{at:o})||xn.elementReadOnly(e,{at:o}))){var{path:f,offset:m}=o;t.length>0&&e.apply({type:"insert_text",path:f,offset:m,text:t})}})}};function ZC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZC(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gd=nu(nu(nu(nu({},HX),VX),WX),eG),QC;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(QC||(QC={}));var ob=function(e){return Object.freeze(e)},tG=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ob(this)}return e})(),nG=(function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ob(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),JC=typeof window<"u"?window:{};/msie|trident/i.test(JC.navigator&&JC.navigator.userAgent);var pm=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new tG((n?t:e)||0,(n?e:t)||0)};ob({devicePixelContentBoxSize:pm(),borderBoxSize:pm(),contentBoxSize:pm(),contentRect:new nG(0,0,0,0)});var po={},eS;function rG(){if(eS)return po;eS=1,Object.defineProperty(po,"__esModule",{value:!0});for(var e=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},r={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)r["f"+o]=111+o;function i(m,v,h){v&&!("byKey"in v)&&(h=v,v=null),Array.isArray(m)||(m=[m]);var p=m.map(function(y){return l(y,v)}),g=function(y){return p.some(function(x){return c(x,y)})},b=h==null?g:g(h);return b}function a(m,v){return i(m,v)}function s(m,v){return i(m,{byKey:!0},v)}function l(m,v){var h=v&&v.byKey,p={};m=m.replace("++","+add");var g=m.split("+"),b=g.length;for(var y in t)p[t[y]]=!1;var x=!0,w=!1,C=void 0;try{for(var S=g[Symbol.iterator](),E;!(x=(E=S.next()).done);x=!0){var k=E.value,O=k.endsWith("?")&&k.length>1;O&&(k=k.slice(0,-1));var $=f(k),N=t[$];if(k.length>1&&!N&&!n[k]&&!r[$])throw new TypeError('Unknown modifier: "'+k+'"');(b===1||!N)&&(h?p.key=$:p.which=u(k)),N&&(p[N]=O?null:!0)}}catch(_){w=!0,C=_}finally{try{!x&&S.return&&S.return()}finally{if(w)throw C}}return p}function c(m,v){for(var h in m){var p=m[h],g=void 0;if(p!=null&&(h==="key"&&v.key!=null?g=v.key.toLowerCase():h==="which"?g=p===91&&v.which===93?91:v.which:g=v[h],!(g==null&&p===!1)&&g!==p))return!1}return!0}function u(m){m=f(m);var v=r[m]||m.toUpperCase().charCodeAt(0);return v}function f(m){return m=m.toLowerCase(),m=n[m]||m,m}return po.default=i,po.isHotkey=i,po.isCodeHotkey=a,po.isKeyHotkey=s,po.parseHotkey=l,po.compareHotkey=c,po.toKeyCode=u,po.toKeyName=f,po}var mm=rG();function Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}function oG(e,t){if(Yl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iG(e){var t=oG(e,"string");return Yl(t)==="symbol"?t:String(t)}function wl(e,t,n){return t=iG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aG=Kr(null),gm,hm;parseInt(se.version.split(".")[0],10);var tS=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),vm=typeof navigator<"u"&&/Android/.test(navigator.userAgent),ru=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sG=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent);typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&(gm=navigator.userAgent.match(/Version\/(\d+)/))!==null&&gm!==void 0&&gm[1]&&parseInt((hm=navigator.userAgent.match(/Version\/(\d+)/))===null||hm===void 0?void 0:hm[1],10)<17;var lG=new WeakMap,cG=new WeakMap,uG=new WeakMap,dG=new WeakMap,fG=new WeakMap,nS=new WeakMap,pG=new WeakMap,rS=new WeakMap,ou=new WeakMap,mG=new WeakMap,gG=new WeakMap,hG=new WeakMap,RN=globalThis.Node,vG=globalThis.Text,TN=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,bG=e=>hd(e)&&e.nodeType===8,Bo=e=>hd(e)&&e.nodeType===1,hd=e=>{var t=TN(e);return!!t&&e instanceof t.Node},oS=e=>{var t=e&&e.anchorNode&&TN(e.anchorNode);return!!t&&e instanceof t.Selection},yG=e=>{var[t,n]=e;if(Bo(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=DN(t,o,r?"backward":"forward"),r=o<n;Bo(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=wG(t,i,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},xG=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},DN=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],i=t,a=!1,s=!1;(bG(o)||Bo(o)&&o.childNodes.length===0||Bo(o)&&o.getAttribute("contenteditable")==="false")&&!(a&&s);){if(i>=r.length){a=!0,i=t-1,n="backward";continue}if(i<0){s=!0,i=t+1,n="forward";continue}o=r[i],t=i,i+=n==="forward"?1:-1}return[o,t]},wG=(e,t,n)=>{var[r]=DN(e,t,n);return r},iS=e=>e.getSelection!=null?e.getSelection():document.getSelection(),_N=(e,t,n)=>{var{target:r}=t;if(Bo(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=en.getWindow(e);if(o.contains(r))return en.hasDOMNode(e,r,{editable:!0});var i=n.find(a=>{var{addedNodes:s,removedNodes:l}=a;for(var c of s)if(c===r||c.contains(r))return!0;for(var u of l)if(u===r||u.contains(r))return!0});return!i||i===t?!1:_N(e,i,n)},aS=(e,t)=>!!(e.compareDocumentPosition(t)&RN.DOCUMENT_POSITION_PRECEDING),CG=(e,t)=>!!(e.compareDocumentPosition(t)&RN.DOCUMENT_POSITION_FOLLOWING),SG=0;class kG{constructor(){wl(this,"id",void 0),this.id="".concat(SG++)}}var en={androidPendingDiffs:e=>hG.get(e),androidScheduleFlush:e=>{var t;(t=gG.get(e))===null||t===void 0||t()},blur:e=>{var t=en.toDOMNode(e,e),n=en.findDocumentOrShadowRoot(e);ou.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=en.findDocumentOrShadowRoot(e),r=iS(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&gd.deselect(e)},findDocumentOrShadowRoot:e=>{var t=en.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i=en.toSlateNode(e,t.target),a=en.findPath(e,i);if(Zo.isElement(i)&&xn.isVoid(e,i)){var s=o.getBoundingClientRect(),l=e.isInline(i)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=xn.point(e,a,{edge:l?"start":"end"}),u=l?xn.before(e,c):xn.after(e,c);if(u){var f=xn.range(e,u);return f}}var m,{document:v}=en.getWindow(e);if(v.caretRangeFromPoint)m=v.caretRangeFromPoint(n,r);else{var h=v.caretPositionFromPoint(n,r);h&&(m=v.createRange(),m.setStart(h.offsetNode,h.offset),m.setEnd(h.offsetNode,h.offset))}if(!m)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var p=en.toSlateRange(e,m,{exactMatch:!1,suppressThrow:!1});return p},findKey:(e,t)=>{var n=nS.get(t);return n||(n=new kG,nS.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=cG.get(r);if(o==null){if(xn.isEditor(r))return n;break}var i=lG.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(_r.stringify(t)))},focus:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!ou.get(e)){if(t.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0){setTimeout(()=>{en.focus(e,{retries:t.retries-1})},10);return}var n=en.toDOMNode(e,e),r=en.findDocumentOrShadowRoot(e);if(r.activeElement!==n){if(e.selection&&r instanceof Document){var o=iS(r),i=en.toDOMRange(e,e.selection);o==null||o.removeAllRanges(),o==null||o.addRange(i)}e.selection||gd.select(e,xn.start(e,[])),ou.set(e,!0),n.focus({preventScroll:!0})}}},getWindow:e=>{var t=uG.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:r=!1}=n,o=en.toDOMNode(e,e),i;try{i=Bo(t)?t:t.parentElement}catch(a){if(a instanceof Error&&!a.message.includes('Permission denied to access property "nodeType"'))throw a}return i?i.closest("[data-slate-editor]")===o&&(!r||i.isContentEditable?!0:typeof i.isContentEditable=="boolean"&&i.closest('[contenteditable="false"]')===o||!!i.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>hd(t)&&en.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return xn.hasPath(e,n.path)&&xn.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>en.hasEditableTarget(e,t)||en.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>hd(t)&&en.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!mG.get(e),isFocused:e=>!!ou.get(e),isReadOnly:e=>!!rS.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(rS.get(e))return!1;var n=en.hasTarget(e,t)&&en.toSlateNode(e,t);return Zo.isElement(n)&&xn.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=pG.get(e),r=xn.isEditor(t)?dG.get(e):n==null?void 0:n.get(en.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(_r.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=xn.node(e,t.path),r=en.toDOMNode(e,n),o;xn.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i="[data-slate-string], [data-slate-zero-width]",a=Array.from(r.querySelectorAll(i)),s=0,l=0;l<a.length;l++){var c=a[l],u=c.childNodes[0];if(!(u==null||u.textContent==null)){var{length:f}=u.textContent,m=c.getAttribute("data-slate-length"),v=m==null?f:parseInt(m,10),h=s+v,p=a[l+1];if(t.offset===h&&p!==null&&p!==void 0&&p.hasAttribute("data-slate-mark-placeholder")){var g,b=p.childNodes[0];o=[b instanceof vG?b:p,(g=p.textContent)!==null&&g!==void 0&&g.startsWith("\uFEFF")?1:0];break}if(t.offset<=h){var y=Math.min(f,Math.max(0,t.offset-s));o=[u,y];break}s=h}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(_r.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=Yt.isBackward(t),i=en.toDOMPoint(e,n),a=Yt.isCollapsed(t)?i:en.toDOMPoint(e,r),s=en.getWindow(e),l=s.document.createRange(),[c,u]=o?a:i,[f,m]=o?i:a,v=Bo(c)?c:c.parentElement,h=!!v.getAttribute("data-slate-zero-width"),p=Bo(f)?f:f.parentElement,g=!!p.getAttribute("data-slate-zero-width");return l.setStart(c,h?1:u),l.setEnd(f,g?1:m),l},toSlateNode:(e,t)=>{var n=Bo(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?fG.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o,searchDirection:i="backward"}=n,[a,s]=r?t:yG(t),l=a.parentNode,c=null,u=0;if(l){var f,m,v=en.toDOMNode(e,e),h=l.closest('[data-slate-void="true"]'),p=h&&v.contains(h)?h:null,g=l.closest('[contenteditable="false"]'),b=g&&v.contains(g)?g:null,y=l.closest("[data-slate-leaf]"),x=null;if(y){if(c=y.closest('[data-slate-node="text"]'),c){var w=en.getWindow(e),C=w.document.createRange();C.setStart(c,0),C.setEnd(a,s);var S=C.cloneContents(),E=[...Array.prototype.slice.call(S.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(S.querySelectorAll("[contenteditable=false]"))];E.forEach(R=>{if(vm&&!r&&R.hasAttribute("data-slate-zero-width")&&R.textContent.length>0&&R.textContext!=="\uFEFF"){R.textContent.startsWith("\uFEFF")&&(R.textContent=R.textContent.slice(1));return}R.parentNode.removeChild(R)}),u=S.textContent.length,x=c}}else if(p){for(var k=p.querySelectorAll("[data-slate-leaf]"),O=0;O<k.length;O++){var $=k[O];if(en.hasDOMNode(e,$)){y=$;break}}y?(c=y.closest('[data-slate-node="text"]'),x=y,u=x.textContent.length,x.querySelectorAll("[data-slate-zero-width]").forEach(R=>{u-=R.textContent.length})):u=1}else if(b){var N=R=>R?R.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],_=b.closest('[data-slate-node="element"]');if(i==="forward"){var j,F=[...N(_),...N(_==null?void 0:_.nextElementSibling)];y=(j=F.find(R=>CG(b,R)))!==null&&j!==void 0?j:null}else{var A,I=[...N(_==null?void 0:_.previousElementSibling),...N(_)];y=(A=I.findLast(R=>aS(b,R)))!==null&&A!==void 0?A:null}y&&(c=y.closest('[data-slate-node="text"]'),x=y,i==="forward"?u=0:(u=x.textContent.length,x.querySelectorAll("[data-slate-zero-width]").forEach(R=>{u-=R.textContent.length})))}x&&u===x.textContent.length&&vm&&x.getAttribute("data-slate-zero-width")==="z"&&(f=x.textContent)!==null&&f!==void 0&&f.startsWith("\uFEFF")&&(l.hasAttribute("data-slate-zero-width")||ru&&(m=x.textContent)!==null&&m!==void 0&&m.endsWith(`
548
-
549
- `))&&u--}if(vm&&!c&&!r){var P=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(P&&en.hasDOMNode(e,P,{editable:!0})){var M=en.toSlateNode(e,P),{path:z,offset:B}=xn.start(e,en.findPath(e,M));return P.querySelector("[data-slate-leaf]")||(B=s),{path:z,offset:B}}}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var H=en.toSlateNode(e,c),T=en.findPath(e,H);return{path:T,offset:u}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:i}=n,a=oS(t)?t.anchorNode:t.startContainer,s,l,c,u,f;if(a)if(oS(t)){if(ru&&t.rangeCount>1){c=t.focusNode;var m=t.getRangeAt(0),v=t.getRangeAt(t.rangeCount-1);if(c instanceof HTMLTableRowElement&&m.startContainer instanceof HTMLTableRowElement&&v.startContainer instanceof HTMLTableRowElement){let S=function(E){return E.childElementCount>0?S(E.children[0]):E};var h=m.startContainer,p=v.startContainer,g=S(h.children[m.startOffset]),b=S(p.children[v.startOffset]);u=0,b.childNodes.length>0?s=b.childNodes[0]:s=b,g.childNodes.length>0?c=g.childNodes[0]:c=g,b instanceof HTMLElement?l=b.innerHTML.length:l=0}else m.startContainer===c?(s=v.endContainer,l=v.endOffset,u=m.startOffset):(s=m.startContainer,l=m.endOffset,u=v.startOffset)}else s=t.anchorNode,l=t.anchorOffset,c=t.focusNode,u=t.focusOffset;sG&&xG(s)||ru?f=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:f=t.isCollapsed}else s=t.startContainer,l=t.startOffset,c=t.endContainer,u=t.endOffset,f=t.collapsed;if(s==null||c==null||l==null||u==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));ru&&(r=c.textContent)!==null&&r!==void 0&&r.endsWith(`
550
-
551
- `)&&u===c.textContent.length&&u--;var y=en.toSlatePoint(e,[s,l],{exactMatch:o,suppressThrow:i});if(!y)return null;var x=aS(s,c)||s===c&&u<l,w=f?y:en.toSlatePoint(e,[c,u],{exactMatch:o,suppressThrow:i,searchDirection:x?"forward":"backward"});if(!w)return null;var C={anchor:y,focus:w};return Yt.isExpanded(C)&&Yt.isForward(C)&&Bo(c)&&xn.void(e,{at:C.focus,mode:"highest"})&&(C=xn.unhangRange(e,C,{voids:!0})),C}},EG={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},$G={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},OG={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},An=e=>{var t=EG[e],n=$G[e],r=OG[e],o=t&&mm.isHotkey(t),i=n&&mm.isHotkey(n),a=r&&mm.isHotkey(r);return s=>!!(o&&o(s)||tS&&i&&i(s)||!tS&&a&&a(s))};An("bold"),An("compose"),An("moveBackward"),An("moveForward"),An("deleteBackward"),An("deleteForward"),An("deleteLineBackward"),An("deleteLineForward"),An("deleteWordBackward"),An("deleteWordForward"),An("extendBackward"),An("extendForward"),An("extendLineBackward"),An("extendLineForward"),An("italic"),An("moveLineBackward"),An("moveLineForward"),An("moveWordBackward"),An("moveWordForward"),An("redo"),An("insertSoftBreak"),An("splitBlock"),An("transposeCharacter"),An("undo");var IG=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var s=a.filter(l=>_N(e,l,a));n.push(...s)}};function i(){n.length>0&&(n.reverse().forEach(a=>{a.type!=="characterData"&&(a.removedNodes.forEach(s=>{a.target.insertBefore(s,a.nextSibling)}),a.addedNodes.forEach(s=>{a.target.removeChild(s)}))}),r())}return{registerMutations:o,restoreDOM:i,clear:r}},NG={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class MG extends Id{constructor(){super(...arguments),wl(this,"context",null),wl(this,"manager",null),wl(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,NG)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=IG(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var i;(i=this.manager)===null||i===void 0||i.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}wl(MG,"contextType",aG);function ib(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Sa=ib();function BN(e){Sa=e}var Cl={exec:()=>null};function gn(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(xr.caret,"$1"),n=n.replace(o,a),r},getRegex:()=>new RegExp(n,t)};return r}var xr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},PG=/^(?:[ \t]*(?:\n|$))+/,FG=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jG=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Sc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,AG=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ab=/(?:[*+-]|\d{1,9}[.)])/,zN=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,LN=gn(zN).replace(/bull/g,ab).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),RG=gn(zN).replace(/bull/g,ab).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,TG=/^[^\n]+/,lb=/(?!\s*\])(?:\\.|[^\[\]\\])+/,DG=gn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",lb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_G=gn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ab).getRegex(),Af="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,BG=gn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cb).replace("tag",Af).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),HN=gn(sb).replace("hr",Sc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Af).getRegex(),zG=gn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",HN).getRegex(),ub={blockquote:zG,code:FG,def:DG,fences:jG,heading:AG,hr:Sc,html:BG,lheading:LN,list:_G,newline:PG,paragraph:HN,table:Cl,text:TG},sS=gn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Sc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Af).getRegex(),LG={...ub,lheading:RG,table:sS,paragraph:gn(sb).replace("hr",Sc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Af).getRegex()},HG={...ub,html:gn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Cl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gn(sb).replace("hr",Sc).replace("heading",` *#{1,6} *[^
552
- ]`).replace("lheading",LN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},VG=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,WG=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,VN=/^( {2,}|\\)\n(?!\s*$)/,qG=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rf=/[\p{P}\p{S}]/u,db=/[\s\p{P}\p{S}]/u,WN=/[^\s\p{P}\p{S}]/u,KG=gn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,db).getRegex(),qN=/(?!~)[\p{P}\p{S}]/u,UG=/(?!~)[\s\p{P}\p{S}]/u,XG=/(?:[^\s\p{P}\p{S}]|~)/u,GG=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,KN=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,YG=gn(KN,"u").replace(/punct/g,Rf).getRegex(),ZG=gn(KN,"u").replace(/punct/g,qN).getRegex(),UN="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",QG=gn(UN,"gu").replace(/notPunctSpace/g,WN).replace(/punctSpace/g,db).replace(/punct/g,Rf).getRegex(),JG=gn(UN,"gu").replace(/notPunctSpace/g,XG).replace(/punctSpace/g,UG).replace(/punct/g,qN).getRegex(),eY=gn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,WN).replace(/punctSpace/g,db).replace(/punct/g,Rf).getRegex(),tY=gn(/\\(punct)/,"gu").replace(/punct/g,Rf).getRegex(),nY=gn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),rY=gn(cb).replace("(?:-->|$)","-->").getRegex(),oY=gn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",rY).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vd=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,iY=gn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",vd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),XN=gn(/^!?\[(label)\]\[(ref)\]/).replace("label",vd).replace("ref",lb).getRegex(),GN=gn(/^!?\[(ref)\](?:\[\])?/).replace("ref",lb).getRegex(),aY=gn("reflink|nolink(?!\\()","g").replace("reflink",XN).replace("nolink",GN).getRegex(),fb={_backpedal:Cl,anyPunctuation:tY,autolink:nY,blockSkip:GG,br:VN,code:WG,del:Cl,emStrongLDelim:YG,emStrongRDelimAst:QG,emStrongRDelimUnd:eY,escape:VG,link:iY,nolink:GN,punctuation:KG,reflink:XN,reflinkSearch:aY,tag:oY,text:qG,url:Cl},sY={...fb,link:gn(/^!?\[(label)\]\((.*?)\)/).replace("label",vd).getRegex(),reflink:gn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vd).getRegex()},Ch={...fb,emStrongRDelimAst:JG,emStrongLDelim:ZG,url:gn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},lY={...Ch,br:gn(VN).replace("{2,}","*").getRegex(),text:gn(Ch.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},iu={normal:ub,gfm:LG,pedantic:HG},Js={normal:fb,gfm:Ch,breaks:lY,pedantic:sY},cY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lS=e=>cY[e];function Ro(e,t){if(t){if(xr.escapeTest.test(e))return e.replace(xr.escapeReplace,lS)}else if(xr.escapeTestNoEncode.test(e))return e.replace(xr.escapeReplaceNoEncode,lS);return e}function cS(e){try{e=encodeURI(e).replace(xr.percentDecode,"%")}catch{return null}return e}function uS(e,t){var n;const r=e.replace(xr.findPipe,(a,s,l)=>{let c=!1,u=s;for(;--u>=0&&l[u]==="\\";)c=!c;return c?"|":" |"}),o=r.split(xr.splitPipe);let i=0;if(o[0].trim()||o.shift(),o.length>0&&!((n=o.at(-1))!=null&&n.trim())&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(xr.slashPipe,"|");return o}function el(e,t,n){const r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function uY(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function dS(e,t,n,r,o){const i=t.href,a=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function dY(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const o=r[1];return t.split(`
553
- `).map(i=>{const a=i.match(n.other.beginningSpace);if(a===null)return i;const[s]=a;return s.length>=o.length?i.slice(o.length):i}).join(`
554
- `)}var bd=class{constructor(e){En(this,"options"),En(this,"rules"),En(this,"lexer"),this.options=e||Sa}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:el(n,`
555
- `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=dY(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const r=el(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:el(t[0],`
556
- `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=el(t[0],`
557
- `).split(`
558
- `),r="",o="";const i=[];for(;n.length>0;){let a=!1;const s=[];let l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))s.push(n[l]),a=!0;else if(!a)s.push(n[l]);else break;n=n.slice(l);const c=s.join(`
559
- `),u=c.replace(this.rules.other.blockquoteSetextReplace,`
560
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
561
- ${c}`:c,o=o?`${o}
562
- ${u}`:u;const f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,i,!0),this.lexer.state.top=f,n.length===0)break;const m=i.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){const v=m,h=v.raw+`
563
- `+n.join(`
564
- `),p=this.blockquote(h);i[i.length-1]=p,r=r.substring(0,r.length-v.raw.length)+p.raw,o=o.substring(0,o.length-v.text.length)+p.text;break}else if((m==null?void 0:m.type)==="list"){const v=m,h=v.raw+`
565
- `+n.join(`
566
- `),p=this.list(h);i[i.length-1]=p,r=r.substring(0,r.length-m.raw.length)+p.raw,o=o.substring(0,o.length-v.raw.length)+p.raw,n=h.substring(i.at(-1).raw.length).split(`
567
- `);continue}}return{type:"blockquote",raw:r,tokens:i,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let a=!1;for(;e;){let l=!1,c="",u="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let f=t[2].split(`
568
- `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),m=e.split(`
569
- `,1)[0],v=!f.trim(),h=0;if(this.options.pedantic?(h=2,u=f.trimStart()):v?h=t[1].length+1:(h=t[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,u=f.slice(h),h+=t[1].length),v&&this.rules.other.blankLine.test(m)&&(c+=m+`
570
- `,e=e.substring(m.length+1),l=!0),!l){const b=this.rules.other.nextBulletRegex(h),y=this.rules.other.hrRegex(h),x=this.rules.other.fencesBeginRegex(h),w=this.rules.other.headingBeginRegex(h),C=this.rules.other.htmlBeginRegex(h);for(;e;){const S=e.split(`
571
- `,1)[0];let E;if(m=S,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),E=m):E=m.replace(this.rules.other.tabCharGlobal," "),x.test(m)||w.test(m)||C.test(m)||b.test(m)||y.test(m))break;if(E.search(this.rules.other.nonSpaceChar)>=h||!m.trim())u+=`
572
- `+E.slice(h);else{if(v||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||x.test(f)||w.test(f)||y.test(f))break;u+=`
573
- `+m}!v&&!m.trim()&&(v=!0),c+=S+`
574
- `,e=e.substring(S.length+1),f=E.slice(h)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let p=null,g;this.options.gfm&&(p=this.rules.other.listIsTask.exec(u),p&&(g=p[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:c,task:!!p,checked:g,loose:!1,text:u,tokens:[]}),o.raw+=c}const s=o.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let l=0;l<o.items.length;l++)if(this.lexer.state.top=!1,o.items[l].tokens=this.lexer.blockTokens(o.items[l].text,[]),!o.loose){const c=o.items[l].tokens.filter(f=>f.type==="space"),u=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=u}if(o.loose)for(let l=0;l<o.items.length;l++)o.items[l].loose=!0;return o}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){var t;const n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=uS(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(t=n[3])!=null&&t.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
575
- `):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const s of o)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<r.length;s++)a.header.push({text:r[s],tokens:this.lexer.inline(r[s]),header:!0,align:a.align[s]});for(const s of i)a.rows.push(uS(s,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));return a}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
576
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const i=el(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{const i=uY(t[2],"()");if(i===-2)return;if(i>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],o=i[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),dS(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return dS(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){const o=[...r[0]].length-1;let i,a,s=o,l=0;const c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){s+=a;continue}else if((r[5]||r[6])&&o%3&&!((o+a)%3)){l+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s+l);const u=[...r[0]][0].length,f=e.slice(0,o+r.index+u+a);if(Math.min(o,a)%2){const v=f.slice(1,-1);return{type:"em",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}const m=f.slice(2,-2);return{type:"strong",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let r,o;if(n[2]==="@")r=n[0],o="mailto:"+r;else{let i;do i=n[0],n[0]=((t=this.rules.inline._backpedal.exec(n[0]))==null?void 0:t[0])??"";while(i!==n[0]);r=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Qo=class Sh{constructor(t){En(this,"tokens"),En(this,"options"),En(this,"state"),En(this,"tokenizer"),En(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Sa,this.options.tokenizer=this.options.tokenizer||new bd,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:xr,block:iu.normal,inline:Js.normal};this.options.pedantic?(n.block=iu.pedantic,n.inline=Js.pedantic):this.options.gfm&&(n.block=iu.gfm,this.options.breaks?n.inline=Js.breaks:n.inline=Js.gfm),this.tokenizer.rules=n}static get rules(){return{block:iu,inline:Js}}static lex(t,n){return new Sh(n).lex(t)}static lexInline(t,n){return new Sh(n).inlineTokens(t)}lex(t){t=t.replace(xr.carriageReturn,`
577
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,i,a;for(this.options.pedantic&&(t=t.replace(xr.tabCharGlobal," ").replace(xr.spaceLine,""));t;){let s;if((i=(o=this.options.extensions)==null?void 0:o.block)!=null&&i.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const c=n.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
578
- `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
579
- `+s.raw,c.text+=`
580
- `+s.text,this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
581
- `+s.raw,c.text+=`
582
- `+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if((a=this.options.extensions)!=null&&a.startBlock){let c=1/0;const u=t.slice(1);let f;this.options.extensions.startBlock.forEach(m=>{f=m.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
583
- `+s.raw,c.text+=`
584
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s),r=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
585
- `+s.raw,c.text+=`
586
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var r,o,i;let a=t,s=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,c="";for(;t;){l||(c=""),l=!1;let u;if((o=(r=this.options.extensions)==null?void 0:r.inline)!=null&&o.some(m=>(u=m.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const m=n.at(-1);u.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=u.raw,m.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,a,c)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((i=this.options.extensions)!=null&&i.startInline){let m=1/0;const v=t.slice(1);let h;this.options.extensions.startInline.forEach(p=>{h=p.call({lexer:this},v),typeof h=="number"&&h>=0&&(m=Math.min(m,h))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(u=this.tokenizer.inlineText(f)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(c=u.raw.slice(-1)),l=!0;const m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=u.raw,m.text+=u.text):n.push(u);continue}if(t){const m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},yd=class{constructor(e){En(this,"options"),En(this,"parser"),this.options=e||Sa}space(e){return""}code({text:e,lang:t,escaped:n}){var r;const o=(r=(t||"").match(xr.notSpaceStart))==null?void 0:r[0],i=e.replace(xr.endingNewline,"")+`
587
- `;return o?'<pre><code class="language-'+Ro(o)+'">'+(n?i:Ro(i,!0))+`</code></pre>
588
- `:"<pre><code>"+(n?i:Ro(i,!0))+`</code></pre>
589
- `}blockquote({tokens:e}){return`<blockquote>
590
- ${this.parser.parse(e)}</blockquote>
591
- `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
592
- `}hr(e){return`<hr>
593
- `}list(e){const t=e.ordered,n=e.start;let r="";for(let a=0;a<e.items.length;a++){const s=e.items[a];r+=this.listitem(s)}const o=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+o+i+`>
594
- `+r+"</"+o+`>
595
- `}listitem(e){var t;let n="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?((t=e.tokens[0])==null?void 0:t.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+Ro(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>
596
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
597
- `}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){const i=e.rows[o];n="";for(let a=0;a<i.length;a++)n+=this.tablecell(i[a]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
598
- <thead>
599
- `+t+`</thead>
600
- `+r+`</table>
601
- `}tablerow({text:e}){return`<tr>
602
- ${e}</tr>
603
- `}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
604
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ro(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),o=cS(e);if(o===null)return r;e=o;let i='<a href="'+e+'"';return t&&(i+=' title="'+Ro(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const o=cS(e);if(o===null)return Ro(n);e=o;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${Ro(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ro(e.text)}},pb=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Jo=class kh{constructor(t){En(this,"options"),En(this,"renderer"),En(this,"textRenderer"),this.options=t||Sa,this.options.renderer=this.options.renderer||new yd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pb}static parse(t,n){return new kh(n).parse(t)}static parseInline(t,n){return new kh(n).parseInline(t)}parse(t,n=!0){var r,o;let i="";for(let a=0;a<t.length;a++){const s=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[s.type]){const c=s,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){i+=u||"";continue}}const l=s;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let c=l,u=this.renderer.text(c);for(;a+1<t.length&&t[a+1].type==="text";)c=t[++a],u+=`
605
- `+this.renderer.text(c);n?i+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):i+=u;continue}default:{const c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}parseInline(t,n=this.renderer){var r,o;let i="";for(let a=0;a<t.length;a++){const s=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[s.type]){const c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=c||"";continue}}const l=s;switch(l.type){case"escape":{i+=n.text(l);break}case"html":{i+=n.html(l);break}case"link":{i+=n.link(l);break}case"image":{i+=n.image(l);break}case"strong":{i+=n.strong(l);break}case"em":{i+=n.em(l);break}case"codespan":{i+=n.codespan(l);break}case"br":{i+=n.br(l);break}case"del":{i+=n.del(l);break}case"text":{i+=n.text(l);break}default:{const c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},bm,Fu=(bm=class{constructor(e){En(this,"options"),En(this,"block"),this.options=e||Sa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Qo.lex:Qo.lexInline}provideParser(){return this.block?Jo.parse:Jo.parseInline}},En(bm,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),bm),fY=class{constructor(...e){En(this,"defaults",ib()),En(this,"options",this.setOptions),En(this,"parse",this.parseMarkdown(!0)),En(this,"parseInline",this.parseMarkdown(!1)),En(this,"Parser",Jo),En(this,"Renderer",yd),En(this,"TextRenderer",pb),En(this,"Lexer",Qo),En(this,"Tokenizer",bd),En(this,"Hooks",Fu),this.use(...e)}walkTokens(e,t){var n,r;let o=[];for(const i of e)switch(o=o.concat(t.call(this,i)),i.type){case"table":{const a=i;for(const s of a.header)o=o.concat(this.walkTokens(s.tokens,t));for(const s of a.rows)for(const l of s)o=o.concat(this.walkTokens(l.tokens,t));break}case"list":{const a=i;o=o.concat(this.walkTokens(a.items,t));break}default:{const a=i;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{const l=a[s].flat(1/0);o=o.concat(this.walkTokens(l,t))}):a.tokens&&(o=o.concat(this.walkTokens(a.tokens,t)))}}return o}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=t.renderers[o.name];i?t.renderers[o.name]=function(...a){let s=o.renderer.apply(this,a);return s===!1&&(s=i.apply(this,a)),s}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=t[o.level];i?i.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){const o=this.defaults.renderer||new yd(this.defaults);for(const i in n.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const a=i,s=n.renderer[a],l=o[a];o[a]=(...c)=>{let u=s.apply(o,c);return u===!1&&(u=l.apply(o,c)),u||""}}r.renderer=o}if(n.tokenizer){const o=this.defaults.tokenizer||new bd(this.defaults);for(const i in n.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,s=n.tokenizer[a],l=o[a];o[a]=(...c)=>{let u=s.apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}r.tokenizer=o}if(n.hooks){const o=this.defaults.hooks||new Fu;for(const i in n.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;const a=i,s=n.hooks[a],l=o[a];Fu.passThroughHooks.has(i)?o[a]=c=>{if(this.defaults.async)return Promise.resolve(s.call(o,c)).then(f=>l.call(o,f));const u=s.call(o,c);return l.call(o,u)}:o[a]=(...c)=>{let u=s.apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}r.hooks=o}if(n.walkTokens){const o=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(a){let s=[];return s.push(i.call(this,a)),o&&(s=s.concat(o.call(this,a))),s}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Qo.lex(e,t??this.defaults)}parser(e,t){return Jo.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const a=o.hooks?o.hooks.provideLexer():e?Qo.lex:Qo.lexInline,s=o.hooks?o.hooks.provideParser():e?Jo.parse:Jo.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(t):t).then(l=>a(l,o)).then(l=>o.hooks?o.hooks.processAllTokens(l):l).then(l=>o.walkTokens?Promise.all(this.walkTokens(l,o.walkTokens)).then(()=>l):l).then(l=>s(l,o)).then(l=>o.hooks?o.hooks.postprocess(l):l).catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let l=a(t,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let c=s(l,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(l){return i(l)}}}onError(e,t){return n=>{if(n.message+=`
606
- Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+Ro(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},ba=new fY;function wn(e,t){return ba.parse(e,t)}wn.options=wn.setOptions=function(e){return ba.setOptions(e),wn.defaults=ba.defaults,BN(wn.defaults),wn};wn.getDefaults=ib;wn.defaults=Sa;wn.use=function(...e){return ba.use(...e),wn.defaults=ba.defaults,BN(wn.defaults),wn};wn.walkTokens=function(e,t){return ba.walkTokens(e,t)};wn.parseInline=ba.parseInline;wn.Parser=Jo;wn.parser=Jo.parse;wn.Renderer=yd;wn.TextRenderer=pb;wn.Lexer=Qo;wn.lexer=Qo.lex;wn.Tokenizer=bd;wn.Hooks=Fu;wn.parse=wn;wn.options;wn.setOptions;wn.use;wn.walkTokens;wn.parseInline;Jo.parse;Qo.lex;const{TextArea:ure}=Ai,{useForm:dre}=zn,YN=document.createElement("style");YN.textContent=`
607
- .animate-bounce-slow {
608
- animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
609
- }
610
- @keyframes bounce {
611
- 0%, 100% { transform: translateY(0); }
612
- 50% { transform: translateY(-12px); }
613
- }
614
- `;document.head.appendChild(YN);const pY=Hn.create({timeout:15e3});pY.interceptors.response.use(e=>e.data&&e.data.success===!1?(xl.error(e.data.errorMsg||"\u8BF7\u6C42\u5931\u8D25"),Promise.reject(e.data)):e,e=>{var t,n;if(((t=e==null?void 0:e.response)==null?void 0:t.status)===401){const r=new Error("Unauthorized");return r.isAuthError=!0,r.origin=e,Promise.reject(r)}if(((n=e==null?void 0:e.response)==null?void 0:n.status)===500){const r=new Error("Server Error");return r.isAuthError=!0,r.origin=e,Promise.reject(r)}return Promise.reject(e)});/**
615
- * @license lucide-react v0.456.0 - ISC
616
- *
617
- * This source code is licensed under the ISC license.
618
- * See the LICENSE file in the root directory of this source tree.
619
- */const mY=Ko("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
620
- * @license lucide-react v0.456.0 - ISC
621
- *
622
- * This source code is licensed under the ISC license.
623
- * See the LICENSE file in the root directory of this source tree.
624
- */const gY=Ko("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
625
- * @license lucide-react v0.456.0 - ISC
626
- *
627
- * This source code is licensed under the ISC license.
628
- * See the LICENSE file in the root directory of this source tree.
629
- */const hY=Ko("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
630
- * @license lucide-react v0.456.0 - ISC
631
- *
632
- * This source code is licensed under the ISC license.
633
- * See the LICENSE file in the root directory of this source tree.
634
- */const ym=Ko("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/**
635
- * @license lucide-react v0.456.0 - ISC
636
- *
637
- * This source code is licensed under the ISC license.
638
- * See the LICENSE file in the root directory of this source tree.
639
- */const vY=Ko("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
640
- * @license lucide-react v0.456.0 - ISC
641
- *
642
- * This source code is licensed under the ISC license.
643
- * See the LICENSE file in the root directory of this source tree.
644
- */const bY=Ko("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
645
- * @license lucide-react v0.456.0 - ISC
646
- *
647
- * This source code is licensed under the ISC license.
648
- * See the LICENSE file in the root directory of this source tree.
649
- */const yY=Ko("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
650
- * @license lucide-react v0.456.0 - ISC
651
- *
652
- * This source code is licensed under the ISC license.
653
- * See the LICENSE file in the root directory of this source tree.
654
- */const ZN=Ko("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
655
- * @license lucide-react v0.456.0 - ISC
656
- *
657
- * This source code is licensed under the ISC license.
658
- * See the LICENSE file in the root directory of this source tree.
659
- */const xY=Ko("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
660
- * @license lucide-react v0.456.0 - ISC
661
- *
662
- * This source code is licensed under the ISC license.
663
- * See the LICENSE file in the root directory of this source tree.
664
- */const wY=Ko("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),fS={actions:[{icon:ce(Dr,{type:"rag/folder",size:18}),name:"history",badgeCount:0}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"checkbox",defaultValue:!1,enabled:!0,icon:ce(Dr,{type:"rag/url",size:12})},{label:"\u63A8\u7406\u601D\u8003",name:"reasoning",type:"checkbox",defaultValue:!1,enabled:!0,icon:ce(Dr,{type:"rag/think",size:12})}]};function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rr.apply(null,arguments)}function Ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ps(e,t){return ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ps(e,t)}function CY(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ps(e,t)}var pS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function SY(e,t){return!!(e===t||pS(e)&&pS(t))}function kY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!SY(e[n],t[n]))return!1;return!0}function xm(e,t){t===void 0&&(t=kY);var n,r=[],o,i=!1;function a(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&n===this&&t(s,r)||(o=e.apply(this,s),i=!0,n=this,r=s),o}return a}function EY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $Y=typeof performance=="object"&&typeof performance.now=="function",mS=$Y?function(){return performance.now()}:function(){return Date.now()};function gS(e){cancelAnimationFrame(e.id)}function OY(e,t){var n=mS();function r(){mS()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var wm=-1;function hS(e){if(e===void 0&&(e=!1),wm===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),wm=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return wm}var Ra=null;function vS(e){if(e===void 0&&(e=!1),Ra===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ra="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ra="negative":Ra="positive-ascending"),document.body.removeChild(t),Ra}return Ra}var IY=150,NY=function(t,n){return t};function MY(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=(function(f){CY(m,f);function m(h){var p;return p=f.call(this,h)||this,p._instanceProps=l(p.props,Ut(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Ut(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=xm(function(g,b,y,x){return p.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:b,visibleStartIndex:y,visibleStopIndex:x})}),p._callOnScroll=void 0,p._callOnScroll=xm(function(g,b,y){return p.props.onScroll({scrollDirection:g,scrollOffset:b,scrollUpdateWasRequested:y})}),p._getItemStyle=void 0,p._getItemStyle=function(g){var b=p.props,y=b.direction,x=b.itemSize,w=b.layout,C=p._getItemStyleCache(c&&x,c&&w,c&&y),S;if(C.hasOwnProperty(g))S=C[g];else{var E=n(p.props,g,p._instanceProps),k=o(p.props,g,p._instanceProps),O=y==="horizontal"||w==="horizontal",$=y==="rtl",N=O?E:0;C[g]=S={position:"absolute",left:$?void 0:N,right:$?N:void 0,top:O?0:E,height:O?"100%":k,width:O?k:"100%"}}return S},p._getItemStyleCache=void 0,p._getItemStyleCache=xm(function(g,b,y){return{}}),p._onScrollHorizontal=function(g){var b=g.currentTarget,y=b.clientWidth,x=b.scrollLeft,w=b.scrollWidth;p.setState(function(C){if(C.scrollOffset===x)return null;var S=p.props.direction,E=x;if(S==="rtl")switch(vS()){case"negative":E=-x;break;case"positive-descending":E=w-y-x;break}return E=Math.max(0,Math.min(E,w-y)),{isScrolling:!0,scrollDirection:C.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(g){var b=g.currentTarget,y=b.clientHeight,x=b.scrollHeight,w=b.scrollTop;p.setState(function(C){if(C.scrollOffset===w)return null;var S=Math.max(0,Math.min(w,x-y));return{isScrolling:!0,scrollDirection:C.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(g){var b=p.props.outerRef;p._outerRef=g,typeof b=="function"?b(g):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=g)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&gS(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=OY(p._resetIsScrolling,IY)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}m.getDerivedStateFromProps=function(p,g){return PY(p,g),u(p),null};var v=m.prototype;return v.scrollTo=function(p){p=Math.max(0,p),this.setState(function(g){return g.scrollOffset===p?null:{scrollDirection:g.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(p,g){g===void 0&&(g="auto");var b=this.props,y=b.itemCount,x=b.layout,w=this.state.scrollOffset;p=Math.max(0,Math.min(p,y-1));var C=0;if(this._outerRef){var S=this._outerRef;x==="vertical"?C=S.scrollWidth>S.clientWidth?hS():0:C=S.scrollHeight>S.clientHeight?hS():0}this.scrollTo(i(this.props,p,g,w,this._instanceProps,C))},v.componentDidMount=function(){var p=this.props,g=p.direction,b=p.initialScrollOffset,y=p.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;g==="horizontal"||y==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var p=this.props,g=p.direction,b=p.layout,y=this.state,x=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var C=this._outerRef;if(g==="horizontal"||b==="horizontal")if(g==="rtl")switch(vS()){case"negative":C.scrollLeft=-x;break;case"positive-ascending":C.scrollLeft=x;break;default:var S=C.clientWidth,E=C.scrollWidth;C.scrollLeft=E-S-x;break}else C.scrollLeft=x;else C.scrollTop=x}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&gS(this._resetIsScrollingTimeoutId)},v.render=function(){var p=this.props,g=p.children,b=p.className,y=p.direction,x=p.height,w=p.innerRef,C=p.innerElementType,S=p.innerTagName,E=p.itemCount,k=p.itemData,O=p.itemKey,$=O===void 0?NY:O,N=p.layout,_=p.outerElementType,j=p.outerTagName,F=p.style,A=p.useIsScrolling,I=p.width,P=this.state.isScrolling,M=y==="horizontal"||N==="horizontal",z=M?this._onScrollHorizontal:this._onScrollVertical,B=this._getRangeToRender(),H=B[0],T=B[1],R=[];if(E>0)for(var D=H;D<=T;D++)R.push(Ka(g,{data:k,key:$(D,k),index:D,isScrolling:A?P:void 0,style:this._getItemStyle(D)}));var L=r(this.props,this._instanceProps);return Ka(_||j||"div",{className:b,onScroll:z,ref:this._outerRefSetter,style:rr({position:"relative",height:x,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},F)},Ka(C||S||"div",{children:R,ref:w,style:{height:M?"100%":L,pointerEvents:P?"none":void 0,width:M?L:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var g=this._getRangeToRender(),b=g[0],y=g[1],x=g[2],w=g[3];this._callOnItemsRendered(b,y,x,w)}}if(typeof this.props.onScroll=="function"){var C=this.state,S=C.scrollDirection,E=C.scrollOffset,k=C.scrollUpdateWasRequested;this._callOnScroll(S,E,k)}},v._getRangeToRender=function(){var p=this.props,g=p.itemCount,b=p.overscanCount,y=this.state,x=y.isScrolling,w=y.scrollDirection,C=y.scrollOffset;if(g===0)return[0,0,0,0];var S=a(this.props,C,this._instanceProps),E=s(this.props,S,C,this._instanceProps),k=!x||w==="backward"?Math.max(1,b):1,O=!x||w==="forward"?Math.max(1,b):1;return[Math.max(0,S-k),Math.max(0,Math.min(g-1,E+O)),S,E]},m})(zP),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var PY=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},FY=50,Ha=function(t,n,r){var o=t,i=o.itemSize,a=r.itemMetadataMap,s=r.lastMeasuredIndex;if(n>s){var l=0;if(s>=0){var c=a[s];l=c.offset+c.size}for(var u=s+1;u<=n;u++){var f=i(u);a[u]={offset:l,size:f},l+=f}r.lastMeasuredIndex=n}return a[n]},jY=function(t,n,r){var o=n.itemMetadataMap,i=n.lastMeasuredIndex,a=i>0?o[i].offset:0;return a>=r?QN(t,n,i,0,r):AY(t,n,Math.max(0,i),r)},QN=function(t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=Ha(t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},AY=function(t,n,r,o){for(var i=t.itemCount,a=1;r<i&&Ha(t,r,n).offset<o;)r+=a,a*=2;return QN(t,n,Math.min(r,i-1),Math.floor(r/2),o)},bS=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,i=n.estimatedItemSize,a=n.lastMeasuredIndex,s=0;if(a>=r&&(a=r-1),a>=0){var l=o[a];s=l.offset+l.size}var c=r-a-1,u=c*i;return s+u},RY=MY({getItemOffset:function(t,n,r){return Ha(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:bS,getOffsetForIndexAndAlignment:function(t,n,r,o,i,a){var s=t.direction,l=t.height,c=t.layout,u=t.width,f=s==="horizontal"||c==="horizontal",m=f?u:l,v=Ha(t,n,i),h=bS(t,i),p=Math.max(0,Math.min(h-m,v.offset)),g=Math.max(0,v.offset-m+v.size+a);switch(r==="smart"&&(o>=g-m&&o<=p+m?r="auto":r="center"),r){case"start":return p;case"end":return g;case"center":return Math.round(g+(p-g)/2);case"auto":default:return o>=g&&o<=p?o:o<g?g:p}},getStartIndexForOffset:function(t,n,r){return jY(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var i=t.direction,a=t.height,s=t.itemCount,l=t.layout,c=t.width,u=i==="horizontal"||l==="horizontal",f=u?c:a,m=Ha(t,n,o),v=r+f,h=m.offset+m.size,p=n;p<s-1&&h<v;)p++,h+=Ha(t,p,o).size;return p},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:o||FY,lastMeasuredIndex:-1};return n.resetAfterIndex=function(a,s){s===void 0&&(s=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,a-1),n._getItemStyleCache(-1),s&&n.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),ju={exports:{}},TY=ju.exports,yS;function DY(){return yS||(yS=1,(function(e,t){(function(n,r){e.exports=r()})(TY,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",m="quarter",v="year",h="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var A=["th","st","nd","rd"],I=F%100;return"["+F+(A[(I-20)%10]||A[I]||A[0])+"]"}},x=function(F,A,I){var P=String(F);return!P||P.length>=A?F:""+Array(A+1-P.length).join(I)+F},w={s:x,z:function(F){var A=-F.utcOffset(),I=Math.abs(A),P=Math.floor(I/60),M=I%60;return(A<=0?"+":"-")+x(P,2,"0")+":"+x(M,2,"0")},m:function F(A,I){if(A.date()<I.date())return-F(I,A);var P=12*(I.year()-A.year())+(I.month()-A.month()),M=A.clone().add(P,f),z=I-M<0,B=A.clone().add(P+(z?-1:1),f);return+(-(P+(I-M)/(z?M-B:B-M))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:a,ms:i,Q:m}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},C="en",S={};S[C]=y;var E="$isDayjsObject",k=function(F){return F instanceof _||!(!F||!F[E])},O=function F(A,I,P){var M;if(!A)return C;if(typeof A=="string"){var z=A.toLowerCase();S[z]&&(M=z),I&&(S[z]=I,M=z);var B=A.split("-");if(!M&&B.length>1)return F(B[0])}else{var H=A.name;S[H]=A,M=H}return!P&&M&&(C=M),M||!P&&C},$=function(F,A){if(k(F))return F.clone();var I=typeof A=="object"?A:{};return I.date=F,I.args=arguments,new _(I)},N=w;N.l=O,N.i=k,N.w=function(F,A){return $(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var _=(function(){function F(I){this.$L=O(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[E]=!0}var A=F.prototype;return A.parse=function(I){this.$d=(function(P){var M=P.date,z=P.utc;if(M===null)return new Date(NaN);if(N.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var B=M.match(g);if(B){var H=B[2]-1||0,T=(B[7]||"0").substring(0,3);return z?new Date(Date.UTC(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,T)):new Date(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,T)}}return new Date(M)})(I),this.init()},A.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},A.$utils=function(){return N},A.isValid=function(){return this.$d.toString()!==p},A.isSame=function(I,P){var M=$(I);return this.startOf(P)<=M&&M<=this.endOf(P)},A.isAfter=function(I,P){return $(I)<this.startOf(P)},A.isBefore=function(I,P){return this.endOf(P)<$(I)},A.$g=function(I,P,M){return N.u(I)?this[P]:this.set(M,I)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(I,P){var M=this,z=!!N.u(P)||P,B=N.p(I),H=function(Q,U){var J=N.w(M.$u?Date.UTC(M.$y,U,Q):new Date(M.$y,U,Q),M);return z?J:J.endOf(c)},T=function(Q,U){return N.w(M.toDate()[Q].apply(M.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),M)},R=this.$W,D=this.$M,L=this.$D,V="set"+(this.$u?"UTC":"");switch(B){case v:return z?H(1,0):H(31,11);case f:return z?H(1,D):H(0,D+1);case u:var q=this.$locale().weekStart||0,K=(R<q?R+7:R)-q;return H(z?L-K:L+(6-K),D);case c:case h:return T(V+"Hours",0);case l:return T(V+"Minutes",1);case s:return T(V+"Seconds",2);case a:return T(V+"Milliseconds",3);default:return this.clone()}},A.endOf=function(I){return this.startOf(I,!1)},A.$set=function(I,P){var M,z=N.p(I),B="set"+(this.$u?"UTC":""),H=(M={},M[c]=B+"Date",M[h]=B+"Date",M[f]=B+"Month",M[v]=B+"FullYear",M[l]=B+"Hours",M[s]=B+"Minutes",M[a]=B+"Seconds",M[i]=B+"Milliseconds",M)[z],T=z===c?this.$D+(P-this.$W):P;if(z===f||z===v){var R=this.clone().set(h,1);R.$d[H](T),R.init(),this.$d=R.set(h,Math.min(this.$D,R.daysInMonth())).$d}else H&&this.$d[H](T);return this.init(),this},A.set=function(I,P){return this.clone().$set(I,P)},A.get=function(I){return this[N.p(I)]()},A.add=function(I,P){var M,z=this;I=Number(I);var B=N.p(P),H=function(D){var L=$(z);return N.w(L.date(L.date()+Math.round(D*I)),z)};if(B===f)return this.set(f,this.$M+I);if(B===v)return this.set(v,this.$y+I);if(B===c)return H(1);if(B===u)return H(7);var T=(M={},M[s]=r,M[l]=o,M[a]=n,M)[B]||1,R=this.$d.getTime()+I*T;return N.w(R,this)},A.subtract=function(I,P){return this.add(-1*I,P)},A.format=function(I){var P=this,M=this.$locale();if(!this.isValid())return M.invalidDate||p;var z=I||"YYYY-MM-DDTHH:mm:ssZ",B=N.z(this),H=this.$H,T=this.$m,R=this.$M,D=M.weekdays,L=M.months,V=M.meridiem,q=function(U,J,Y,X){return U&&(U[J]||U(P,z))||Y[J].slice(0,X)},K=function(U){return N.s(H%12||12,U,"0")},Q=V||function(U,J,Y){var X=U<12?"AM":"PM";return Y?X.toLowerCase():X};return z.replace(b,(function(U,J){return J||(function(Y){switch(Y){case"YY":return String(P.$y).slice(-2);case"YYYY":return N.s(P.$y,4,"0");case"M":return R+1;case"MM":return N.s(R+1,2,"0");case"MMM":return q(M.monthsShort,R,L,3);case"MMMM":return q(L,R);case"D":return P.$D;case"DD":return N.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return q(M.weekdaysMin,P.$W,D,2);case"ddd":return q(M.weekdaysShort,P.$W,D,3);case"dddd":return D[P.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return Q(H,T,!0);case"A":return Q(H,T,!1);case"m":return String(T);case"mm":return N.s(T,2,"0");case"s":return String(P.$s);case"ss":return N.s(P.$s,2,"0");case"SSS":return N.s(P.$ms,3,"0");case"Z":return B}return null})(U)||B.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(I,P,M){var z,B=this,H=N.p(P),T=$(I),R=(T.utcOffset()-this.utcOffset())*r,D=this-T,L=function(){return N.m(B,T)};switch(H){case v:z=L()/12;break;case f:z=L();break;case m:z=L()/3;break;case u:z=(D-R)/6048e5;break;case c:z=(D-R)/864e5;break;case l:z=D/o;break;case s:z=D/r;break;case a:z=D/n;break;default:z=D}return M?z:N.a(z)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return S[this.$L]},A.locale=function(I,P){if(!I)return this.$L;var M=this.clone(),z=O(I,P,!0);return z&&(M.$L=z),M},A.clone=function(){return N.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},F})(),j=_.prototype;return $.prototype=j,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(F){j[F[1]]=function(A){return this.$g(A,F[0],F[1])}})),$.extend=function(F,A){return F.$i||(F(A,_,$),F.$i=!0),$},$.locale=O,$.isDayjs=k,$.unix=function(F){return $(1e3*F)},$.en=S[C],$.Ls=S,$.p={},$}))})(ju)),ju.exports}var _Y=DY();const xS=Ov(_Y);function BY({isActive:e,isNew:t,isDisabled:n,data:r,eventsEmit:o,styles:i={},assistantList:a=[]}){const[s,l]=Et(!1),c=(i==null?void 0:i.colors)||{},u=tn(()=>{const g=r==null?void 0:r.configId;if(!g||!a||a.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const b=a.find(y=>String(y==null?void 0:y.id)===String(g));if(!b)return"\u672A\u9009\u62E9\u52A9\u624B";if(b!=null&&b.name)return b.name;try{const y=typeof b.configJson=="string"?JSON.parse(b.configJson):b.configJson;return(y==null?void 0:y.config_name)||"\u672A\u9009\u62E9\u52A9\u624B"}catch{return"\u672A\u9009\u62E9\u52A9\u624B"}},[a,r==null?void 0:r.configId]),f=[{key:"rename",icon:ce(yY,{size:12}),label:"\u91CD\u547D\u540D",onClick:g=>{g.domEvent.stopPropagation(),o&&o("conversations:rename_icon_clicked",r)}},{key:"delete",icon:ce(wY,{size:12}),label:"\u5220\u9664",danger:!0,onClick:g=>{g.domEvent.stopPropagation(),o&&o("conversations:delete_icon_clicked",r)}}],m=e?c.activeItemBg||"#f0f4ff":s?c.itemHoverBg||"#f5f7fa":c.itemBg||"transparent",v=e?c.activeItemText||c.primary||"#0122ff":c.itemText||"#333",h=e?c.activeItemBorder||c.primary||"#0122ff":"transparent",p=g=>{const b=xS(),y=xS(g);return b.isSame(y,"day")?y.format("HH:mm"):y.format("MM-DD HH:mm")};return pt("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!n&&o&&o("conversation:item_click",r),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{minHeight:48,background:m,color:v,border:`1px solid ${h}`,...i.item,opacity:n?.5:1},children:[pt("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[ce("span",{className:"truncate text-sm max-w-[160px] font-medium",title:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD",style:{color:v,fontSize:"14px",lineHeight:"1.4"},children:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD"}),pt("div",{className:"flex items-center justify-between gap-2",children:[ce("span",{className:"text-xs truncate flex-1",style:{color:e?c.activeItemTextSecondary||"#666":c.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:u}),r.gmtModified&&ce("span",{className:"text-xs flex-shrink-0",style:{color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:p(r.gmtModified)})]})]}),!n&&s&&!t&&ce("div",{className:"absolute top-2 right-3",children:ce(HP,{menu:{items:f},trigger:["click"],placement:"bottomRight",children:ce(gY,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999"},onClick:g=>g.stopPropagation()})})})]})}function zY(e,t=[{label:"\u5F53\u5929",dayPeriod:1}]){const n=new Date,r={other:[]};return e.forEach(o=>{const i=new Date(o.gmtModified),a=Math.floor((+n-+i)/(1e3*60*60*24));let s=!1;for(const l of t)if(a<=l.dayPeriod){r[l.label]||(r[l.label]=[]),r[l.label].push(o),s=!0;break}s||r.other.push(o)}),r}/*! @license Rematrix v0.2.2
665
-
666
- Copyright 2018 Fisssion LLC.
667
-
668
- Permission is hereby granted, free of charge, to any person obtaining a copy
669
- of this software and associated documentation files (the "Software"), to deal
670
- in the Software without restriction, including without limitation the rights
671
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
672
- copies of the Software, and to permit persons to whom the Software is
673
- furnished to do so, subject to the following conditions:
674
-
675
- The above copyright notice and this permission notice shall be included in
676
- all copies or substantial portions of the Software.
677
-
678
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
679
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
680
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
681
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
682
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
683
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
684
- THE SOFTWARE.
685
- */function Eh(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(e.length===16)return e;if(e.length===6){var t=Rs();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function Rs(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function LY(e,t){for(var n=Eh(e),r=Eh(t),o=[],i=0;i<4;i++)for(var a=[n[i],n[i+4],n[i+8],n[i+12]],s=0;s<4;s++){var l=s*4,c=[r[l],r[l+1],r[l+2],r[l+3]],u=a[0]*c[0]+a[1]*c[1]+a[2]*c[2]+a[3]*c[3];o[i+l]=u}return o}function HY(e){if(typeof e=="string"){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t){var n=t[2].split(", ").map(parseFloat);return Eh(n)}}return Rs()}function VY(e){var t=Rs();return t[0]=e,t}function WY(e){var t=Rs();return t[5]=e,t}function qY(e){var t=Rs();return t[12]=e,t}function KY(e){var t=Rs();return t[13]=e,t}var Au=function(e){return typeof e=="number"},JN=function(e){return typeof e=="function"},eM=function(e){return Object.prototype.toString.call(e)==="[object Object]"},Qa=function(e){return Array.prototype.slice.apply(e)},tM=function(e){var t=e.reduce(function(n,r){return n[r]=(n[r]||0)+1,n},{});return Object.keys(t).filter(function(n){return t[n]>1})};function wi(e){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}var $h,Oh=function(e,t,n){return e+(t-e)*n},nM={__proto__:null,isNumber:Au,isFunction:JN,isObject:eM,toArray:Qa,getDuplicateValsAsStrings:tM,assign:wi,tweenProp:Oh},mb="data-flip-id",gb="data-inverse-flip-id",hb="data-portal-key",UY="data-exit-container",au={__proto__:null,DATA_FLIP_ID:mb,DATA_INVERSE_FLIP_ID:gb,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:hb},Ih={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},wS=function(e){return eM(e)?e:Object.keys(Ih).indexOf(e)>-1?Ih[e]:{}};typeof window<"u"&&($h=window.requestAnimationFrame);var XY=$h=$h||function(e){window.setTimeout(e,1e3/60)},GY=Date.now(),YY=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-GY};function rM(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var ZY=(function(){function e(){}return e.prototype.run=function(){var t=this;XY(function(){t.springSystem.loop(YY())})},e})(),Cm=function(){this.position=0,this.velocity=0},QY=0,eo=.001,JY=(function(){function e(n){this._id="s"+QY++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new Cm,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Cm,this._restSpeedThreshold=.001,this._tempState=new Cm,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(n){return this._springConfig=n,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(n){return Math.abs(this._endValue-n.position)},t.setEndValue=function(n){if(n===this._endValue)return this;if(this.prevEndValue=n,this._endValue===n&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=n,this._springSystem.activateSpring(this.getId());for(var r=0,o=this.listeners.length;r<o;r++){var i=this.listeners[r].onSpringEndStateChange;i&&i(this)}return this},t.setVelocity=function(n){return n===this._currentState.velocity||(this._currentState.velocity=n,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(n){this._startValue=n,this._currentState.position=n;for(var r=0,o=this.listeners.length;r<o;r++){var i=this.listeners[r];i.onSpringUpdate&&i.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(n){return this._overshootClampingEnabled=n,this},t.isOvershooting=function(){var n=this._startValue,r=this._endValue;return this._springConfig.tension>0&&(n<r&&this.getCurrentValue()>r||n>r&&this.getCurrentValue()<r)},t.advance=function(n,r){var o=this.isAtRest();if(!o||!this._wasAtRest){var i=r;r>.064&&(i=.064),this._timeAccumulator+=i;for(var a,s,l,c,u,f,m=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,p=this._currentState.velocity,g=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=eo;)this._timeAccumulator-=eo,this._timeAccumulator<eo&&(this._previousState.position=h,this._previousState.velocity=p),s=m*(this._endValue-g)-v*p,c=m*(this._endValue-(g=h+(a=p)*eo*.5))-v*(b=p+s*eo*.5),f=m*(this._endValue-(g=h+(l=b)*eo*.5))-v*(b=p+c*eo*.5),g=h+(u=b)*eo,h+=1/6*(a+2*(l+u)+(b=p+f*eo))*eo,p+=1/6*(s+2*(c+f)+(m*(this._endValue-g)-v*b))*eo;this._tempState.position=g,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=p,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/eo),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),o=!0);var y=!1;this._wasAtRest&&(this._wasAtRest=!1,y=!0);var x=!1;o&&(this._wasAtRest=!0,x=!0),this.notifyPositionUpdated(y,x)}},t.notifyPositionUpdated=function(n,r){var o=this;this.listeners.filter(Boolean).forEach(function(i){n&&i.onSpringActivate&&!o._onActivateCalled&&(i.onSpringActivate(o),o._onActivateCalled=!0),i.onSpringUpdate&&i.onSpringUpdate(o),r&&i.onSpringAtRest&&i.onSpringAtRest(o)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(n){this._currentState.position=this._currentState.position*n+this._previousState.position*(1-n),this._currentState.velocity=this._currentState.velocity*n+this._previousState.velocity*(1-n)},t.addListener=function(n){return this.listeners.push(n),this},t.addOneTimeListener=function(n){var r=this;return Object.keys(n).forEach(function(o){var i;n[o]=(i=n[o],function(){i.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return rM(this.listeners,n),this},e})(),oM=(function(){function e(n){this.looper=n||new ZY,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(n,r){return this.createSpringWithConfig({tension:n,friction:r})},t.createSpringWithConfig=function(n){var r=new JY(this);return this.registerSpring(r),r.setSpringConfig(n),r},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(n){this._springRegistry[n.getId()]=n},t.deregisterSpring=function(n){rM(this._activeSprings,n),delete this._springRegistry[n.getId()]},t.advance=function(n,r){for(var o=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(a){a.systemShouldAdvance()?a.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(a))});this._idleSpringIndices.length>0;){var i=this._idleSpringIndices.pop();i>=0&&this._activeSprings.splice(i,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var i=0,a=this.listeners.length;for(i=0;i<a;i++)(r=this.listeners[i]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),i=0;i<a;i++)(r=this.listeners[i]).onAfterIntegrate&&r.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(n){var r=this._springRegistry[n];this._activeSprings.indexOf(r)===-1&&this._activeSprings.push(r),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e})(),eZ=new oM,iM=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,i=e.onSpringActivate,a=eZ.createSpring(t.stiffness,t.damping);a.setOvershootClampingEnabled(!!n);var s={onSpringActivate:i,onSpringAtRest:function(){a.destroy(),o()},onSpringUpdate:r({spring:a,onAnimationEnd:o})};return a.addListener(s),a},CS=function(e){var t=iM(e);return t.setEndValue(1),t},SS=function(e,t){if(t===void 0&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,r=typeof(n=t.speed)!="number"?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),i=e.map(function(a,s){var l=a.getOnUpdateFunc;return a.getOnUpdateFunc=function(c){var u=l(c);return function(f){var m=f.getCurrentValue();(m=m<.01?0:m>.99?1:m)>=o&&i[s+1]&&i[s+1](Math.max(Math.min(m*r,1),0)),u(f)}},a}).map(function(a){var s=iM(a);if(s)return s.setEndValue.bind(s)}).filter(Boolean);i[0]&&i[0](1)}},kS=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},ES=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function $S(e){return JSON.parse(e.dataset.flipConfig||"{}")}var aM=function(e,t){var n;return wi(e,((n={})[t[0]]=t[1],n))},sM=function(e,t){return Qa(t?document.querySelectorAll("["+hb+'="'+t+'"]'):e.querySelectorAll("["+mb+"]"))},lM=function(e){return e.map(function(t){return[t,t.getBoundingClientRect()]})},tZ=function(e){var t=e.cachedOrderedFlipIds,n=t===void 0?[]:t,r=e.inProgressAnimations,o=r===void 0?{}:r,i=e.flippedElementPositionsBeforeUpdate,a=i===void 0?{}:i,s=e.flipCallbacks,l=s===void 0?{}:s,c=e.containerEl,u=e.applyTransformOrigin,f=e.spring,m=e.debug,v=e.portalKey,h=e.staggerConfig,p=h===void 0?{}:h,g=e.decisionData,b=g===void 0?{}:g,y=e.handleEnterUpdateDelete,x=e.onComplete,w=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var C,S=lM(sM((C={element:c,portalKey:v}).element,C.portalKey)).map(function(M){var z=M[0],B=M[1],H=window.getComputedStyle(z);return[z.dataset.flipId,{element:z,rect:B,opacity:parseFloat(H.opacity),transform:H.transform}]}).reduce(aM,{}),E=(function(M){var z=M.containerEl,B=M.portalKey;return B?(function(H){return function(T){return Qa(document.querySelectorAll("["+hb+'="'+H+'"]'+T))}})(B):z?(function(H){var T=Math.random().toFixed(5);return H.dataset.flipperId=T,function(R){return Qa(H.querySelectorAll('[data-flipper-id="'+T+'"] '+R))}})(z):function(){return[]}})({containerEl:c,portalKey:v}),k=(function(M){return function(z){return M("["+mb+'="'+z+'"]')[0]}})(E),O=function(M){return a[M]&&S[M]},$=Object.keys(a).concat(Object.keys(S)).filter(function(M){return!O(M)}),N={flipCallbacks:l,getElement:k,flippedElementPositionsBeforeUpdate:a,flippedElementPositionsAfterUpdate:S,inProgressAnimations:o,decisionData:b},_=(function(M){var z,B=M.unflippedIds,H=M.flipCallbacks,T=M.getElement,R=M.flippedElementPositionsBeforeUpdate,D=M.flippedElementPositionsAfterUpdate,L=M.inProgressAnimations,V=M.decisionData,q=B.filter(function(X){return D[X]}).filter(function(X){return H[X]&&H[X].onAppear}),K=B.filter(function(X){return R[X]&&H[X]&&H[X].onExit}),Q=new Promise(function(X){z=X}),U=[],J=0,Y=K.map(function(X,re){var le=R[X].domDataForExitAnimations,oe=le.element,de=le.parent,he=le.childPosition,ke=he.top,Oe=he.left,pe=he.width,we=he.height;getComputedStyle(de).position==="static"&&(de.style.position="relative"),oe.style.transform="matrix(1, 0, 0, 1, 0, 0)",oe.style.position="absolute",oe.style.top=ke+"px",oe.style.left=Oe+"px",oe.style.height=we+"px",oe.style.width=pe+"px";var ne=U.filter(function(Pe){return Pe[0]===de})[0];ne||(ne=[de,document.createDocumentFragment()],U.push(ne)),ne[1].appendChild(oe),J+=1;var xe=function(){try{de.removeChild(oe)}catch{}finally{(J-=1)==0&&z()}};return L[X]={stop:xe},function(){return H[X].onExit(oe,re,xe,V)}});return U.forEach(function(X){X[0].appendChild(X[1])}),Y.length||z(),{hideEnteringElements:function(){q.forEach(function(X){var re=T(X);re&&(re.style.opacity="0")})},animateEnteringElements:function(){q.forEach(function(X,re){var le=T(X);le&&H[X].onAppear(le,re,V)})},animateExitingElements:function(){return Y.forEach(function(X){return X()}),Q}}})(wi({},N,{unflippedIds:$})),j=_.hideEnteringElements,F=_.animateEnteringElements,A=_.animateExitingElements,I=wi({},N,{containerEl:c,flippedIds:n.filter(O),applyTransformOrigin:u,spring:f,debug:m,staggerConfig:p,scopedSelector:E,onComplete:x});w&&w(c,b);var P=(function(M){var z,B=M.flippedIds,H=M.flipCallbacks,T=M.inProgressAnimations,R=M.flippedElementPositionsBeforeUpdate,D=M.flippedElementPositionsAfterUpdate,L=M.applyTransformOrigin,V=M.spring,q=M.getElement,K=M.debug,Q=M.staggerConfig,U=Q===void 0?{}:Q,J=M.decisionData,Y=J===void 0?{}:J,X=M.onComplete,re=M.containerEl,le=new Promise(function(ue){z=ue});if(X&&le.then(function(){return X(re,Y)}),!B.length)return function(){return z([]),le};var oe=[],de=q(B[0]),he=de?de.ownerDocument.querySelector("body"):document.querySelector("body");tM(B);var ke=B.map(function(ue){var Re=R[ue].rect,Te=D[ue].rect,De=R[ue].opacity,be=D[ue].opacity,Ie=Te.width<1||Te.height<1,Ne=D[ue].element;if(!ES(Re)&&!ES(Te)||!Ne)return!1;var $e,fe,ye,Ve=$S(Ne),ge=(ye=(fe=($e={flipperSpring:V,flippedSpring:Ve.spring})===void 0?{}:$e).flippedSpring,wi({},Ih.noWobble,wS(fe.flipperSpring),wS(ye))),Ze=Ve.stagger===!0?"default":Ve.stagger,ut={element:Ne,id:ue,stagger:Ze,springConfig:ge};if(H[ue]&&H[ue].shouldFlip&&!H[ue].shouldFlip(Y.previous,Y.current))return!1;var xt=Math.abs(Re.left-Te.left)+Math.abs(Re.top-Te.top),It=Math.abs(Re.width-Te.width)+Math.abs(Re.height-Te.height),ze=Math.abs(be-De);if(Re.height===0&&Te.height===0||Re.width===0&&Te.width===0||xt<.5&&It<.5&&ze<.01)return!1;var Xe=HY(D[ue].transform),We={matrix:Xe},bt={matrix:[]},ft=[Xe];Ve.translate&&(ft.push(qY(Re.left-Te.left)),ft.push(KY(Re.top-Te.top))),Ve.scale&&(ft.push(VY(Math.max(Re.width,1)/Math.max(Te.width,1))),ft.push(WY(Math.max(Re.height,1)/Math.max(Te.height,1)))),Ve.opacity&&(bt.opacity=De,We.opacity=be);var at=[];if(!H[ue]||!H[ue].shouldInvert||H[ue].shouldInvert(Y.previous,Y.current)){var tt=(function(Ke,it){return Qa(Ke.querySelectorAll("["+gb+'="'+it+'"]'))})(Ne,ue);at=tt.map(function(Ke){return[Ke,$S(Ke)]})}bt.matrix=kS(ft.reduce(LY)),We.matrix=kS(We.matrix);var qe,wt=(function(Ke){var it=Ke.element,ee=Ke.invertedChildren,Z=Ke.body;return function(ve){var Se=ve.matrix,_e=ve.opacity,Ue=ve.forceMinVals;if(Au(_e)&&(it.style.opacity=_e+""),Ue&&(it.style.minHeight="1px",it.style.minWidth="1px"),Se){var gt=(function(lt){return"matrix("+lt.join(", ")+")"})(Se);it.style.transform=gt,ee&&(function(lt){var mt=lt.matrix,kt=lt.body;lt.invertedChildren.forEach(function(ot){var Nt=ot[0],Ee=ot[1];if(kt.contains(Nt)){var Qe=mt[0],Fe=mt[3],Le=mt[5],Be={translateX:0,translateY:0,scaleX:1,scaleY:1},ht="";Ee.translate&&(Be.translateX=-mt[4]/Qe,Be.translateY=-Le/Fe,ht+="translate("+Be.translateX+"px, "+Be.translateY+"px)"),Ee.scale&&(Be.scaleX=1/Qe,Be.scaleY=1/Fe,ht+=" scale("+Be.scaleX+", "+Be.scaleY+")"),Nt.style.transform=ht}})})({invertedChildren:ee,matrix:Se,body:Z})}}})({element:Ne,invertedChildren:at,body:he});if(H[ue]&&H[ue].onComplete){var Ot=H[ue].onComplete;qe=function(){return Ot(Ne,Y)}}var Ge=Au(bt.opacity)&&Au(We.opacity)&&bt.opacity!==We.opacity,Je=!1;return wi({},ut,{stagger:Ze,springConfig:ge,getOnUpdateFunc:function(Ke){var it=Ke.spring,ee=Ke.onAnimationEnd;return T[ue]={destroy:it.destroy.bind(it),onAnimationEnd:ee},function(Z){H[ue]&&H[ue].onSpringUpdate&&H[ue].onSpringUpdate(Z.getCurrentValue()),Je||(Je=!0,H[ue]&&H[ue].onStart&&H[ue].onStart(Ne,Y));var ve=Z.getCurrentValue();if(he.contains(Ne)){var Se={matrix:[]};Se.matrix=bt.matrix.map(function(_e,Ue){return Oh(_e,We.matrix[Ue],ve)}),Ge&&(Se.opacity=Oh(bt.opacity,We.opacity,ve)),wt(Se)}else Z.destroy()}},initializeFlip:function(){wt({matrix:bt.matrix,opacity:Ge?bt.opacity:void 0,forceMinVals:Ie}),H[ue]&&H[ue].onStartImmediate&&H[ue].onStartImmediate(Ne,Y),Ve.transformOrigin?Ne.style.transformOrigin=Ve.transformOrigin:L&&(Ne.style.transformOrigin="0 0"),at.forEach(function(Ke){var it=Ke[0],ee=Ke[1];ee.transformOrigin?it.style.transformOrigin=ee.transformOrigin:L&&(it.style.transformOrigin="0 0")})},onAnimationEnd:function(Ke){delete T[ue],JN(qe)&&qe(),Ne.style.transform="",at.forEach(function(it){it[0].style.transform=""}),Ie&&Ne&&(Ne.style.minHeight="",Ne.style.minWidth=""),Ke||(oe.push(ue),oe.length>=ke.length&&z(oe))},delayUntil:Ve.delayUntil})}).filter(Boolean);if(ke.forEach(function(ue){return(0,ue.initializeFlip)()}),K)return function(){};var Oe=ke.filter(function(ue){return ue.delayUntil&&(Re=ue.delayUntil,ke.filter(function(Te){return Te.id===Re}).length);var Re}),pe={},we={},ne={};Oe.forEach(function(ue){ue.stagger?(ne[ue.stagger]=!0,we[ue.delayUntil]?we[ue.delayUntil].push(ue.stagger):we[ue.delayUntil]=[ue.stagger]):pe[ue.delayUntil]?pe[ue.delayUntil].push(ue):pe[ue.delayUntil]=[ue]});var xe=ke.filter(function(ue){return ue.stagger}).reduce(function(ue,Re){return ue[Re.stagger]?ue[Re.stagger].push(Re):ue[Re.stagger]=[Re],ue},{}),Pe=ke.filter(function(ue){return Oe.indexOf(ue)===-1});return Pe.forEach(function(ue){ue.onSpringActivate=function(){pe[ue.id]&&pe[ue.id].forEach(CS),we[ue.id]&&Object.keys(we[ue.id].reduce(function(Re,Te){var De;return wi(Re,((De={})[Te]=!0,De))},{})).forEach(function(Re){SS(xe[Re],U[Re])})}}),function(){return ke.length||z([]),Pe.filter(function(ue){return!ue.stagger}).forEach(CS),Object.keys(xe).forEach(function(ue){ne[ue]||SS(xe[ue],U[ue])}),le}})(I);y?y({hideEnteringElements:j,animateEnteringElements:F,animateExitingElements:A,animateFlippedElements:P}):(j(),A().then(F),P())}},nZ=function(e){var t=e.element,n=e.flipCallbacks,r=n===void 0?{}:n,o=e.inProgressAnimations,i=o===void 0?{}:o,a=sM(t,e.portalKey),s=Qa(t.querySelectorAll("["+gb+"]")),l={},c=[],u={};a.filter(function(v){return r&&r[v.dataset.flipId]&&r[v.dataset.flipId].onExit}).forEach(function(v){var h=v.parentNode;if(v.closest){var p=v.closest("["+UY+"]");p&&(h=p)}var g=c.findIndex(function(b){return b[0]===h});g===-1&&(c.push([h,h.getBoundingClientRect()]),g=c.length-1),l[v.dataset.flipId]=c[g][1],u[v.dataset.flipId]=h});var f=lM(a),m=f.map(function(v){var h=v[0],p=v[1],g={};if(r&&r[h.dataset.flipId]&&r[h.dataset.flipId].onExit){var b=l[h.dataset.flipId];wi(g,{element:h,parent:u[h.dataset.flipId],childPosition:{top:p.top-b.top,left:p.left-b.left,width:p.width,height:p.height}})}return[h.dataset.flipId,{rect:p,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:g}]}).reduce(aM,{});return(function(v,h){Object.keys(v).forEach(function(p){v[p].destroy&&v[p].destroy(),v[p].onAnimationEnd&&v[p].onAnimationEnd(!0),delete v[p]}),h.forEach(function(p){p.style.transform="",p.style.opacity=""})})(i,a.concat(s)),{flippedElementPositions:m,cachedOrderedFlipIds:f.map(function(v){return v[0].dataset.flipId})}};new oM;function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function Nh(e,t){return Nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Nh(e,t)}function cM(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var uM=Kr({}),dM=Kr("portal"),fM=(function(e){var t,n;function r(){for(var i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(i=e.call.apply(e,[this].concat(s))||this).inProgressAnimations={},i.flipCallbacks={},i.el=void 0,i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Nh(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(i){return i.flipKey!==this.props.flipKey&&this.el?nZ({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(i,a,s){this.props.flipKey!==i.flipKey&&this.el&&tZ({flippedElementPositionsBeforeUpdate:s.flippedElementPositions,cachedOrderedFlipIds:s.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:i.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var i=this,a=this.props,s=a.portalKey,l=se.createElement(uM.Provider,{value:this.flipCallbacks},se.createElement(a.element,{className:a.className,ref:function(c){return i.el=c}},this.props.children));return s&&(l=se.createElement(dM.Provider,{value:s},l)),l},r})(Id);fM.defaultProps={applyTransformOrigin:!0,element:"div"};var rZ=["children","flipId","inverseFlipId","portalKey"],oZ=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],OS=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,i=e.portalKey,a=cM(e,rZ),s=n,l=(function(u){return typeof u=="function"})(s);if(!l)try{s=Yk.only(n)}catch{throw new Error("Each Flipped component must wrap a single child")}a.scale||a.translate||a.opacity||nM.assign(a,{translate:!0,scale:!0,opacity:!0});var c=((t={})[au.DATA_FLIP_CONFIG]=JSON.stringify(a),t);return r!==void 0?c[au.DATA_FLIP_ID]=String(r):o&&(c[au.DATA_INVERSE_FLIP_ID]=String(o)),i!==void 0&&(c[au.DATA_PORTAL_KEY]=i),l?s(c):Qk(s,c)},pM=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,i=e.onAppear,a=e.onStart,s=e.onStartImmediate,l=e.onComplete,c=e.onExit,u=e.onSpringUpdate,f=cM(e,oZ);return t?f.inverseFlipId?se.createElement(OS,xd({},f),t):se.createElement(dM.Consumer,null,function(m){return se.createElement(uM.Consumer,null,function(v){return nM.isObject(v)&&n&&(v[n]={shouldFlip:r,shouldInvert:o,onAppear:i,onStart:a,onStartImmediate:s,onComplete:l,onExit:c,onSpringUpdate:u}),se.createElement(OS,xd({flipId:n},f,{portalKey:m}),t)})}):null};pM.displayName="Flipped";function iZ(e){const{data:t,activedItem:n,onChange:r,onDelete:o,sortRules:i=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:a,assistantList:s,height:l=400,styles:c={}}=e,u=t.map(x=>x.sessionId+"-"+x.gmtModified).join(","),f=tn(()=>{const x=i.length>0?i:[{label:"\u5F53\u5929",dayPeriod:1}],w=zY(t,x),C=x.every(E=>!w[E.label]||w[E.label].length===0),S=[];return x.forEach(E=>{w[E.label]&&w[E.label].length>0&&(S.push({type:"group",label:E.label}),w[E.label].forEach(k=>S.push({type:"item",data:k})))}),w.other.length>0&&!C&&(S.push({type:"group",label:"\u5176\u4ED6"}),w.other.forEach(E=>S.push({type:"item",data:E}))),C&&w.other.length>0&&w.other.forEach(E=>S.push({type:"item",data:E})),S},[t,i,u]),m=56,v=14,h=x=>f[x].type==="group"?32:m+v,p=Ye(null),g=tn(()=>f.findIndex(x=>{var w;return x.type==="item"&&((w=x.data)==null?void 0:w.sessionId)===n}),[f,n]),b=tn(()=>f.findIndex(x=>x.type==="item"),[f]);if(St(()=>{g>-1&&g===b&&p.current&&p.current.scrollToItem(g,"start")},[g,b,f.length]),St(()=>{p.current&&p.current.resetAfterIndex(0,!0)},[u]),f.length===0)return ce("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const y=(c==null?void 0:c.colors)||{};return ce(fM,{flipKey:u,spring:{stiffness:180,damping:18},children:ce(RY,{ref:p,height:l,width:"100%",itemCount:f.length,itemSize:h,itemKey:x=>{const w=f[x];return w.type==="item"?w.data.sessionId:`group-${w.label}`},style:{overflowX:"hidden"},children:({index:x,style:w})=>{const C=f[x];return C.type==="group"?ce("div",{style:{...w,background:y.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:C.label}):ce(pM,{flipId:C.data.sessionId,children:ce("div",{style:w,className:"px-[12px] py-[2px]",children:ce(BY,{isActive:n===C.data.sessionId,isDisabled:!1,isNew:C.data.isNew,data:C.data,eventsEmit:a,assistantList:s,styles:c})})},C.data.sessionId)}})})}const aZ=({value:e,eventsEmit:t,setSearch:n,style:r,styles:o={}})=>{const i=o.colors||{},a=o.radius||"12px",s=i.border||"#e5e7eb",l=i.primary||"#2563eb",c=o.headerBg||i.sidebarBg||i.background||"#fff",[u,f]=se.useState(!1);return pt("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...r,background:c,borderTopLeftRadius:a,borderTopRightRadius:a},children:[ce("button",{className:"border-none flex items-center justify-center",onClick:()=>{f(!1),t&&t("conversation:create")},title:"\u65B0\u5EFA\u4F1A\u8BDD",style:{height:42,borderRadius:"90px",background:l,color:i.buttonText||"#fff",fontWeight:600,boxShadow:o.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:u?"0 0":"0 14px",minWidth:u?0:180,width:u?0:void 0,opacity:u?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease"},children:pt("div",{className:"flex items-center gap-2",children:[ce(tE,{size:18}),ce("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),u?pt("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[ce("input",{className:"flex-1 px-3 py-2 text-sm transition-all",placeholder:"\u641C\u7D22\u4F1A\u8BDD...",value:e,onChange:m=>n(m.target.value),onBlur:()=>f(!1),onKeyDown:m=>{m.key==="Enter"&&f(!1)},style:{minWidth:0,width:"100%",maxWidth:"100%",borderRadius:a,background:i.inputBg||"#f4f4f5",border:`1px solid ${s}`,color:i.text||"#222",outline:"none"}}),ce("button",{className:"flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:i.text||"#222",flexShrink:0},onClick:()=>f(!1),title:"\u6536\u8D77\u641C\u7D22",children:ce(Iv,{size:16})})]}):ce("button",{className:"ml-auto flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:l,flexShrink:0},onClick:()=>f(!0),title:"\u641C\u7D22",children:ce(xY,{size:18})})]})};function sZ(e){const{data:t,sortRules:n,activedItem:r,eventsEmit:o,assistantList:i,styles:a={}}=e,[s,l]=Et(""),c=tn(()=>s?t.filter(x=>(x.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(s.toLowerCase())):t,[t,s]),u=tn(()=>[...c].sort((x,w)=>new Date(w.gmtModified).getTime()-new Date(x.gmtModified).getTime()),[c]),f=Ye(null),[m,v]=Et(400);St(()=>{function x(){f.current&&v(f.current.clientHeight)}return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const h=(a==null?void 0:a.colors)||{};a!=null&&a.radius;const p=(a==null?void 0:a.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",g=h.border||"#e5e7eb",b=h.sidebarBg||h.background||"#EAEEFF",y=h.text||"#222";return pt("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:b,color:y,boxShadow:p,border:`1px solid ${g}`,...a.container},children:[ce(aZ,{value:s,setSearch:l,eventsEmit:o,style:a.header,styles:a}),pt("div",{className:"flex-1 min-h-0 relative",ref:f,style:a.list,children:[ce(iZ,{eventsEmit:o,data:u,assistantList:i,activedItem:r,sortRules:n,height:m,styles:a}),ce("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${b}cc, transparent)`}})]})]})}function Mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lZ(e){if(Array.isArray(e))return Mh(e)}function mM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vb(e,t){if(e){if(typeof e=="string")return Mh(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mh(e,t):void 0}}function cZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
686
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rt(e){return lZ(e)||mM(e)||vb(e)||cZ()}const uZ=se.createContext({});function gM(e){if(Array.isArray(e))return e}function dZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function hM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
687
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pt(e,t){return gM(e)||dZ(e,t)||vb(e,t)||hM()}function Lt(e){"@babel/helpers - typeof";return Lt=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},Lt(e)}function fZ(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vM(e){var t=fZ(e,"string");return Lt(t)=="symbol"?t:t+""}function Ce(e,t,n){return(t=vM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IS(Object(n),!0).forEach(function(r){Ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){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)}function li(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pZ(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var NS="data-rc-order",MS="data-rc-priority",mZ="rc-util-key",Ph=new Map;function bM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):mZ}function Tf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function gZ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function bb(e){return Array.from((Ph.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!li())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=gZ(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(NS,a),s&&i&&l.setAttribute(MS,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Tf(t),u=c.firstChild;if(r){if(s){var f=(t.styles||bb(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(NS)))return!1;var v=Number(m.getAttribute(MS)||0);return i>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function xM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Tf(t);return(t.styles||bb(n)).find(function(r){return r.getAttribute(bM(t))===e})}function wM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xM(e,t);if(n){var r=Tf(t);r.removeChild(n)}}function hZ(e,t){var n=Ph.get(e);if(!n||!pZ(document,n)){var r=yM("",t),o=r.parentNode;Ph.set(e,o),e.removeChild(r)}}function ia(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Tf(n),o=bb(r),i=He(He({},n),{},{styles:o});hZ(r,i);var a=xM(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=yM(e,i);return u.setAttribute(bM(i),t),u}function qo(e,t){if(e==null)return{};var n,r,o=EY(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CM(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Fh={},vZ=function(t){};function bZ(e,t){}function yZ(e,t){}function xZ(){Fh={}}function SM(e,t,n){!t&&!Fh[n]&&(e(!1,n),Fh[n]=!0)}function Vr(e,t){SM(bZ,e,t)}function wZ(e,t){SM(yZ,e,t)}Vr.preMessage=vZ;Vr.resetWarned=xZ;Vr.noteOnce=wZ;function jh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Vr(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&Lt(i)==="object"&&Lt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],c)})}return!1}return o(e,t)}function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vM(r.key),r)}}function kr(e,t,n){return t&&PS(e.prototype,t),n&&PS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var CZ="%";function Ah(e){return e.join(CZ)}var SZ=(function(){function e(t){Sr(this,e),Ce(this,"instanceId",void 0),Ce(this,"cache",new Map),Ce(this,"extracted",new Set),this.instanceId=t}return kr(e,[{key:"get",value:function(n){return this.opGet(Ah(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Ah(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e})(),ms="data-token-hash",ko="data-css-hash",Ei="__cssinjs_instance__";function kZ(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ko,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ei]=o[Ei]||e,o[Ei]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ko,"]"))).forEach(function(o){var i=o.getAttribute(ko);if(r[i]){if(o[Ei]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new SZ(e)}var kc=d.createContext({hashPriority:"low",cache:kZ(),defaultCache:!0});function Ts(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&&ps(e,t)}function Ql(e){return Ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ql(e)}function yb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yb=function(){return!!e})()}function EZ(e,t){if(t&&(Lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ut(e)}function Ds(e){var t=yb();return function(){var n,r=Ql(e);if(t){var o=Ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EZ(this,n)}}function $Z(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var xb=(function(){function e(){Sr(this,e),Ce(this,"cache",void 0),Ce(this,"keys",void 0),Ce(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return kr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=Pt(c,2),m=f[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=Pt(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!$Z(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();Ce(xb,"MAX_CACHE_SIZE",20);Ce(xb,"MAX_CACHE_OFFSET",5);var FS=0,kM=(function(){function e(t){Sr(this,e),Ce(this,"derivatives",void 0),Ce(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=FS,t.length===0&&(t.length>0,void 0),FS+=1}return kr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Sm=new xb;function Rh(e){var t=Array.isArray(e)?e:[e];return Sm.has(t)||Sm.set(t,new kM(t)),Sm.get(t)}var OZ=new WeakMap,km={};function IZ(e,t){for(var n=OZ,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(km)||n.set(km,e()),n.get(km)}var jS=new WeakMap;function Sl(e){var t=jS.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof kM?t+=r.id:r&&Lt(r)==="object"?t+=Sl(r):t+=r}),t=Zl(t),jS.set(e,t)),t}function AS(e,t){return Zl("".concat(t,"_").concat(Sl(e)))}var Th=li();function RS(e){return typeof e=="number"?"".concat(e,"px"):e}function wd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=He(He({},r),{},Ce(Ce({},ms,t),ko,n)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Ru=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},NZ=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=Pt(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},EM=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=Pt(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var m,v=Ru(u,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(v,")")}}),[i,NZ(o,n,{scope:r==null?void 0:r.scope})]},TS=li()?d.useLayoutEffect:d.useEffect,MZ=function(t,n){var r=d.useRef(!0);TS(function(){return t(r.current)},n),TS(function(){return r.current=!1,function(){r.current=!0}},[])},PZ=He({},d),DS=PZ.useInsertionEffect,FZ=function(t,n,r){d.useMemo(t,r),MZ(function(){return n(!0)},r)},jZ=DS?function(e,t,n){return DS(function(){return e(),t()},n)}:FZ,AZ=He({},d),RZ=AZ.useInsertionEffect,TZ=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},DZ=function(){return function(t){t()}},_Z=typeof RZ<"u"?TZ:DZ;function wb(e,t,n,r,o){var i=d.useContext(kc),a=i.cache,s=[e].concat(Rt(t)),l=Ah(s),c=_Z([l]),u=function(h){a.opUpdate(l,function(p){var g=p||[void 0,void 0],b=Pt(g,2),y=b[0],x=y===void 0?0:y,w=b[1],C=w,S=C||n(),E=[x,S];return h?h(E):E})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),m=f[1];return jZ(function(){o==null||o(m)},function(v){return u(function(h){var p=Pt(h,2),g=p[0],b=p[1];return v&&g===0&&(o==null||o(m)),[g+1,b]}),function(){a.opUpdate(l,function(h){var p=h||[],g=Pt(p,2),b=g[0],y=b===void 0?0:b,x=g[1],w=y-1;return w===0?(c(function(){(v||!a.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),m}var BZ={},zZ="css",Xi=new Map;function LZ(e){Xi.set(e,(Xi.get(e)||0)+1)}function HZ(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ms,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ei]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var VZ=0;function WZ(e,t){Xi.set(e,(Xi.get(e)||0)-1);var n=new Set;Xi.forEach(function(r,o){r<=0&&n.add(o)}),Xi.size-n.size>VZ&&n.forEach(function(r){HZ(r,t),Xi.delete(r)})}var qZ=function(t,n,r,o){var i=r.getDerivativeToken(t),a=He(He({},i),n);return o&&(a=o(a)),a},$M="token";function KZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=sn(kc),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?BZ:l,u=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=IZ(function(){return Object.assign.apply(Object,[{}].concat(Rt(t)))},t),h=Sl(v),p=Sl(c),g=m?Sl(m):"",b=wb($M,[s,e.id,h,p,g],function(){var y,x=f?f(v,c,e):qZ(v,c,e,u),w=He({},x),C="";if(m){var S=EM(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),E=Pt(S,2);x=E[0],C=E[1]}var k=AS(x,s);x._tokenKey=k,w._tokenKey=AS(w,s);var O=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:k;x._themeKey=O,LZ(O);var $="".concat(zZ,"-").concat(Zl(k));return x._hashId=$,[x,$,w,C,(m==null?void 0:m.key)||""]},function(y){WZ(y[0]._themeKey,o)},function(y){var x=Pt(y,4),w=x[0],C=x[3];if(m&&C){var S=ia(C,Zl("css-variables-".concat(w._themeKey)),{mark:ko,prepend:"queue",attachTo:i,priority:-999});S[Ei]=o,S.setAttribute(ms,w._themeKey)}});return b}var UZ=function(t,n,r){var o=Pt(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=wd(a,s,u,m,c);return[f,u,v]},XZ={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},OM="comm",IM="rule",NM="decl",GZ="@import",YZ="@namespace",ZZ="@keyframes",QZ="@layer",MM=Math.abs,Cb=String.fromCharCode;function PM(e){return e.trim()}function Tu(e,t,n){return e.replace(t,n)}function JZ(e,t,n){return e.indexOf(t,n)}function Ja(e,t){return e.charCodeAt(t)|0}function gs(e,t,n){return e.slice(t,n)}function _o(e){return e.length}function eQ(e){return e.length}function su(e,t){return t.push(e),e}var Df=1,hs=1,FM=0,so=0,Un=0,_s="";function Sb(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Df,column:hs,length:a,return:"",siblings:s}}function tQ(){return Un}function nQ(){return Un=so>0?Ja(_s,--so):0,hs--,Un===10&&(hs=1,Df--),Un}function Eo(){return Un=so<FM?Ja(_s,so++):0,hs++,Un===10&&(hs=1,Df++),Un}function $i(){return Ja(_s,so)}function Du(){return so}function _f(e,t){return gs(_s,e,t)}function Jl(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 rQ(e){return Df=hs=1,FM=_o(_s=e),so=0,[]}function oQ(e){return _s="",e}function Em(e){return PM(_f(so-1,Dh(e===91?e+2:e===40?e+1:e)))}function iQ(e){for(;(Un=$i())&&Un<33;)Eo();return Jl(e)>2||Jl(Un)>3?"":" "}function aQ(e,t){for(;--t&&Eo()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return _f(e,Du()+(t<6&&$i()==32&&Eo()==32))}function Dh(e){for(;Eo();)switch(Un){case e:return so;case 34:case 39:e!==34&&e!==39&&Dh(Un);break;case 40:e===41&&Dh(e);break;case 92:Eo();break}return so}function sQ(e,t){for(;Eo()&&e+Un!==57;)if(e+Un===84&&$i()===47)break;return"/*"+_f(t,so-1)+"*"+Cb(e===47?e:Eo())}function lQ(e){for(;!Jl($i());)Eo();return _f(e,so)}function cQ(e){return oQ(_u("",null,null,null,[""],e=rQ(e),0,[0],e))}function _u(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,m=0,v=0,h=0,p=1,g=1,b=1,y=0,x="",w=o,C=i,S=r,E=x;g;)switch(h=y,y=Eo()){case 40:if(h!=108&&Ja(E,f-1)==58){JZ(E+=Tu(Em(y),"&","&\f"),"&\f",MM(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Em(y);break;case 9:case 10:case 13:case 32:E+=iQ(h);break;case 92:E+=aQ(Du()-1,7);continue;case 47:switch($i()){case 42:case 47:su(uQ(sQ(Eo(),Du()),t,n,l),l),(Jl(h||1)==5||Jl($i()||1)==5)&&_o(E)&&gs(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*p:s[c++]=_o(E)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(E=Tu(E,/\f/g,"")),v>0&&(_o(E)-f||p===0&&h===47)&&su(v>32?BS(E+";",r,n,f-1,l):BS(Tu(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(su(S=_S(E,t,n,c,u,o,s,x,w=[],C=[],f,i),i),y===123)if(u===0)_u(E,t,S,S,w,i,f,s,C);else{switch(m){case 99:if(Ja(E,3)===110)break;case 108:if(Ja(E,2)===97)break;default:u=0;case 100:case 109:case 115:}u?_u(e,S,S,r&&su(_S(e,S,S,0,0,o,s,x,o,w=[],f,C),C),o,C,f,s,r?w:C):_u(E,S,S,S,[""],C,0,s,C)}}c=u=v=0,p=b=1,x=E="",f=a;break;case 58:f=1+_o(E),v=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&nQ()==125)continue}switch(E+=Cb(y),y*p){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(_o(E)-1)*b,b=1;break;case 64:$i()===45&&(E+=Em(Eo())),m=$i(),u=f=_o(x=E+=lQ(Du())),y++;break;case 45:h===45&&_o(E)==2&&(p=0)}}return i}function _S(e,t,n,r,o,i,a,s,l,c,u,f){for(var m=o-1,v=o===0?i:[""],h=eQ(v),p=0,g=0,b=0;p<r;++p)for(var y=0,x=gs(e,m+1,m=MM(g=a[p])),w=e;y<h;++y)(w=PM(g>0?v[y]+" "+x:Tu(x,/&\f/g,v[y])))&&(l[b++]=w);return Sb(e,t,n,o===0?IM:s,l,c,u,f)}function uQ(e,t,n,r){return Sb(e,t,n,OM,Cb(tQ()),gs(e,2,-2),0,r)}function BS(e,t,n,r,o){return Sb(e,t,n,NM,gs(e,0,r),gs(e,r+1,-1),r,o)}function _h(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function dQ(e,t,n,r){switch(e.type){case QZ:if(e.children.length)break;case GZ:case YZ:case NM:return e.return=e.return||e.value;case OM:return"";case ZZ:return e.return=e.value+"{"+_h(e.children,r)+"}";case IM:if(!_o(e.value=e.props.join(",")))return""}return _o(n=_h(e.children,r))?e.return=e.value+"{"+n+"}":""}var zS="data-ant-cssinjs-cache-path",jM="_FILE_STYLE__",aa,AM=!0;function fQ(){if(!aa&&(aa={},li())){var e=document.createElement("div");e.className=zS,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=Pt(i,2),s=a[0],l=a[1];aa[s]=l});var n=document.querySelector("style[".concat(zS,"]"));if(n){var r;AM=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function pQ(e){return fQ(),!!aa[e]}function mQ(e){var t=aa[e],n=null;if(t&&li())if(AM)n=jM;else{var r=document.querySelector("style[".concat(ko,'="').concat(aa[e],'"]'));r?n=r.innerHTML:delete aa[e]}return[n,t]}var gQ="_skip_check_",RM="_multi_value_";function Bu(e){var t=_h(cQ(e),dQ);return t.replace(/\{%%%\:[^;];}/g,";")}function hQ(e){return Lt(e)==="object"&&e&&(gQ in e||RM in e)}function LS(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Rt(l.slice(1))).join(" ")});return i.join(",")}var vQ=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var m="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:a}),w=Pt(x,1),C=w[0];v[y]="@keyframes ".concat(b.getName(s)).concat(C)}}function p(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?p(x,y):x&&y.push(x)}),y}var g=p(Array.isArray(t)?t:[t]);return g.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")m+="".concat(y,`
688
- `);else if(y._keyframe)h(y);else{var x=f.reduce(function(w,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,w))||w},y);Object.keys(x).forEach(function(w){var C=x[w];if(Lt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!hQ(C)){var S=!1,E=w.trim(),k=!1;(o||i)&&s?E.startsWith("@")?S=!0:E==="&"?E=LS("",s,c):E=LS(w,s,c):o&&!s&&(E==="&"||E==="")&&(E="",k=!0);var O=e(C,n,{root:k,injectHash:S,parentSelectors:[].concat(Rt(a),[E])}),$=Pt(O,2),N=$[0],_=$[1];v=He(He({},v),_),m+="".concat(E).concat(N)}else{let A=function(I,P){var M=I.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),z=P;!XZ[I]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),I==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(h(P),z=P.getName(s)),m+="".concat(M,":").concat(z,";")};var j,F=(j=C==null?void 0:C.value)!==null&&j!==void 0?j:C;Lt(C)==="object"&&C!==null&&C!==void 0&&C[RM]&&Array.isArray(F)?F.forEach(function(I){A(w,I)}):A(w,F)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
689
- `))):m="{".concat(m,"}"),[m,v]};function TM(e,t){return Zl("".concat(e.join("%")).concat(t))}function bQ(){return null}var DM="style";function Bh(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(kc),f=u.autoClear;u.mock;var m=u.defaultCache,v=u.hashPriority,h=u.container,p=u.ssrInline,g=u.transformers,b=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,Rt(r));var S=Th,E=wb(DM,C,function(){var _=C.join("|");if(pQ(_)){var j=mQ(_),F=Pt(j,2),A=F[0],I=F[1];if(A)return[A,w,I,{},s,c]}var P=t(),M=vQ(P,{hashId:o,hashPriority:v,layer:x?i:void 0,path:r.join("-"),transformers:g,linters:b}),z=Pt(M,2),B=z[0],H=z[1],T=Bu(B),R=TM(C,T);return[T,w,R,H,s,c]},function(_,j){var F=Pt(_,3),A=F[2];(j||f)&&Th&&wM(A,{mark:ko,attachTo:h})},function(_){var j=Pt(_,4),F=j[0];j[1];var A=j[2],I=j[3];if(S&&F!==jM){var P={mark:ko,prepend:x?!1:"queue",attachTo:h,priority:c},M=typeof a=="function"?a():a;M&&(P.csp={nonce:M});var z=[],B=[];Object.keys(I).forEach(function(T){T.startsWith("@layer")?z.push(T):B.push(T)}),z.forEach(function(T){ia(Bu(I[T]),"_layer-".concat(T),He(He({},P),{},{prepend:!0}))});var H=ia(F,A,P);H[Ei]=y.instanceId,H.setAttribute(ms,w),B.forEach(function(T){ia(Bu(I[T]),"_effect-".concat(T),P)})}}),k=Pt(E,3),O=k[0],$=k[1],N=k[2];return function(_){var j;return!p||S||!m?j=d.createElement(bQ,null):j=d.createElement("style",rr({},Ce(Ce({},ms,$),ko,N),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,j,_)}}var yQ=function(t,n,r){var o=Pt(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},m=f.plain;if(c)return null;var v=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return v=wd(i,a,s,h,m),l&&Object.keys(l).forEach(function(p){if(!n[p]){n[p]=!0;var g=Bu(l[p]),b=wd(g,a,"_effect-".concat(p),h,m);p.startsWith("@layer")?v=b+v:v+=b}}),[u,s,v]},_M="cssVar",xQ=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=sn(kc),f=u.cache.instanceId,m=u.container,v=s._tokenKey,h=[].concat(Rt(t.path),[r,c,v]),p=wb(_M,h,function(){var g=n(),b=EM(g,r,{prefix:o,unitless:i,ignore:a,scope:c}),y=Pt(b,2),x=y[0],w=y[1],C=TM(h,w);return[x,w,C,r]},function(g){var b=Pt(g,3),y=b[2];Th&&wM(y,{mark:ko,attachTo:m})},function(g){var b=Pt(g,3),y=b[1],x=b[2];if(y){var w=ia(y,x,{mark:ko,prepend:"queue",attachTo:m,priority:-999});w[Ei]=f,w.setAttribute(ms,r)}});return p},wQ=function(t,n,r){var o=Pt(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},m=wd(i,s,a,f,c);return[u,a,m]};Ce(Ce(Ce({},DM,yQ),$M,UZ),_M,wQ);var HS=(function(){function e(t,n){Sr(this,e),Ce(this,"name",void 0),Ce(this,"style",void 0),Ce(this,"_keyframe",!0),this.name=t,this.style=n}return kr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Ta(e){return e.notSplit=!0,e}Ta(["borderTop","borderBottom"]),Ta(["borderTop"]),Ta(["borderBottom"]),Ta(["borderLeft","borderRight"]),Ta(["borderLeft"]),Ta(["borderRight"]);var kb=Kr({});function CQ(e){return gM(e)||mM(e)||vb(e)||hM()}function Ho(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function BM(e,t,n,r){if(!t.length)return n;var o=CQ(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Rt(e):s=He({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=BM(s[i],a,n,r),s}function ho(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ho(e,t.slice(0,-1))?e:BM(e,t,n,r)}function SQ(e){return Lt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function VS(e){return Array.isArray(e)?[]:{}}var kQ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Va(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=VS(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=Ho(o,a),u=Array.isArray(c);if(u||SQ(c)){if(!l.has(c)){l.add(c);var f=Ho(r,a);u?r=ho(r,a,[]):(!f||Lt(f)!=="object")&&(r=ho(r,a,VS(c))),kQ(c).forEach(function(m){i([].concat(Rt(a),[m]),l)})}}else r=ho(r,a,c)}i([])}),r}const EQ=d.createContext({}),$Q=Kr(void 0),Rr="${label} is not a valid ${type}",Bf={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},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:Rr,method:Rr,array:Rr,object:Rr,number:Rr,date:Rr,boolean:Rr,integer:Rr,float:Rr,regexp:Rr,email:Rr,url:Rr,hex:Rr},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}"}}}};Object.assign({},Bf.Modal);let zu=[];const WS=()=>zu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Bf.Modal);function OQ(e){if(e){const t=Object.assign({},e);return zu.push(t),WS(),()=>{zu=zu.filter(n=>n!==t),WS()}}Object.assign({},Bf.Modal)}const zM=Kr(void 0),IQ="internalMark",NQ=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>OQ(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(zM.Provider,{value:o},n)},LM={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"},ec=Object.assign(Object.assign({},LM),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
690
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
691
- '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}),nr=Math.round;function $m(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const qS=(e,t,n)=>n===0?e:e/100;function tl(e,t){const n=t||255;return e>n?n:e<0?0:e}class Ln{constructor(t){Ce(this,"isValid",!0),Ce(this,"r",0),Ce(this,"g",0),Ce(this,"b",0),Ce(this,"a",1),Ce(this,"_h",void 0),Ce(this,"_s",void 0),Ce(this,"_l",void 0),Ce(this,"_v",void 0),Ce(this,"_max",void 0),Ce(this,"_min",void 0),Ce(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Ln)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=tl(t.r),this.g=tl(t.g),this.b=tl(t.b),this.a=typeof t.a=="number"?tl(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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 n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=nr(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(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._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 n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:nr(i("r")),g:nr(i("g")),b:nr(i("b")),a:nr(i("a")*100)/100};return this._c(a)}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 n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>nr((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=nr(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=nr(this.getSaturation()*100),r=nr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),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,n,r){const o=this.clone();return o[t]=tl(n,r),o}_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 n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=nr(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=r-c/2;this.r=nr((i+f)*255),this.g=nr((a+f)*255),this.b=nr((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=nr(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=nr(r*(1-n)*255),u=nr(r*(1-n*l)*255),f=nr(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=$m(t,qS);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=$m(t,qS);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=$m(t,(r,o)=>o.includes("%")?nr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var lu=2,KS=.16,MQ=.05,PQ=.05,FQ=.15,HM=5,VM=4,jQ=[{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 US(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lu*t:Math.round(e.h)+lu*t:r=n?Math.round(e.h)+lu*t:Math.round(e.h)-lu*t,r<0?r+=360:r>=360&&(r-=360),r}function XS(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-KS*t:t===VM?r=e.s+KS:r=e.s+MQ*t,r>1&&(r=1),n&&t===HM&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function GS(e,t,n){var r;return n?r=e.v+PQ*t:r=e.v-FQ*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function tc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Ln(e),o=r.toHsv(),i=HM;i>0;i-=1){var a=new Ln({h:US(o,i,!0),s:XS(o,i,!0),v:GS(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=VM;s+=1){var l=new Ln({h:US(o,s),s:XS(o,s),v:GS(o,s)});n.push(l)}return t.theme==="dark"?jQ.map(function(c){var u=c.index,f=c.amount;return new Ln(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Om={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"},zh=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];zh.primary=zh[5];var Lh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Lh.primary=Lh[5];var Hh=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Hh.primary=Hh[5];var Vh=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Vh.primary=Vh[5];var Wh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Wh.primary=Wh[5];var qh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qh.primary=qh[5];var Kh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Kh.primary=Kh[5];var Uh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Uh.primary=Uh[5];var Cd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Cd.primary=Cd[5];var Xh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Xh.primary=Xh[5];var Gh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Gh.primary=Gh[5];var Yh=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Yh.primary=Yh[5];var Zh=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zh.primary=Zh[5];var Im={red:zh,volcano:Lh,orange:Hh,gold:Vh,yellow:Wh,lime:qh,green:Kh,cyan:Uh,blue:Cd,geekblue:Xh,purple:Gh,magenta:Yh,grey:Zh};function AQ(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),m=t(o),v=t(i),h=t(a),p=n(l,c),g=e.colorLink||e.colorInfo,b=t(g),y=new Ln(v[1]).mix(new Ln(v[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Ln("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const RQ=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function TQ(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},RQ(r))}const DQ=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function _Q(e){return(e+8)/e}function BQ(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:_Q(n)}))}const zQ=e=>{const t=BQ(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function LQ(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const to=(e,t)=>new Ln(e).setA(t).toRgbString(),nl=(e,t)=>new Ln(e).darken(t).toHexString(),HQ=e=>{const t=tc(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]}},VQ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:to(r,.88),colorTextSecondary:to(r,.65),colorTextTertiary:to(r,.45),colorTextQuaternary:to(r,.25),colorFill:to(r,.15),colorFillSecondary:to(r,.06),colorFillTertiary:to(r,.04),colorFillQuaternary:to(r,.02),colorBgSolid:to(r,1),colorBgSolidHover:to(r,.75),colorBgSolidActive:to(r,.95),colorBgLayout:nl(n,4),colorBgContainer:nl(n,0),colorBgElevated:nl(n,0),colorBgSpotlight:to(r,.85),colorBgBlur:"transparent",colorBorder:nl(n,15),colorBorderSecondary:nl(n,6)}};function WQ(e){Om.pink=Om.magenta,Im.pink=Im.magenta;const t=Object.keys(LM).map(n=>{const r=e[n]===Om[n]?Im[n]:tc(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),AQ(e,{generateColorPalettes:HQ,generateNeutralColorPalettes:VQ})),zQ(e.fontSize)),LQ(e)),DQ(e)),TQ(e))}const WM=Rh(WQ),Qh={token:ec,override:{override:ec},hashed:!0},qM=se.createContext(Qh),Jh="ant",zf="anticon",qQ=(e,t)=>t||(e?`${Jh}-${e}`:Jh),oi=d.createContext({getPrefixCls:qQ,iconPrefixCls:zf}),{Consumer:fre}=oi,KQ=`-ant-${Date.now()}-${Math.random()}`;function UQ(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Ln(a),c=tc(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Ln(t.primaryColor),s=tc(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new Ln(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
692
- :root {
693
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
694
- `)}
695
- }
696
- `.trim()}function XQ(e,t){const n=UQ(e,t);li()&&ia(n,`${KQ}-dynamic-theme`)}const ev=d.createContext(!1),GQ=({children:e,disabled:t})=>{const n=d.useContext(ev);return d.createElement(ev.Provider,{value:t??n},e)},nc=d.createContext(void 0),YQ=({children:e,size:t})=>{const n=d.useContext(nc);return d.createElement(nc.Provider,{value:t||n},e)};function ZQ(){const e=sn(ev),t=sn(nc);return{componentDisabled:e,componentSize:t}}var KM=kr(function e(){Sr(this,e)}),UM="CALC_UNIT",QQ=new RegExp(UM,"g");function Nm(e){return typeof e=="number"?"".concat(e).concat(UM):e}var JQ=(function(e){Ts(n,e);var t=Ds(n);function n(r,o){var i;Sr(this,n),i=t.call(this),Ce(Ut(i),"result",""),Ce(Ut(i),"unitlessCssVar",void 0),Ce(Ut(i),"lowPriority",void 0);var a=Lt(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=Nm(r):a==="string"&&(i.result=r),i}return kr(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Nm(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Nm(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(QQ,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(KM),eJ=(function(e){Ts(n,e);var t=Ds(n);function n(r){var o;return Sr(this,n),o=t.call(this),Ce(Ut(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return kr(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(KM),tJ=function(t,n){var r=t==="css"?JQ:eJ;return function(o){return new r(o,n)}},YS=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Sd(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function tv(e){var t=d.useRef(!1),n=d.useState(e),r=Pt(n,2),o=r[0],i=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}var Mm={exports:{}},pn={};/**
697
- * @license React
698
- * react-is.production.min.js
699
- *
700
- * Copyright (c) Facebook, Inc. and its affiliates.
701
- *
702
- * This source code is licensed under the MIT license found in the
703
- * LICENSE file in the root directory of this source tree.
704
- */var ZS;function nJ(){if(ZS)return pn;ZS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case m:case f:case i:return g;default:return b}}case t:return b}}}return pn.ContextConsumer=a,pn.ContextProvider=i,pn.Element=e,pn.ForwardRef=l,pn.Fragment=n,pn.Lazy=m,pn.Memo=f,pn.Portal=t,pn.Profiler=o,pn.StrictMode=r,pn.Suspense=c,pn.SuspenseList=u,pn.isAsyncMode=function(){return!1},pn.isConcurrentMode=function(){return!1},pn.isContextConsumer=function(g){return p(g)===a},pn.isContextProvider=function(g){return p(g)===i},pn.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},pn.isForwardRef=function(g){return p(g)===l},pn.isFragment=function(g){return p(g)===n},pn.isLazy=function(g){return p(g)===m},pn.isMemo=function(g){return p(g)===f},pn.isPortal=function(g){return p(g)===t},pn.isProfiler=function(g){return p(g)===o},pn.isStrictMode=function(g){return p(g)===r},pn.isSuspense=function(g){return p(g)===c},pn.isSuspenseList=function(g){return p(g)===u},pn.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},pn.typeOf=p,pn}var QS;function rJ(){return QS||(QS=1,Mm.exports=nJ()),Mm.exports}var Pm=rJ(),oJ=Symbol.for("react.element"),iJ=Symbol.for("react.transitional.element"),aJ=Symbol.for("react.fragment");function XM(e){return e&&Lt(e)==="object"&&(e.$$typeof===oJ||e.$$typeof===iJ)&&e.type===aJ}var sJ=Number(Gk.split(".")[0]),lJ=function(t,n){typeof t=="function"?t(n):Lt(t)==="object"&&t&&"current"in t&&(t.current=n)},cJ=function(t){var n,r;if(!t)return!1;if(GM(t)&&sJ>=19)return!0;var o=Pm.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Pm.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Pm.ForwardRef)};function GM(e){return Jk(e)&&!XM(e)}var uJ=function(t){if(t&&GM(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function JS(e,t,n,r){var o=He({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=Pt(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=He(He({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var YM=typeof CSSINJS_STATISTIC<"u",nv=!0;function Eb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!YM)return Object.assign.apply(Object,[{}].concat(t));nv=!1;var r={};return t.forEach(function(o){if(Lt(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),nv=!0,r}var ek={};function dJ(){}var fJ=function(t){var n,r=t,o=dJ;return YM&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(nv){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;ek[a]={global:Array.from(n),component:He(He({},(l=ek[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function tk(e,t,n){if(typeof n=="function"){var r;return n(Eb(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function pJ(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return RS(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return RS(i)}).join(","),")")}}}var mJ=1e3*60*10,gJ=(function(){function e(){Sr(this,e),Ce(this,"map",new Map),Ce(this,"objectIDMap",new WeakMap),Ce(this,"nextID",0),Ce(this,"lastAccessBeat",new Map),Ce(this,"accessBeat",0)}return kr(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&Lt(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(Lt(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>mJ&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),nk=new gJ;function hJ(e,t){return se.useMemo(function(){var n=nk.get(t);if(n)return n;var r=e();return nk.set(t,r),r},t)}var vJ=function(){return{}};function bJ(e){var t=e.useCSP,n=t===void 0?vJ:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(m,v,h,p){var g=Array.isArray(m)?m[0]:m;function b(k){return"".concat(String(g)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(p==null?void 0:p.unitless)||{},x=typeof s=="function"?s(m):{},w=He(He({},x),{},Ce({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(k){w[b(k)]=y[k]});var C=He(He({},p),{},{unitless:w,prefixToken:b}),S=u(m,v,h,C),E=c(g,h,C);return function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,$=S(k,O),N=Pt($,2),_=N[1],j=E(O),F=Pt(j,2),A=F[0],I=F[1];return[A,_,I]}}function c(m,v,h){var p=h.unitless,g=h.injectStyle,b=g===void 0?!0:g,y=h.prefixToken,x=h.ignore,w=function(E){var k=E.rootCls,O=E.cssVar,$=O===void 0?{}:O,N=r(),_=N.realToken;return xQ({path:[m],prefix:$.prefix,key:$.key,unitless:p,ignore:x,token:_,scope:k},function(){var j=tk(m,_,v),F=JS(m,_,j,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(j).forEach(function(A){F[y(A)]=F[A],delete F[A]}),F}),null},C=function(E){var k=r(),O=k.cssVar;return[function($){return b&&O?se.createElement(se.Fragment,null,se.createElement(w,{rootCls:E,cssVar:O,component:m}),$):$},O==null?void 0:O.key]};return C}function u(m,v,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],b=Pt(g,1),y=b[0],x=g.join("-"),w=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),k=E.theme,O=E.realToken,$=E.hashId,N=E.token,_=E.cssVar,j=o(),F=j.rootPrefixCls,A=j.iconPrefixCls,I=n(),P=_?"css":"js",M=hJ(function(){var D=new Set;return _&&Object.keys(p.unitless||{}).forEach(function(L){D.add(Ru(L,_.prefix)),D.add(Ru(L,YS(y,_.prefix)))}),tJ(P,D)},[P,y,_==null?void 0:_.prefix]),z=pJ(P),B=z.max,H=z.min,T={theme:k,token:N,hashId:$,nonce:function(){return I.nonce},clientOnly:p.clientOnly,layer:w,order:p.order||-999};typeof i=="function"&&Bh(He(He({},T),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(N,{prefix:{rootPrefixCls:F,iconPrefixCls:A},csp:I})});var R=Bh(He(He({},T),{},{path:[x,C,A]}),function(){if(p.injectStyle===!1)return[];var D=fJ(N),L=D.token,V=D.flush,q=tk(y,O,h),K=".".concat(C),Q=JS(y,O,q,{deprecatedTokens:p.deprecatedTokens});_&&q&&Lt(q)==="object"&&Object.keys(q).forEach(function(X){q[X]="var(".concat(Ru(X,YS(y,_.prefix)),")")});var U=Eb(L,{componentCls:K,prefixCls:C,iconCls:".".concat(A),antCls:".".concat(F),calc:M,max:B,min:H},_?q:Q),J=v(U,{hashId:$,prefixCls:C,rootPrefixCls:F,iconPrefixCls:A});V(y,Q);var Y=typeof a=="function"?a(U,C,S,p.resetFont):null;return[p.resetStyle===!1?null:Y,J]});return[R,$]}}function f(m,v,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(m,v,h,He({resetStyle:!1,order:-998},p)),b=function(x){var w=x.prefixCls,C=x.rootCls,S=C===void 0?w:C;return g(w,S),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const yJ="5.27.1";function Fm(e){return e>=0&&e<=255}function cu(e,t){const{r:n,g:r,b:o,a:i}=new Ln(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Ln(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Fm(u)&&Fm(f)&&Fm(m))return new Ln({r:u,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Ln({r:n,g:r,b:o,a:1}).toRgbString()}var xJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ZM(e){const{override:t}=e,n=xJ(e,["override"]),r=Object.assign({},t);Object.keys(ec).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:cu(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:cu(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:cu(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:cu(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
705
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
706
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
707
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
708
- `,boxShadowSecondary:`
709
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
710
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
711
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
712
- `,boxShadowTertiary:`
713
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
714
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
715
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
716
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
717
- 0 1px 2px -2px ${new Ln("rgba(0, 0, 0, 0.16)").toRgbString()},
718
- 0 3px 6px 0 ${new Ln("rgba(0, 0, 0, 0.12)").toRgbString()},
719
- 0 5px 12px 4px ${new Ln("rgba(0, 0, 0, 0.09)").toRgbString()}
720
- `,boxShadowDrawerRight:`
721
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
722
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
723
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
724
- `,boxShadowDrawerLeft:`
725
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
726
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
727
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
728
- `,boxShadowDrawerUp:`
729
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
730
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
731
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
732
- `,boxShadowDrawerDown:`
733
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
734
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
735
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
736
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var rk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const QM={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},wJ={motionBase:!0,motionUnit:!0},CJ={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},JM=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=rk(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=ZM(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=rk(l,["theme"]);let f=u;c&&(f=JM(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=f}),a};function Lf(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=se.useContext(qM),i=`${yJ}-${t||""}`,a=n||WM,[s,l,c]=KZ(a,[ec,e],{salt:i,override:r,getComputedToken:JM,formatToken:ZM,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:QM,ignore:wJ,preserve:CJ}});return[a,c,t?l:"",s,o]}const SJ=(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}),kJ=()=>({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"}}),EJ=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},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),$J=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},eP=e=>({[`.${e}`]:Object.assign(Object.assign({},kJ()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:OJ}=bJ({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=sn(oi);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Lf();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=sn(oi);return e??{}},getResetStyles:(e,t)=>{var n;const r=EJ(e);return[r,{"&":r},eP((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:zf)]},getCommonStyle:$J,getCompUnitless:()=>QM}),IJ=(e,t)=>{const[n,r]=Lf();return Bh({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>eP(e))},NJ=Object.assign({},d),{useId:ok}=NJ,MJ=()=>"",PJ=typeof ok>"u"?MJ:ok;function FJ(e,t,n){var r;const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Qh),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Qh.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=PJ();return CM(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{c[m]=Object.assign(Object.assign({},c[m]),e.components[m])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!jh(c,f,!0)}))}var jm={exports:{}};/*!
737
- Copyright (c) 2018 Jed Watson.
738
- Licensed under the MIT License (MIT), see
739
- http://jedwatson.github.io/classnames
740
- */var ik;function jJ(){return ik||(ik=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(jm)),jm.exports}var AJ=jJ();const $o=Ov(AJ);function ak(e){return e instanceof HTMLElement||e instanceof SVGElement}function tP(e){return e&&Lt(e)==="object"&&ak(e.nativeElement)?e.nativeElement:ak(e)?e:null}function RJ(e){var t=tP(e);if(t)return t;if(e instanceof se.Component){var n;return(n=Wu.findDOMNode)===null||n===void 0?void 0:n.call(Wu,e)}return null}var TJ=["children"],nP=d.createContext({});function DJ(e){var t=e.children,n=qo(e,TJ);return d.createElement(nP.Provider,{value:n},t)}var _J=(function(e){Ts(n,e);var t=Ds(n);function n(){return Sr(this,n),t.apply(this,arguments)}return kr(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function BJ(e){var t=d.useReducer(function(s){return s+1},0),n=Pt(t,2),r=n[1],o=d.useRef(e),i=Sd(function(){return o.current}),a=Sd(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var bi="none",uu="appear",du="enter",fu="leave",sk="none",vo="prepare",Wa="start",qa="active",$b="end",rP="prepared";function lk(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function zJ(e,t){var n={animationend:lk("Animation","AnimationEnd"),transitionend:lk("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var LJ=zJ(li(),typeof window<"u"?window:{}),oP={};if(li()){var HJ=document.createElement("div");oP=HJ.style}var pu={};function iP(e){if(pu[e])return pu[e];var t=LJ[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in oP)return pu[e]=t[i],pu[e]}return""}var aP=iP("animationend"),sP=iP("transitionend"),lP=!!(aP&&sP),ck=aP||"animationend",uk=sP||"transitionend";function dk(e,t){if(!e)return null;if(Lt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const VJ=(function(e){var t=Ye();function n(o){o&&(o.removeEventListener(uk,e),o.removeEventListener(ck,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(uk,e),o.addEventListener(ck,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var cP=li()?Zk:St,uP=function(t){return+setTimeout(t,16)},dP=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(uP=function(t){return window.requestAnimationFrame(t)},dP=function(t){return window.cancelAnimationFrame(t)});var fk=0,Ob=new Map;function fP(e){Ob.delete(e)}var rv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fk+=1;var r=fk;function o(i){if(i===0)fP(r),t();else{var a=uP(function(){o(i-1)});Ob.set(r,a)}}return o(n),r};rv.cancel=function(e){var t=Ob.get(e);return fP(e),dP(t)};const WJ=(function(){var e=d.useRef(null);function t(){rv.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=rv(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var qJ=[vo,Wa,qa,$b],KJ=[vo,rP],pP=!1,UJ=!0;function mP(e){return e===qa||e===$b}const XJ=(function(e,t,n){var r=tv(sk),o=Pt(r,2),i=o[0],a=o[1],s=WJ(),l=Pt(s,2),c=l[0],u=l[1];function f(){a(vo,!0)}var m=t?KJ:qJ;return cP(function(){if(i!==sk&&i!==$b){var v=m.indexOf(i),h=m[v+1],p=n(i);p===pP?a(h,!0):h&&c(function(g){function b(){g.isCanceled()||a(h,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]});function GJ(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,p=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,O=tv(),$=Pt(O,2),N=$[0],_=$[1],j=BJ(bi),F=Pt(j,2),A=F[0],I=F[1],P=tv(null),M=Pt(P,2),z=M[0],B=M[1],H=A(),T=Ye(!1),R=Ye(null);function D(){return n()}var L=Ye(!1);function V(){I(bi),B(null,!0)}var q=Sd(function(pe){var we=A();if(we!==bi){var ne=D();if(!(pe&&!pe.deadline&&pe.target!==ne)){var xe=L.current,Pe;we===uu&&xe?Pe=C==null?void 0:C(ne,pe):we===du&&xe?Pe=S==null?void 0:S(ne,pe):we===fu&&xe&&(Pe=E==null?void 0:E(ne,pe)),xe&&Pe!==!1&&V()}}}),K=VJ(q),Q=Pt(K,1),U=Q[0],J=function(we){switch(we){case uu:return Ce(Ce(Ce({},vo,m),Wa,p),qa,y);case du:return Ce(Ce(Ce({},vo,v),Wa,g),qa,x);case fu:return Ce(Ce(Ce({},vo,h),Wa,b),qa,w);default:return{}}},Y=d.useMemo(function(){return J(H)},[H]),X=XJ(H,!e,function(pe){if(pe===vo){var we=Y[vo];return we?we(D()):pP}if(oe in Y){var ne;B(((ne=Y[oe])===null||ne===void 0?void 0:ne.call(Y,D(),null))||null)}return oe===qa&&H!==bi&&(U(D()),u>0&&(clearTimeout(R.current),R.current=setTimeout(function(){q({deadline:!0})},u))),oe===rP&&V(),UJ}),re=Pt(X,2),le=re[0],oe=re[1],de=mP(oe);L.current=de;var he=Ye(null);cP(function(){if(!(T.current&&he.current===t)){_(t);var pe=T.current;T.current=!0;var we;!pe&&t&&s&&(we=uu),pe&&t&&i&&(we=du),(pe&&!t&&c||!pe&&f&&!t&&c)&&(we=fu);var ne=J(we);we&&(e||ne[vo])?(I(we),le()):I(bi),he.current=t}},[t]),St(function(){(H===uu&&!s||H===du&&!i||H===fu&&!c)&&I(bi)},[s,i,c]),St(function(){return function(){T.current=!1,clearTimeout(R.current)}},[]);var ke=d.useRef(!1);St(function(){N&&(ke.current=!0),N!==void 0&&H===bi&&((ke.current||N)&&(k==null||k(N)),ke.current=!0)},[N,H]);var Oe=z;return Y[vo]&&oe===Wa&&(Oe=He({transition:"none"},Oe)),[H,oe,Oe,N??t]}function YJ(e){var t=e;Lt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=d.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,h=o.eventProps,p=d.useContext(nP),g=p.motion,b=n(o,g),y=Ye(),x=Ye();function w(){try{return y.current instanceof HTMLElement?y.current:RJ(x.current)}catch{return null}}var C=GJ(b,s,w,o),S=Pt(C,4),E=S[0],k=S[1],O=S[2],$=S[3],N=d.useRef($);$&&(N.current=!0);var _=d.useCallback(function(M){y.current=M,lJ(i,M)},[i]),j,F=He(He({},h),{},{visible:s});if(!f)j=null;else if(E===bi)$?j=f(He({},F),_):!c&&N.current&&v?j=f(He(He({},F),{},{className:v}),_):u||!c&&!v?j=f(He(He({},F),{},{style:{display:"none"}}),_):j=null;else{var A;k===vo?A="prepare":mP(k)?A="active":k===Wa&&(A="start");var I=dk(m,"".concat(E,"-").concat(A));j=f(He(He({},F),{},{className:$o(dk(m,E),Ce(Ce({},I,I&&A),m,typeof m=="string")),style:O}),_)}if(d.isValidElement(j)&&cJ(j)){var P=uJ(j);P||(j=d.cloneElement(j,{ref:_}))}return d.createElement(_J,{ref:x},j)});return r.displayName="CSSMotion",r}const ZJ=YJ(lP);var ov="add",iv="keep",av="remove",Am="removed";function QJ(e){var t;return e&&Lt(e)==="object"&&"key"in e?t=e:t={key:e},He(He({},t),{},{key:String(t.key)})}function sv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(QJ)}function JJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=sv(e),a=sv(t);i.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(v){return He(He({},v),{},{status:ov})})),r=f),n.push(He(He({},m),{},{status:iv})),r+=1,u=!0;break}}u||n.push(He(He({},c),{},{status:av}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return He(He({},c),{},{status:ov})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,m=u.status;return f!==c||m!==av}),n.forEach(function(u){u.key===c&&(u.status=iv)})}),n}var e1=["component","children","onVisibleChanged","onAllRemoved"],t1=["status"],n1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function r1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZJ,n=(function(r){Ts(i,r);var o=Ds(i);function i(){var a;Sr(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),Ce(Ut(a),"state",{keyEntities:[]}),Ce(Ut(a),"removeKey",function(u){a.setState(function(f){var m=f.keyEntities.map(function(v){return v.key!==u?v:He(He({},v),{},{status:Am})});return{keyEntities:m}},function(){var f=a.state.keyEntities,m=f.filter(function(v){var h=v.status;return h!==Am}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return kr(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,m=c.onVisibleChanged;c.onAllRemoved;var v=qo(c,e1),h=u||d.Fragment,p={};return n1.forEach(function(g){p[g]=v[g],delete v[g]}),delete v.keys,d.createElement(h,v,l.map(function(g,b){var y=g.status,x=qo(g,t1),w=y===ov||y===iv;return d.createElement(t,rr({},p,{key:x.key,visible:w,eventProps:x,onVisibleChanged:function(S){m==null||m(S,{key:x.key}),S||s.removeKey(x.key)}}),function(C,S){return f(He(He({},C),{},{index:b}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=sv(c),m=JJ(u,f);return{keyEntities:m.filter(function(v){var h=u.find(function(p){var g=p.key;return v.key===g});return!(h&&h.status===Am&&v.status===av)})}}}]),i})(d.Component);return Ce(n,"defaultProps",{component:"div"}),n}const o1=r1(lP),pk=d.createContext(!0);function i1(e){const t=d.useContext(pk),{children:n}=e,[,r]=Lf(),{motion:o}=r,i=d.useRef(!1);return i.current||(i.current=t!==o),i.current?d.createElement(pk.Provider,{value:o},d.createElement(DJ,{motion:o},n)):n}const a1=()=>null;var s1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const l1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let kd,gP,hP,vP;function Lu(){return kd||Jh}function c1(){return gP||zf}function u1(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const d1=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(kd=t),n!==void 0&&(gP=n),"holderRender"in e&&(vP=o),r&&(u1(r)?XQ(Lu(),r):hP=r)},f1=()=>({getPrefixCls:(e,t)=>t||(e?`${Lu()}-${e}`:Lu()),getIconPrefixCls:c1,getRootPrefixCls:()=>kd||Lu(),getTheme:()=>hP,holderRender:vP}),p1=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:p,legacyLocale:g,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:S,spin:E,calendar:k,carousel:O,cascader:$,collapse:N,typography:_,checkbox:j,descriptions:F,divider:A,drawer:I,skeleton:P,steps:M,image:z,layout:B,list:H,mentions:T,modal:R,progress:D,result:L,slider:V,breadcrumb:q,menu:K,pagination:Q,input:U,textArea:J,empty:Y,badge:X,radio:re,rate:le,switch:oe,transfer:de,avatar:he,message:ke,tag:Oe,table:pe,card:we,tabs:ne,timeline:xe,timePicker:Pe,upload:ue,notification:Re,tree:Te,colorPicker:De,datePicker:be,rangePicker:Ie,flex:Ne,wave:$e,dropdown:fe,warning:ye,tour:Ve,tooltip:ge,popover:Ze,popconfirm:ut,floatButton:xt,floatButtonGroup:It,variant:ze,inputNumber:Xe,treeSelect:We}=e,bt=d.useCallback((Z,ve)=>{const{prefixCls:Se}=e;if(ve)return ve;const _e=Se||b.getPrefixCls("");return Z?`${_e}-${Z}`:_e},[b.getPrefixCls,e.prefixCls]),ft=y||b.iconPrefixCls||zf,at=n||b.csp;IJ(ft,at);const tt=FJ(x,b.theme,{prefixCls:bt("")}),qe={csp:at,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,splitter:f,virtual:m,popupMatchSelectWidth:h??v,popupOverflow:p,getPrefixCls:bt,iconPrefixCls:ft,theme:tt,segmented:C,statistic:S,spin:E,calendar:k,carousel:O,cascader:$,collapse:N,typography:_,checkbox:j,descriptions:F,divider:A,drawer:I,skeleton:P,steps:M,image:z,input:U,textArea:J,layout:B,list:H,mentions:T,modal:R,progress:D,result:L,slider:V,breadcrumb:q,menu:K,pagination:Q,empty:Y,badge:X,radio:re,rate:le,switch:oe,transfer:de,avatar:he,message:ke,tag:Oe,table:pe,card:we,tabs:ne,timeline:xe,timePicker:Pe,upload:ue,notification:Re,tree:Te,colorPicker:De,datePicker:be,rangePicker:Ie,flex:Ne,wave:$e,dropdown:fe,warning:ye,tour:Ve,tooltip:ge,popover:Ze,popconfirm:ut,floatButton:xt,floatButtonGroup:It,variant:ze,inputNumber:Xe,treeSelect:We},wt=Object.assign({},b);Object.keys(qe).forEach(Z=>{qe[Z]!==void 0&&(wt[Z]=qe[Z])}),l1.forEach(Z=>{const ve=e[Z];ve&&(wt[Z]=ve)}),typeof r<"u"&&(wt.button=Object.assign({autoInsertSpace:r},wt.button));const Ot=CM(()=>wt,wt,(Z,ve)=>{const Se=Object.keys(Z),_e=Object.keys(ve);return Se.length!==_e.length||Se.some(Ue=>Z[Ue]!==ve[Ue])}),{layer:Ge}=d.useContext(kc),Je=d.useMemo(()=>({prefixCls:ft,csp:at,layer:Ge?"antd":void 0}),[ft,at,Ge]);let Ke=d.createElement(d.Fragment,null,d.createElement(a1,{dropdownMatchSelectWidth:v}),t);const it=d.useMemo(()=>{var Z,ve,Se,_e;return Va(((Z=Bf.Form)===null||Z===void 0?void 0:Z.defaultValidateMessages)||{},((Se=(ve=Ot.locale)===null||ve===void 0?void 0:ve.Form)===null||Se===void 0?void 0:Se.defaultValidateMessages)||{},((_e=Ot.form)===null||_e===void 0?void 0:_e.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ot,a==null?void 0:a.validateMessages]);Object.keys(it).length>0&&(Ke=d.createElement($Q.Provider,{value:it},Ke)),s&&(Ke=d.createElement(NQ,{locale:s,_ANT_MARK__:IQ},Ke)),Ke=d.createElement(kb.Provider,{value:Je},Ke),l&&(Ke=d.createElement(YQ,{size:l},Ke)),Ke=d.createElement(i1,null,Ke);const ee=d.useMemo(()=>{const Z=tt||{},{algorithm:ve,token:Se,components:_e,cssVar:Ue}=Z,gt=s1(Z,["algorithm","token","components","cssVar"]),lt=ve&&(!Array.isArray(ve)||ve.length>0)?Rh(ve):WM,mt={};Object.entries(_e||{}).forEach(([ot,Nt])=>{const Ee=Object.assign({},Nt);"algorithm"in Ee&&(Ee.algorithm===!0?Ee.theme=lt:(Array.isArray(Ee.algorithm)||typeof Ee.algorithm=="function")&&(Ee.theme=Rh(Ee.algorithm)),delete Ee.algorithm),mt[ot]=Ee});const kt=Object.assign(Object.assign({},ec),Se);return Object.assign(Object.assign({},gt),{theme:lt,token:kt,components:mt,override:Object.assign({override:kt},mt),cssVar:Ue})},[tt]);return x&&(Ke=d.createElement(qM.Provider,{value:ee},Ke)),Ot.warning&&(Ke=d.createElement(EQ.Provider,{value:Ot.warning},Ke)),w!==void 0&&(Ke=d.createElement(GQ,{disabled:w},Ke)),d.createElement(oi.Provider,{value:Ot},Ke)},Bs=e=>{const t=d.useContext(oi),n=d.useContext(zM);return d.createElement(p1,Object.assign({parentContext:t,legacyLocale:n},e))};Bs.ConfigContext=oi;Bs.SizeContext=nc;Bs.config=d1;Bs.useConfig=ZQ;Object.defineProperty(Bs,"SizeContext",{get:()=>nc});function bP(e,t){this.v=e,this.k=t}function ur(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}ur=function(a,s,l,c){function u(f,m){ur(a,f,function(v){return this._invoke(f,m,v)})}s?o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(u("next",0),u("throw",1),u("return",2))},ur(e,t,n,r)}function Ib(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(v,h,p,g){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return ur(y,"_invoke",(function(x,w,C){var S,E,k,O=0,$=C||[],N=!1,_={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(A,I){return S=A,E=0,k=e,_.n=I,a}};function j(F,A){for(E=F,k=A,t=0;!N&&O&&!I&&t<$.length;t++){var I,P=$[t],M=_.p,z=P[2];F>3?(I=z===A)&&(k=P[(E=P[4])?5:(E=3,3)],P[4]=P[5]=e):P[0]<=M&&((I=F<2&&M<P[1])?(E=0,_.v=A,_.n=P[1]):M<z&&(I=F<3||P[0]>A||A>z)&&(P[4]=F,P[5]=A,_.n=z,E=0))}if(I||F>1)return a;throw N=!0,A}return function(F,A,I){if(O>1)throw TypeError("Generator is already running");for(N&&A===1&&j(A,I),E=A,k=I;(t=E<2?e:k)||!N;){S||(E?E<3?(E>1&&(_.n=-1),j(E,k)):_.n=k:_.v=k);try{if(O=2,S){if(E||(F="next"),t=S[F]){if(!(t=t.call(S,k)))throw TypeError("iterator result is not an object");if(!t.done)return t;k=t.value,E<2&&(E=0)}else E===1&&(t=S.return)&&t.call(S),E<2&&(k=TypeError("The iterator does not provide a '"+F+"' method"),E=1);S=e}else if((t=(N=_.n<0)?k:x.call(w,_))!==a)break}catch(P){S=e,E=1,k=P}finally{O=1}}return{value:t,done:N}}})(v,p,g),!0),y}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ur(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function m(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,ur(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,ur(f,"constructor",c),ur(c,"constructor",l),l.displayName="GeneratorFunction",ur(c,o,"GeneratorFunction"),ur(f),ur(f,o,"Generator"),ur(f,r,function(){return this}),ur(f,"toString",function(){return"[object Generator]"}),(Ib=function(){return{w:i,m}})()}function Ed(e,t){function n(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof bP?t.resolve(c.v).then(function(u){n("next",u,a,s)},function(u){n("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return n("throw",u,a,s)})}catch(u){s(u)}}var r;this.next||(ur(Ed.prototype),ur(Ed.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ur(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){n(o,a,l,c)})}return r=r?r.then(s,s):s()},!0)}function yP(e,t,n,r,o){return new Ed(Ib().w(e,t,n,r),o||Promise)}function m1(e,t,n,r,o){var i=yP(e,t,n,r,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function g1(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function mk(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Lt(e)+" is not iterable")}function br(){var e=Ib(),t=e.m(br),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,m){return l(c.a,o[f],m)},delegateYield:function(f,m,v){return s.resultName=m,l(c.d,mk(f),v)},finish:function(f){return l(c.f,f)}},l=function(f,m,v){c.p=s.prev,c.n=s.next;try{return f(m,v)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(br=function(){return{wrap:function(l,c,u,f){return e.w(i(l),c,u,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new bP(l,c)},AsyncIterator:Ed,async:function(l,c,u,f,m){return(r(c)?yP:m1)(i(l),c,u,f,m)},keys:g1,values:mk}})()}function gk(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function ka(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){gk(i,r,o,a,s,"next",l)}function s(l){gk(i,r,o,a,s,"throw",l)}a(void 0)})}}var Ec=He({},eE),h1=Ec.version,Rm=Ec.render,v1=Ec.unmountComponentAtNode,Hf;try{var b1=Number((h1||"").split(".")[0]);b1>=18&&(Hf=Ec.createRoot)}catch{}function hk(e){var t=Ec.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Lt(t)==="object"&&(t.usingClientEntryPoint=e)}var $d="__rc_react_root__";function y1(e,t){hk(!0);var n=t[$d]||Hf(t);hk(!1),n.render(e),t[$d]=n}function x1(e,t){Rm==null||Rm(e,t)}function w1(e,t){if(Hf){y1(e,t);return}x1(e,t)}function C1(e){return lv.apply(this,arguments)}function lv(){return lv=ka(br().mark(function e(t){return br().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[$d])===null||o===void 0||o.unmount(),delete t[$d]}));case 1:case"end":return r.stop()}},e)})),lv.apply(this,arguments)}function S1(e){v1(e)}function k1(e){return cv.apply(this,arguments)}function cv(){return cv=ka(br().mark(function e(t){return br().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Hf===void 0){r.next=2;break}return r.abrupt("return",C1(t));case 2:S1(t);case 3:case"end":return r.stop()}},e)})),cv.apply(this,arguments)}const E1=(e,t)=>(w1(e,t),()=>k1(t));let $1=E1;function O1(e){return $1}var I1={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"};function xP(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function N1(e){return xP(e)instanceof ShadowRoot}function M1(e){return N1(e)?xP(e):null}function P1(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function F1(e,t){Vr(e,"[@ant-design/icons] ".concat(t))}function vk(e){return Lt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Lt(e.icon)==="object"||typeof e.icon=="function")}function bk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[P1(n)]=r}return t},{})}function uv(e,t,n){return n?se.createElement(e.tag,He(He({key:t},bk(e.attrs)),n),(e.children||[]).map(function(r,o){return uv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):se.createElement(e.tag,He({key:t},bk(e.attrs)),(e.children||[]).map(function(r,o){return uv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function wP(e){return tc(e)[0]}function CP(e){return e?Array.isArray(e)?e:[e]:[]}var j1=`
741
- .anticon {
742
- display: inline-flex;
743
- align-items: center;
744
- color: inherit;
745
- font-style: normal;
746
- line-height: 0;
747
- text-align: center;
748
- text-transform: none;
749
- vertical-align: -0.125em;
750
- text-rendering: optimizeLegibility;
751
- -webkit-font-smoothing: antialiased;
752
- -moz-osx-font-smoothing: grayscale;
753
- }
754
-
755
- .anticon > * {
756
- line-height: 1;
757
- }
758
-
759
- .anticon svg {
760
- display: inline-block;
761
- }
762
-
763
- .anticon::before {
764
- display: none;
765
- }
766
-
767
- .anticon .anticon-icon {
768
- display: block;
769
- }
770
-
771
- .anticon[tabindex] {
772
- cursor: pointer;
773
- }
774
-
775
- .anticon-spin::before,
776
- .anticon-spin {
777
- display: inline-block;
778
- -webkit-animation: loadingCircle 1s infinite linear;
779
- animation: loadingCircle 1s infinite linear;
780
- }
781
-
782
- @-webkit-keyframes loadingCircle {
783
- 100% {
784
- -webkit-transform: rotate(360deg);
785
- transform: rotate(360deg);
786
- }
787
- }
788
-
789
- @keyframes loadingCircle {
790
- 100% {
791
- -webkit-transform: rotate(360deg);
792
- transform: rotate(360deg);
793
- }
794
- }
795
- `,A1=function(t){var n=sn(kb),r=n.csp,o=n.prefixCls,i=n.layer,a=j1;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
796
- `).concat(a,`
797
- }`)),St(function(){var s=t.current,l=M1(s);ia(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},R1=["icon","className","onClick","style","primaryColor","secondaryColor"],kl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function T1(e){var t=e.primaryColor,n=e.secondaryColor;kl.primaryColor=t,kl.secondaryColor=n||wP(t),kl.calculated=!!n}function D1(){return He({},kl)}var zs=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=qo(t,R1),c=d.useRef(),u=kl;if(a&&(u={primaryColor:a,secondaryColor:s||wP(a)}),A1(c),F1(vk(n),"icon should be icon definiton, but got ".concat(n)),!vk(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=He(He({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),uv(f.icon,"svg-".concat(f.name),He(He({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};zs.displayName="IconReact";zs.getTwoToneColors=D1;zs.setTwoToneColors=T1;function SP(e){var t=CP(e),n=Pt(t,2),r=n[0],o=n[1];return zs.setTwoToneColors({primaryColor:r,secondaryColor:o})}function _1(){var e=zs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var B1=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];SP(Cd.primary);var ci=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=qo(e,B1),u=d.useContext(kb),f=u.prefixCls,m=f===void 0?"anticon":f,v=u.rootClassName,h=$o(v,m,Ce(Ce({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),p=a;p===void 0&&s&&(p=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=CP(l),y=Pt(b,2),x=y[0],w=y[1];return d.createElement("span",rr({role:"img","aria-label":r.name},c,{ref:t,tabIndex:p,onClick:s,className:h}),d.createElement(zs,{icon:r,primaryColor:x,secondaryColor:w,style:g}))});ci.displayName="AntdIcon";ci.getTwoToneColor=_1;ci.setTwoToneColor=SP;var z1=function(t,n){return d.createElement(ci,rr({},t,{ref:n,icon:I1}))},L1=d.forwardRef(z1),H1={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"},V1=function(t,n){return d.createElement(ci,rr({},t,{ref:n,icon:H1}))},W1=d.forwardRef(V1),q1={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"},K1=function(t,n){return d.createElement(ci,rr({},t,{ref:n,icon:q1}))},U1=d.forwardRef(K1),X1={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"},G1=function(t,n){return d.createElement(ci,rr({},t,{ref:n,icon:X1}))},Y1=d.forwardRef(G1),Z1={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"},Q1=function(t,n){return d.createElement(ci,rr({},t,{ref:n,icon:Z1}))},J1=d.forwardRef(Q1),eee={ENTER:13},tee=`accept acceptCharset accessKey action allowFullScreen allowTransparency
798
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
799
- charSet checked classID className colSpan cols content contentEditable contextMenu
800
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
801
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
802
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
803
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
804
- mediaGroup method min minLength multiple muted name noValidate nonce open
805
- optimum pattern placeholder poster preload radioGroup readOnly rel required
806
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
807
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
808
- summary tabIndex target title type useMap value width wmode wrap`,nee=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
809
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
810
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
811
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
812
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
813
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
814
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ree="".concat(tee," ").concat(nee).split(/[\s\n]+/),oee="aria-",iee="data-";function yk(e,t){return e.indexOf(t)===0}function aee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=He({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||yk(o,oee))||n.data&&yk(o,iee)||n.attr&&ree.includes(o))&&(r[o]=e[o])}),r}var kP=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,h=v===void 0?"x":v,p=e.props,g=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=d.useState(!1),C=Pt(w,2),S=C[0],E=C[1],k=d.useState(0),O=Pt(k,2),$=O[0],N=O[1],_=d.useState(0),j=Pt(_,2),F=j[0],A=j[1],I=x||S,P=a>0&&s,M=function(){b(u)},z=function(L){(L.key==="Enter"||L.code==="Enter"||L.keyCode===eee.ENTER)&&M()};d.useEffect(function(){if(!I&&a>0){var D=Date.now()-F,L=setTimeout(function(){M()},a*1e3-F);return function(){c&&clearTimeout(L),A(Date.now()-D)}}},[a,I,y]),d.useEffect(function(){if(!I&&P&&(c||F===0)){var D=performance.now(),L,V=function q(){cancelAnimationFrame(L),L=requestAnimationFrame(function(K){var Q=K+F-D,U=Math.min(Q/(a*1e3),1);N(U*100),U<1&&q()})};return V(),function(){c&&cancelAnimationFrame(L)}}},[a,F,I,P,y]);var B=d.useMemo(function(){return Lt(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),H=aee(B,!0),T=100-(!$||$<0?0:$>100?100:$),R="".concat(n,"-notice");return d.createElement("div",rr({},p,{ref:t,className:$o(R,o,Ce({},"".concat(R,"-closable"),m)),style:r,onMouseEnter:function(L){var V;E(!0),p==null||(V=p.onMouseEnter)===null||V===void 0||V.call(p,L)},onMouseLeave:function(L){var V;E(!1),p==null||(V=p.onMouseLeave)===null||V===void 0||V.call(p,L)},onClick:g}),d.createElement("div",{className:"".concat(R,"-content")},f),m&&d.createElement("a",rr({tabIndex:0,className:"".concat(R,"-close"),onKeyDown:z,"aria-label":"Close"},H,{onClick:function(L){L.preventDefault(),L.stopPropagation(),M()}}),B.closeIcon),P&&d.createElement("progress",{className:"".concat(R,"-progress"),max:"100",value:T},T+"%"))}),EP=se.createContext({}),see=function(t){var n=t.children,r=t.classNames;return se.createElement(EP.Provider,{value:{classNames:r}},n)},xk=8,wk=3,Ck=16,lee=function(t){var n={offset:xk,threshold:wk,gap:Ck};if(t&&Lt(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:xk,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:wk,n.gap=(i=t.gap)!==null&&i!==void 0?i:Ck}return[!!t,n]},cee=["className","style","classNames","styles"],uee=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=sn(EP),m=f.classNames,v=Ye({}),h=Et(null),p=Pt(h,2),g=p[0],b=p[1],y=Et([]),x=Pt(y,2),w=x[0],C=x[1],S=n.map(function(I){return{config:I,key:String(I.key)}}),E=lee(u),k=Pt(E,2),O=k[0],$=k[1],N=$.offset,_=$.threshold,j=$.gap,F=O&&(w.length>0||S.length<=_),A=typeof s=="function"?s(r):s;return St(function(){O&&w.length>1&&C(function(I){return I.filter(function(P){return S.some(function(M){var z=M.key;return P===z})})})},[w,S,O]),St(function(){var I;if(O&&v.current[(I=S[S.length-1])===null||I===void 0?void 0:I.key]){var P;b(v.current[(P=S[S.length-1])===null||P===void 0?void 0:P.key])}},[S,O]),se.createElement(o1,rr({key:r,className:$o(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,i,Ce(Ce({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),F)),style:a,keys:S,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(I,P){var M=I.config,z=I.className,B=I.style,H=I.index,T=M,R=T.key,D=T.times,L=String(R),V=M,q=V.className,K=V.style,Q=V.classNames,U=V.styles,J=qo(V,cee),Y=S.findIndex(function(xe){return xe.key===L}),X={};if(O){var re=S.length-1-(Y>-1?Y:H-1),le=r==="top"||r==="bottom"?"-50%":"0";if(re>0){var oe,de,he;X.height=F?(oe=v.current[L])===null||oe===void 0?void 0:oe.offsetHeight:g==null?void 0:g.offsetHeight;for(var ke=0,Oe=0;Oe<re;Oe++){var pe;ke+=((pe=v.current[S[S.length-1-Oe].key])===null||pe===void 0?void 0:pe.offsetHeight)+j}var we=(F?ke:re*N)*(r.startsWith("top")?1:-1),ne=!F&&g!==null&&g!==void 0&&g.offsetWidth&&(de=v.current[L])!==null&&de!==void 0&&de.offsetWidth?((g==null?void 0:g.offsetWidth)-N*2*(re<3?re:3))/((he=v.current[L])===null||he===void 0?void 0:he.offsetWidth):1;X.transform="translate3d(".concat(le,", ").concat(we,"px, 0) scaleX(").concat(ne,")")}else X.transform="translate3d(".concat(le,", 0, 0)")}return se.createElement("div",{ref:P,className:$o("".concat(o,"-notice-wrapper"),z,Q==null?void 0:Q.wrapper),style:He(He(He({},B),X),U==null?void 0:U.wrapper),onMouseEnter:function(){return C(function(Pe){return Pe.includes(L)?Pe:[].concat(Rt(Pe),[L])})},onMouseLeave:function(){return C(function(Pe){return Pe.filter(function(ue){return ue!==L})})}},se.createElement(kP,rr({},J,{ref:function(Pe){Y>-1?v.current[L]=Pe:delete v.current[L]},prefixCls:o,classNames:Q,styles:U,className:$o(q,m==null?void 0:m.notice),style:K,times:D,key:R,eventKey:R,onNoticeClose:c,hovering:O&&w.length>0})))})},dee=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,m=d.useState([]),v=Pt(m,2),h=v[0],p=v[1],g=function(O){var $,N=h.find(function(_){return _.key===O});N==null||($=N.onClose)===null||$===void 0||$.call(N),p(function(_){return _.filter(function(j){return j.key!==O})})};d.useImperativeHandle(t,function(){return{open:function(O){p(function($){var N=Rt($),_=N.findIndex(function(A){return A.key===O.key}),j=He({},O);if(_>=0){var F;j.times=(((F=$[_])===null||F===void 0?void 0:F.times)||0)+1,N[_]=j}else j.times=0,N.push(j);return a>0&&N.length>a&&(N=N.slice(-a)),N})},close:function(O){g(O)},destroy:function(){p([])}}});var b=d.useState({}),y=Pt(b,2),x=y[0],w=y[1];d.useEffect(function(){var k={};h.forEach(function(O){var $=O.placement,N=$===void 0?"topRight":$;N&&(k[N]=k[N]||[],k[N].push(O))}),Object.keys(x).forEach(function(O){k[O]=k[O]||[]}),w(k)},[h]);var C=function(O){w(function($){var N=He({},$),_=N[O]||[];return _.length||delete N[O],N})},S=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[x]),!o)return null;var E=Object.keys(x);return kv(d.createElement(d.Fragment,null,E.map(function(k){var O=x[k],$=d.createElement(uee,{key:k,configList:O,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:i,onNoticeClose:g,onAllNoticeRemoved:C,stack:u});return f?f($,{prefixCls:r,key:k}):$})),o)}),fee=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],pee=function(){return document.body},Sk=0;function mee(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function gee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?pee:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=qo(e,fee),m=d.useState(),v=Pt(m,2),h=v[0],p=v[1],g=d.useRef(),b=d.createElement(dee,{container:h,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=Pt(y,2),w=x[0],C=x[1],S=Sd(function(k){var O=mee(f,k);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(Sk),Sk+=1),C(function($){return[].concat(Rt($),[{type:"open",config:O}])})}),E=d.useMemo(function(){return{open:S,close:function(O){C(function($){return[].concat(Rt($),[{type:"close",key:O}])})},destroy:function(){C(function(O){return[].concat(Rt(O),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){p(n())}),d.useEffect(function(){if(g.current&&w.length){w.forEach(function($){switch($.type){case"open":g.current.open($.config);break;case"close":g.current.close($.key);break;case"destroy":g.current.destroy();break}});var k,O;C(function($){return(k!==$||!O)&&(k=$,O=$.filter(function(N){return!w.includes(N)})),O})}},[w]),[E,b]}const $P=e=>{const[,,,,t]=Lf();return t?`${e}-css-var`:""},hee=100,vee=10,bee=hee*vee,yee=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:h,zIndexPopup:p,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,x=new HS("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),w=new HS("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
815
- ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},SJ(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:p,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
816
- ${t}-move-up-appear,
817
- ${t}-move-up-enter
818
- `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
819
- ${t}-move-up-appear${t}-move-up-appear-active,
820
- ${t}-move-up-enter${t}-move-up-enter-active
821
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},xee=e=>({zIndexPopup:e.zIndexPopupBase+bee+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),OP=OJ("Message",e=>{const t=Eb(e,{height:150});return yee(t)},xee);var wee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Cee={info:d.createElement(Y1,null),success:d.createElement(L1,null),error:d.createElement(W1,null),warning:d.createElement(U1,null),loading:d.createElement(J1,null)},IP=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:$o(`${e}-custom-content`,`${e}-${t}`)},n||Cee[t],d.createElement("span",null,r)),See=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=wee(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(oi),l=t||s("message"),c=$P(l),[u,f,m]=OP(l,c);return u(d.createElement(kP,Object.assign({},a,{prefixCls:l,className:$o(n,f,`${l}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:d.createElement(IP,{prefixCls:l,type:r,icon:o},i)})))};var kee={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"},Eee=function(t,n){return d.createElement(ci,rr({},t,{ref:n,icon:kee}))},$ee=d.forwardRef(Eee);function Oee(e,t){return{motionName:t??`${e}-move-up`}}function Nb(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var Iee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nee=8,Mee=3,Pee=({children:e,prefixCls:t})=>{const n=$P(t),[r,o,i]=OP(t,n);return r(d.createElement(see,{classNames:{list:$o(o,i,n)}},e))},Fee=(e,{prefixCls:t,key:n})=>d.createElement(Pee,{prefixCls:t,key:n},e),jee=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=Mee,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:m,direction:v}=d.useContext(oi),h=r||u("message"),p=()=>({left:"50%",transform:"translateX(-50%)",top:n??Nee}),g=()=>$o({[`${h}-rtl`]:s??v==="rtl"}),b=()=>Oee(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement($ee,{className:`${h}-close-icon`})),[x,w]=gee({prefixCls:h,style:p,className:g,motion:b,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:Fee});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:m})),w});let kk=0;function NP(e){const t=d.useRef(null);return[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:f}=t.current,m=`${u}-notice`,{content:v,icon:h,type:p,key:g,className:b,style:y,onClose:x}=l,w=Iee(l,["content","icon","type","key","className","style","onClose"]);let C=g;return C==null&&(kk+=1,C=`antd-message-${kk}`),Nb(S=>(c(Object.assign(Object.assign({},w),{key:C,content:d.createElement(IP,{prefixCls:u,type:p,icon:h},v),placement:"top",className:$o(p&&`${m}-${p}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{x==null||x(),S()}})),()=>{r(C)}))},a={open:o,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,m)=>{let v;u&&typeof u=="object"&&"content"in u?v=u:v={content:u};let h,p;typeof f=="function"?p=f:(h=f,p=m);const g=Object.assign(Object.assign({onClose:p,duration:h},v),{type:l});return o(g)};a[l]=c}),a},[]),d.createElement(jee,Object.assign({key:"message-holder"},e,{ref:t}))]}function Aee(e){return NP(e)}let ro=null,ea=e=>e(),rc=[],oc={};function Ek(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=oc,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const Ree=se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=sn(oi),i=oc.prefixCls||o("message"),a=sn(uZ),[s,l]=NP(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return se.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),Tee=se.forwardRef((e,t)=>{const[n,r]=se.useState(Ek),o=()=>{r(Ek)};se.useEffect(o,[]);const i=f1(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=se.createElement(Ree,{ref:t,sync:o,messageConfig:n});return se.createElement(Bs,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),Vf=()=>{if(!ro){const e=document.createDocumentFragment(),t={fragment:e};ro=t,ea(()=>{O1()(se.createElement(Tee,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,Vf())})}}),e)});return}ro.instance&&(rc.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ea(()=>{const r=ro.instance.open(Object.assign(Object.assign({},oc),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ea(()=>{ro==null||ro.instance.destroy(e.key)});break;default:ea(()=>{var r;const o=(r=ro.instance)[t].apply(r,Rt(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),rc=[])};function Dee(e){oc=Object.assign(Object.assign({},oc),e),ea(()=>{var t;(t=ro==null?void 0:ro.sync)===null||t===void 0||t.call(ro)})}function _ee(e){const t=Nb(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return rc.push(o),()=>{r?ea(()=>{r()}):o.skipped=!0}});return Vf(),t}function Bee(e,t){const n=Nb(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return rc.push(i),()=>{o?ea(()=>{o()}):i.skipped=!0}});return Vf(),n}const zee=e=>{rc.push({type:"destroy",key:e}),Vf()},Lee=["success","info","warning","error","loading"],Hee={open:_ee,destroy:zee,config:Dee,useMessage:Aee,_InternalPanelDoNotUseOrYouWillBeFired:See},Hu=Hee;Lee.forEach(e=>{Hu[e]=(...t)=>Bee(e,t)});var Vu={exports:{}};/*!
822
- * clipboard.js v2.0.11
823
- * https://clipboardjs.com/
824
- *
825
- * Licensed MIT © Zeno Rocha
826
- */var Vee=Vu.exports,$k;function Wee(){return $k||($k=1,(function(e,t){(function(r,o){e.exports=o()})(Vee,function(){return(function(){var n={686:(function(i,a,s){s.d(a,{default:function(){return H}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),m=s(817),v=s.n(m);function h(T){try{return document.execCommand(T)}catch{return!1}}var p=function(R){var D=v()(R);return h("cut"),D},g=p;function b(T){var R=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[R?"right":"left"]="-9999px";var L=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(L,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(R,D){var L=b(R);D.container.appendChild(L);var V=v()(L);return h("copy"),L.remove(),V},x=function(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},L="";return typeof R=="string"?L=y(R,D):R instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(R==null?void 0:R.type)?L=y(R.value,D):(L=v()(R),h("copy")),L},w=x;function C(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(D){return typeof D}:C=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},C(T)}var S=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.action,L=D===void 0?"copy":D,V=R.container,q=R.target,K=R.text;if(L!=="copy"&&L!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&C(q)==="object"&&q.nodeType===1){if(L==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(L==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(K)return w(K,{container:V});if(q)return L==="cut"?g(q):w(q,{container:V})},E=S;function k(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(D){return typeof D}:k=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},k(T)}function O(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function $(T,R){for(var D=0;D<R.length;D++){var L=R[D];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(T,L.key,L)}}function N(T,R,D){return R&&$(T.prototype,R),D&&$(T,D),T}function _(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&j(T,R)}function j(T,R){return j=Object.setPrototypeOf||function(L,V){return L.__proto__=V,L},j(T,R)}function F(T){var R=P();return function(){var L=M(T),V;if(R){var q=M(this).constructor;V=Reflect.construct(L,arguments,q)}else V=L.apply(this,arguments);return A(this,V)}}function A(T,R){return R&&(k(R)==="object"||typeof R=="function")?R:I(T)}function I(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(T){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},M(T)}function z(T,R){var D="data-clipboard-".concat(T);if(R.hasAttribute(D))return R.getAttribute(D)}var B=(function(T){_(D,T);var R=F(D);function D(L,V){var q;return O(this,D),q=R.call(this),q.resolveOptions(V),q.listenClick(L),q}return N(D,[{key:"resolveOptions",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof V.action=="function"?V.action:this.defaultAction,this.target=typeof V.target=="function"?V.target:this.defaultTarget,this.text=typeof V.text=="function"?V.text:this.defaultText,this.container=k(V.container)==="object"?V.container:document.body}},{key:"listenClick",value:function(V){var q=this;this.listener=f()(V,"click",function(K){return q.onClick(K)})}},{key:"onClick",value:function(V){var q=V.delegateTarget||V.currentTarget,K=this.action(q)||"copy",Q=E({action:K,container:this.container,target:this.target(q),text:this.text(q)});this.emit(Q?"success":"error",{action:K,text:Q,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(V){return z("action",V)}},{key:"defaultTarget",value:function(V){var q=z("target",V);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(V){return z("text",V)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(V){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(V,q)}},{key:"cut",value:function(V){return g(V)}},{key:"isSupported",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof V=="string"?[V]:V,K=!!document.queryCommandSupported;return q.forEach(function(Q){K=K&&!!document.queryCommandSupported(Q)}),K}}]),D})(c()),H=B}),828:(function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l}),438:(function(i,a,s){var l=s(828);function c(m,v,h,p,g){var b=f.apply(this,arguments);return m.addEventListener(h,b,g),{destroy:function(){m.removeEventListener(h,b,g)}}}function u(m,v,h,p,g){return typeof m.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof m=="string"&&(m=document.querySelectorAll(m)),Array.prototype.map.call(m,function(b){return c(b,v,h,p,g)}))}function f(m,v,h,p){return function(g){g.delegateTarget=l(g.target,v),g.delegateTarget&&p.call(m,g)}}i.exports=u}),879:(function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(i,a,s){var l=s(879),c=s(438);function u(h,p,g){if(!h&&!p&&!g)throw new Error("Missing required arguments");if(!l.string(p))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,p,g);if(l.nodeList(h))return m(h,p,g);if(l.string(h))return v(h,p,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,p,g){return h.addEventListener(p,g),{destroy:function(){h.removeEventListener(p,g)}}}function m(h,p,g){return Array.prototype.forEach.call(h,function(b){b.addEventListener(p,g)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(p,g)})}}}function v(h,p,g){return c(document.body,h,p,g)}i.exports=u}),817:(function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}i.exports=a}),279:(function(i){function a(){}a.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var m=0,v=u.length;m<v;m++)u[m].fn!==l&&u[m].fn._!==l&&f.push(u[m]);return f.length?c[s]=f:delete c[s],this}},i.exports=a,i.exports.TinyEmitter=a})},r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={exports:{}};return n[i](a,a.exports,o),a.exports}return(function(){o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,{a}),a}})(),(function(){o.d=function(i,a){for(var s in a)o.o(a,s)&&!o.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})}})(),(function(){o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}})(),o(686)})().default})})(Vu)),Vu.exports}var qee=Wee();const Kee=Ov(qee),Uee=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new Kee(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{Hu.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{Hu.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),Hu.error("\u590D\u5236\u5931\u8D25: "+o,2)}},Ok=e=>{const t=e.toLowerCase().split(".").pop()||"";return/^(jpg|jpeg|png|gif|bmp|webp)$/.test(t)?"image":/^(doc|docx)$/.test(t)?"word":/^(xls|xlsx|csv)$/.test(t)?"excel":/^(ppt|pptx)$/.test(t)?"ppt":t==="pdf"?"pdf":/^(txt|json|md|markdown)$/.test(t)?"text":/^(zip|rar|7z)$/.test(t)?"archive":"file"};function Xee(e){const t=[];for(const n of e){if(n.query){const r=n.query.queryId||n.query.id||n.queryId||n.id||sa(32);t.push({istype:"user",content:n.query.content,time:n.query.gmtCreate,queryId:r,clientSideId:r+"-user",...n.query})}if(n.reply){const r=n.reply.queryId||n.reply.id||n.queryId||n.id||sa(32);t.push({istype:"ai",content:n.reply.content,isDefault:n.reply.isDefault,time:n.time||n.gmtCreate||Date.now(),queryId:r,clientSideId:r+"-ai",...n.reply})}}return t}const Ik=async(e,t,n)=>{try{yr.post(`${e.url}/qa/feedback`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},Tm=async(e,t,n)=>{try{yr.delete(`${e.url}/qa/feedback/cancel?queryId=${t.queryId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},Gee=(e,t)=>{try{yr.get(`${e.url}/qa/feedback/que/list`,{headers:{Authorization:e.token}}).then(n=>{n.data.success&&t&&t(n.data.data)})}catch(n){console.log("error",n)}},Yee=async(e,t,n)=>{try{yr.post(`${e.url}/qa/dialogue/reName`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r):Wn.error("\u7F16\u8F91\u540D\u5B57\u5931\u8D25")}).catch(r=>{var o,i;(i=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&i.errorMsg&&Wn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},Zee=async(e,t,n)=>{try{yr.delete(`${e.url}/qa/dialogue/delete?sessionId=${t.sessionId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n(r.data)})}catch(r){console.log("error",r)}},Qee=async(e,t,n)=>{console.log("[DEBUG] handleCreateConversation \u8BF7\u6C42",{url:e.url,token:e.token,data:t});try{yr.post(`${e.url}/qa/dialogue/create`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r.data):Wn.error(r.data.errorMsg||"\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25")}).catch(r=>{var o,i;(i=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&i.errorMsg&&Wn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},Jee=async(e,t,n)=>{try{const{uid:r,queryId:o}=t;let i=`${e.url}/index/knowledgeBase/file/deleteByUid?uid=${r}`;o&&(i+=`&queryId=${o}`),yr.delete(i,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(a=>{a.data.success?n&&n(!0,a):n&&n(!1,a)}).catch(a=>{n&&n(!1,a)})}catch(r){n&&n(!1,r)}},ete=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,tte="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOkSURBVHgBxZRbTBxlFMd/c2EvXBbZLbsCVhcKaAyh2BKTWrX12RhNmxa1IVp98FEJVGNMY2KItSZtqGjaROMlaDSVxiZeqiRa0FBpIlSkhgK15WoLu7AL3V1md25+7CpUojzYB7/km5OZc+Z35pzz/wb+l3X7PotNL9tvd1yIc8OrYp9pWXZ6JXXdfLOtbdNa4fJazoZdu9xVNUE5petIVS9h/npRfkDKefg/A+OaJuUGvIz3DzD14R6uHv/WCmzbcuNlj7S+3z7+5Xepno7TLeJWWiv2n5zyTcEaT/TJlrfwljxCTm42lgHRmIHDqaIqIsTE43NS7FHCBXKkIzw4eGKkYcdnwmGvBspSy+DpxlrffXtqC6WeqM3+CZ3wnAZLOyXAlsXfOjU7D6EYHLw7zVKvgykcG+r98YmKjdG5BK3nw7w7YQuATdAJWR4IJ2UiswKoiC39+S0+4QjNL0NWgDU7y57ZVlLd2n+FO/Kd7BxxcPOpMKGrCSxNTNm2kVUZ2e1g+5YCxh4q4IW+cAactYTZLi6dxgqw4dUjj+UgfXpSJRAaY9Lt4dZAkoW5YWSXyKwo6ZYbhsFCciPe9hgHtDiB+kqe6huF6jknv2As9/Dj3mv2se4Yh5RhEr4SbD2FpMjomkZ0eoaunl5yxXwqKsspKwsiOVzYqST143k8Xe7gvaN17tHOTi0D/D6U3DqhO7oNNxOlU6heD0cOH2frg/dSU1ywMgRhRmMpvvjoG55t3I0RWWDvuST9iy5q64qtr2/LV9Ill/aNOsb9fnC48a+zGYzF6R/opefsGU59sl88d6V5tpagqekNFg2LgeHN3F/pJS9rET2l4v15Ruav1PHLEdsUJYpXcNjXKA54iCd11gf9ONUkLqeVtu4ciQUjwcCF3wjc4sUlJbhouyjOVek6O2kvT3kGV3e9P/uetlmhi4VpCsU0Wz5o5i6/kIehY8UjyHlLpVt8daKZc1d0qt3zaV2ex09LjYvnhsx3rj8pEq90N1QU+Q+9WJVgbzBPpFIzIrZNsYWVlYyVhJXVtFys6UHWf76O36NDu3nt0fbVJ0Wm6Sedomx5hzPCwYpJygvdkOMVQhbKFjrEFG2JRQjPTHH4Uh4HoptFfy2T5+9clt/qo6fS9MMYilqEL1dCyCQtQsnKhC51yUyCkBLz4qeT77Np3KCme/EvwJVndUcfl0qr6uzKwAb8biemqTCjmYS0RUKhM1zuep2TzZfIpFlefwDISXe8s31UTQAAAABJRU5ErkJggg==",nte=(e,t)=>{const n={...$v.colors,...e};return`
827
- .g-welcome-${t} .g-welcome-title {
828
- background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
829
- -webkit-background-clip: text;
830
- background-clip: text;
831
- color: transparent;
832
- -webkit-text-fill-color: transparent;
833
- }
834
- .g-welcome-${t} .g-welcome-subtitle {
835
- color: ${n.disabled};
836
- }
837
- .g-welcome-${t} .g-welcome-btn {
838
- background-color: #ffffff;
839
- border-color: ${n.border};
840
- color: ${n.text};
841
- height: 36px;
842
- border-width: 1px;
843
- box-shadow: 0 1px 2px rgba(31,35,41,0.04);
844
- }
845
- .g-welcome-${t} .g-welcome-btn:hover {
846
- border-color: ${n.primary};
847
- color: ${n.primary};
848
- background-color: #ffffff;
849
- box-shadow: 0 2px 6px rgba(31,35,41,0.08);
850
- }
851
- .g-welcome-${t} .g-welcome-btn.active {
852
- background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
853
- border-color: ${n.primary};
854
- box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
855
- }
856
- .g-welcome-${t} .g-welcome-btn .icon-badge {
857
- width: 24px;
858
- height: 24px;
859
- border-radius: 9999px;
860
- display: inline-flex;
861
- align-items: center;
862
- justify-content: center;
863
- background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
864
- box-shadow: inset 0 0 0 1px ${n.border};
865
- }
866
- .g-welcome-${t} .g-welcome-pagination-btn {
867
- color: ${n.primary};
868
- }
869
- .g-welcome-${t} .g-welcome-pagination-btn:disabled {
870
- color: ${n.disabled};
871
- cursor: not-allowed;
872
- }
873
- .g-welcome-${t} .g-welcome-pagination-text {
874
- color: ${n.text};
875
- }
876
- `};function rte({config:e,styles:t}){if(!e)return null;const n=JSON.parse(e.configJson),r=tn(()=>{var o;return{...$v.colors,...(o=t==null?void 0:t.theme)==null?void 0:o.colors}},[t]);return pt("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[pt("div",{className:"flex items-center mb-2",children:[ce("span",{className:"text-md font-bold truncate mr-2",style:{color:r.primary},children:n.config_name||"\u52A9\u624B\u914D\u7F6E"}),ce("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${r.primary}1A`,color:r.disabled},children:n.model_name})]}),ce("div",{className:"border-b my-2",style:{borderColor:r.border}}),pt("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:r.text},children:[pt("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",ce("span",{className:"font-semibold",children:n.max_round})]}),pt("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",ce("span",{className:"font-semibold",children:n.max_tokens})]}),pt("div",{children:["\u6E29\u5EA6\uFF1A",ce("span",{className:"font-semibold",children:n.temperature})]}),pt("div",{children:["\u53EC\u56DE\u6570\uFF1A",ce("span",{className:"font-semibold",children:n.top_k})]}),pt("div",{children:["\u591A\u6837\u6027\uFF1A",ce("span",{className:"font-semibold",children:n.top_p})]}),pt("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",ce("span",{className:"font-semibold",children:n.score_threshold})]})]}),pt("div",{className:"mb-2",children:[ce("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),ce("div",{className:"flex flex-wrap gap-1",children:n.knowledge_base_name?n.knowledge_base_name.split(";").map((o,i)=>ce("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${r.primary}1A`,color:r.primary},children:o},i)):ce("span",{className:"text-gray-300",style:{color:r.disabled},children:"\u65E0"})})]}),pt("div",{className:"mb-2",children:[ce("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),pt("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!n.enabled_faq&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"FAQ"}),!!n.enabled_graph&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u56FE\u8C31"}),!!n.dependOnKb&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u5F3A\u77E5\u8BC6\u4F9D\u8D56"}),!!n.enabled_table_select&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u8868\u683C\u7B5B\u9009"}),!!n.enabled_rerank&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u7CBE\u6392\u6A21\u5F0F"}),!!n.need_trace_source&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u6EAF\u6E90"}),!!n.is_download&&ce("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function ote(e,t=[],n=60){const[r,o]=Et("");return St(()=>{o("");let i=0;const a=setInterval(()=>{o(s=>i>=e.length?(clearInterval(a),s):(i++,e.slice(0,i)))},n);return()=>clearInterval(a)},[e,...t]),r}function ite(e){const{assistantList:t,eventsEmit:n,styles:r,selectedId:o,onSelectAssistant:i,productLogo:a}=e,[s,l]=Et(1),c=12,u=Ye();St(()=>{o&&u.current!==o&&(n==null||n("conversation:new_assistant_change",{assistantId:o}),u.current=o)},[o,n]);const f=tn(()=>sa(),[]);St(()=>{var y;if((y=r==null?void 0:r.theme)!=null&&y.colors){const x=document.createElement("style");return x.innerHTML=nte(r.theme.colors,f),x.id=`g-welcome-styles-${f}`,document.head.appendChild(x),()=>{const w=document.getElementById(x.id);w&&w.remove()}}},[r,f]);const m=tn(()=>t.find(y=>y.id===o),[t,o]),v=tn(()=>JSON.parse((m==null?void 0:m.configJson)||"{}"),[m]),h=Math.ceil(((t==null?void 0:t.length)||0)/c),p=(t==null?void 0:t.slice((s-1)*c,s*c))||[];St(()=>{if(o&&t){const y=t.findIndex(x=>x.id===o);if(y!==-1){const x=Math.floor(y/c)+1;l(x)}}},[o,t,c]);const g=v.prologue||"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",b=ote(g,[o],30);return pt("div",{className:`flex flex-col items-center justify-center h-full w-full g-welcome-${f}`,children:[ce("img",{src:a||ete,alt:"logo",className:"mb-4",style:{width:100,height:100}}),ce("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:b}),ce("div",{className:"text-sm text-gray-500 mb-20",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B\uFF0C\u5F00\u59CB\u4F60\u7684\u667A\u80FD\u95EE\u7B54\u4E4B\u65C5"}),!o&&ce("div",{className:"flex mb-2 g-welcome-subtitle",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B"}),ce("div",{className:"flex flex-wrap gap-3 px-5 justify-center mb-4",children:p&&p.length>0?p.map(y=>{const x=o===y.id;let w=y.icon;try{const C=JSON.parse(y.configJson||"{}");w=w||C.icon||C.avatar||C.logo}catch{}return w=w||tte,ce(VP,{content:()=>ce(rte,{config:t.find(C=>C.id===y.id),styles:r}),trigger:"hover",placement:"bottom",children:pt("button",{className:`g-welcome-btn px-3 cursor-pointer rounded-full border font-medium min-w-[160px] text-sm transition-all flex items-center gap-2 ${x?"active":""}`,onClick:()=>i==null?void 0:i(y.id),title:y.name,children:[ce("span",{className:"icon-badge",children:ce("img",{src:w,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),ce("span",{className:"truncate max-w-[180px]",children:y.name})]})},y.id)}):ce("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})}),h>1&&pt("div",{className:"flex items-center gap-3 text-sm",children:[ce("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>l(y=>Math.max(1,y-1)),disabled:s===1,children:"\u4E0A\u4E00\u9875"}),pt("span",{className:"g-welcome-pagination-text",children:[s," / ",h]}),ce("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>l(y=>Math.min(h,y+1)),disabled:s===h,children:"\u4E0B\u4E00\u9875"})]})]})}async function ate(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function ste(e){let t,n,r,o=!1;return function(a){t===void 0?(t=a,n=0,r=-1):t=cte(t,a);const s=t.length;let l=0;for(;n<s;){o&&(t[n]===10&&(l=++n),o=!1);let c=-1;for(;n<s&&c===-1;++n)switch(t[n]){case 58:r===-1&&(r=n-l);break;case 13:o=!0;case 10:c=n;break}if(c===-1)break;e(t.subarray(l,c),r),l=n,r=-1}l===s?t=void 0:l!==0&&(t=t.subarray(l),n-=l)}}function lte(e,t,n){let r=Nk();const o=new TextDecoder;return function(a,s){if(a.length===0)n==null||n(r),r=Nk();else if(s>0){const l=o.decode(a.subarray(0,s)),c=s+(a[s+1]===32?2:1),u=o.decode(a.subarray(c));switch(l){case"data":r.data=r.data?r.data+`
877
- `+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function cte(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Nk(){return{data:"",event:"",id:"",retry:void 0}}var ute=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dv="text/event-stream",dte=1e3,Mk="last-event-id";function fte(e,t){var{signal:n,headers:r,onopen:o,onmessage:i,onclose:a,onerror:s,openWhenHidden:l,fetch:c}=t,u=ute(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((f,m)=>{const v=Object.assign({},r);v.accept||(v.accept=dv);let h;function p(){h.abort(),document.hidden||C()}l||document.addEventListener("visibilitychange",p);let g=dte,b=0;function y(){document.removeEventListener("visibilitychange",p),window.clearTimeout(b),h.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const x=c??window.fetch,w=o??pte;async function C(){var S;h=new AbortController;try{const E=await x(e,Object.assign(Object.assign({},u),{headers:v,signal:h.signal}));await w(E),await ate(E.body,ste(lte(k=>{k?v[Mk]=k:delete v[Mk]},k=>{g=k},i))),a==null||a(),y(),f()}catch(E){if(!h.signal.aborted)try{const k=(S=s==null?void 0:s(E))!==null&&S!==void 0?S:g;window.clearTimeout(b),b=window.setTimeout(C,k)}catch(k){y(),m(k)}}}C()})}function pte(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(dv)))throw new Error(`Expected content-type to be ${dv}, Actual: ${t}`)}class Dm extends Error{}let Ao=null;const mte=({baseUrl:e,token:t,CSRFToken:n,setChatData:r,activeSessionId:o,setAppStatus:i,setConversationList:a})=>{const s=({content:h,status:p,respTime:g,filePaths:b,reference:y,webReference:x,databaseReference:w,llmType:C,resultType:S,queryId:E,tokens:k})=>{r(O=>{var P;if(!O[0])return O;const $=O[0],N=$.messages||[],_=N.length-1;if(_<0)return O;const j=N[_];if(j.istype!=="ai")return O;let F=N.slice();if(b!=null&&b.length){const M=N.length-2;if(M>=0&&((P=N[M])==null?void 0:P.istype)==="user"){const z={...N[M],filePaths:b};F[M]=z}}const A={...j,content:(j.content||"")+h,status:p,respTime:g,filePaths:b,reference:y,webReference:x,databaseReference:w??j.databaseReference,resultType:S,llmType:C,tokens:k,queryId:E||j.queryId||sa(32)};return A.clientSideId=A.clientSideId||A.queryId+"-ai",F[_]=A,[{...$,isNew:!1,messages:F},...O.slice(1)]})},l=h=>{if(h instanceof Dm)throw i(p=>({...p,display:"error",sender:"ready"})),Ao&&(Ao.abort(),Ao=null),h};return{updateUserFilesMessage:({currentFiles:h})=>{r(p=>{if(!p[0])return p;const g=p[0],b=g.messages||[];if(!b.length)return p;const y=b.length-2;if(y<0||b[y].istype!=="user")return p;const w=b.slice();return w[y]={...b[y],currentFiles:h},[{...g,messages:w},...p.slice(1)]})},api_startChat_re:(h,p)=>{Ao&&Ao.abort(),Ao=new AbortController;const g=`${e}/qa/ai/question_re`;console.log("data",h);const b={...h};fte(g,{method:"post",signal:Ao.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:t||"","X-CSRF-TOKEN-IN":n||""},openWhenHidden:!0,body:JSON.stringify(b),onopen:async y=>{if(y.status===500)throw new Dm("Internal Server Error");if(!y.ok)throw new Dm(`HTTP error: ${y.status}`)},onmessage:y=>{const x=JSON.parse(y.data);if(o!==x.sessionId)return;const{reply:w,resultType:C,respTime:S,reference:E,webReference:k,filePaths:O,status:$,docs:N,llmType:_,databaseReference:j}=x,F=O?JSON.parse(O):[];if($===2&&w&&w.content&&(w.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||w.content.includes("\u5931\u8D25")||w.content.includes("\u9519\u8BEF")||w.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&i(A=>({...A,display:"ready",sender:"ready"})),$===2){if(s({content:w.content||"",status:2,respTime:S,filePaths:F,reference:E||N||"",webReference:k||"",databaseReference:j,llmType:_,resultType:C,queryId:x.queryId,tokens:x.tokens}),i(A=>({...A,display:"ready",sender:"ready"})),p){const A=S||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",A),p(A)}}else s({content:w.content||"",status:$,respTime:S,filePaths:F,reference:E||N||"",webReference:k||"",databaseReference:j,llmType:_,resultType:C,queryId:x.queryId,tokens:x.tokens})},onerror:l})},addEmptyMessage:({queryId:h,content:p,filePaths:g,currentFiles:b})=>{r(y=>{const x=new Date().toISOString(),w=h||sa(32),C={istype:"user",content:p,time:x,queryId:w,clientSideId:w+"-user",filePaths:g||"",currentFiles:b||[]},S={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:w,clientSideId:w+"-ai"},E=y.find(k=>k.id===o);return E?E.messages.push(C,S):console.warn("addEmptyMessage called without an active session."),[...y]})},setLastEmptyMessage:({now:h})=>{r(p=>{if(!p[0])return p;const g=p[0],b=g.messages||[];if(!b.length)return p;const y=b.length-1;if(y<0)return p;const x=b[y];if(x.istype!=="ai")return p;const w=b.slice();return w[y]={...x,istype:"ai",content:"",time:h,streaming:!0,status:0},[{...g,messages:w},...p.slice(1)]})},stopStream:()=>{Ao&&(Ao.abort(),Ao=null),i(h=>({...h,display:"ready",sender:"ready"}))}}},gte="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:Pk}=qu,{useForm:hte}=xi,MP={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},vte=({open:e,setOpen:t,feedBackList:n,handleConfirm:r})=>{const o={header:{padding:"20px 24px",borderBottom:"1px solid #F0F0F0",margin:0},body:{padding:"16px 24px 20px 24px",borderBottom:"1px solid #F0F0F0"},mask:{},footer:{padding:"16px 24px",margin:0},content:{padding:0,borderRadius:"4px",width:"563px"}},[i]=hte(),[a,s]=Et({}),l=async()=>{try{const c=await i.validateFields();t(!1);const u={...c};Object.entries(a||{}).forEach(f=>{const[m,v]=f;v&&(u[MP[m]]=v)}),r(u)}catch(c){console.log(c);return}};return St(()=>{e||(i.resetFields(),s(null))},[e]),ce(Ev,{modal:{styles:o},children:pt(Nd,{open:e,onCancel:()=>t(!1),title:ce("div",{className:"text-[16px] text-[#2A2A2A] font-bold leading-[1]",children:"\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01\u8FD9\u5C06\u5E2E\u52A9\u6211\u4EEC\u4E0D\u65AD\u4F18\u5316\u4E0E\u63D0\u5347\u3002"}),footer:pt("div",{children:[ce(Oo,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),ce(Oo,{type:"primary",className:"w-[76px] border-none",onClick:l,children:"\u786E\u8BA4"})]}),children:[ce(bte,{feedBackList:n,treeSelectResult:a,setTreeSelectResult:s}),pt(xi,{form:i,layout:"vertical",children:[ce(xi.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:ce(Pk,{})})," ",ce(xi.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:ce(Pk,{})}),ce(xi.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:ce(qu,{})}),ce(xi.Item,{name:"deptName",label:"\u90E8\u95E8",children:ce(qu,{})})]})]})})},bte=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,o]=Et(!1),[i,a]=Et([]),[s,l]=Et([]),[c,u]=Et([]),[f,m]=Et(null),v=tn(()=>(l([]),f!=null&&f.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:f.items.map(p=>({title:p,key:p}))}]:[]),[f]),h=p=>{u(g=>Array.isArray(g)&&Array.isArray(s)?Object.entries(t).reduce((y,x)=>{const[w,C]=x,E=(C?C.split(";"):[]).filter(k=>k!==p);return n(k=>({...k||{},[w]:E.join(";")})),[...y,...E]},[]):g)};return St(()=>{if(a(["\u5168\u9009"]),!t||!(f!=null&&f.que_name))return;const p=t[f.que_name]||"",g=p?p.split(";"):[];l(g)},[v,r]),St(()=>{t===null&&(u([]),m(null),l([]))},[t]),St(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",MP),console.log("selectedParent",f)},[t,c]),pt("div",{className:"relative mb-[24px] z-20",children:[pt("div",{className:"absolute w-full z-10",children:[pt("div",{className:"h-[32px] box-border flex items-center justify-between border-[1px] border-solid border-[#D9D9D9] rounded-[4px] cursor-pointer",onClick:()=>o(!r),children:[ce("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),ce("img",{src:gte,width:24,height:24,className:"mr-[16px]"})]}),pt("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[pt("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[ce("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((p,g)=>{var b;return pt("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(f==null?void 0:f.que_name)===p.que_name?"#E6F4FF":""},children:[ce("div",{className:"h-full w-full leading-[32px]",onClick:()=>{m(p)},children:pt("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[p.que_name,"(",t&&t[p.que_name]?t[p.que_name].split(";").length:0,"/",(b=p==null?void 0:p.items)==null?void 0:b.length,")"]})}),ce(XP,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},g)})}),ce("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:ce(WP,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:v,blockNode:!0,checkedKeys:s,expandedKeys:i,onCheck:p=>{Array.isArray(p)&&n(g=>({...g||{},[(f==null?void 0:f.que_name)||""]:(p||[]).filter(b=>b!=="\u5168\u9009").join(";")})),l(p)}})})]}),pt("div",{className:"flex justify-end h-[40px] items-center",children:[ce(Oo,{size:"small",className:"mr-[8px]",onClick:()=>o(!1),children:"\u53D6\u6D88"}),ce(Oo,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{u(p=>Array.isArray(p)&&Array.isArray(s)?Object.values(t).reduce((b,y)=>[...b,...y?y.split(";"):[]],[]):p),o(!1)},children:"\u786E\u8BA4"})]})]})]}),ce("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&pt("div",{children:[pt("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(p=>{let g="";return Object.entries(t||{}).forEach(b=>{const[y,x]=b;x.indexOf(p)>-1&&(g=y)}),pt(qP,{closable:!0,className:"mt-[5px]",onClose:()=>h(p),children:[g,"\uFF08",p,"\uFF09"]},p)})]})]})},Fk=e=>e?Array.isArray(e)?e.map(r=>"/minio/"+r.split("/").slice(3).join("/")):"/minio/"+e.split("/").slice(3).join("/"):"",jk="http://10.15.12.13:9000/",yte=e=>{if(typeof e=="string"){const t=e.split(".");return t.length?t[t.length-1]:""}else return""},xte=e=>{var C,S,E,k,O,$,N,_;const{file_type:t,file_name:n,url:r,parse_url:o,retrieve_tags:i,file_id:a,parsed_file_type:s,onlyDownloadTypes:l,references:c,eventsEmit:u,styles:f,isUploadFile:m,type:v,collectionItems:h,pdfPages:p=0,fileManagerData:g}=e;if(v==="collection"&&Array.isArray(h)){const A=`calc(90% - ${.5}px)`,I=h.slice(0,4),P=h.length>4,M="\u6253\u5F00\u5408\u96C6",z=()=>{if(g&&t==="pdf"&&!e.pdfPages){const B=((g==null?void 0:g.uploadedFiles)||[]).find(H=>{var T;return((H==null?void 0:H.name)||((T=H==null?void 0:H.file)==null?void 0:T.name))===n});if(!(B!=null&&B.pdfPages)){Wn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{...e,pdfPages:(B==null?void 0:B.pdfPages)||0})}else u==null||u("reference_file:click",e)};return pt("div",{className:"user-file relative group flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all bg-white shadow",style:{width:94,height:94,minWidth:94,minHeight:94,borderColor:(S=(C=f==null?void 0:f.theme)==null?void 0:C.colors)==null?void 0:S.border},onClick:z,children:[ce("div",{className:"grid grid-cols-2 items-center justify-center grid-rows-2 gap-1 w-full h-full",style:{width:"100%",height:"100%",gap:1},children:I.map((B,H)=>{var D,L,V,q;if(P&&H===3)return ce("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{width:A,height:A},children:ce("span",{className:"text-xl text-gray-300 font-bold scale-75",children:"..."})},"ellipsis");if(B.file_type==="image"||B.file_type==="jpg"||B.file_type==="jpeg"||B.file_type==="png"||B.file_type==="gif"||B.file_type==="bmp"||B.file_type==="webp")return ce("div",{className:"relative flex items-center justify-center bg-white rounded-lg border overflow-hidden",style:{width:A,height:A,borderColor:(L=(D=f==null?void 0:f.theme)==null?void 0:D.colors)==null?void 0:L.border},children:ce("div",{className:"flex items-center justify-center w-full h-full scale-75",children:ce("img",{src:String(B.url||B.file_path||""),alt:B.file_name||"",className:"object-contain max-w-full max-h-full"})})},B.file_name||H);const R=fv(String(B.file_type||""),f);return ce("div",{className:"user-file flex flex-col items-center justify-center rounded-lg border bg-gray-50 p-1 text-sm",title:B.file_name,style:{width:A,height:A,borderColor:(q=(V=f==null?void 0:f.theme)==null?void 0:V.colors)==null?void 0:q.border},children:ce("div",{className:"flex items-center justify-center w-full h-full scale-75",children:R})},B.file_name||H)})}),ce("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg pointer-events-none",children:pt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[ce(ym,{size:20,className:"mb-1 text-white"}),ce("span",{className:"text-white text-center",style:{fontSize:12},children:M})]})})]})}const b=()=>{if(console.log(o,"parse_url",r,"url"),g&&t==="pdf"&&!p){const j=((g==null?void 0:g.uploadedFiles)||[]).find(F=>{var A;return((F==null?void 0:F.name)||((A=F==null?void 0:F.file)==null?void 0:A.name))===(n||"").replace(/\s+/g,"")});if(!(j!=null&&j.pdfPages)){Wn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:i,file_id:a,parsed_file_type:s,references:c,type:y,isUploadFile:m,pdfPages:j.pdfPages||0})}else u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:i,file_id:a,parsed_file_type:s,references:c,type:y,isUploadFile:m,pdfPages:p})},y=tn(()=>(n||"").split(".").pop()||"",[n]),x=fv(y,f),w=async()=>{if(r){const j=Fk(r.indexOf("http")>-1?r:`${jk}/${r}`);if(y.toLowerCase()==="json"){try{const I=await fetch(j);if(!I.ok)throw new Error("\u4E0B\u8F7D\u5931\u8D25");const P=await I.blob(),M=document.createElement("a");M.href=URL.createObjectURL(P),M.download=n||"",document.body.appendChild(M),M.click(),document.body.removeChild(M),setTimeout(()=>URL.revokeObjectURL(M.href),1e3)}catch{alert("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25")}return}const A=document.createElement("a");A.href=j,A.download=n||"",document.body.appendChild(A),A.click(),document.body.removeChild(A)}};return l&&l.includes(y.toLowerCase())?pt("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:w,style:{borderColor:(k=(E=f==null?void 0:f.theme)==null?void 0:E.colors)==null?void 0:k.border},children:[x,ce("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),ce("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:pt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[ce(ym,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),ce("div",{className:"text-white text-center",style:{fontSize:10},children:"\u4E0B\u8F7D\u6587\u4EF6"})]})})]},n):y==="image"||y==="jpg"||y==="jpeg"||y==="png"||y==="gif"||y==="bmp"||y==="webp"?pt("div",{className:"relative group w-24 h-24 cursor-pointer flex items-center justify-center",onClick:()=>b(),children:[r?ce("img",{src:String(Fk(r&&r.indexOf("http")>-1?r:`${jk}/${r}`)||""),alt:n||"",className:"w-full h-full object-cover rounded-md border",style:{borderColor:($=(O=f==null?void 0:f.theme)==null?void 0:O.colors)==null?void 0:$.border}}):ce("div",{className:"w-full h-full flex items-center justify-center",children:ce("span",{className:"animate-spin rounded-full border-2 border-gray-300 border-t-blue-500 w-8 h-8 inline-block"})}),ce("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-md",children:pt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[ce(hY,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),ce("div",{className:"text-white text-center",children:"\u67E5\u770B\u56FE\u7247"})]})})]},n):pt("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:b,style:{borderColor:(_=(N=f==null?void 0:f.theme)==null?void 0:N.colors)==null?void 0:_.border},children:[x,ce("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),ce("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:pt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[ce(ym,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),ce("div",{className:"text-white text-center",style:{fontSize:10},children:"\u6253\u5F00\u6587\u4EF6"})]})})]},n)},wte=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",Cte=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:i,onRemove:a,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:m,style:v})=>pt("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[ce("div",{className:"pt-1",children:n}),pt("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[pt("div",{className:"flex items-center justify-between gap-1",children:[ce("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),ce("span",{className:"ml-1 text-[11px] text-gray-400",children:wte(t)})]}),pt("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[i,ce("span",{children:r})]})]}),m,c&&!u&&ce("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&l?f(l):a&&a()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:ce(Iv,{className:"w-3.5 h-3.5"})})]});function fv(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?ce("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):ce(Dr,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?ce("img",{src:n.image,alt:"image",style:{width:20,height:20}}):ce(Dr,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?ce("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):ce(Dr,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?ce("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):ce(Dr,{type:"rag/excel",size:18});case"pdf":return n.pdf?ce("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):ce(Dr,{type:"rag/pdf",size:18});case"txt":return n.txt?ce("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):ce(Dr,{type:"rag/txt",size:18});case"md":return n.md?ce("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):ce(Dr,{type:"rag/document",size:18});case"json":return n.json?ce("img",{src:n.json,alt:"json",style:{width:20,height:20}}):ce(Dr,{type:"rag/json",size:18});case"html":case"htm":return n.html?ce("img",{src:n.html,alt:"html",style:{width:20,height:20}}):ce(Dr,{type:"rag/url",size:18});case"xml":default:return ce(Dr,{type:"rag/file",size:18})}}const Ste=[{file:{name:"\u4EA7\u54C1\u9700\u6C42\u6587\u6863.pdf",size:1024*1024*2.5,type:"application/pdf"},type:"pdf",status:"uploaded",url:"https://example.com/file1.pdf"},{file:{name:"\u6570\u636E\u5206\u6790\u62A5\u544A.xlsx",size:1024*1024*1.2,type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},type:"excel",status:"uploaded",url:"https://example.com/file3.xlsx"},{file:{name:"\u7CFB\u7EDF\u67B6\u6784\u56FE.png",size:1024*512,type:"image/png"},type:"image",status:"uploaded",url:"https://example.com/file2.png"}];function kte({open:e,onCancel:t,files:n=Ste,currentFiles:r=[],onUpload:o,onRemoveFile:i,styles:a,eventsEmit:s}){const l={pending:"\u5F85\u4E0A\u4F20",uploading:"\u4E0A\u4F20\u4E2D",uploaded:"\u5DF2\u4E0A\u4F20",analyzing:"\u89E3\u6790\u4E2D",analyze_failed:"\u89E3\u6790\u5931\u8D25",error:"\u5931\u8D25"},[c,u]=Et([]),f=(p,g)=>{s&&s("uploaded_file:removeFromTemp",{file:p,idx:g})},m=a&&a.theme&&a.theme.colors?a.theme.colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},v=n.map((p,g)=>pt("div",{className:"relative flex flex-col gap-2.5 items-center justify-center",children:[ce("div",{className:"absolute right-1 top-1 z-10",children:ce(KP,{title:"\u786E\u8BA4\u4ECE\u4E34\u65F6\u5BF9\u8BDD\u77E5\u8BC6\u5E93\u79FB\u9664\u8BE5\u6587\u4EF6\uFF1F",onConfirm:()=>f(p,g),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",children:ce("button",{className:"bg-white cursor-pointer rounded-full p-0.5",style:{lineHeight:0,color:m&&m.text?m.text:"#FF0000",transition:"background 0.2s, color 0.2s"},onMouseOver:b=>{b.currentTarget.style.color=m&&m.error?m.error:"#FF0000"},onMouseOut:b=>{b.currentTarget.style.color=m.text},title:"\u79FB\u9664",children:ce(Iv,{className:"w-3 h-3"})})})}),ce(xte,{file_type:yte(p.file.name||p.name),file_name:p.name||p.file.name,url:p.url,retrieve_tags:[],styles:a,isUploadFile:!0,eventsEmit:s,parse_url:p.convertedFilePath,pdfPages:p.pdfPages||0})]},p.file.name+g)),h=r.map((p,g)=>{const b=p.file.name.split(".").pop()||"",y=fv(b,a);return ce(Cte,{cardId:`pending-file-card-${g}`,fileName:p.file.name,fileSize:p.file.size,icon:y,statusText:l[p.status||"pending"],statusColor:"text-gray-400",showRemove:!0,onRemove:()=>i&&i(p,g,"pending"),themeColors:m,style:{boxShadow:"none",height:55,background:"#f8fafc"}},p.file.name+g)});return c.length>0?(m&&m.error&&m.error,m&&m.error&&m.error+"",m&&m.error&&m.error):(m&&m.disabledText&&m.disabledText,m&&m.disabledBackground&&m.disabledBackground,m&&m.disabledText&&m.disabledText),pt(Nd,{open:e,onCancel:t,footer:null,title:"\u5BF9\u8BDD\u4E34\u65F6\u6587\u4EF6\u77E5\u8BC6\u5E93",closable:!1,width:800,styles:{body:{padding:"0",maxHeight:"70vh",overflow:"auto"}},children:[pt("div",{className:"file-manager-modal space-y-6 px-4 py-4",children:[pt("div",{className:"",children:[ce("div",{className:"flex items-center mb-2 justify-between",children:pt("div",{className:"flex items-center",children:[ce("span",{className:"text-xs font-semibold text-gray-700",children:"\u5DF2\u4E0A\u4F20\u6587\u4EF6"}),pt("span",{className:"ml-2 text-xs text-gray-400",children:[n.length," \u4E2A"]})]})}),ce("div",{className:"w-full relative min-h-[200px] max-h-[260px] p-2 overflow-y-auto",style:{overflowX:"hidden"},children:ce("div",{className:"flex flex-wrap gap-1",children:v.length>0?v:ce("div",{className:"flex items-center w-full h-full py-10 justify-center text-gray-400 text-sm",children:"\u6682\u65E0\u5DF2\u4E0A\u4F20\u6587\u4EF6"})})})]}),pt("div",{children:[pt("div",{className:"flex items-center mb-2",children:[ce("span",{className:"text-xs font-semibold text-gray-700",children:"\u5F85\u4E0A\u4F20\u6587\u4EF6"}),pt("span",{className:"ml-2 text-xs text-gray-400",children:[r.length," \u4E2A"]})]}),pt("div",{className:"flex gap-2 overflow-x-auto pb-2",children:[h,ce(UP.Dragger,{multiple:!0,showUploadList:!1,beforeUpload:(p,g)=>(p===g[0]&&(o==null||o(g)),!1),className:"!bg-gray-50 !border-dashed !border-gray-300 hover:!border-blue-400 cursor-pointer min-w-[160px] max-w-[220px] flex flex-row items-center justify-center border-2 rounded-lg transition-all",style:{height:45,boxShadow:"none",padding:0},children:pt("div",{className:"flex flex-row items-center pb-8 justify-center",children:[ce(tE,{size:20,className:"text-blue-400 mr-2"}),ce("div",{className:"text-xs text-gray-500",children:"\u4E0A\u4F20\u6587\u4EF6"})]})})]})]}),ce("div",{className:"flex justify-end gap-2",children:ce(Oo,{type:"primary",onClick:t,children:"\u786E\u8BA4"})})]}),ce("style",{children:`
878
- .file-manager-modal .ant-upload-wrapper,
879
- .file-manager-modal .ant-upload-drag,
880
- .file-manager-modal .ant-upload-drag-container {
881
- min-height: 55px !important;
882
- height: 55px !important;
883
- padding: 0 !important;
884
- }
885
- `})]})}function Ete(){const[e,t]=Et(0);return St(()=>{let n;return e<98?n=setTimeout(()=>{t(r=>r+Math.random()*6+1)},80):e<100&&(n=setTimeout(()=>t(100),400)),()=>clearTimeout(n)},[e]),pt("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[pt("div",{className:"mb-8 flex flex-col items-center",children:[ce("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),ce("div",{className:"mt-2 text-sm text-[#555555]",children:"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),pt("div",{className:"relative w-80 max-w-sm",children:[ce("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:ce("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),pt("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),pt("div",{className:"mt-8 flex flex-col items-center gap-2",children:[ce("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),ce("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const PP=document.createElement("style");PP.textContent=`
886
- .animate-bounce-slow {
887
- animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
888
- }
889
- @keyframes bounce {
890
- 0%, 100% { transform: translateY(0); }
891
- 50% { transform: translateY(-12px); }
892
- }
893
- `;document.head.appendChild(PP);function $te(){return pt("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[pt("div",{className:"flex items-start gap-4",children:[ce("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),ce("div",{className:"flex-1",children:ce(Fc,{active:!0,paragraph:{rows:1}})})]}),pt("div",{className:"flex items-start gap-4",children:[ce("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),ce("div",{className:"flex-1",children:ce(Fc,{active:!0,paragraph:{rows:3}})})]}),pt("div",{className:"flex items-start gap-4",children:[ce("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),ce("div",{className:"flex-1",children:ce(Fc,{active:!0,paragraph:{rows:1}})})]}),pt("div",{className:"flex items-start gap-4",children:[ce("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),ce("div",{className:"flex-1",children:ce(Fc,{active:!0,paragraph:{rows:2}})})]})]})}function Ote({msg:e,subMsg:t}){return pt("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[ce("div",{className:"mb-6 animate-bounce",children:ce(bY,{size:64,className:"text-[#d70016]"})}),ce("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:e||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),ce("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:t||"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),ce(Oo,{type:"primary",icon:ce(ZN,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function Ite(){return pt("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[ce("div",{className:"mb-6 animate-bounce",children:ce(mY,{size:64,className:"text-[#d70016]"})}),ce("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),ce("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),ce(Oo,{type:"primary",icon:ce(ZN,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}const Nte=1e3,Mte=3e3;function pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(pv(r)):XM(r)&&r.props?n=n.concat(pv(r.props.children,t)):n.push(r))}),n}var ta="RC_FORM_INTERNAL_HOOKS",yn=function(){Vr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},vs=d.createContext({getFieldValue:yn,getFieldsValue:yn,getFieldError:yn,getFieldWarning:yn,getFieldsError:yn,isFieldsTouched:yn,isFieldTouched:yn,isFieldValidating:yn,isFieldsValidating:yn,resetFields:yn,setFields:yn,setFieldValue:yn,setFieldsValue:yn,validateFields:yn,submit:yn,getInternalHooks:function(){return yn(),{dispatch:yn,initEntityValue:yn,registerField:yn,useSubscribe:yn,setInitialValues:yn,destroyForm:yn,setCallbacks:yn,registerWatch:yn,getFields:yn,setValidateMessages:yn,setPreserve:yn,getInitialValue:yn}}}),Od=d.createContext(null);function mv(e){return e==null?[]:Array.isArray(e)?e:[e]}function Pte(e){return e&&!!e._init}function gv(){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",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:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var hv=gv();function Fte(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jte(e,t,n){if(yb())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ps(o,n.prototype),o}function vv(e){var t=typeof Map=="function"?new Map:void 0;return vv=function(r){if(r===null||!Fte(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return jte(r,arguments,Ql(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ps(o,r)},vv(e)}var Ate=/%[sdj%]/g,Rte=function(){};function bv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Ate,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function Tte(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Zn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Tte(t)&&typeof e=="string"&&!e)}function Dte(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Rt(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function Ak(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function _te(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Rt(e[n]||[]))}),t}var Rk=(function(e){Ts(n,e);var t=Ds(n);function n(r,o){var i;return Sr(this,n),i=t.call(this,"Async Validation Error"),Ce(Ut(i),"errors",void 0),Ce(Ut(i),"fields",void 0),i.errors=r,i.fields=o,i}return kr(n)})(vv(Error));function Bte(e,t,n,r,o){if(t.first){var i=new Promise(function(m,v){var h=function(b){return r(b),b.length?v(new Rk(b,bv(b))):m(o)},p=_te(e);Ak(p,n,h)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(m,v){var h=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?v(new Rk(u,bv(u))):m(o)};s.length||(r(u),m(o)),s.forEach(function(p){var g=e[p];a.indexOf(p)!==-1?Ak(g,n,h):Dte(g,n,h)})});return f.catch(function(m){return m}),f}function zte(e){return!!(e&&e.message!==void 0)}function Lte(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Tk(e,t){return function(n){var r;return e.fullFields?r=Lte(t,e.fullFields):r=t[n.field||e.fullField],zte(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Dk(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Lt(r)==="object"&&Lt(e[n])==="object"?e[n]=He(He({},e[n]),r):e[n]=r}}return e}var Da="enum",Hte=function(t,n,r,o,i){t[Da]=Array.isArray(t[Da])?t[Da]:[],t[Da].indexOf(n)===-1&&o.push(Lr(i.messages[Da],t.fullField,t[Da].join(", ")))},Vte=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Lr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Lr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Wte=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,m=typeof n=="number",v=typeof n=="string",h=Array.isArray(n);if(m?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(u=n.length),v&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Lr(i.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Lr(i.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Lr(i.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Lr(i.messages[f].range,t.fullField,t.min,t.max))},FP=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Zn(n,a||t.type))&&o.push(Lr(i.messages.required,t.fullField))},mu;const qte=(function(){if(mu)return mu;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?: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}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(a).concat(t(S),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(h,"|").concat(p).concat(g).concat(b,")").concat(y).concat(x);return mu=new RegExp("(?:^".concat(w,"$)"),"i"),mu});var _k={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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},dl={integer:function(t){return dl.number(t)&&parseInt(t,10)===t},float:function(t){return dl.number(t)&&!dl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Lt(t)==="object"&&!dl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(_k.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qte())},hex:function(t){return typeof t=="string"&&!!t.match(_k.hex)}},Kte=function(t,n,r,o,i){if(t.required&&n===void 0){FP(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?dl[s](n)||o.push(Lr(i.messages.types[s],t.fullField,t.type)):s&&Lt(n)!==t.type&&o.push(Lr(i.messages.types[s],t.fullField,t.type))},Ute=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Lr(i.messages.whitespace,t.fullField))};const rn={required:FP,whitespace:Ute,type:Kte,range:Wte,enum:Hte,pattern:Vte};var Xte=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i)}r(a)},Gte=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();rn.required(t,n,o,a,i,"array"),n!=null&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},Yte=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn.type(t,n,o,a,i)}r(a)},Zte=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n,"date")&&!t.required)return r();if(rn.required(t,n,o,a,i),!Zn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),rn.type(t,l,o,a,i),l&&rn.range(t,l.getTime(),o,a,i)}}r(a)},Qte="enum",Jte=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn[Qte](t,n,o,a,i)}r(a)},ene=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},tne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},nne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn.type(t,n,o,a,i)}r(a)},rne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i))}r(a)},one=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),n!==void 0&&rn.type(t,n,o,a,i)}r(a)},ine=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n,"string")&&!t.required)return r();rn.required(t,n,o,a,i),Zn(n,"string")||rn.pattern(t,n,o,a,i)}r(a)},ane=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n)&&!t.required)return r();rn.required(t,n,o,a,i),Zn(n)||rn.type(t,n,o,a,i)}r(a)},sne=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":Lt(n);rn.required(t,n,o,a,i,s),r(a)},lne=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Zn(n,"string")&&!t.required)return r();rn.required(t,n,o,a,i,"string"),Zn(n,"string")||(rn.type(t,n,o,a,i),rn.range(t,n,o,a,i),rn.pattern(t,n,o,a,i),t.whitespace===!0&&rn.whitespace(t,n,o,a,i))}r(a)},_m=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Zn(n,a)&&!t.required)return r();rn.required(t,n,o,s,i,a),Zn(n,a)||rn.type(t,n,o,s,i)}r(s)};const El={string:lne,method:nne,number:rne,boolean:Yte,regexp:ane,integer:tne,float:ene,array:Gte,object:one,enum:Jte,pattern:ine,date:Zte,url:_m,hex:_m,email:_m,required:sne,any:Xte};var $c=(function(){function e(t){Sr(this,e),Ce(this,"rules",null),Ce(this,"_messages",hv),this.define(t)}return kr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Lt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Dk(gv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var p=[],g={};function b(x){if(Array.isArray(x)){var w;p=(w=p).concat.apply(w,Rt(x))}else p.push(x)}for(var y=0;y<h.length;y++)b(h[y]);p.length?(g=bv(p),l(p,g)):l(null,a)}if(s.messages){var u=this.messages();u===hv&&(u=gv()),Dk(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(h){var p=r.rules[h],g=a[h];p.forEach(function(b){var y=b;typeof y.transform=="function"&&(a===n&&(a=He({},a)),g=a[h]=y.transform(g),g!=null&&(y.type=y.type||(Array.isArray(g)?"array":Lt(g)))),typeof y=="function"?y={validator:y}:y=He({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=r.getType(y),f[h]=f[h]||[],f[h].push({rule:y,value:g,source:a,field:h}))})});var v={};return Bte(f,s,function(h,p){var g=h.rule,b=(g.type==="object"||g.type==="array")&&(Lt(g.fields)==="object"||Lt(g.defaultField)==="object");b=b&&(g.required||!g.required&&h.value),g.field=h.field;function y(E,k){return He(He({},k),{},{fullField:"".concat(g.fullField,".").concat(E),fullFields:g.fullFields?[].concat(Rt(g.fullFields),[E]):[E]})}function x(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(E)?E:[E];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&g.message!==void 0&&(k=[].concat(g.message));var O=k.map(Tk(g,a));if(s.first&&O.length)return v[g.field]=1,p(O);if(!b)p(O);else{if(g.required&&!h.value)return g.message!==void 0?O=[].concat(g.message).map(Tk(g,a)):s.error&&(O=[s.error(g,Lr(s.messages.required,g.field))]),p(O);var $={};g.defaultField&&Object.keys(h.value).map(function(j){$[j]=g.defaultField}),$=He(He({},$),h.rule.fields);var N={};Object.keys($).forEach(function(j){var F=$[j],A=Array.isArray(F)?F:[F];N[j]=A.map(y.bind(null,j))});var _=new e(N);_.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),_.validate(h.value,h.rule.options||s,function(j){var F=[];O&&O.length&&F.push.apply(F,Rt(O)),j&&j.length&&F.push.apply(F,Rt(j)),p(F.length?F:null)})}}var w;if(g.asyncValidator)w=g.asyncValidator(g,h.value,x,h.source,s);else if(g.validator){try{w=g.validator(g,h.value,x,h.source,s)}catch(E){var C,S;(C=(S=console).error)===null||C===void 0||C.call(S,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}w===!0?x():w===!1?x(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(E){return x(E)})},function(h){c(h)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!El.hasOwnProperty(n.type))throw new Error(Lr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?El.required:El[this.getType(n)]||void 0}}]),e})();Ce($c,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");El[t]=n});Ce($c,"warning",Rte);Ce($c,"messages",hv);Ce($c,"validators",El);var Tr="'${name}' is not a valid ${type}",jP={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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},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}"}},Bk=$c;function cne(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var zk="CODE_LOGIC_ERROR";function yv(e,t,n,r,o){return xv.apply(this,arguments)}function xv(){return xv=ka(br().mark(function e(t,n,r,o,i){var a,s,l,c,u,f,m,v,h;return br().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=He({},r),delete a.ruleIndex,Bk.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(zk)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Bk(Ce({},t,[a])),u=Va(jP,o.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(Ce({},t,n),He({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(b,y){var x=b.message,w=x===zk?u.default:x;return d.isValidElement(w)?d.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(b,y){return yv("".concat(t,".").concat(y),b,l,o,i)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(b,y){return[].concat(Rt(b),Rt(y))},[]));case 23:return v=He(He({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(b){return typeof b=="string"?cne(b,v):b}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),xv.apply(this,arguments)}function une(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,f){var m=u.validator,v=He(He({},u),{},{ruleIndex:f});return m&&(v.validator=function(h,p,g){var b=!1,y=function(){for(var C=arguments.length,S=new Array(C),E=0;E<C;E++)S[E]=arguments[E];Promise.resolve().then(function(){Vr(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,S)})},x=m(h,p,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",Vr(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){g()}).catch(function(w){g(w||" ")})}),v}).sort(function(u,f){var m=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!m==!!h?v-p:m?1:-1}),l;if(o===!0)l=new Promise((function(){var u=ka(br().mark(function f(m,v){var h,p,g;return br().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return p=s[h],y.next=5,yv(a,t,p,r,i);case 5:if(g=y.sent,!g.length){y.next=9;break}return v([{errors:g,rule:p}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},f)}));return function(f,m){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return yv(a,t,u,r,i).then(function(f){return{errors:f,rule:u}})});l=(o?fne(c):dne(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function dne(e){return wv.apply(this,arguments)}function wv(){return wv=ka(br().mark(function e(t){return br().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Rt(o));return a}));case 1:case"end":return r.stop()}},e)})),wv.apply(this,arguments)}function fne(e){return Cv.apply(this,arguments)}function Cv(){return Cv=ka(br().mark(function e(t){var n;return br().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Cv.apply(this,arguments)}function Bn(e){return mv(e)}function Lk(e,t){var n={};return t.forEach(function(r){var o=Ho(e,r);n=ho(n,r,o)}),n}function es(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return AP(t,r,n)})}function AP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function pne(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Lt(e)!=="object"||Lt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Rt(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function mne(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Lt(t.target)==="object"&&e in t.target?t.target[e]:t}function Hk(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Rt(e.slice(0,n)),[o],Rt(e.slice(n,t)),Rt(e.slice(t+1,r))):i<0?[].concat(Rt(e.slice(0,t)),Rt(e.slice(t+1,n+1)),[o],Rt(e.slice(n+1,r))):e}var gne=["name"],no=[];function Bm(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Mb=(function(e){Ts(n,e);var t=Ds(n);function n(r){var o;if(Sr(this,n),o=t.call(this,r),Ce(Ut(o),"state",{resetCount:0}),Ce(Ut(o),"cancelRegisterFunc",null),Ce(Ut(o),"mounted",!1),Ce(Ut(o),"touched",!1),Ce(Ut(o),"dirty",!1),Ce(Ut(o),"validatePromise",void 0),Ce(Ut(o),"prevValidating",void 0),Ce(Ut(o),"errors",no),Ce(Ut(o),"warnings",no),Ce(Ut(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Bn(f)),o.cancelRegisterFunc=null}),Ce(Ut(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(Rt(m),Rt(c)):[]}),Ce(Ut(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(f):m})}),Ce(Ut(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Ce(Ut(o),"metaCache",null),Ce(Ut(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=He(He({},o.getMeta()),{},{destroy:l});jh(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),Ce(Ut(o),"onStoreChange",function(l,c,u){var f=o.props,m=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,p=f.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(g),w=c&&es(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!jh(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=no,o.warnings=no,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=no,o.warnings=no,o.triggerMetaEvent(),p==null||p(),o.refresh();return}break;case"remove":{if(m&&Bm(m,l,g,y,x,u)){o.reRender();return}break}case"setField":{var C=u.data;if(w){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||no),"warnings"in C&&(o.warnings=C.warnings||no),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&es(c,b,!0)){o.reRender();return}if(m&&!b.length&&Bm(m,l,g,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var S=h.map(Bn);if(S.some(function(E){return es(u.relatedFields,E)})){o.reRender();return}break}default:if(w||(!h.length||b.length||m)&&Bm(m,l,g,y,x,u)){o.reRender();return}break}m===!0&&o.reRender()}),Ce(Ut(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},m=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,p=Promise.resolve().then(ka(br().mark(function g(){var b,y,x,w,C,S,E;return br().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,w=b.messageVariables,C=b.validateDebounce,S=o.getRules(),m&&(S=S.filter(function($){return $}).filter(function($){var N=$.validateTrigger;if(!N)return!0;var _=mv(N);return _.includes(m)})),!(C&&m)){O.next=10;break}return O.next=8,new Promise(function($){setTimeout($,C)});case 8:if(o.validatePromise===p){O.next=10;break}return O.abrupt("return",[]);case 10:return E=une(c,u,S,l,x,w),E.catch(function($){return $}).then(function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:no;if(o.validatePromise===p){var N;o.validatePromise=null;var _=[],j=[];(N=$.forEach)===null||N===void 0||N.call($,function(F){var A=F.rule.warningOnly,I=F.errors,P=I===void 0?no:I;A?j.push.apply(j,Rt(P)):_.push.apply(_,Rt(P))}),o.errors=_,o.warnings=j,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},g)})));return h||(o.validatePromise=p,o.dirty=!0,o.errors=no,o.warnings=no,o.triggerMetaEvent(),o.reRender()),p}),Ce(Ut(o),"isFieldValidating",function(){return!!o.validatePromise}),Ce(Ut(o),"isFieldTouched",function(){return o.touched}),Ce(Ut(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(ta),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),Ce(Ut(o),"getErrors",function(){return o.errors}),Ce(Ut(o),"getWarnings",function(){return o.warnings}),Ce(Ut(o),"isListField",function(){return o.props.isListField}),Ce(Ut(o),"isList",function(){return o.props.isList}),Ce(Ut(o),"isPreserve",function(){return o.props.preserve}),Ce(Ut(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),Ce(Ut(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return He(He({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=pv(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Ce(Ut(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Ho(l||c(!0),u)}),Ce(Ut(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,m=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,p=c.valuePropName,g=c.getValueProps,b=c.fieldContext,y=m!==void 0?m:b.validateTrigger,x=o.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,S=w(ta),E=S.dispatch,k=o.getValue(),O=g||function(F){return Ce({},p,F)},$=l[f],N=u!==void 0?O(k):{},_=He(He({},l),N);_[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,A=arguments.length,I=new Array(A),P=0;P<A;P++)I[P]=arguments[P];v?F=v.apply(void 0,I):F=mne.apply(void 0,[p].concat(I)),h&&(F=h(F,k,C(!0))),F!==k&&E({type:"updateValue",namePath:x,value:F}),$&&$.apply(void 0,I)};var j=mv(y||[]);return j.forEach(function(F){var A=_[F];_[F]=function(){A&&A.apply(void 0,arguments);var I=o.props.rules;I&&I.length&&E({type:"validateField",namePath:x,triggerName:F})}}),_}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(ta),s=a.initEntityValue;s(Ut(o))}return o}return kr(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(ta),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:d.isValidElement(s)?c=d.cloneElement(s,this.getControlled(s.props)):(Vr(!s,"`children` of Field is not validate ReactElement."),c=s),d.createElement(d.Fragment,{key:o},c)}}]),n})(d.Component);Ce(Mb,"contextType",vs);Ce(Mb,"defaultProps",{trigger:"onChange",valuePropName:"value"});function RP(e){var t,n=e.name,r=qo(e,gne),o=d.useContext(vs),i=d.useContext(Od),a=n!==void 0?Bn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),d.createElement(Mb,rr({key:l,name:a,isListField:s},r,{fieldContext:o}))}function hne(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=d.useContext(vs),l=d.useContext(Od),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var p=Bn(s.prefixName)||[];return[].concat(Rt(p),Rt(Bn(t)))},[s.prefixName,t]),m=d.useMemo(function(){return He(He({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(g){var b=f.length,y=g[b];return[u.keys[y],g.slice(b+1)]}}},[f]);if(typeof r!="function")return Vr(!1,"Form.List only accepts function as children."),null;var h=function(g,b,y){var x=y.source;return x==="internal"?!1:g!==b};return d.createElement(Od.Provider,{value:v},d.createElement(vs.Provider,{value:m},d.createElement(RP,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(p,g){var b=p.value,y=b===void 0?[]:b,x=p.onChange,w=s.getFieldValue,C=function(){var O=w(f||[]);return O||[]},S={add:function(O,$){var N=C();$>=0&&$<=N.length?(u.keys=[].concat(Rt(u.keys.slice(0,$)),[u.id],Rt(u.keys.slice($))),x([].concat(Rt(N.slice(0,$)),[O],Rt(N.slice($))))):(u.keys=[].concat(Rt(u.keys),[u.id]),x([].concat(Rt(N),[O]))),u.id+=1},remove:function(O){var $=C(),N=new Set(Array.isArray(O)?O:[O]);N.size<=0||(u.keys=u.keys.filter(function(_,j){return!N.has(j)}),x($.filter(function(_,j){return!N.has(j)})))},move:function(O,$){if(O!==$){var N=C();O<0||O>=N.length||$<0||$>=N.length||(u.keys=Hk(u.keys,O,$),x(Hk(N,O,$)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(k,O){var $=u.keys[O];return $===void 0&&(u.keys[O]=u.id,$=u.keys[O],u.id+=1),{name:O,key:$,isListField:!0}}),S,g)})))}function vne(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var TP="__@field_split__";function zm(e){return e.map(function(t){return"".concat(Lt(t),":").concat(t)}).join(TP)}var _a=(function(){function e(){Sr(this,e),Ce(this,"kvs",new Map)}return kr(e,[{key:"set",value:function(n,r){this.kvs.set(zm(n),r)}},{key:"get",value:function(n){return this.kvs.get(zm(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(zm(n))}},{key:"map",value:function(n){return Rt(this.kvs.entries()).map(function(r){var o=Pt(r,2),i=o[0],a=o[1],s=i.split(TP);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Pt(c,3),f=u[1],m=u[2];return f==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e})(),bne=["name"],yne=kr(function e(t){var n=this;Sr(this,e),Ce(this,"formHooked",!1),Ce(this,"forceRootUpdate",void 0),Ce(this,"subscribable",!0),Ce(this,"store",{}),Ce(this,"fieldEntities",[]),Ce(this,"initialValues",{}),Ce(this,"callbacks",{}),Ce(this,"validateMessages",null),Ce(this,"preserve",null),Ce(this,"lastValidatePromise",null),Ce(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Ce(this,"getInternalHooks",function(r){return r===ta?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Vr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Ce(this,"useSubscribe",function(r){n.subscribable=r}),Ce(this,"prevWithoutPreserves",null),Ce(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Va(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=ho(a,l,Ho(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Ce(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new _a;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Ce(this,"getInitialValue",function(r){var o=Ho(n.initialValues,r);return r.length?Va(o):o}),Ce(this,"setCallbacks",function(r){n.callbacks=r}),Ce(this,"setValidateMessages",function(r){n.validateMessages=r}),Ce(this,"setPreserve",function(r){n.preserve=r}),Ce(this,"watchList",[]),Ce(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Ce(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),Ce(this,"timeoutId",null),Ce(this,"warningUnhooked",function(){}),Ce(this,"updateStore",function(r){n.store=r}),Ce(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Ce(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new _a;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),Ce(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Bn(i);return o.get(a)||{INVALIDATE_NAME_PATH:Bn(i)}})}),Ce(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Lt(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,m,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,p;if((h=(p=u).isList)!==null&&h!==void 0&&h.call(p))return}else if(!i&&(f=(m=u).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)c.push(v);else{var g="getMeta"in u?u.getMeta():null;a(g)&&c.push(v)}}),Lk(n.store,c.map(Bn))}),Ce(this,"getFieldValue",function(r){n.warningUnhooked();var o=Bn(r);return Ho(n.store,o)}),Ce(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Bn(r[a]),errors:[],warnings:[]}})}),Ce(this,"getFieldError",function(r){n.warningUnhooked();var o=Bn(r),i=n.getFieldsError([o])[0];return i.errors}),Ce(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Bn(r),i=n.getFieldsError([o])[0];return i.warnings}),Ce(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(Bn),c=!1):(l=null,c=a):(l=a.map(Bn),c=s);var u=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(p){return f(p)||p.isList()}):u.some(f);var m=new _a;l.forEach(function(p){m.set(p,[])}),u.forEach(function(p){var g=p.getNamePath();l.forEach(function(b){b.every(function(y,x){return g[x]===y})&&m.update(b,function(y){return[].concat(Rt(y),[p])})})});var v=function(g){return g.some(f)},h=m.map(function(p){var g=p.value;return g});return c?h.every(v):h.some(v)}),Ce(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Ce(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Bn);return o.some(function(a){var s=a.getNamePath();return es(i,s)&&a.isFieldValidating()})}),Ce(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Ce(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new _a,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var m=u.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)Vr(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=o.get(m);if(h&&h.size>1)Vr(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=n.getFieldValue(m),g=u.isListField();!g&&(!r.skipExist||p===void 0)&&n.updateStore(ho(n.store,m,Rt(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Rt(Rt(c).map(function(f){return f.entity})))}})):s=i,a(s)}),Ce(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Va(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Bn);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(ho(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),Ce(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=qo(a,bne),c=Bn(s);i.push(c),"value"in l&&n.updateStore(ho(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),Ce(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=He(He({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),Ce(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Ho(n.store,i);a===void 0&&n.updateStore(ho(n.store,i,o))}}),Ce(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Ce(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!AP(f.getNamePath(),o)})){var u=n.store;n.updateStore(ho(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),Ce(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),Ce(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=He(He({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),Ce(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Rt(i))}),i}),Ce(this,"updateValue",function(r,o){var i=Bn(r),a=n.store;n.updateStore(ho(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Lk(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Rt(s)))}),Ce(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Va(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Ce(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Ce(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new _a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Bn(u);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),l(m))}})};return s(r),i}),Ce(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new _a;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return es(r,u)});l.length&&i(l,a)}}),Ce(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Bn):[],c=[],u=String(Date.now()),f=new Set,m=a||{},v=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||es(l,x,v)){var w=y.validateRules(He({validateMessages:He(He({},jP),n.validateMessages)},a));c.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var S,E=[],k=[];return(S=C.forEach)===null||S===void 0||S.call(C,function(O){var $=O.rule.warningOnly,N=O.errors;$?k.push.apply(k,Rt(N)):E.push.apply(E,Rt(N))}),E.length?Promise.reject({name:x,errors:E,warnings:k}):{name:x,errors:E,warnings:k}}))}}});var p=vne(c);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var x=y.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var g=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==p})});g.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),g}),Ce(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Pb(e){var t=d.useRef(),n=d.useState({}),r=Pt(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new yne(i);t.current=a.getForm()}return[t.current]}var Sv=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),xne=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=d.useContext(Sv),s=d.useRef({});return d.createElement(Sv.Provider,{value:He(He({},a),{},{validateMessages:He(He({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=He(He({},s.current),{},Ce({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=He({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},wne=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Cne=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,x=qo(t,wne),w=d.useRef(null),C=d.useContext(Sv),S=Pb(a),E=Pt(S,1),k=E[0],O=k.getInternalHooks(ta),$=O.useSubscribe,N=O.setInitialValues,_=O.setCallbacks,j=O.setValidateMessages,F=O.setPreserve,A=O.destroyForm;d.useImperativeHandle(n,function(){return He(He({},k),{},{nativeElement:w.current})}),d.useEffect(function(){return C.registerForm(r,k),function(){C.unregisterForm(r)}},[C,k,r]),j(He(He({},C.validateMessages),f)),_({onValuesChange:h,onFieldsChange:function(D){if(C.triggerFormChange(r,D),p){for(var L=arguments.length,V=new Array(L>1?L-1:0),q=1;q<L;q++)V[q-1]=arguments[q];p.apply(void 0,[D].concat(V))}},onFinish:function(D){C.triggerFormFinish(r,D),g&&g(D)},onFinishFailed:b}),F(s);var I=d.useRef(null);N(o,!I.current),I.current||(I.current=!0),d.useEffect(function(){return function(){return A(y)}},[]);var P,M=typeof l=="function";if(M){var z=k.getFieldsValue(!0);P=l(z,k)}else P=l;$(!M);var B=d.useRef();d.useEffect(function(){pne(B.current||[],i||[])||k.setFields(i||[]),B.current=i},[i,k]);var H=d.useMemo(function(){return He(He({},k),{},{validateTrigger:v})},[k,v]),T=d.createElement(Od.Provider,{value:null},d.createElement(vs.Provider,{value:H},P));return u===!1?T:d.createElement(u,rr({},x,{ref:w,onSubmit:function(D){D.preventDefault(),D.stopPropagation(),k.submit()},onReset:function(D){var L;D.preventDefault(),k.resetFields(),(L=x.onReset)===null||L===void 0||L.call(x,D)}}),T)};function Vk(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Sne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=Pte(i)?{form:i}:i,s=a.form,l=Et(),c=Pt(l,2),u=c[0],f=c[1],m=tn(function(){return Vk(u)},[u]),v=Ye(m);v.current=m;var h=sn(vs),p=s||h,g=p&&p._init,b=Bn(r),y=Ye(b);return y.current=b,St(function(){if(g){var x=p.getFieldsValue,w=p.getInternalHooks,C=w(ta),S=C.registerWatch,E=function(N,_){var j=a.preserve?_:N;return typeof r=="function"?r(j):Ho(j,y.current)},k=S(function($,N){var _=E($,N),j=Vk(_);v.current!==j&&(v.current=j,f(_))}),O=E(x(),x(!0));return u!==O&&f(O),k}},[g]),u}var kne=d.forwardRef(Cne),Oc=kne;Oc.FormProvider=xne;Oc.Field=RP;Oc.List=hne;Oc.useForm=Pb;Oc.useWatch=Sne;const Wk=e=>typeof e=="object"&&e!=null&&e.nodeType===1,qk=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",gu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return qk(n.overflowY,t)||qk(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},hu=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,Ene=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Kk=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:I=>I!==c;if(!Wk(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let h=e;for(;Wk(h)&&f(h);){if(h=Ene(h),h===m){v.push(h);break}h!=null&&h===document.body&&gu(h)&&!gu(document.documentElement)||h!=null&&gu(h,u)&&v.push(h)}const p=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:w,top:C,right:S,bottom:E,left:k}=e.getBoundingClientRect(),{top:O,right:$,bottom:N,left:_}=(I=>{const P=window.getComputedStyle(I);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let j=s==="start"||s==="nearest"?C-O:s==="end"?E+N:C+x/2-O+N,F=l==="center"?k+w/2-_+$:l==="end"?S+$:k-_;const A=[];for(let I=0;I<v.length;I++){const P=v[I],{height:M,width:z,top:B,right:H,bottom:T,left:R}=P.getBoundingClientRect();if(a==="if-needed"&&C>=0&&k>=0&&E<=g&&S<=p&&(P===m&&!gu(P)||C>=B&&E<=T&&k>=R&&S<=H))return A;const D=getComputedStyle(P),L=parseInt(D.borderLeftWidth,10),V=parseInt(D.borderTopWidth,10),q=parseInt(D.borderRightWidth,10),K=parseInt(D.borderBottomWidth,10);let Q=0,U=0;const J="offsetWidth"in P?P.offsetWidth-P.clientWidth-L-q:0,Y="offsetHeight"in P?P.offsetHeight-P.clientHeight-V-K:0,X="offsetWidth"in P?P.offsetWidth===0?0:z/P.offsetWidth:0,re="offsetHeight"in P?P.offsetHeight===0?0:M/P.offsetHeight:0;if(m===P)Q=s==="start"?j:s==="end"?j-g:s==="nearest"?hu(y,y+g,g,V,K,y+j,y+j+x,x):j-g/2,U=l==="start"?F:l==="center"?F-p/2:l==="end"?F-p:hu(b,b+p,p,L,q,b+F,b+F+w,w),Q=Math.max(0,Q+y),U=Math.max(0,U+b);else{Q=s==="start"?j-B-V:s==="end"?j-T+K+Y:s==="nearest"?hu(B,T,M,V,K+Y,j,j+x,x):j-(B+M/2)+Y/2,U=l==="start"?F-R-L:l==="center"?F-(R+z/2)+J/2:l==="end"?F-H+q+J:hu(R,H,z,L,q+J,F,F+w,w);const{scrollLeft:le,scrollTop:oe}=P;Q=re===0?0:Math.max(0,Math.min(oe+Q/re,P.scrollHeight-M/re+Y)),U=X===0?0:Math.max(0,Math.min(le+U/X,P.scrollWidth-z/X+J)),j+=oe-Q,F+=le-U}A.push({el:P,top:Q,left:U})}return A},$ne=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function One(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Kk(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Kk(e,$ne(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const Ine=["parentNode"],Nne="form_item";function DP(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Mne(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Ine.includes(n)?`${Nne}_${n}`:n}var Pne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Uk(e){return DP(e).join("_")}function Xk(e,t){const n=t.getFieldInstance(e),r=tP(n);if(r)return r;const o=Mne(DP(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function _P(e){const[t]=Pb(),n=d.useRef({}),r=d.useMemo(()=>Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Uk(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:(o,i={})=>{const{focus:a}=i,s=Pne(i,["focus"]),l=Xk(o,r);l&&(One(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),a&&r.focusField(o))},focusField:o=>{var i,a;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(a=(i=Xk(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=Uk(o);return n.current[i]}}),[e,t]);return[r]}const Fne=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[i]=_P();return St(()=>{if(!e){i.resetFields();return}i.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),ce(Ev,{modal:{styles:o},children:ce(Nd,{title:ce("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:pt("div",{className:"mt-[16px] flex justify-end",children:[ce(Oo,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),ce(Oo,{children:"\u786E\u8BA4",onClick:async()=>{try{const a=await i.validateFields();t("ok_rename",a)}catch(a){console.log(a);return}},type:"primary",className:"border-none"})]}),children:ce(xi,{form:i,children:ce(xi.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:ce(qu,{})})})})})},jne=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[i]=_P();return St(()=>{if(!e){i.resetFields();return}i.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),ce(Ev,{modal:{styles:o},children:ce(Nd,{title:ce("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:pt("div",{className:"mt-[16px] flex justify-end",children:[ce(Oo,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),ce(Oo,{children:"\u786E\u8BA4",onClick:async()=>{try{const a=await i.validateFields();t("ok_remove",a)}catch(a){console.log(a);return}},type:"primary",className:"border-none"})]}),children:ce("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${r.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})};function pre(e=TK){return function({token:n,url:r="http://localhost:8888",styles:o,CSRFToken:i,eventsEmit:a,...s}){const l=tn(()=>GP({theme:$v,mode:"light"},o),[o]),[c,u]=Et(!1),[f,m]=Et(!1),[v,h]=Et(null),[p,g]=Et([]),[b,y]=Et([]),[x,w]=Et(void 0),[C,S]=Et([]),[E,k]=Et([]),[O,$]=Et(void 0),[N,_]=Et(!1),[j,F]=Et({display:"ready",sender:"ready",app:"initializing"}),[A,I]=Et([]);function P(ee,Z){if(!Z)return ee;const ve=Array.isArray(ee)?[...ee]:{...ee};for(const Se in Z)Z[Se]!==void 0&&Z[Se]!==null&&Object.prototype.hasOwnProperty.call(Z,Se)&&(typeof ee[Se]=="object"&&ee[Se]!==null&&!Array.isArray(ee[Se])&&typeof Z[Se]=="object"&&Z[Se]!==null&&!Array.isArray(Z[Se])?ve[Se]=P(ee[Se],Z[Se]):ve[Se]=Z[Se]);return ve}const[M,z]=Et(()=>P(fS,s.senderConfig));St(()=>{s.senderConfig&&(console.log("hahah",M,s.senderConfig),z(P(fS,s.senderConfig)))},[s.senderConfig]);const[B,H]=Et([]),[T,R]=Et(()=>({uploadedFiles:[]}));St(()=>{console.log("fileManagerData",T)},[]),St(()=>{if(!x)return;const ee=b.find(Se=>Se.id===x);let Z=[],ve=!1;if(ee&&ee.messages){const Se=[...ee.messages||[]].reverse().find(_e=>_e.istype==="ai");if(Se!=null&&Se.reference&&Se.resultType===5){ve=!0;try{Z=JSON.parse(Se.reference).map(Ue=>Re(Ue))}catch{}}}ve&&R({uploadedFiles:Z})},[b]),St(()=>{R({uploadedFiles:[]})},[x]);const[D,L]=se.useState(()=>{var Z;if(!E||E.length===0)return;const ee=E.find(ve=>ve.isDefault);return ee?ee.id:(Z=E[0])==null?void 0:Z.id});se.useEffect(()=>{if(!E||E.length===0)return;const ee=E.some(Z=>Z.id===D);if(!D||!ee){const Z=E.find(ve=>ve.isDefault);L(Z?Z.id:E[0].id)}},[E]);const[V,q]=Et({}),K=Ye(void 0),Q=Ye(void 0),U=Ye(void 0);Ye({sessionId:""}),Ye(null);const[J,Y]=Et({}),[X,re]=Et(!1),[le,oe]=Et([]),de=Ye(!1),{api_startChat_re:he,addEmptyMessage:ke,setLastEmptyMessage:Oe,stopStream:pe}=mte({baseUrl:r,CSRFToken:i,token:n,setChatData:y,activeSessionId:x,setAppStatus:F,setConversationList:g}),we=tn(()=>{const ee={};return(E||[]).forEach(Z=>{ee[Z.id]=Z}),ee},[E]),ne=tn(()=>{const ee=b.find(ve=>ve.id===x)||{id:x,messages:[]},Z=ee.configId?we[ee.configId]:null;return{...ee,assistantInfo:Z}},[b,x,we]),xe=tn(()=>{if(ne.configId&&we){const ee=we[ne.configId];return ee!=null&&ee.configJson?JSON.parse(ee.configJson).is_download:!1}else return!1},[ne.configId,we]),Pe=tn(()=>{if((ne.configId||O)&&we){const ee=we[ne.configId];if(ee!=null&&ee.configJson){const Z=JSON.parse(ee.configJson);return console.log("is_enableThinking",ne.configId,we,O),!!Z.thinking}else if(O){const Z=we[O];if(Z!=null&&Z.configJson)return!!JSON.parse(Z.configJson).thinking}}return!1},[ne.configId,we,O]);function ue(ee,Z){const ve=new Map;return ee.forEach(Se=>ve.set(Se.uid,Re(Se))),Z.forEach(Se=>ve.set(Se.uid,Re(Se))),Array.from(ve.values())}function Re(ee){if(!ee||ee.file&&ee.file.name)return ee;const Z=ee.name||ee.fileName||"";return{...ee,url:ee.filePath||"",uid:ee.uid||"",file:{name:Z,size:typeof ee.size=="string"&&ee.size.endsWith("MB")?Number(ee.size.replace("MB",""))*1024*1024:ee.size||0,type:ee.type||""},name:Z}}St(()=>{if(K.current&&K.current!==x){const Z=K.current,ve=p.find(Ue=>Ue.sessionId===Z&&Ue.isNew),Se=b.find(Ue=>Ue.id===Z&&Ue.isNew),_e=Se&&Se.messages&&Se.messages.length>0;ve&&!_e&&(g(Ue=>Ue.filter(gt=>gt.sessionId!==Z)),y(Ue=>Ue.filter(gt=>gt.id!==Z)))}K.current=x;const ee=ne.messages&&ne.messages.length>0?ne.messages[ne.messages.length-1].recommendQuestion:[];S(ee)},[x,p,b,ne.messages]),St(()=>{F(ee=>({...ee,app:"initializing"})),Promise.all([yr.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}}),yr.get(`${r}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:n}})]).then(([ee,Z])=>{const ve=ee.data.data.records||[];g(ve),x||ge(),k(Z.data.data||[]),F(Se=>({...Se,app:"ready"}))}).catch(ee=>{F(Z=>({...Z,app:"error"}))})},[r,n]),St(()=>{x&&(F(ee=>({...ee,display:"loading"})),yr.get(`${r}/qa/dialogue/getDialogBySessionId?sessionId=${x}`,{headers:{Authorization:n}}).then(ee=>{var Le;if(!ee.data.data){F(Be=>({...Be,display:"ready"}));return}const Z=((Le=ee.data.data)==null?void 0:Le.queryReplyPairList)||[],ve=Xee(Z),{sessionId:Se,searchConfigDTO:_e,filePath:Ue,configId:gt,reference:lt,webReference:mt,uploadedFiles:kt,fileList:ot,currentFiles:Nt}=ee.data.data;if(ve.length>0){const Be=ve.length-1-[...ve].reverse().findIndex(ht=>ht.istype==="ai");Be>=0&&Be<ve.length&&ve[Be].istype==="ai"&&(lt&&(ve[Be].reference=lt),mt&&(ve[Be].webReference=mt))}const Ee=Nt||ot||kt;if(Ee&&ve.length>0){const Be=[...ve].reverse().findIndex(ht=>ht.istype==="user");Be!==-1&&(console.log(ve[ve.length-1-Be].currentFiles,"filesData"),ve[ve.length-1-Be].currentFiles=Ee)}p.find(Be=>Be.sessionId===Se)&&g(Be=>Be.map(ht=>ht.sessionId===Se?{...ht,searchConfigDTO:_e,filePath:Ue,configId:gt}:ht));const Fe={configId:ee.data.data.configId,filePath:ee.data.data.filePath,searchConfigDTO:ee.data.data.searchConfigDTO||{},sessionId:ee.data.data.sessionId,label:ee.data.data.label,kbId:ee.data.data.kbId};y(Be=>{const ht=Be.filter(Dt=>Dt.id!==x);return[{id:x,messages:ve,...Fe},...ht]}),F(Be=>({...Be,display:"ready"}))}).catch(ee=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",ee),ee.response&&ee.response.status===404&&ge(),F(Z=>({...Z,display:"error"}))}))},[x,r,n]),St(()=>{const ee=T.uploadedFiles.length;z(Z=>{const ve=Array.isArray(Z.actions)?Z.actions:[];return{...Z,actions:ve.map(_e=>_e.name==="history"?{..._e,badgeCount:ee}:_e)}})},[T.uploadedFiles]),St(()=>{Gee({url:r,token:n},ee=>{oe(ee)})},[]),se.useEffect(()=>{B.length&&y(ee=>{if(!ee[0])return ee;const{messages:Z}=ee[0];for(let ve=Z.length-1;ve>=0;ve--)if(Z[ve].istype==="user"){const Se=Z[ve].currentFiles||[];Z[ve].currentFiles=B.map(_e=>{var gt,lt,mt;const Ue=Se.find(kt=>kt.uid===_e.uid);return{name:((gt=_e.file)==null?void 0:gt.name)||_e.name,size:((lt=_e.file)==null?void 0:lt.size)||_e.size,type:((mt=_e.file)==null?void 0:mt.type)||_e.type,status:_e.status,uid:_e.uid,url:_e.url||(Ue==null?void 0:Ue.url)||""}});break}return[...ee]})},[B]);let Te=null,De=null;const be=(ee,Z,ve,Se)=>{const _e=ee.join(",");let Ue=0;De=()=>{de.current=!0};const gt=async()=>{if(!de.current){if(Ue>=Nte){de.current||Se("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}Ue++;try{const lt=await yr.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${_e}`,{headers:{Authorization:n}});if(de.current)return;if(lt.data.success){const mt=lt.data.data;de.current||Z(mt),mt.every(ot=>ot.status===3)?de.current||ve():de.current||setTimeout(gt,Mte)}else de.current||Se(lt.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch{if(de.current)return;Se("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};gt()},Ie=(ee,Z)=>{y(ve=>{const Se=[...ve];return Se[0]&&(Se[0]={...Se[0],messages:Se[0].messages.map(_e=>_e.queryId===ee?{..._e,feedbackResult:Z}:_e)}),Se})},Ne=async ee=>{var Z,ve;if(ee)try{const Se=(ne==null?void 0:ne.configId)||((Z=we==null?void 0:we[(ne==null?void 0:ne.configId)||""])==null?void 0:Z.id)||"",_e=await yr.get(`${r}/qa/ai/recommendQuestion?queryId=${ee}&configId=${Se||""}`.replace(/\?&/,"?"),{headers:{Authorization:n}});S(((ve=_e.data)==null?void 0:ve.data)||[])}catch{S([])}};function $e(ee){const{content:Z,audioUrl:ve,filePaths:Se,queryId:_e}=ee;if(!x||!_e)return;const Ue=(ne==null?void 0:ne.messages)||[],gt=Ue.findIndex(Ee=>(Ee==null?void 0:Ee.queryId)===_e&&((Ee==null?void 0:Ee.istype)==="ai"||(Ee==null?void 0:Ee.isUser)===!1));let lt;if(gt>0)for(let Ee=gt-1;Ee>=0;Ee-=1){const Qe=Ue[Ee];if((Qe==null?void 0:Qe.istype)==="user"||(Qe==null?void 0:Qe.isUser)===!0){lt=Qe;break}}const mt=(lt==null?void 0:lt.content)??Z;if(!mt)return;const kt=(lt==null?void 0:lt.filePaths)??Se,ot=(typeof kt=="string"&&kt?JSON.parse(kt):kt||[]).map(Ee=>Ee.uid),Nt=Date.now();Oe({now:Nt}),F(Ee=>({...Ee,display:"processing",sender:"processing"})),ee.clearFn&&ee.clearFn(),g(Ee=>Ee.map(Qe=>Qe.sessionId===x?{...Qe,gmtModified:Nt}:Qe)),he({configId:ne.configId,content:mt,fileUids:ot,lastDate:Nt,name:ne.label||"",queryId:_e,sessionId:String(x||""),type:(lt==null?void 0:lt.audioUrl)??ve?"audioUrl":"text",audioUrl:((lt==null?void 0:lt.audioUrl)??ve)||"",enableThinking:!!V.reasoning,enableWebsearch:!!V.netSearch},Ee=>{Ne(_e)})}async function fe(ee,Z){if(!x)return;const ve=p.find(Se=>Se.sessionId===x);if(ve&&ve.isNew){let Se=!1;const _e=O||ve.configId,Ue=ee&&ee.content?ee.content.slice(0,20):ve.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((gt,lt)=>{Qee({url:r,token:n,CSRFToken:i},{label:Ue,sessionId:ve.sessionId,sysType:"INT_SESSION",configId:_e},mt=>{mt&&mt.data&&mt.data.sessionId?(g(kt=>kt.map(ot=>ot.sessionId===ve.sessionId?{...ot,isNew:!1,configId:_e,label:Ue}:ot)),y(kt=>kt.map(ot=>ot.id===ve.sessionId?{...ot,isNew:!1,configId:_e,label:Ue}:ot)),Se=!0,gt()):(Wn.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),lt())})}),!Se)return;ye(x,ee,Z,_e);return}ye(x,ee,Z)}function ye(ee,Z,ve,Se){const _e="query-"+sa(32),Ue=p.find(ot=>ot.sessionId===ee),gt=Se||(Ue==null?void 0:Ue.configId)||ne.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",gt);const lt=Z&&Z.content?Z.content.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let mt;if(Z.files&&Z.files.length>0&&(mt=Z.files.map(ot=>({name:ot.file.name,size:ot.file.size,type:ot.file.type,filePath:ot.filePath||"",convertedFilePath:ot.convertedFilePath||"",uid:ot.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",Z.files),ke({content:Z.content||Z.text||"",queryId:_e,currentFiles:mt,filePaths:mt?JSON.stringify(mt):void 0}),g(ot=>ot.map(Nt=>Nt.sessionId===ee&&Nt.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&Nt.isNew?{...Nt,label:lt,gmtModified:Date.now(),isNew:!1}:Nt)),y(ot=>ot.map(Nt=>Nt.id===ee&&Nt.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&Nt.isNew?{...Nt,label:lt,isNew:!1}:Nt)),Z.files&&Z.files.length>0){F(Fe=>({...Fe,sender:"uploading",display:"uploading"})),Te=new AbortController,de.current=!1;const ot=Z.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),Nt=Z.files.map((Fe,Le)=>({...Fe,uid:ot[Le],status:"uploading"}));H(Nt);const Ee=new FormData;Z.files.forEach(Fe=>{Ee.append("files",Fe.file)});const Qe=String(ee||"");Ee.append("sessionId",Qe),Ee.append("uids",ot.join(",")),yr.post(`${r}/index/knowledgeBase/file/uploadFiles`,Ee,{headers:{Authorization:n,"Content-Type":"multipart/form-data"},signal:Te.signal}).then(Fe=>{if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",Fe),!de.current)if(Fe.data.success&&Array.isArray(Fe.data.data)&&Fe.data.data.length>0){H(ht=>ht.map(yt=>{const Dt=Fe.data.data.find(Ft=>Ft.uid===yt.uid);return Dt?{...yt,...Dt}:yt})),F(ht=>({...ht,sender:"processing",display:"analyzing"})),H(ht=>ht.map(yt=>({...yt,status:"parsing"})));const Le=Fe.data.data,Be=Le.map(ht=>ht.uid);be(Be,ht=>{if(H(Dt=>Dt.map(Ft=>{const Qt=ht.find(qt=>qt.uid===Ft.uid);if(Qt)switch(Qt.status){case 3:return{...Ft,status:"done"};case 4:return{...Ft,status:"error"};case 1:case 2:default:return{...Ft,status:"parsing"}}return Ft})),ht.length>0&&ht.every(Dt=>Dt.status===3)){H([]);const Dt=new Map;(ht||[]).forEach(Ft=>{Dt.set(Ft.id,Ft)}),R(Ft=>({uploadedFiles:ue(Ft.uploadedFiles,Le).map(qt=>{var dn;return{...qt,pdfPages:((dn=Dt.get(qt.id))==null?void 0:dn.pdfPages)||0}})}))}},()=>{ve==null||ve(),F(yt=>({...yt,sender:"processing",display:"processing"})),H(yt=>yt.map(Dt=>{const Ft=Le.find(Qt=>Qt.uid===Dt.uid);return Ft?{...Dt,...Ft,url:Ft.filePath,filePath:Ft.filePath,name:Ft.fileName||Dt.name,convertedFilePath:Ft.convertedFilePath||Dt.convertedFilePath}:Dt})),y(yt=>{if(!yt[0])return yt;const{messages:Dt}=yt[0];for(let Ft=Dt.length-1;Ft>=0;Ft--)if(Dt[Ft].istype==="user"){const Qt=Dt[Ft].currentFiles||[];Dt[Ft].currentFiles=Qt.map(qt=>{const dn=Le.find(Mn=>Mn.uid===qt.uid);return dn?{...qt,...dn}:qt});break}return[...yt]});const ht=Date.now();he({configId:gt,content:Z.content||Z.text||"",fileUids:Be,lastDate:ht,name:lt,queryId:_e,sessionId:String(ee||""),type:"text",audioUrl:"",enableThinking:!!V.reasoning,enableWebsearch:!!V.netSearch},yt=>{Ne(_e)})},ht=>{F(yt=>({...yt,display:"ready",sender:"ready"})),H(yt=>yt.map(Dt=>({...Dt,status:"error",message:ht})))})}else{const Le=Fe.data.errorMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";F(Be=>({...Be,display:"error",sender:"ready"})),H(Be=>Be.map(ht=>({...ht,status:"error",message:Le})))}}).catch(Fe=>{var Le,Be;((Le=Fe==null?void 0:Fe.response)==null?void 0:Le.status)===413?(Be=Fe==null?void 0:Fe.response)!=null&&Be.statusText.includes("Request Entity Too Large")&&Wn.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):Wn.error("\u7F51\u7EDC\u9519\u8BEF"),F(ht=>({...ht,display:"error",sender:"ready"})),H(ht=>ht.map(yt=>({...yt,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}F(ot=>({...ot,display:"processing",sender:"processing"}));const kt=Date.now();g(ot=>ot.map(Nt=>Nt.sessionId===ee?{...Nt,gmtModified:kt}:Nt)),ve==null||ve(),he({configId:gt,content:Z.content||Z.text||"",fileUids:[],lastDate:kt,name:lt,queryId:_e,sessionId:String(ee||""),type:"text",audioUrl:"",enableThinking:!!V.reasoning,enableWebsearch:!!V.netSearch},ot=>{Ne(_e)})}function Ve(ee){ee.restult==1?Tm({url:r,token:n,CSRFToken:i},{queryId:ee.queryId},()=>{Ie(ee.queryId,null)}):Ik({url:r,token:n,CSRFToken:i},{restult:1,queryId:ee.queryId},()=>{Ie(ee.queryId,1)})}function ge(ee){const Z=sa(32),ve={sessionId:Z,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};g(Se=>[{...ve,messages:[]},...Se]),y(Se=>[{id:Z,messages:[],...ve},...Se]),w(Z)}const Ze=ee=>{var _e;const Z=new Set([...T.uploadedFiles.map(Ue=>Ue.file.name),...A.map(Ue=>Ue.file.name)]),ve=[],Se=new Set;Array.from(ee).forEach(Ue=>{Z.has(Ue.name)?Se.add(Ue.name):(ve.push({file:Ue,type:Ok(Ue.name),status:"pending",preview:Ue.type.startsWith("image")?URL.createObjectURL(Ue):void 0}),Z.add(Ue.name))}),Se.size>0&&Wn.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(Se).join(", ")}`),ve.length>0&&(I(Ue=>[...Ue,...ve]),(_e=Q.current)==null||_e.call(Q,ve))},ut=(ee,Z,ve)=>{var Se;(Se=U.current)==null||Se.call(U,ee,Z,ve)};function xt(ee){if(ee!=null&&ee.sessionId&&ee.sessionId!==x){w(ee.sessionId),F(ve=>({...ve,sender:"ready"}));const Z=b.find(ve=>ve.id===ee.sessionId);if(Z&&Z.messages&&Z.messages.length>0){const ve=[...Z.messages].reverse().find(Se=>Se.istype==="ai");ve&&ve.recommendQuestion?S(ve.recommendQuestion):S([])}else S([])}}const It=async ee=>new Promise((Z,ve)=>{Zee({url:r,token:n,CSRFToken:i},{sessionId:ee},Se=>{Se?(Wn.success("\u5220\u9664\u6210\u529F!"),Z(Se)):(Wn.error("\u5220\u9664\u5931\u8D25!"),ve(Se))})}),ze=async()=>{try{const Z=(await yr.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}})).data.data.records||[];return g(Z),Z}catch(ee){throw Wn.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),ee}},Xe=async(ee,Z)=>new Promise((ve,Se)=>{Yee({url:r,token:n,CSRFToken:i},{label:Z,sessionId:ee},_e=>{if(_e){const Ue=Date.now();g(gt=>gt.map(lt=>lt.sessionId===ee?{...lt,label:Z,gmtModified:Ue}:lt)),Wn.success("\u91CD\u547D\u540D\u6210\u529F!"),ve(_e)}else Wn.error("\u91CD\u547D\u540D\u5931\u8D25"),Se(_e)})}),We=ee=>{g(Z=>{const ve=Z.filter(Se=>Se.sessionId!==ee);return x===ee&&(ve.length>0?w(ve[0].sessionId):ge()),ve})},bt=(ee,Z)=>{const ve=Date.now();g(Se=>Se.map(_e=>_e.sessionId===ee?{..._e,label:Z,gmtModified:ve}:_e))},ft=ee=>{Ik({url:r,token:n,CSRFToken:i},{...ee,...J,restult:0},()=>{Ie(J.queryId,0)})},at=ee=>{const Z=ee.new_name,ve=v.data.label;Z&&Z!==ve?v.async_renameConversation(Z).then(()=>{v.fn_renameItemInList(Z),u(!1)}).catch(()=>{}):u(!1)},tt=ee=>{v.async_deleteConversation().then(()=>{v.fn_removeItemFromList(),m(!1)}).catch(()=>{})},qe=(ee,Z)=>{switch(console.log(ee,Z),ee){case"close_remove":m(!1);break;case"close_rename":u(!1);break;case"ok_rename":at(Z);break;case"ok_remove":tt();break}},wt=async({url:ee,params:Z,replacePredataFunction:ve})=>{var Se,_e;try{const Ue=await yr.post(ee,Z,{headers:{Authorization:n}}),gt=(_e=(Se=Ue==null?void 0:Ue.data)==null?void 0:Se.data)==null?void 0:_e.data;gt&&ve(gt)}catch(Ue){console.log("error",Ue)}},Ot=(ee,Z)=>{var ve,Se,_e;switch(console.log(`[Event] ${ee}`,Z),ee){case"retrieve-sql-data:pagingation_click":const{page:Ue,pageSize:gt,fetchUrl:lt,source:mt,replacePredataFunction:kt}=Z;wt({url:`${r}${lt}`,replacePredataFunction:kt,params:{pageNo:Ue,pageSize:gt,convertedFilePath:mt,stream:!1}});break;case"web_referenceFile_title:click":if(!((ve=Z==null?void 0:Z.data)!=null&&ve.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(Z.data.link,"_blank");break;case"conversation:item_click":xt(Z);break;case"files:finished_animation_complete":H([]);break;case"conversation:create":ge();break;case"conversation:new_assistant_change":$(Z.assistantId);break;case"conversations:rename_icon_clicked":h({data:Z,async_renameConversation:ot=>Xe(Z.sessionId,ot),fn_renameItemInList:ot=>bt(Z.sessionId,ot)}),u(!0);break;case"conversations:delete_icon_clicked":h({data:Z,async_deleteConversation:()=>It(Z.sessionId),async_refreshConversationList:ze,fn_removeItemFromList:()=>We(Z.sessionId)}),m(!0);break;case"sender:send":fe(Z,Z.clearFn);break;case"sender:send_recommandQuestion":{const ot=((Z==null?void 0:Z.content)??"").toString();if(!ot)break;fe({content:ot},()=>{});break}case"chatbox:follow_up_question_click":{const ot=((Z==null?void 0:Z.question)??(Z==null?void 0:Z.content)??"").toString();if(!ot)break;fe({content:ot},()=>{});break}case"sender:action_history":_(!0);break;case"sender:stop":de.current=!0,Te&&(Te.abort(),Te=null),De&&(De(),De=null),F(ot=>({...ot,display:"ready",sender:"ready"})),H([]),pe==null||pe();break;case"sender:clear":(Se=Z.clearFn)==null||Se.call(Z);break;case"sender:configChange":Z&&Z.all&&q(Z.all);break;case"action_copy:click":Z&&Uee(Z.content,Z.event);break;case"chatbox:copy":{const ot=(Z==null?void 0:Z.content)||"";if(!ot)break;const Nt=async Qe=>{try{return await navigator.clipboard.writeText(Qe),Wn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},Ee=Qe=>{const Fe=document.createElement("textarea");Fe.value=Qe,Fe.style.position="fixed",Fe.style.opacity="0",document.body.appendChild(Fe),Fe.focus(),Fe.select();try{document.execCommand("copy"),Wn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{Wn.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(Fe)};Nt(ot).then(Qe=>{Qe||Ee(ot)});break}case"chatbox:repeat":console.log(Z,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),$e(Z);break;case"action_thumbsup":Ve(Z);break;case"chatbox:like":Ve({queryId:Z==null?void 0:Z.queryId,restult:Z==null?void 0:Z.result});break;case"action_thumbsdown":Z.restult===0?Tm({url:r,token:n,CSRFToken:i},{queryId:Z.queryId},()=>{Ie(Z.queryId,null)}):(Y(Z),re(!0));break;case"chatbox:dislike":(Z==null?void 0:Z.result)===0?Tm({url:r,token:n,CSRFToken:i},{queryId:Z.queryId},()=>{Ie(Z.queryId,null)}):(Y({queryId:Z==null?void 0:Z.queryId}),re(!0));break;case"action_retrive_tag":a==null||a("action_retrive_tag",Z);break;case"referenceFile_view":a==null||a("referenceFile_view",Z);break;case"referenceFile_question":console.log(Z,"zhezhhzhzh"),a==null||a("referenceFile_question",Z);break;case"referenceFile_download":a==null||a("referenceFile_download",Z);break;case"retrive_tag:click":a==null||a("retrive_tag:click",Z);break;case"fileManager:change":{const ot=Array.isArray(Z==null?void 0:Z.uploadedFiles)?Z.uploadedFiles:[];I(ot),typeof(Z==null?void 0:Z.setUploadedFiles)=="function"&&(Q.current=Z.setUploadedFiles,U.current=Z.removeFile);break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",Z);const ot=(_e=Z==null?void 0:Z.file)==null?void 0:_e.uid;if(!ot){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",Z);break}const Nt=[...ne.messages||[]].reverse().find(Qe=>Qe.istype==="user"),Ee=Nt==null?void 0:Nt.queryId;Jee({url:r,token:n,CSRFToken:i},{uid:ot,queryId:Ee},(Qe,Fe)=>{if(Qe){if(Wn.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),Fe&&Array.isArray(Fe.data&&Fe.data.data)){const Le=Fe.data.data.map(Be=>{var yt;const ht=Be.name||Be.fileName||"";return{file:{name:ht,size:Number((yt=Be.size)==null?void 0:yt.replace("MB",""))*1024*1024||0,type:Be.type},type:Ok(ht),status:"uploaded",url:Be.filePath,convertedFilePath:Be.convertedFilePath,uid:Be.uid,preview:Be.type==="image"?Be.filePath:void 0}});R({uploadedFiles:Le})}}else console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",Fe),Wn.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25")});break}case"uploaded_file:remove_batch":break;default:a==null||a(ee,Z)}},Ge=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:ce(vY,{size:16}),enabled:!0,component:ce(sZ,{data:p,assistantList:E,activedItem:x||"",sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:Ot,styles:l.theme})}],Je=se.useMemo(()=>()=>ce(ite,{eventsEmit:Ot,assistantList:E,styles:l,selectedId:D,onSelectAssistant:L}),[D]),it={...se.useMemo(()=>({AiChatBox:(ee,Z)=>{var lt,mt;const ve=Z===(((lt=ne==null?void 0:ne.messages)==null?void 0:lt.length)||0)-1;let Se="ready";if(ve)if(ee.status!==void 0)switch(ee.status){case 0:Se="thinking";break;case 1:Se="processing";break;case 2:Se="ready";break;case 3:Se="error";break;default:Se=j.display}else Se=j.display;let _e=[];if(Array.isArray(C))_e=C;else if(typeof C=="string")try{_e=JSON.parse(C)||[]}catch{_e=[]}const Ue=(()=>{const kt=ee==null?void 0:ee.reference;if(!kt)return"[]";if(typeof kt=="string")try{return JSON.parse(kt),kt}catch{return"[]"}try{return JSON.stringify(kt)}catch{return"[]"}})(),gt=(()=>{const kt=ee==null?void 0:ee.webReference;if(!kt)return"[]";if(typeof kt=="string")try{return JSON.parse(kt),kt}catch{return"[]"}try{return JSON.stringify(kt)}catch{return"[]"}})();return ce(jb,{...ee,reference:Ue,webReference:gt,contentType:"stream",displayStatus:Se,eventsEmit:Ot,isLast:ve&&(ee==null?void 0:ee.istype)==="ai",followUpQuestions:ve&&(ee==null?void 0:ee.istype)==="ai"?_e:[],defaultAnswer:((mt=ne==null?void 0:ne.searchConfigDTO)==null?void 0:mt.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:xe,styles:l},`${(ee==null?void 0:ee.queryId)||(ee==null?void 0:ee.id)||Z}-${(ee==null?void 0:ee.istype)||"unknown"}`)},LogoBox:ee=>ee&&ee.LogoBox===null?null:ee&&typeof ee.LogoBox=="function"?ce(ee.LogoBox,{}):ce("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>ce($te,{}),DisplayError:()=>ce(Ite,{}),AppError:()=>ce(Ote,{msg:"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25",subMsg:"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),AppLoading:()=>ce(Ete,{}),UserChatBox:(ee,Z)=>ce(jb,{...ee,contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:Ot,styles:l,fileManagerData:T},`${(ee==null?void 0:ee.queryId)||(ee==null?void 0:ee.id)||Z}-user`),WelcomeComponent:Je}),[Je,ne,j.display,Ot,l,xe,T]),...s.CustomComponents||{}};return St(()=>{z(ee=>{const Z=Array.isArray(ee.switchs)?ee.switchs.map(ve=>ve.name==="reasoning"?{...ve,enabled:Pe}:ve):[];return{...ee,switchs:Z}})},[Pe]),pt(BP,{children:[ce(kte,{open:N,onCancel:()=>_(!1),files:T.uploadedFiles,currentFiles:A,onUpload:Ze,onRemoveFile:ut,styles:l,eventsEmit:Ot}),ce(e,{...s,status:j,chatData:ne,sidebar:Ge,recommandQuestions:[],eventsEmit:Ot,styles:l,senderConfig:M,fileUploadStatus:B,CustomComponents:it,activeSessionId:x}),ce(vte,{open:X,feedBackList:le,setOpen:re,handleConfirm:ft}),ce(Fne,{isModalOpen:c,handleOk:qe,handleCancel:()=>qe("close_rename"),data:(v==null?void 0:v.data)||{}}),ce(jne,{isModalOpen:f,handleOk:qe,handleCancel:()=>qe("close_remove"),data:(v==null?void 0:v.data)||{}})]})}}export{pre as default};