@gientech/modual 1.3.3 → 1.3.5

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 (308) hide show
  1. package/README.md +129 -129
  2. package/{dist/assets → assets}/database.svg +11 -11
  3. package/{src/modules/database/assets → assets}/database_add.svg +53 -53
  4. package/{dist/assets → assets}/database_connect.svg +66 -66
  5. package/{dist/assets → assets}/database_upload.svg +29 -29
  6. package/{dist/assets → assets}/defaultWeLogo.svg +14 -14
  7. package/{dist/assets/index-mPgEc8KC.js → assets/index-CDNF071H.js} +38 -38
  8. package/{dist/assets/index-XvC_4jDB.js → assets/index-Ce4td48i.js} +20 -20
  9. package/{dist/assets → assets}/mysql.svg +14 -14
  10. package/chat.js +654 -0
  11. package/database.js +20 -0
  12. package/{dist/databaseId.js → databaseId.js} +1 -1
  13. package/{dist/databaseTable.js → databaseTable.js} +1 -1
  14. package/{dist/modelManage.js → modelManage.js} +1 -1
  15. package/package.json +39 -83
  16. package/{dist/sensitive.js → sensitive.js} +1 -1
  17. package/{dist/streamFilesReader.js → streamFilesReader.js} +10 -10
  18. package/{dist/worker → worker}/pdf.worker.min.js +21 -21
  19. package/.editorconfig +0 -38
  20. package/.prettierignore +0 -16
  21. package/.prettierrc +0 -17
  22. package/USAGE.md +0 -191
  23. package/bash.exe.stackdump +0 -40
  24. package/components.json +0 -21
  25. package/dist/README.md +0 -129
  26. package/dist/assets/database_add.svg +0 -53
  27. package/dist/chat.js +0 -654
  28. package/dist/database.js +0 -20
  29. package/dist/package.json +0 -56
  30. package/doc_assets/2.png +0 -0
  31. package/doc_assets/demo.md +0 -27
  32. package/doc_assets/demos/dist-app/assets/index.Dh-ZAS9Z.css +0 -2
  33. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js +0 -23699
  34. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js.map +0 -1
  35. package/doc_assets/demos/dist-app/index.html +0 -14
  36. package/doc_assets/demos/dist-app/vite.svg +0 -1
  37. package/doc_assets/images/1.png +0 -0
  38. package/doc_assets/images/3.png +0 -0
  39. package/doc_assets/images/component-screenshot.png +0 -1
  40. package/doc_assets/install.md +0 -5
  41. package/eslint.config.js +0 -92
  42. package/index.html +0 -13
  43. package/postcss.config.cjs +0 -19
  44. package/public/vite.svg +0 -1
  45. package/public/worker/pdf.worker.min.js +0 -22
  46. package/scripts/README.md +0 -133
  47. package/scripts/build-demo.js +0 -88
  48. package/scripts/demo-selector.js +0 -216
  49. package/scripts/dev-demo.js +0 -76
  50. package/scripts/preview-demo.js +0 -130
  51. package/scripts/run-demo.bat +0 -34
  52. package/src/assets/img/downArrow.png +0 -0
  53. package/src/assets/img/excel.png +0 -0
  54. package/src/assets/img/img.png +0 -0
  55. package/src/assets/img/pdf.png +0 -0
  56. package/src/assets/img/ppt.png +0 -0
  57. package/src/assets/img/txt.png +0 -0
  58. package/src/assets/img/word.png +0 -0
  59. package/src/assets/login/homeBg.png +0 -0
  60. package/src/assets/login/left.jpg +0 -0
  61. package/src/assets/login/logoImg.png +0 -0
  62. package/src/examples/LoginPage/index.tsx +0 -18
  63. package/src/examples/aaa/index.tsx +0 -3758
  64. package/src/examples/chat/components/DrawerGraphPreview.tsx +0 -78
  65. package/src/examples/chat/index.tsx +0 -190
  66. package/src/examples/gientechStreamFilesReader/index.tsx +0 -1016
  67. package/src/examples/ragDatabaseDataPage/index.tsx +0 -36
  68. package/src/examples/ragDatabaseIdPage/index.tsx +0 -44
  69. package/src/examples/ragDatabasePage/index.tsx +0 -36
  70. package/src/examples/ragModelManagePage/index.tsx +0 -37
  71. package/src/examples/ragSearchPage/index.tsx +0 -0
  72. package/src/examples/ragSensitiveWordsPage/index.tsx +0 -32
  73. package/src/examples/streamFiles/index.tsx +0 -384
  74. package/src/lib_enter.ts +0 -38
  75. package/src/main.tsx +0 -5
  76. package/src/main.tsx.backup +0 -5
  77. package/src/modules/chat/Conversations/Item.tsx +0 -167
  78. package/src/modules/chat/Conversations/List.tsx +0 -143
  79. package/src/modules/chat/Conversations/groupByTime.ts +0 -39
  80. package/src/modules/chat/Conversations/index.tsx +0 -212
  81. package/src/modules/chat/constants.tsx +0 -33
  82. package/src/modules/chat/data.txt +0 -82
  83. package/src/modules/chat/index.tsx +0 -1908
  84. package/src/modules/chat/types.ts +0 -17
  85. package/src/modules/database/CreateModal.tsx +0 -398
  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 +0 -11
  90. package/src/modules/database/assets/database_connect.svg +0 -66
  91. package/src/modules/database/assets/database_upload.svg +0 -29
  92. package/src/modules/database/assets/empty.png +0 -0
  93. package/src/modules/database/assets/mysql.svg +0 -14
  94. package/src/modules/database/index.tsx +0 -466
  95. package/src/modules/database/server.ts +0 -196
  96. package/src/modules/databaseId/CustomCom.tsx +0 -156
  97. package/src/modules/databaseId/EditConfig.tsx +0 -268
  98. package/src/modules/databaseId/UploadDrawer.tsx +0 -520
  99. package/src/modules/databaseId/assets/aiOptimize.svg +0 -10
  100. package/src/modules/databaseId/assets/empty.png +0 -0
  101. package/src/modules/databaseId/assets/template.svg +0 -6
  102. package/src/modules/databaseId/assets/upload.svg +0 -9
  103. package/src/modules/databaseId/assets/useTemp.svg +0 -6
  104. package/src/modules/databaseId/index.tsx +0 -734
  105. package/src/modules/databaseId/server.ts +0 -286
  106. package/src/modules/databaseId/style.css +0 -5
  107. package/src/modules/databaseTable/EditRowDrawer.tsx +0 -119
  108. package/src/modules/databaseTable/index.tsx +0 -357
  109. package/src/modules/databaseTable/server.ts +0 -180
  110. package/src/modules/headlessChat/constants.tsx +0 -32
  111. package/src/modules/headlessChat/index.tsx +0 -1065
  112. package/src/modules/headlessChat/types.ts +0 -23
  113. package/src/modules/login/components/Login/LoginBox/index.tsx +0 -102
  114. package/src/modules/login/components/Login/RegisterBox/index.tsx +0 -180
  115. package/src/modules/login/components/Login/index.tsx +0 -100
  116. package/src/modules/login/index.tsx +0 -106
  117. package/src/modules/login/style.css +0 -3
  118. package/src/modules/login/useServices.ts +0 -53
  119. package/src/modules/login/utils.ts +0 -42
  120. package/src/modules/modelManage/ConfigDrawer.tsx +0 -249
  121. package/src/modules/modelManage/assets/empty.png +0 -0
  122. package/src/modules/modelManage/const.ts +0 -50
  123. package/src/modules/modelManage/index.tsx +0 -439
  124. package/src/modules/modelManage/server.ts +0 -185
  125. package/src/modules/nodegraph/index.tsx +0 -1
  126. package/src/modules/search/assets/Icon-history.svg +0 -8
  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 +0 -9
  131. package/src/modules/search/assets/icon-search-bar.svg +0 -14
  132. package/src/modules/search/assets/icon-sub-title.svg +0 -3
  133. package/src/modules/search/assets/icon-title.svg +0 -9
  134. package/src/modules/search/assets/icon-zoomOut.svg +0 -9
  135. package/src/modules/search/assets/iconAi.svg +0 -9
  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 +0 -3
  139. package/src/modules/search/assets/selected.svg +0 -4
  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 +0 -137
  143. package/src/modules/search/components/Editor/ChatViewEditor.tsx +0 -261
  144. package/src/modules/search/components/Editor/aichat.css +0 -1
  145. package/src/modules/search/components/Editor/constant.ts +0 -13
  146. package/src/modules/search/components/Editor/index.tsx +0 -113
  147. package/src/modules/search/components/Editor/plugins/autofomatRules.ts +0 -332
  148. package/src/modules/search/components/Editor/plugins/convertImgPlugins.tsx +0 -20
  149. package/src/modules/search/components/Editor/plugins/createIndexes.tsx +0 -38
  150. package/src/modules/search/components/Editor/plugins/displayer.ts +0 -298
  151. package/src/modules/search/components/Editor/plugins/imageClick.tsx +0 -32
  152. package/src/modules/search/components/Editor/plugins/myplugin.tsx +0 -98
  153. package/src/modules/search/components/Editor/ui/avatar.tsx +0 -19
  154. package/src/modules/search/components/Editor/ui/blockquote-element.tsx +0 -21
  155. package/src/modules/search/components/Editor/ui/button.tsx +0 -58
  156. package/src/modules/search/components/Editor/ui/calendar.tsx +0 -68
  157. package/src/modules/search/components/Editor/ui/caption.tsx +0 -46
  158. package/src/modules/search/components/Editor/ui/checkbox.tsx +0 -27
  159. package/src/modules/search/components/Editor/ui/code-block-combobox.tsx +0 -188
  160. package/src/modules/search/components/Editor/ui/code-block-element.css +0 -434
  161. package/src/modules/search/components/Editor/ui/code-block-element.tsx +0 -39
  162. package/src/modules/search/components/Editor/ui/code-leaf.tsx +0 -24
  163. package/src/modules/search/components/Editor/ui/code-line-element.tsx +0 -10
  164. package/src/modules/search/components/Editor/ui/code-syntax-leaf.tsx +0 -21
  165. package/src/modules/search/components/Editor/ui/column-element.tsx +0 -30
  166. package/src/modules/search/components/Editor/ui/column-group-element.tsx +0 -94
  167. package/src/modules/search/components/Editor/ui/command.tsx +0 -75
  168. package/src/modules/search/components/Editor/ui/comment-avatar.tsx +0 -22
  169. package/src/modules/search/components/Editor/ui/comment-create-form.tsx +0 -37
  170. package/src/modules/search/components/Editor/ui/comment-item.tsx +0 -74
  171. package/src/modules/search/components/Editor/ui/comment-leaf.tsx +0 -49
  172. package/src/modules/search/components/Editor/ui/comment-more-dropdown.tsx +0 -42
  173. package/src/modules/search/components/Editor/ui/comment-reply-items.tsx +0 -22
  174. package/src/modules/search/components/Editor/ui/comment-resolve-button.tsx +0 -32
  175. package/src/modules/search/components/Editor/ui/comment-value.tsx +0 -34
  176. package/src/modules/search/components/Editor/ui/comments-popover.tsx +0 -63
  177. package/src/modules/search/components/Editor/ui/date-element.tsx +0 -83
  178. package/src/modules/search/components/Editor/ui/dialog.tsx +0 -63
  179. package/src/modules/search/components/Editor/ui/draggable.tsx +0 -177
  180. package/src/modules/search/components/Editor/ui/dropdown-menu.tsx +0 -180
  181. package/src/modules/search/components/Editor/ui/emoji-input-element.tsx +0 -85
  182. package/src/modules/search/components/Editor/ui/excalidraw-element.tsx +0 -28
  183. package/src/modules/search/components/Editor/ui/fixed-toolbar-buttons.tsx +0 -76
  184. package/src/modules/search/components/Editor/ui/fixed-toolbar.tsx +0 -8
  185. package/src/modules/search/components/Editor/ui/floating-toolbar-buttons.tsx +0 -51
  186. package/src/modules/search/components/Editor/ui/floating-toolbar.tsx +0 -77
  187. package/src/modules/search/components/Editor/ui/heading-element.tsx +0 -48
  188. package/src/modules/search/components/Editor/ui/highlight-leaf.tsx +0 -17
  189. package/src/modules/search/components/Editor/ui/hr-element.tsx +0 -30
  190. package/src/modules/search/components/Editor/ui/icons.tsx +0 -267
  191. package/src/modules/search/components/Editor/ui/image-element.tsx +0 -74
  192. package/src/modules/search/components/Editor/ui/inline-combobox.tsx +0 -368
  193. package/src/modules/search/components/Editor/ui/input.tsx +0 -25
  194. package/src/modules/search/components/Editor/ui/insert-dropdown-menu.tsx +0 -218
  195. package/src/modules/search/components/Editor/ui/kbd-leaf.tsx +0 -20
  196. package/src/modules/search/components/Editor/ui/link-element.tsx +0 -29
  197. package/src/modules/search/components/Editor/ui/link-floating-toolbar.tsx +0 -161
  198. package/src/modules/search/components/Editor/ui/list-element.tsx +0 -30
  199. package/src/modules/search/components/Editor/ui/mark-toolbar-button.tsx +0 -24
  200. package/src/modules/search/components/Editor/ui/media-embed-element.tsx +0 -133
  201. package/src/modules/search/components/Editor/ui/media-popover.tsx +0 -97
  202. package/src/modules/search/components/Editor/ui/mention-element.tsx +0 -43
  203. package/src/modules/search/components/Editor/ui/mention-input-element.tsx +0 -141
  204. package/src/modules/search/components/Editor/ui/mode-dropdown-menu.tsx +0 -93
  205. package/src/modules/search/components/Editor/ui/more-dropdown-menu.tsx +0 -67
  206. package/src/modules/search/components/Editor/ui/paragraph-element.tsx +0 -4
  207. package/src/modules/search/components/Editor/ui/placeholder.tsx +0 -52
  208. package/src/modules/search/components/Editor/ui/popover.tsx +0 -32
  209. package/src/modules/search/components/Editor/ui/resizable.tsx +0 -66
  210. package/src/modules/search/components/Editor/ui/separator.tsx +0 -25
  211. package/src/modules/search/components/Editor/ui/style.less +0 -12
  212. package/src/modules/search/components/Editor/ui/table-cell-element.tsx +0 -143
  213. package/src/modules/search/components/Editor/ui/table-element.tsx +0 -243
  214. package/src/modules/search/components/Editor/ui/table-row-element.tsx +0 -22
  215. package/src/modules/search/components/Editor/ui/tableValue.tsx +0 -135
  216. package/src/modules/search/components/Editor/ui/todo-list-element.tsx +0 -43
  217. package/src/modules/search/components/Editor/ui/toggle-element.tsx +0 -31
  218. package/src/modules/search/components/Editor/ui/toolbar.tsx +0 -157
  219. package/src/modules/search/components/Editor/ui/tooltip.tsx +0 -65
  220. package/src/modules/search/components/Editor/ui/turn-into-dropdown-menu.tsx +0 -160
  221. package/src/modules/search/components/Editor/ui/with-draggables.tsx +0 -175
  222. package/src/modules/search/components/FileList.tsx +0 -287
  223. package/src/modules/search/components/ImageGroupView/index.tsx +0 -85
  224. package/src/modules/search/components/ResultContent.tsx +0 -232
  225. package/src/modules/search/components/SearchInput.tsx +0 -232
  226. package/src/modules/search/components/SearchLanding.tsx +0 -74
  227. package/src/modules/search/components/SearchView.tsx +0 -563
  228. package/src/modules/search/components/SimpleEditor.tsx +0 -158
  229. package/src/modules/search/components/SimpleFileList.tsx +0 -215
  230. package/src/modules/search/index.tsx +0 -10
  231. package/src/modules/search/reademe.md +0 -1
  232. package/src/modules/search/servers/apis.tsx +0 -19
  233. package/src/modules/search/servers/index.ts +0 -184
  234. package/src/modules/search/style.less +0 -503
  235. package/src/modules/search/type.ts +0 -22
  236. package/src/modules/search/utils.ts +0 -34
  237. package/src/modules/sensitive/index.tsx +0 -313
  238. package/src/modules/sensitive/server.ts +0 -122
  239. package/src/modules/streamFilesReader/GientechStreamReader.tsx +0 -1555
  240. package/src/modules/streamFilesReader/components/Header/Toolbar.tsx +0 -0
  241. package/src/modules/streamFilesReader/components/Header/index.tsx +0 -297
  242. package/src/modules/streamFilesReader/index.tsx +0 -3
  243. package/src/style.css +0 -6
  244. package/src/type.d.ts +0 -0
  245. package/src/utils/commonFn.tsx +0 -111
  246. package/src/utils/gientechCommon/components/AppError.tsx +0 -32
  247. package/src/utils/gientechCommon/components/AppLoading.tsx +0 -75
  248. package/src/utils/gientechCommon/components/DeleteModal.tsx +0 -75
  249. package/src/utils/gientechCommon/components/DisplayError.tsx +0 -33
  250. package/src/utils/gientechCommon/components/DisplayLoading.tsx +0 -38
  251. package/src/utils/gientechCommon/components/FeedBackModal.tsx +0 -310
  252. package/src/utils/gientechCommon/components/FileCardCommon.tsx +0 -82
  253. package/src/utils/gientechCommon/components/FileManager/index.tsx +0 -390
  254. package/src/utils/gientechCommon/components/FileManager/style.css +0 -5
  255. package/src/utils/gientechCommon/components/Messages/GientechNewChatWelcome.tsx +0 -296
  256. package/src/utils/gientechCommon/components/Messages/ReferenceCard.tsx +0 -339
  257. package/src/utils/gientechCommon/components/Messages/RetriveItem.tsx +0 -245
  258. package/src/utils/gientechCommon/components/Messages/WebRetriveItem.tsx +0 -209
  259. package/src/utils/gientechCommon/components/Messages/defaultBot.png +0 -0
  260. package/src/utils/gientechCommon/components/Messages/defaultStyleSet.tsx +0 -148
  261. package/src/utils/gientechCommon/components/Messages/defaultWeLogo.svg +0 -14
  262. package/src/utils/gientechCommon/components/RenameModal.tsx +0 -86
  263. package/src/utils/gientechCommon/components/style.less +0 -11
  264. package/src/utils/gientechCommon/configs/commonConfig.ts +0 -2
  265. package/src/utils/gientechCommon/configs/senderConfig.ts +0 -0
  266. package/src/utils/gientechCommon/configs/stylesConfig.ts +0 -142
  267. package/src/utils/gientechCommon/hooks/AichatUseController.tsx +0 -345
  268. package/src/utils/gientechCommon/slate/converters/deserializers.ts +0 -763
  269. package/src/utils/gientechCommon/slate/converters/mockData.ts +0 -232
  270. package/src/utils/gientechCommon/slate/converters/slateConverters.ts +0 -258
  271. package/src/utils/gientechCommon/slate/richElements/index.tsx +0 -499
  272. package/src/utils/gientechCommon/utils/request.ts +0 -37
  273. package/src/utils/gientechCommon/utils/serverFn.ts +0 -172
  274. package/src/utils/index.tsx +0 -126
  275. package/src/utils/testconfigs/demologin/index.tsx +0 -32
  276. package/src/utils/testconfigs/index.ts +0 -53
  277. package/src/vite-env.d.ts +0 -11
  278. package/stats.html +0 -4949
  279. package/tailwind.config.js +0 -170
  280. package/tsconfig.app.json +0 -30
  281. package/tsconfig.app.tsbuildinfo +0 -11
  282. package/tsconfig.json +0 -13
  283. package/tsconfig.node.json +0 -22
  284. package/tsconfig.node.tsbuildinfo +0 -1
  285. package/vite.config.ts +0 -177
  286. package/workflows/release.yml +0 -60
  287. /package/{dist/assets → assets}/Doris.png +0 -0
  288. /package/{dist/assets → assets}/PostgreSQL.png +0 -0
  289. /package/{dist/assets → assets}/SQLServer.png +0 -0
  290. /package/{dist/assets → assets}/_commonjsHelpers-gnU0ypJ3.js +0 -0
  291. /package/{dist/assets → assets}/circle-alert-g2Y6zAjt.js +0 -0
  292. /package/{dist/assets → assets}/empty.png +0 -0
  293. /package/{dist/assets → assets}/index-CEK88UzR.js +0 -0
  294. /package/{dist/assets → assets}/index-CpW6Dhpp.js +0 -0
  295. /package/{dist/assets → assets}/plus-omCUN0e3.js +0 -0
  296. /package/{dist/assets → assets}/style.css +0 -0
  297. /package/{dist/assets → assets}/style2.css +0 -0
  298. /package/{dist/assets → assets}/style3.css +0 -0
  299. /package/{dist/assets → assets}/styled-components.browser.esm-DPkS13KC.js +0 -0
  300. /package/{dist/assets → assets}/x-vPcWt3fC.js +0 -0
  301. /package/{dist/chat.d.ts → chat.d.ts} +0 -0
  302. /package/{dist/database.d.ts → database.d.ts} +0 -0
  303. /package/{dist/databaseId.d.ts → databaseId.d.ts} +0 -0
  304. /package/{dist/databaseTable.d.ts → databaseTable.d.ts} +0 -0
  305. /package/{dist/modelManage.d.ts → modelManage.d.ts} +0 -0
  306. /package/{dist/sensitive.d.ts → sensitive.d.ts} +0 -0
  307. /package/{dist/streamFilesReader.d.ts → streamFilesReader.d.ts} +0 -0
  308. /package/{dist/vite.svg → vite.svg} +0 -0
package/dist/chat.js DELETED
@@ -1,654 +0,0 @@
1
- import{jsx as re,jsxs as rt,Fragment as RS}from"react/jsx-runtime";import*as d from"react";import fe,{forwardRef as zr,createElement as Aa,createContext as Hr,version as Fb,useMemo as Gt,useContext as Kt,useState as ht,useRef as Ze,Children as Nb,useEffect as vt,useCallback as rg,useImperativeHandle as Qa,useLayoutEffect as jb,cloneElement as Pb,isValidElement as yp,PureComponent as TS,Component as DS}from"react";import Un from"axios";import{c as io,I as un,i as xp,C as _S,g as BS}from"./assets/index-CEK88UzR.js";import*as Ab from"react-dom";import Sl,{flushSync as ed,createPortal as wp,unstable_batchedUpdates as zS}from"react-dom";import{I as og}from"./assets/index-XvC_4jDB.js";import{Dropdown as HS,message as xn,Popover as LS,Input as El,Form as xo,ConfigProvider as Cp,Modal as Ql,Button as _r,Tree as VS,Tag as WS,Popconfirm as qS,Upload as US,Skeleton as $s}from"antd";import{u as Jo}from"./assets/index-CpW6Dhpp.js";/* empty css */import{g as Sp}from"./assets/_commonjsHelpers-gnU0ypJ3.js";import{P as Rb}from"./assets/plus-omCUN0e3.js";import{X as Ep}from"./assets/x-vPcWt3fC.js";import{C as YS}from"./assets/circle-alert-g2Y6zAjt.js";/**
2
- * @license lucide-react v0.456.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const XS=io("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"}]]);/**
7
- * @license lucide-react v0.456.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const GS=io("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"}]]);/**
12
- * @license lucide-react v0.456.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const Yc=io("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"}]]);/**
17
- * @license lucide-react v0.456.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const KS=io("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"}]]);/**
22
- * @license lucide-react v0.456.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const QS=io("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"}]]);/**
27
- * @license lucide-react v0.456.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const ZS=io("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"}]]);/**
32
- * @license lucide-react v0.456.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const Tb=io("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"}]]);/**
37
- * @license lucide-react v0.456.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */const JS=io("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
42
- * @license lucide-react v0.456.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const eE=io("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"}]]);function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ag={exports:{}},vi={};/**
47
- * @license React
48
- * react-jsx-runtime.production.min.js
49
- *
50
- * Copyright (c) Facebook, Inc. and its affiliates.
51
- *
52
- * This source code is licensed under the MIT license found in the
53
- * LICENSE file in the root directory of this source tree.
54
- */var ig;function tE(){if(ig)return vi;ig=1;var e=fe,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,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var u,f={},p=null,v=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)r.call(l,u)&&!a.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:p,ref:v,props:f,_owner:o.current}}return vi.Fragment=n,vi.jsx=i,vi.jsxs=i,vi}var sg;function nE(){return sg||(sg=1,ag.exports=tE()),ag.exports}var le=nE();const rE={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"},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"}},oE={sm:"240px",md:"260px",lg:"280px"},td={sm:"12px",md:"16px",lg:"20px"},Db={sm:"2px",md:"4px",lg:"8px"},aE={sm:"4px",md:"8px",lg:"16px"},iE={sm:"4px",md:"8px",lg:"16px"},sE={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},lE={sm:"1.2",md:"1.5",lg:"2"};/**
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 cE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_b=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
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
- */var uE={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"};/**
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
- */const dE=zr(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>Aa("svg",{ref:l,...uE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_b("lucide",o),...s},[...i.map(([c,u])=>Aa(c,u)),...Array.isArray(a)?a:[a]]));/**
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
- */const Lr=(e,t)=>{const n=zr(({className:r,...o},a)=>Aa(dE,{ref:a,iconNode:t,className:_b(`lucide-${cE(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
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
- */const fE=Lr("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"}]]);/**
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 pE=Lr("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 mE=Lr("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"}]]);/**
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 gE=Lr("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
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 hE=Lr("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"}]]);/**
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
- */const lg=Lr("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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
- */const vE=Lr("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"}]]);/**
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
- */const bE=Lr("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"}]]);/**
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 yE=Lr("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"}]]);/**
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
- */const xE=Lr("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"}]]);/**
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
- */const Bb=Lr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var zb={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},$p={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},wE=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],$l={CSS:{},springs:{}};function Xr(e,t,n){return Math.min(Math.max(e,t),n)}function Fi(e,t){return e.indexOf(t)>-1}function Xc(e,t){return e.apply(null,t)}var wt={arr:function(e){return Array.isArray(e)},obj:function(e){return Fi(Object.prototype.toString.call(e),"Object")},pth:function(e){return wt.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||wt.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 wt.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 wt.hex(e)||wt.rgb(e)||wt.hsl(e)},key:function(e){return!zb.hasOwnProperty(e)&&!$p.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function Hb(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function Lb(e,t){var n=Hb(e),r=Xr(wt.und(n[0])?1:n[0],.1,100),o=Xr(wt.und(n[1])?100:n[1],.1,100),a=Xr(wt.und(n[2])?10:n[2],.1,100),i=Xr(wt.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/r),l=a/(2*Math.sqrt(o*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,f=l<1?(l*s+-i)/c:-i+s;function p(h){var g=t?t*h/1e3:h;return l<1?g=Math.exp(-g*l*s)*(u*Math.cos(c*g)+f*Math.sin(c*g)):g=(u+f*g)*Math.exp(-g*s),h===0||h===1?h:1-g}function v(){var h=$l.springs[e];if(h)return h;for(var g=1/6,m=0,b=0;;)if(m+=g,p(m)===1){if(b++,b>=16)break}else b=0;var y=m*g*1e3;return $l.springs[e]=y,y}return t?p:v}function CE(e){return e===void 0&&(e=10),function(t){return Math.ceil(Xr(t,1e-6,1)*e)*(1/e)}}var SE=(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 a(u,f,p){return((n(f,p)*u+r(f,p))*u+o(f))*u}function i(u,f,p){return 3*n(f,p)*u*u+2*r(f,p)*u+o(f)}function s(u,f,p,v,h){var g,m,b=0;do m=f+(p-f)/2,g=a(m,v,h)-u,g>0?p=m:f=m;while(Math.abs(g)>1e-7&&++b<10);return m}function l(u,f,p,v){for(var h=0;h<4;++h){var g=i(f,p,v);if(g===0)return f;var m=a(f,p,v)-u;f-=m/g}return f}function c(u,f,p,v){if(!(0<=u&&u<=1&&0<=p&&p<=1))return;var h=new Float32Array(e);if(u!==f||p!==v)for(var g=0;g<e;++g)h[g]=a(g*t,u,p);function m(b){for(var y=0,x=1,C=e-1;x!==C&&h[x]<=b;++x)y+=t;--x;var w=(b-h[x])/(h[x+1]-h[x]),E=y+w*t,S=i(E,u,p);return S>=.001?l(b,E,u,p):S===0?E:s(b,y,y+t,u,p)}return function(b){return u===f&&p===v||b===0||b===1?b:a(m(b),f,v)}}return c})(),Vb=(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,a=4;r<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-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 a=Xr(r,1,10),i=Xr(o,.1,2);return function(s){return s===0||s===1?s:-a*Math.pow(2,10*(s-1))*Math.sin((s-1-i/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,o){t[r]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(r){var o=t[r];e["easeIn"+r]=o,e["easeOut"+r]=function(a,i){return function(s){return 1-o(a,i)(1-s)}},e["easeInOut"+r]=function(a,i){return function(s){return s<.5?o(a,i)(s*2)/2:1-o(a,i)(s*-2+2)/2}},e["easeOutIn"+r]=function(a,i){return function(s){return s<.5?(1-o(a,i)(1-s*2))/2:(o(a,i)(s*2-1)+1)/2}}}),e})();function kp(e,t){if(wt.fnc(e))return e;var n=e.split("(")[0],r=Vb[n],o=Hb(e);switch(n){case"spring":return Lb(e,t);case"cubicBezier":return Xc(SE,o);case"steps":return Xc(CE,o);default:return Xc(r,o)}}function Wb(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Zl(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function Jl(e){return e.reduce(function(t,n){return t.concat(wt.arr(n)?Jl(n):n)},[])}function cg(e){return wt.arr(e)?e:(wt.str(e)&&(e=Wb(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Op(e,t){return e.some(function(n){return n===t})}function Ip(e){var t={};for(var n in e)t[n]=e[n];return t}function nd(e,t){var n=Ip(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function ec(e,t){var n=Ip(e);for(var r in t)n[r]=wt.und(e[r])?t[r]:e[r];return n}function EE(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function $E(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),a=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+o+","+a+","+i+",1)"}function kE(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,a=t[4]||1;function i(p,v,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?p+(v-p)*6*h:h<1/2?v:h<2/3?p+(v-p)*(2/3-h)*6:p}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=i(f,u,n+1/3),l=i(f,u,n),c=i(f,u,n-1/3)}return"rgba("+s*255+","+l*255+","+c*255+","+a+")"}function OE(e){if(wt.rgb(e))return EE(e);if(wt.hex(e))return $E(e);if(wt.hsl(e))return kE(e)}function no(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 IE(e){if(Fi(e,"translate")||e==="perspective")return"px";if(Fi(e,"rotate")||Fi(e,"skew"))return"deg"}function rd(e,t){return wt.fnc(e)?e(t.target,t.id,t.total):e}function Gr(e,t){return e.getAttribute(t)}function Mp(e,t,n){var r=no(t);if(Op([n,"deg","rad","turn"],r))return t;var o=$l.CSS[t+n];if(!wt.und(o))return o;var a=100,i=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(i),i.style.position="absolute",i.style.width=a+n;var l=a/i.offsetWidth;s.removeChild(i);var c=l*parseFloat(t);return $l.CSS[t+n]=c,c}function qb(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?Mp(e,o,n):o}}function Fp(e,t){if(wt.dom(e)&&!wt.inp(e)&&(!wt.nil(Gr(e,t))||wt.svg(e)&&e[t]))return"attribute";if(wt.dom(e)&&Op(wE,t))return"transform";if(wt.dom(e)&&t!=="transform"&&qb(e,t))return"css";if(e[t]!=null)return"object"}function Ub(e){if(wt.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 ME(e,t,n,r){var o=Fi(t,"scale")?1:0+IE(t),a=Ub(e).get(t)||o;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?Mp(e,a,r):a}function Np(e,t,n,r){switch(Fp(e,t)){case"transform":return ME(e,t,r,n);case"css":return qb(e,t,n);case"attribute":return Gr(e,t);default:return e[t]||0}}function jp(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=no(e)||0,o=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function Yb(e,t){if(wt.col(e))return OE(e);if(/\s/g.test(e))return e;var n=no(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Pp(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function FE(e){return Math.PI*2*Gr(e,"r")}function NE(e){return Gr(e,"width")*2+Gr(e,"height")*2}function jE(e){return Pp({x:Gr(e,"x1"),y:Gr(e,"y1")},{x:Gr(e,"x2"),y:Gr(e,"y2")})}function Xb(e){for(var t=e.points,n=0,r,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(n+=Pp(r,a)),r=a}return n}function PE(e){var t=e.points;return Xb(e)+Pp(t.getItem(t.numberOfItems-1),t.getItem(0))}function Gb(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return FE(e);case"rect":return NE(e);case"line":return jE(e);case"polyline":return Xb(e);case"polygon":return PE(e)}}function AE(e){var t=Gb(e);return e.setAttribute("stroke-dasharray",t),t}function RE(e){for(var t=e.parentNode;wt.svg(t)&&wt.svg(t.parentNode);)t=t.parentNode;return t}function Kb(e,t){var n=t||{},r=n.el||RE(e),o=r.getBoundingClientRect(),a=Gr(r,"viewBox"),i=o.width,s=o.height,l=n.viewBox||(a?a.split(" "):[0,0,i,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:i,h:s,vW:l[2],vH:l[3]}}function TE(e,t){var n=wt.str(e)?Wb(e)[0]:e,r=t||100;return function(o){return{property:o,el:n,svg:Kb(n),totalLength:Gb(n)*(r/100)}}}function DE(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=Kb(e.el,e.svg),a=r(),i=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(a.x-o.x)*l;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(s.y-i.y,s.x-i.x)*180/Math.PI}}function ug(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Yb(wt.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:wt.str(e)||t?r.split(n):[]}}function Ap(e){var t=e?Jl(wt.arr(e)?e.map(cg):cg(e)):[];return Zl(t,function(n,r,o){return o.indexOf(n)===r})}function Qb(e){var t=Ap(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:Ub(n)}}})}function _E(e,t){var n=Ip(t);if(/^spring/.test(n.easing)&&(n.duration=Lb(n.easing)),wt.arr(e)){var r=e.length,o=r===2&&!wt.obj(e[0]);o?e={value:e}:wt.fnc(t.duration)||(n.duration=t.duration/r)}var a=wt.arr(e)?e:[e];return a.map(function(i,s){var l=wt.obj(i)&&!wt.pth(i)?i:{value:i};return wt.und(l.delay)&&(l.delay=s?0:t.delay),wt.und(l.endDelay)&&(l.endDelay=s===a.length-1?t.endDelay:0),l}).map(function(i){return ec(i,n)})}function BE(e){for(var t=Zl(Jl(e.map(function(a){return Object.keys(a)})),function(a){return wt.key(a)}).reduce(function(a,i){return a.indexOf(i)<0&&a.push(i),a},[]),n={},r=function(a){var i=t[a];n[i]=e.map(function(s){var l={};for(var c in s)wt.key(c)?c==i&&(l.value=s[c]):l[c]=s[c];return l})},o=0;o<t.length;o++)r(o);return n}function zE(e,t){var n=[],r=t.keyframes;r&&(t=ec(BE(r),t));for(var o in t)wt.key(o)&&n.push({name:o,tweens:_E(t[o],e)});return n}function HE(e,t){var n={};for(var r in e){var o=rd(e[r],t);wt.arr(o)&&(o=o.map(function(a){return rd(a,t)}),o.length===1&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function LE(e,t){var n;return e.tweens.map(function(r){var o=HE(r,t),a=o.value,i=wt.arr(a)?a[1]:a,s=no(i),l=Np(t.target,e.name,s,t),c=n?n.to.original:l,u=wt.arr(a)?a[0]:c,f=no(u)||no(l),p=s||f;return wt.und(i)&&(i=c),o.from=ug(u,p),o.to=ug(jp(i,u),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=kp(o.easing,o.duration),o.isPath=wt.pth(a),o.isPathTargetInsideSVG=o.isPath&&wt.svg(t.target),o.isColor=wt.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}var Zb={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 a="";r.list.forEach(function(i,s){a+=s+"("+i+") "}),e.style.transform=a}}};function Jb(e,t){var n=Qb(e);n.forEach(function(r){for(var o in t){var a=rd(t[o],r),i=r.target,s=no(a),l=Np(i,o,s,r),c=s||no(l),u=jp(Yb(a,c),l),f=Fp(i,o);Zb[f](i,o,u,r.transforms,!0)}})}function VE(e,t){var n=Fp(e.target,t.name);if(n){var r=LE(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 WE(e,t){return Zl(Jl(e.map(function(n){return t.map(function(r){return VE(n,r)})})),function(n){return!wt.und(n)})}function ey(e,t){var n=e.length,r=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(a){return r(a)+a.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(a){return r(a)+a.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(a){return r(a)+a.duration-a.endDelay})):t.endDelay,o}var dg=0;function qE(e){var t=nd(zb,e),n=nd($p,e),r=zE(n,e),o=Qb(e.targets),a=WE(o,r),i=ey(a,n),s=dg;return dg++,ec(t,{id:s,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var Pr=[],ty=(function(){var e;function t(){!e&&(!fg()||!nn.suspendWhenDocumentHidden)&&Pr.length>0&&(e=requestAnimationFrame(n))}function n(o){for(var a=Pr.length,i=0;i<a;){var s=Pr[i];s.paused?(Pr.splice(i,1),a--):(s.tick(o),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){nn.suspendWhenDocumentHidden&&(fg()?e=cancelAnimationFrame(e):(Pr.forEach(function(o){return o._onDocumentVisibility()}),ty()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function fg(){return!!document&&document.hidden}function nn(e){e===void 0&&(e={});var t=0,n=0,r=0,o,a=0,i=null;function s(y){var x=window.Promise&&new Promise(function(C){return i=C});return y.finished=x,x}var l=qE(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/nn.speed)}function p(y,x){x&&x.seek(y-x.timelineOffset)}function v(y){if(l.reversePlayback)for(var x=a;x--;)p(y,o[x]);else for(var C=0;C<a;C++)p(y,o[C])}function h(y){for(var x=0,C=l.animations,w=C.length;x<w;){var E=C[x],S=E.animatable,$=E.tweens,O=$.length-1,k=$[O];O&&(k=Zl($,function(L){return y<L.end})[0]||k);for(var M=Xr(y-k.start-k.delay,0,k.duration)/k.duration,j=isNaN(M)?1:k.easing(M),R=k.to.strings,I=k.round,N=[],F=k.to.numbers.length,A=void 0,P=0;P<F;P++){var z=void 0,H=k.to.numbers[P],V=k.from.numbers[P]||0;k.isPath?z=DE(k.value,j*H,k.isPathTargetInsideSVG):z=V+j*(H-V),I&&(k.isColor&&P>2||(z=Math.round(z*I)/I)),N.push(z)}var T=R.length;if(!T)A=N[0];else{A=R[0];for(var _=0;_<T;_++){var D=R[_+1],B=N[_];isNaN(B)||(D?A+=B+D:A+=B+" ")}}Zb[E.type](S.target,E.property,A,S.transforms),E.currentValue=A,x++}}function g(y){l[y]&&!l.passThrough&&l[y](l)}function m(){l.remaining&&l.remaining!==!0&&l.remaining--}function b(y){var x=l.duration,C=l.delay,w=x-l.endDelay,E=u(y);l.progress=Xr(E/x*100,0,100),l.reversePlayback=E<l.currentTime,o&&v(E),!l.began&&l.currentTime>0&&(l.began=!0,g("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,g("loopBegin")),E<=C&&l.currentTime!==0&&h(0),(E>=w&&l.currentTime!==x||!x)&&h(x),E>C&&E<w?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,g("changeBegin")),g("change"),h(E)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,g("changeComplete")),l.currentTime=Xr(E,0,x),l.began&&g("update"),y>=x&&(n=0,m(),l.remaining?(t=r,g("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&c()):(l.paused=!0,l.completed||(l.completed=!0,g("loopComplete"),g("complete"),!l.passThrough&&"Promise"in window&&(i(),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,a=o.length;for(var x=a;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 Jb(y,x),l},l.tick=function(y){r=y,t||(t=r),b((r+(n-t))*nn.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,Pr.push(l),f(),ty())},l.reverse=function(){c(),l.completed=!l.reversed,f()},l.restart=function(){l.reset(),l.play()},l.remove=function(y){var x=Ap(y);ny(x,l)},l.reset(),l.autoplay&&l.play(),l}function pg(e,t){for(var n=t.length;n--;)Op(e,t[n].animatable.target)&&t.splice(n,1)}function ny(e,t){var n=t.animations,r=t.children;pg(e,n);for(var o=r.length;o--;){var a=r[o],i=a.animations;pg(e,i),!i.length&&!a.children.length&&r.splice(o,1)}!n.length&&!r.length&&t.pause()}function UE(e){for(var t=Ap(e),n=Pr.length;n--;){var r=Pr[n];ny(t,r)}}function YE(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?kp(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,s=i==="first",l=i==="center",c=i==="last",u=wt.arr(e),f=parseFloat(u?e[0]:e),p=u?parseFloat(e[1]):0,v=no(u?e[1]:e)||0,h=t.start||0+(u?f:0),g=[],m=0;return function(b,y,x){if(s&&(i=0),l&&(i=(x-1)/2),c&&(i=x-1),!g.length){for(var C=0;C<x;C++){if(!o)g.push(Math.abs(i-C));else{var w=l?(o[0]-1)/2:i%o[0],E=l?(o[1]-1)/2:Math.floor(i/o[0]),S=C%o[0],$=Math.floor(C/o[0]),O=w-S,k=E-$,M=Math.sqrt(O*O+k*k);a==="x"&&(M=-O),a==="y"&&(M=-k),g.push(M)}m=Math.max.apply(Math,g)}r&&(g=g.map(function(R){return r(R/m)*m})),n==="reverse"&&(g=g.map(function(R){return a?R<0?R*-1:-R:Math.abs(m-R)}))}var j=u?(p-f)/m:f;return h+j*(Math.round(g[y]*100)/100)+v}}function XE(e){e===void 0&&(e={});var t=nn(e);return t.duration=0,t.add=function(n,r){var o=Pr.indexOf(t),a=t.children;o>-1&&Pr.splice(o,1);function i(p){p.passThrough=!0}for(var s=0;s<a.length;s++)i(a[s]);var l=ec(n,nd($p,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=wt.und(r)?c:jp(r,c),i(t),t.seek(l.timelineOffset);var u=nn(l);i(u),a.push(u);var f=ey(a,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}nn.version="3.2.1";nn.speed=1;nn.suspendWhenDocumentHidden=!0;nn.running=Pr;nn.remove=UE;nn.get=Np;nn.set=Jb;nn.convertPx=Mp;nn.path=TE;nn.setDashoffset=AE;nn.stagger=YE;nn.timeline=XE;nn.easing=kp;nn.penner=Vb;nn.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const GE=Hr({badgeCounts:{},updateBadgeCount:()=>{}}),KE=()=>{const e=Kt(GE);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var mg={exports:{}};/*!
130
- Copyright (c) 2018 Jed Watson.
131
- Licensed under the MIT License (MIT), see
132
- http://jedwatson.github.io/classnames
133
- */var gg;function QE(){return gg||(gg=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mg)),mg.exports}var ZE=QE();const pe=so(ZE);function Ke(){return Ke=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},Ke.apply(null,arguments)}function pt(e){"@babel/helpers - typeof";return pt=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},pt(e)}var JE=Symbol.for("react.element"),e2=Symbol.for("react.transitional.element"),t2=Symbol.for("react.fragment");function ry(e){return e&&pt(e)==="object"&&(e.$$typeof===JE||e.$$typeof===e2)&&e.type===t2}function Ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Ha(r)):ry(r)&&r.props?n=n.concat(Ha(r.props.children,t)):n.push(r))}),n}var od={},n2=function(e){};function r2(e,t){}function o2(e,t){}function a2(){od={}}function oy(e,t,n){!t&&!od[n]&&(e(!1,n),od[n]=!0)}function An(e,t){oy(r2,e,t)}function i2(e,t){oy(o2,e,t)}An.preMessage=n2;An.resetWarned=a2;An.noteOnce=i2;function s2(e,t){if(pt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ay(e){var t=s2(e,"string");return pt(t)=="symbol"?t:t+""}function Q(e,t,n){return(t=ay(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(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 Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(n),!0).forEach(function(r){Q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bi(e){return e instanceof HTMLElement||e instanceof SVGElement}function iy(e){return e&&pt(e)==="object"&&Bi(e.nativeElement)?e.nativeElement:Bi(e)?e:null}function nl(e){var t=iy(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Sl.findDOMNode)===null||n===void 0?void 0:n.call(Sl,e)}return null}var vg={exports:{}},Zt={};/**
134
- * @license React
135
- * react-is.production.min.js
136
- *
137
- * Copyright (c) Facebook, Inc. and its affiliates.
138
- *
139
- * This source code is licensed under the MIT license found in the
140
- * LICENSE file in the root directory of this source tree.
141
- */var bg;function l2(){if(bg)return Zt;bg=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"),a=Symbol.for("react.provider"),i=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"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case p:case f:case a:return m;default:return b}}case t:return b}}}return Zt.ContextConsumer=i,Zt.ContextProvider=a,Zt.Element=e,Zt.ForwardRef=l,Zt.Fragment=n,Zt.Lazy=p,Zt.Memo=f,Zt.Portal=t,Zt.Profiler=o,Zt.StrictMode=r,Zt.Suspense=c,Zt.SuspenseList=u,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(m){return g(m)===i},Zt.isContextProvider=function(m){return g(m)===a},Zt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Zt.isForwardRef=function(m){return g(m)===l},Zt.isFragment=function(m){return g(m)===n},Zt.isLazy=function(m){return g(m)===p},Zt.isMemo=function(m){return g(m)===f},Zt.isPortal=function(m){return g(m)===t},Zt.isProfiler=function(m){return g(m)===o},Zt.isStrictMode=function(m){return g(m)===r},Zt.isSuspense=function(m){return g(m)===c},Zt.isSuspenseList=function(m){return g(m)===u},Zt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},Zt.typeOf=g,Zt}var yg;function c2(){return yg||(yg=1,vg.exports=l2()),vg.exports}var Gc=c2();function tc(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 u2=Number(Fb.split(".")[0]),Rp=function(e,t){typeof e=="function"?e(t):pt(e)==="object"&&e&&"current"in e&&(e.current=t)},$r=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(a){Rp(a,o)})}},ls=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tc(function(){return $r.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})},Za=function(e){var t,n;if(!e)return!1;if(sy(e)&&u2>=19)return!0;var r=Gc.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Gc.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Gc.ForwardRef)};function sy(e){return yp(e)&&!ry(e)}var cs=function(e){if(e&&sy(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ad=d.createContext(null);function d2(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),a=d.useContext(ad),i=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=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(ad.Provider,{value:i},t)}var ly=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!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,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t})()})(),id=typeof window<"u"&&typeof document<"u"&&window.document===document,kl=(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")()})(),f2=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(kl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),p2=2;function m2(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){f2(a)}function s(){var l=Date.now();if(n){if(l-o<p2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=l}return s}var g2=20,h2=["top","right","bottom","left","width","height","size","weight"],v2=typeof MutationObserver<"u",b2=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m2(this.refresh.bind(this),g2)}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(){!id||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v2?(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(){!id||!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=h2.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),cy=(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}),La=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||kl}),uy=nc(0,0,0,0);function Ol(e){return parseFloat(e)||0}function xg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Ol(a)},0)}function y2(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Ol(i)}return n}function x2(e){var t=e.getBBox();return nc(0,0,t.width,t.height)}function w2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return uy;var r=La(e).getComputedStyle(e),o=y2(r),a=o.left+o.right,i=o.top+o.bottom,s=Ol(r.width),l=Ol(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=xg(r,"left","right")+a),Math.round(l+i)!==n&&(l-=xg(r,"top","bottom")+i)),!S2(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return nc(o.left,o.top,s,l)}var C2=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof La(e).SVGGraphicsElement}:function(e){return e instanceof La(e).SVGElement&&typeof e.getBBox=="function"}})();function S2(e){return e===La(e).document.documentElement}function E2(e){return id?C2(e)?x2(e):w2(e):uy}function $2(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return cy(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function nc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k2=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=E2(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})(),O2=(function(){function e(t,n){var r=$2(n);cy(this,{target:t,contentRect:r})}return e})(),I2=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new ly,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 La(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new k2(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 La(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 O2(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})(),dy=typeof WeakMap<"u"?new WeakMap:new ly,fy=(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=b2.getInstance(),r=new I2(t,n,this);dy.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){fy.prototype[e]=function(){var t;return(t=dy.get(this))[e].apply(t,arguments)}});var M2=(function(){return typeof kl.ResizeObserver<"u"?kl.ResizeObserver:fy})(),Co=new Map;function F2(e){e.forEach(function(t){var n,r=t.target;(n=Co.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var py=new M2(F2);function N2(e,t){Co.has(e)||(Co.set(e,new Set),py.observe(e)),Co.get(e).add(t)}function j2(e,t){Co.has(e)&&(Co.get(e).delete(t),Co.get(e).size||(py.unobserve(e),Co.delete(e)))}function mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(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,ay(r.key),r)}}function gn(e,t,n){return t&&wg(e.prototype,t),n&&wg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zi(e,t){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zi(e,t)}function jo(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&&zi(e,t)}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hi(e)}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tp=function(){return!!e})()}function _t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P2(e,t){if(t&&(pt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _t(e)}function Po(e){var t=Tp();return function(){var n,r=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P2(this,n)}}var A2=(function(e){jo(n,e);var t=Po(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function R2(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),a=d.useRef(null),i=d.useContext(ad),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)&&Za(l),f=u?cs(l):null,p=ls(f,o),v=function(){var m;return nl(o.current)||(o.current&&pt(o.current)==="object"?nl((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||nl(a.current)};d.useImperativeHandle(t,function(){return v()});var h=d.useRef(e);h.current=e;var g=d.useCallback(function(m){var b=h.current,y=b.onResize,x=b.data,C=m.getBoundingClientRect(),w=C.width,E=C.height,S=m.offsetWidth,$=m.offsetHeight,O=Math.floor(w),k=Math.floor(E);if(c.current.width!==O||c.current.height!==k||c.current.offsetWidth!==S||c.current.offsetHeight!==$){var M={width:O,height:k,offsetWidth:S,offsetHeight:$};c.current=M;var j=S===Math.round(w)?w:S,R=$===Math.round(E)?E:$,I=Z(Z({},M),{},{offsetWidth:j,offsetHeight:R});i==null||i(I,m,x),y&&Promise.resolve().then(function(){y(I,m)})}},[]);return d.useEffect(function(){var m=v();return m&&!r&&N2(m,g),function(){return j2(m,g)}},[o.current,r]),d.createElement(A2,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var T2=d.forwardRef(R2),D2="rc-observer-key";function _2(e,t){var n=e.children,r=typeof n=="function"?[n]:Ha(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(D2,"-").concat(a);return d.createElement(T2,Ke({},e,{key:i,ref:a===0?t:void 0}),o)})}var eo=d.forwardRef(_2);eo.Collection=d2;function sd(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 B2(e){if(Array.isArray(e))return sd(e)}function my(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dp(e,t){if(e){if(typeof e=="string")return sd(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)?sd(e,t):void 0}}function z2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e){return B2(e)||my(e)||Dp(e)||z2()}var gy=function(e){return+setTimeout(e,16)},hy=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(gy=function(e){return window.requestAnimationFrame(e)},hy=function(e){return window.cancelAnimationFrame(e)});var Cg=0,_p=new Map;function vy(e){_p.delete(e)}var Pt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Cg+=1;var n=Cg;function r(o){if(o===0)vy(n),e();else{var a=gy(function(){r(o-1)});_p.set(n,a)}}return r(t),n};Pt.cancel=function(e){var t=_p.get(e);return vy(e),hy(t)};function by(e){if(Array.isArray(e))return e}function H2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.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&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function yy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return by(e)||H2(e,t)||Dp(e,t)||yy()}function Li(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 Jn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function L2(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 Sg="data-rc-order",Eg="data-rc-priority",V2="rc-util-key",ld=new Map;function xy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):V2}function rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function W2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Bp(e){return Array.from((ld.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function wy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Jn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=W2(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Sg,i),s&&a&&l.setAttribute(Eg,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=rc(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Bp(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Sg)))return!1;var v=Number(p.getAttribute(Eg)||0);return a>=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 Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rc(t);return(t.styles||Bp(n)).find(function(r){return r.getAttribute(xy(t))===e})}function Vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Cy(e,t);if(n){var r=rc(t);r.removeChild(n)}}function q2(e,t){var n=ld.get(e);if(!n||!L2(document,n)){var r=wy("",t),o=r.parentNode;ld.set(e,o),e.removeChild(r)}}function ro(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rc(n),o=Bp(r),a=Z(Z({},n),{},{styles:o});q2(r,a);var i=Cy(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=wy(e,a);return u.setAttribute(xy(a),t),u}function U2(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 At(e,t){if(e==null)return{};var n,r,o=U2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Il(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(An(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&pt(a)==="object"&&pt(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}var Y2="%";function cd(e){return e.join(Y2)}var X2=(function(){function e(t){mn(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),Q(this,"extracted",new Set),this.instanceId=t}return gn(e,[{key:"get",value:function(t){return this.opGet(cd(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(cd(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})(),Wi="data-token-hash",Qr="data-css-hash",So="__cssinjs_instance__";function G2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Qr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[So]=o[So]||e,o[So]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Qr,"]"))).forEach(function(o){var a=o.getAttribute(Qr);if(r[a]){if(o[So]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new X2(e)}var us=d.createContext({hashPriority:"low",cache:G2(),defaultCache:!0});function K2(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 zp=(function(){function e(){mn(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return gn(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,a={map:this.cache};return t.forEach(function(i){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(i)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(r=a)===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]),a=te(o,1),i=a[0];this.delete(i)}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 a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!K2(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();Q(zp,"MAX_CACHE_SIZE",20);Q(zp,"MAX_CACHE_OFFSET",5);var $g=0,Sy=(function(){function e(t){mn(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=$g,t.length===0&&(t.length>0,void 0),$g+=1}return gn(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),Kc=new zp;function ud(e){var t=Array.isArray(e)?e:[e];return Kc.has(t)||Kc.set(t,new Sy(t)),Kc.get(t)}var Q2=new WeakMap,Qc={};function Z2(e,t){for(var n=Q2,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(Qc)||n.set(Qc,e()),n.get(Qc)}var kg=new WeakMap;function Ni(e){var t=kg.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Sy?t+=r.id:r&&pt(r)==="object"?t+=Ni(r):t+=r}),t=Li(t),kg.set(e,t)),t}function Og(e,t){return Li("".concat(t,"_").concat(Ni(e)))}var dd=Jn();function we(e){return typeof e=="number"?"".concat(e,"px"):e}var rl=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()},J2=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),a=o[0],i=o[1];return"".concat(a,":").concat(i,";")}).join(""),"}"):""},Ey=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(a){var i,s,l=te(a,2),c=l[0],u=l[1];if(n!=null&&(i=n.preserve)!==null&&i!==void 0&&i[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,p=rl(c,n==null?void 0:n.prefix);r[p]=typeof u=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(u,"px"):String(u),o[c]="var(".concat(p,")")}}),[o,J2(r,t,{scope:n==null?void 0:n.scope})]},Ig=Jn()?d.useLayoutEffect:d.useEffect,Ht=function(e,t){var n=d.useRef(!0);Ig(function(){return e(n.current)},t),Ig(function(){return n.current=!1,function(){n.current=!0}},[])},Ra=function(e,t){Ht(function(n){if(!n)return e()},t)},e$=Z({},d),Mg=e$.useInsertionEffect,t$=function(e,t,n){d.useMemo(e,n),Ht(function(){return t(!0)},n)},n$=Mg?function(e,t,n){return Mg(function(){return e(),t()},n)}:t$,r$=Z({},d),o$=r$.useInsertionEffect,a$=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},i$=function(){return function(e){e()}},s$=typeof o$<"u"?a$:i$;function Hp(e,t,n,r,o){var a=d.useContext(us),i=a.cache,s=[e].concat(Re(t)),l=cd(s),c=s$([l]),u=function(v){i.opUpdate(l,function(h){var g=h||[void 0,void 0],m=te(g,2),b=m[0],y=b===void 0?0:b,x=m[1],C=x,w=C||n(),E=[y,w];return v?v(E):E})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),p=f[1];return n$(function(){o==null||o(p)},function(v){return u(function(h){var g=te(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(l,function(h){var g=h||[],m=te(g,2),b=m[0],y=b===void 0?0:b,x=m[1],C=y-1;return C===0?(c(function(){(v||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),p}var l$={},c$="css",_o=new Map;function u$(e){_o.set(e,(_o.get(e)||0)+1)}function d$(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Wi,'="').concat(e,'"]'));n.forEach(function(r){if(r[So]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var f$=0;function p$(e,t){_o.set(e,(_o.get(e)||0)-1);var n=new Set;_o.forEach(function(r,o){r<=0&&n.add(o)}),_o.size-n.size>f$&&n.forEach(function(r){d$(r,t),_o.delete(r)})}var m$=function(e,t,n,r){var o=n.getDerivativeToken(e),a=Z(Z({},o),t);return r&&(a=r(a)),a},g$="token";function h$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kt(us),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?l$:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=Z2(function(){return Object.assign.apply(Object,[{}].concat(Re(t)))},t),h=Ni(v),g=Ni(c),m=p?Ni(p):"",b=Hp(g$,[s,e.id,h,g,m],function(){var y,x=f?f(v,c,e):m$(v,c,e,u),C=Z({},x),w="";if(p){var E=Ey(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=te(E,2);x=S[0],w=S[1]}var $=Og(x,s);x._tokenKey=$,C._tokenKey=Og(C,s);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:$;x._themeKey=O,u$(O);var k="".concat(c$,"-").concat(Li($));return x._hashId=k,[x,k,C,w,(p==null?void 0:p.key)||""]},function(y){p$(y[0]._themeKey,o)},function(y){var x=te(y,4),C=x[0],w=x[3];if(p&&w){var E=ro(w,Li("css-variables-".concat(C._themeKey)),{mark:Qr,prepend:"queue",attachTo:a,priority:-999});E[So]=o,E.setAttribute(Wi,C._themeKey)}});return b}var v$={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},$y="comm",ky="rule",Oy="decl",b$="@import",y$="@namespace",x$="@keyframes",w$="@layer",Iy=Math.abs,Lp=String.fromCharCode;function My(e){return e.trim()}function ol(e,t,n){return e.replace(t,n)}function C$(e,t,n){return e.indexOf(t,n)}function Ta(e,t){return e.charCodeAt(t)|0}function Va(e,t,n){return e.slice(t,n)}function Ur(e){return e.length}function S$(e){return e.length}function ks(e,t){return t.push(e),e}var oc=1,Wa=1,Fy=0,Sr=0,Cn=0,Ja="";function Vp(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:oc,column:Wa,length:i,return:"",siblings:s}}function E$(){return Cn}function $$(){return Cn=Sr>0?Ta(Ja,--Sr):0,Wa--,Cn===10&&(Wa=1,oc--),Cn}function Ar(){return Cn=Sr<Fy?Ta(Ja,Sr++):0,Wa++,Cn===10&&(Wa=1,oc++),Cn}function Eo(){return Ta(Ja,Sr)}function al(){return Sr}function ac(e,t){return Va(Ja,e,t)}function qi(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 k$(e){return oc=Wa=1,Fy=Ur(Ja=e),Sr=0,[]}function O$(e){return Ja="",e}function Zc(e){return My(ac(Sr-1,fd(e===91?e+2:e===40?e+1:e)))}function I$(e){for(;(Cn=Eo())&&Cn<33;)Ar();return qi(e)>2||qi(Cn)>3?"":" "}function M$(e,t){for(;--t&&Ar()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return ac(e,al()+(t<6&&Eo()==32&&Ar()==32))}function fd(e){for(;Ar();)switch(Cn){case e:return Sr;case 34:case 39:e!==34&&e!==39&&fd(Cn);break;case 40:e===41&&fd(e);break;case 92:Ar();break}return Sr}function F$(e,t){for(;Ar()&&e+Cn!==57&&!(e+Cn===84&&Eo()===47););return"/*"+ac(t,Sr-1)+"*"+Lp(e===47?e:Ar())}function N$(e){for(;!qi(Eo());)Ar();return ac(e,Sr)}function j$(e){return O$(il("",null,null,null,[""],e=k$(e),0,[0],e))}function il(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,y=0,x="",C=o,w=a,E=r,S=x;m;)switch(h=y,y=Ar()){case 40:if(h!=108&&Ta(S,f-1)==58){C$(S+=ol(Zc(y),"&","&\f"),"&\f",Iy(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Zc(y);break;case 9:case 10:case 13:case 32:S+=I$(h);break;case 92:S+=M$(al()-1,7);continue;case 47:switch(Eo()){case 42:case 47:ks(P$(F$(Ar(),al()),t,n,l),l),(qi(h||1)==5||qi(Eo()||1)==5)&&Ur(S)&&Va(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Ur(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(S=ol(S,/\f/g,"")),v>0&&(Ur(S)-f||g===0&&h===47)&&ks(v>32?Ng(S+";",r,n,f-1,l):Ng(ol(S," ","")+";",r,n,f-2,l),l);break;case 59:S+=";";default:if(ks(E=Fg(S,t,n,c,u,o,s,x,C=[],w=[],f,a),a),y===123)if(u===0)il(S,t,E,E,C,a,f,s,w);else{switch(p){case 99:if(Ta(S,3)===110)break;case 108:if(Ta(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?il(e,E,E,r&&ks(Fg(e,E,E,0,0,o,s,x,o,C=[],f,w),w),o,w,f,s,r?C:w):il(S,E,E,E,[""],w,0,s,w)}}c=u=v=0,g=b=1,x=S="",f=i;break;case 58:f=1+Ur(S),v=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&$$()==125)continue}switch(S+=Lp(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ur(S)-1)*b,b=1;break;case 64:Eo()===45&&(S+=Zc(Ar())),p=Eo(),u=f=Ur(x=S+=N$(al())),y++;break;case 45:h===45&&Ur(S)==2&&(g=0)}}return a}function Fg(e,t,n,r,o,a,i,s,l,c,u,f){for(var p=o-1,v=o===0?a:[""],h=S$(v),g=0,m=0,b=0;g<r;++g)for(var y=0,x=Va(e,p+1,p=Iy(m=i[g])),C=e;y<h;++y)(C=My(m>0?v[y]+" "+x:ol(x,/&\f/g,v[y])))&&(l[b++]=C);return Vp(e,t,n,o===0?ky:s,l,c,u,f)}function P$(e,t,n,r){return Vp(e,t,n,$y,Lp(E$()),Va(e,2,-2),0,r)}function Ng(e,t,n,r,o){return Vp(e,t,n,Oy,Va(e,0,r),Va(e,r+1,-1),r,o)}function pd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function A$(e,t,n,r){switch(e.type){case w$:if(e.children.length)break;case b$:case y$:case Oy:return e.return=e.return||e.value;case $y:return"";case x$:return e.return=e.value+"{"+pd(e.children,r)+"}";case ky:if(!Ur(e.value=e.props.join(",")))return""}return Ur(n=pd(e.children,r))?e.return=e.value+"{"+n+"}":""}var jg="data-ant-cssinjs-cache-path",Ny="_FILE_STYLE__",Go,jy=!0;function R$(){if(!Go&&(Go={},Jn())){var e=document.createElement("div");e.className=jg,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 a=o.split(":"),i=te(a,2),s=i[0],l=i[1];Go[s]=l});var n=document.querySelector("style[".concat(jg,"]"));if(n){var r;jy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function T$(e){return R$(),!!Go[e]}function D$(e){var t=Go[e],n=null;if(t&&Jn())if(jy)n=Ny;else{var r=document.querySelector("style[".concat(Qr,'="').concat(Go[e],'"]'));r?n=r.innerHTML:delete Go[e]}return[n,t]}var _$="_skip_check_",Py="_multi_value_";function Jc(e){var t=pd(j$(e),A$);return t.replace(/\{%%%\:[^;];}/g,";")}function B$(e){return pt(e)==="object"&&e&&(_$ in e||Py in e)}function Pg(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.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(Re(l.slice(1))).join(" ")});return a.join(",")}var z$=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,a=r.injectHash,i=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 p="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),C=te(x,1),w=C[0];v[y]="@keyframes ".concat(b.getName(s)).concat(w)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
144
- `);else if(y._keyframe)h(y);else{var x=f.reduce(function(C,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,C))||C},y);Object.keys(x).forEach(function(C){var w=x[C];if(pt(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!B$(w)){var E=!1,S=C.trim(),$=!1;(o||a)&&s?S.startsWith("@")?E=!0:S==="&"?S=Pg("",s,c):S=Pg(C,s,c):o&&!s&&(S==="&"||S==="")&&(S="",$=!0);var O=e(w,n,{root:$,injectHash:E,parentSelectors:[].concat(Re(i),[S])}),k=te(O,2),M=k[0],j=k[1];v=Z(Z({},v),j),p+="".concat(S).concat(M)}else{let N=function(F,A){var P=F.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),z=A;!v$[F]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),F==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(h(A),z=A.getName(s)),p+="".concat(P,":").concat(z,";")};var R,I=(R=w==null?void 0:w.value)!==null&&R!==void 0?R:w;pt(w)==="object"&&w!==null&&w!==void 0&&w[Py]&&Array.isArray(I)?I.forEach(function(F){N(C,F)}):N(C,I)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
145
- `))):p="{".concat(p,"}"),[p,v]};function Ay(e,t){return Li("".concat(e.join("%")).concat(t))}function H$(){return null}var L$="style";function md(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(us),f=u.autoClear;u.mock;var p=u.defaultCache,v=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,y=u.cache,x=u.layer,C=n._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,Re(r));var E=dd,S=Hp(L$,w,function(){var j=w.join("|");if(T$(j)){var R=D$(j),I=te(R,2),N=I[0],F=I[1];if(N)return[N,C,F,{},s,c]}var A=t(),P=z$(A,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:m,linters:b}),z=te(P,2),H=z[0],V=z[1],T=Jc(H),_=Ay(w,T);return[T,C,_,V,s,c]},function(j,R){var I=te(j,3),N=I[2];(R||f)&&dd&&Vi(N,{mark:Qr,attachTo:h})},function(j){var R=te(j,4),I=R[0],N=R[2],F=R[3];if(E&&I!==Ny){var A={mark:Qr,prepend:x?!1:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(A.csp={nonce:P});var z=[],H=[];Object.keys(F).forEach(function(T){T.startsWith("@layer")?z.push(T):H.push(T)}),z.forEach(function(T){ro(Jc(F[T]),"_layer-".concat(T),Z(Z({},A),{},{prepend:!0}))});var V=ro(I,N,A);V[So]=y.instanceId,V.setAttribute(Wi,C),H.forEach(function(T){ro(Jc(F[T]),"_effect-".concat(T),A)})}}),$=te(S,3),O=$[0],k=$[1],M=$[2];return function(j){var R;return!g||E||!p?R=d.createElement(H$,null):R=d.createElement("style",Ke({},Q(Q({},Wi,k),Qr,M),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,R,j)}}var V$="cssVar",W$=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,s=e.scope,l=s===void 0?"":s,c=Kt(us),u=c.cache.instanceId,f=c.container,p=i._tokenKey,v=[].concat(Re(e.path),[n,l,p]),h=Hp(V$,v,function(){var g=t(),m=Ey(g,n,{prefix:r,unitless:o,ignore:a,scope:l}),b=te(m,2),y=b[0],x=b[1],C=Ay(v,x);return[y,x,C,n]},function(g){var m=te(g,3),b=m[2];dd&&Vi(b,{mark:Qr,attachTo:f})},function(g){var m=te(g,3),b=m[1],y=m[2];if(b){var x=ro(b,y,{mark:Qr,prepend:"queue",attachTo:f,priority:-999});x[So]=u,x.setAttribute(Wi,n)}});return h},Yt=(function(){function e(t,n){mn(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n}return gn(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})(),Wp=Hr({});function Ry(e){return by(e)||my(e)||Dp(e)||yy()}function Cr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Ty(e,t,n,r){if(!t.length)return n;var o=Ry(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Re(e):s=Z({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=Ty(s[a],i,n,r),s}function wr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Cr(e,t.slice(0,-1))?e:Ty(e,t,n,r)}function q$(e){return pt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ag(e){return Array.isArray(e)?[]:{}}var U$=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ka(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ag(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Cr(o,i),u=Array.isArray(c);if(u||q$(c)){if(!l.has(c)){l.add(c);var f=Cr(r,i);u?r=wr(r,i,[]):(!f||pt(f)!=="object")&&(r=wr(r,i,Ag(c))),U$(c).forEach(function(p){a([].concat(Re(i),[p]),l)})}}else r=wr(r,i,c)}a([])}),r}function Y$(){}const X$=d.createContext({}),ic=()=>{const e=()=>{};return e.deprecated=Y$,e},Dy=Hr(void 0);var G$={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"},K$={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q$=Z(Z({},K$),{},{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 _y={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ml={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"]},Q$),timePickerLocale:Object.assign({},_y)},rr="${label} is not a valid ${type}",Io={locale:"en",Pagination:G$,DatePicker:Ml,TimePicker:_y,Calendar:Ml,global:{placeholder:"Please select",close:"Close"},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: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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Io.Modal);let sl=[];const Rg=()=>sl.reduce((e,t)=>Object.assign(Object.assign({},e),t),Io.Modal);function Z$(e){if(e){const t=Object.assign({},e);return sl.push(t),Rg(),()=>{sl=sl.filter(n=>n!==t),Rg()}}Object.assign({},Io.Modal)}const qp=Hr(void 0),aa=(e,t)=>{const n=d.useContext(qp),r=d.useMemo(()=>{var a;const i=t||Io[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Io.locale:a},[n]);return[r,o]},J$="internalMark",ek=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>Z$(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(qp.Provider,{value:o},n)},By={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"},Ui=Object.assign(Object.assign({},By),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
146
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
147
- '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}),jn=Math.round;function eu(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 Tg=(e,t,n)=>n===0?e:e/100;function bi(e,t){const n=t||255;return e>n?n:e<0?0:e}class Ut{constructor(t){Q(this,"isValid",!0),Q(this,"r",0),Q(this,"g",0),Q(this,"b",0),Q(this,"a",1),Q(this,"_h",void 0),Q(this,"_s",void 0),Q(this,"_l",void 0),Q(this,"_v",void 0),Q(this,"_max",void 0),Q(this,"_min",void 0),Q(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(a){return o.startsWith(a)};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 Ut)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=bi(t.r),this.g=bi(t.g),this.b=bi(t.b),this.a=typeof t.a=="number"?bi(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(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.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=jn(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,a=s=>(r[s]-this[s])*o+this[s],i={r:jn(a("r")),g:jn(a("g")),b:jn(a("b")),a:jn(a("a")*100)/100};return this._c(i)}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=a=>jn((this[a]*this.a+n[a]*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 a=jn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=jn(this.getSaturation()*100),r=jn(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]=bi(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,a){return parseInt(n[o]+n[a||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 p=jn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=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?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=jn((a+f)*255),this.g=jn((i+f)*255),this.b=jn((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 a=jn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=jn(r*(1-n)*255),u=jn(r*(1-n*l)*255),f=jn(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=eu(t,Tg);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=eu(t,Tg);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=eu(t,(r,o)=>o.includes("%")?jn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Os=2,Dg=.16,tk=.05,nk=.05,rk=.15,zy=5,Hy=4,ok=[{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 _g(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Os*t:Math.round(e.h)+Os*t:r=n?Math.round(e.h)+Os*t:Math.round(e.h)-Os*t,r<0?r+=360:r>=360&&(r-=360),r}function Bg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Dg*t:t===Hy?r=e.s+Dg:r=e.s+tk*t,r>1&&(r=1),n&&t===zy&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function zg(e,t,n){var r;return n?r=e.v+nk*t:r=e.v-rk*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Yi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Ut(e),o=r.toHsv(),a=zy;a>0;a-=1){var i=new Ut({h:_g(o,a,!0),s:Bg(o,a,!0),v:zg(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=Hy;s+=1){var l=new Ut({h:_g(o,s),s:Bg(o,s),v:zg(o,s)});n.push(l)}return t.theme==="dark"?ok.map(function(c){var u=c.index,f=c.amount;return new Ut(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var tu={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"},gd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];gd.primary=gd[5];var hd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hd.primary=hd[5];var vd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vd.primary=vd[5];var bd=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bd.primary=bd[5];var yd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yd.primary=yd[5];var xd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];xd.primary=xd[5];var wd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wd.primary=wd[5];var Cd=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Cd.primary=Cd[5];var Fl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fl.primary=Fl[5];var Sd=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sd.primary=Sd[5];var Ed=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ed.primary=Ed[5];var $d=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$d.primary=$d[5];var kd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kd.primary=kd[5];var nu={red:gd,volcano:hd,orange:vd,gold:bd,yellow:yd,lime:xd,green:wd,cyan:Cd,blue:Fl,geekblue:Sd,purple:Ed,magenta:$d,grey:kd};function ak(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),p=t(o),v=t(a),h=t(i),g=n(l,c),m=e.colorLink||e.colorInfo,b=t(m),y=new Ut(v[1]).mix(new Ut(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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 Ut("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ik=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 sk(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},ik(r))}const lk=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ll(e){return(e+8)/e}function ck(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ll(n)}))}const uk=e=>{const t=ck(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,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*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function dk(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 pr=(e,t)=>new Ut(e).setA(t).toRgbString(),yi=(e,t)=>new Ut(e).darken(t).toHexString(),fk=e=>{const t=Yi(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]}},pk=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:pr(r,.88),colorTextSecondary:pr(r,.65),colorTextTertiary:pr(r,.45),colorTextQuaternary:pr(r,.25),colorFill:pr(r,.15),colorFillSecondary:pr(r,.06),colorFillTertiary:pr(r,.04),colorFillQuaternary:pr(r,.02),colorBgSolid:pr(r,1),colorBgSolidHover:pr(r,.75),colorBgSolidActive:pr(r,.95),colorBgLayout:yi(n,4),colorBgContainer:yi(n,0),colorBgElevated:yi(n,0),colorBgSpotlight:pr(r,.85),colorBgBlur:"transparent",colorBorder:yi(n,15),colorBorderSecondary:yi(n,6)}};function mk(e){tu.pink=tu.magenta,nu.pink=nu.magenta;const t=Object.keys(By).map(n=>{const r=e[n]===tu[n]?nu[n]:Yi(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),ak(e,{generateColorPalettes:fk,generateNeutralColorPalettes:pk})),uk(e.fontSize)),dk(e)),lk(e)),sk(e))}const Ly=ud(mk),Od={token:Ui,override:{override:Ui},hashed:!0},Vy=fe.createContext(Od),Xi="ant",sc="anticon",gk=["outlined","borderless","filled","underlined"],hk=(e,t)=>t||(e?`${Xi}-${e}`:Xi),Bt=d.createContext({getPrefixCls:hk,iconPrefixCls:sc}),Hg={};function lo(e){const t=d.useContext(Bt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Hg,styles:Hg},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const vk=`-ant-${Date.now()}-${Math.random()}`;function bk(e,t){const n={},r=(a,i)=>{let s=a.clone();return s=(i==null?void 0:i(s))||s,s.toRgbString()},o=(a,i)=>{const s=new Ut(a),l=Yi(s.toRgbString());n[`${i}-color`]=r(s),n[`${i}-color-disabled`]=l[1],n[`${i}-color-hover`]=l[4],n[`${i}-color-active`]=l[6],n[`${i}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=l[0],n[`${i}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Ut(t.primaryColor),i=Yi(a.toRgbString());i.forEach((l,c)=>{n[`primary-${c+1}`]=l}),n["primary-color-deprecated-l-35"]=r(a,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(a,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(a,l=>l.setA(l.a*.12));const s=new Ut(i[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"),`
148
- :root {
149
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
150
- `)}
151
- }
152
- `.trim()}function yk(e,t){const n=bk(e,t);Jn()&&ro(n,`${vk}-dynamic-theme`)}const Yn=d.createContext(!1),Wy=({children:e,disabled:t})=>{const n=d.useContext(Yn);return d.createElement(Yn.Provider,{value:t??n},e)},ea=d.createContext(void 0),xk=({children:e,size:t})=>{const n=d.useContext(ea);return d.createElement(ea.Provider,{value:t||n},e)};function wk(){const e=Kt(Yn),t=Kt(ea);return{componentDisabled:e,componentSize:t}}var qy=gn(function e(){mn(this,e)}),Uy="CALC_UNIT",Ck=new RegExp(Uy,"g");function ru(e){return typeof e=="number"?"".concat(e).concat(Uy):e}var Sk=(function(e){jo(n,e);var t=Po(n);function n(r,o){var a;mn(this,n),a=t.call(this),Q(_t(a),"result",""),Q(_t(a),"unitlessCssVar",void 0),Q(_t(a),"lowPriority",void 0);var i=pt(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=ru(r):i==="string"&&(a.result=r),a}return gn(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(ru(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(ru(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,a=r||{},i=a.unit,s=!0;return typeof i=="boolean"?s=i:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(s=!1),this.result=this.result.replace(Ck,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(qy),Ek=(function(e){jo(n,e);var t=Po(n);function n(r){var o;return mn(this,n),o=t.call(this),Q(_t(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return gn(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})(qy),$k=function(e,t){var n=e==="css"?Sk:Ek;return function(r){return new n(r,t)}},Lg=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 Dt(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function qa(e){var t=d.useRef(!1),n=d.useState(e),r=te(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}function ou(e){return e!==void 0}function fn(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=qa(function(){return ou(o)?o:ou(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,p=i?i(f):f,v=Dt(a),h=qa([f]),g=te(h,2),m=g[0],b=g[1];Ra(function(){var x=m[0];c!==x&&v(c,x)},[m]),Ra(function(){ou(o)||u(o)},[o]);var y=Dt(function(x,C){u(x,C),b([f],C)});return[p,y]}function Vg(e,t,n,r){var o=Z({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.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 i=Z(Z({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Yy=typeof CSSINJS_STATISTIC<"u",Id=!0;function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Yy)return Object.assign.apply(Object,[{}].concat(t));Id=!1;var r={};return t.forEach(function(o){if(pt(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Id=!0,r}var Wg={};function kk(){}var Ok=function(e){var t,n=e,r=kk;return Yy&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(o,a){if(Id){var i;(i=t)===null||i===void 0||i.add(a)}return o[a]}}),r=function(o,a){var i;Wg[o]={global:Array.from(t),component:Z(Z({},(i=Wg[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}};function qg(e,t,n){if(typeof n=="function"){var r;return n(Qt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Ik(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 we(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 we(o)}).join(","),")")}}}var Mk=1e3*60*10,Fk=(function(){function e(){mn(this,e),Q(this,"map",new Map),Q(this,"objectIDMap",new WeakMap),Q(this,"nextID",0),Q(this,"lastAccessBeat",new Map),Q(this,"accessBeat",0)}return gn(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&&pt(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(pt(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>Mk&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Ug=new Fk;function Nk(e,t){return fe.useMemo(function(){var n=Ug.get(t);if(n)return n;var r=e();return Ug.set(t,r),r},t)}var jk=function(){return{}};function Pk(e){var t=e.useCSP,n=t===void 0?jk:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b($){return"".concat(String(m)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(p):{},C=Z(Z({},x),{},Q({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){C[b($)]=y[$]});var w=Z(Z({},g),{},{unitless:C,prefixToken:b}),E=u(p,v,h,w),S=c(m,h,w);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,k=E($,O),M=te(k,2),j=M[1],R=S(O),I=te(R,2),N=I[0],F=I[1];return[N,j,F]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,x=h.ignore,C=function(E){var S=E.rootCls,$=E.cssVar,O=$===void 0?{}:$,k=r(),M=k.realToken;return W$({path:[p],prefix:O.prefix,key:O.key,unitless:g,ignore:x,token:M,scope:S},function(){var j=qg(p,M,v),R=Vg(p,M,j,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(j).forEach(function(I){R[y(I)]=R[I],delete R[I]}),R}),null},w=function(E){var S=r(),$=S.cssVar;return[function(O){return b&&$?fe.createElement(fe.Fragment,null,fe.createElement(C,{rootCls:E,cssVar:$,component:p}),O):O},$==null?void 0:$.key]};return w}function u(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=te(m,1),y=b[0],x=m.join("-"),C=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),$=S.theme,O=S.realToken,k=S.hashId,M=S.token,j=S.cssVar,R=o(),I=R.rootPrefixCls,N=R.iconPrefixCls,F=n(),A=j?"css":"js",P=Nk(function(){var D=new Set;return j&&Object.keys(g.unitless||{}).forEach(function(B){D.add(rl(B,j.prefix)),D.add(rl(B,Lg(y,j.prefix)))}),$k(A,D)},[A,y,j==null?void 0:j.prefix]),z=Ik(A),H=z.max,V=z.min,T={theme:$,token:M,hashId:k,nonce:function(){return F.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&md(Z(Z({},T),{},{clientOnly:!1,path:["Shared",I]}),function(){return a(M,{prefix:{rootPrefixCls:I,iconPrefixCls:N},csp:F})});var _=md(Z(Z({},T),{},{path:[x,w,N]}),function(){if(g.injectStyle===!1)return[];var D=Ok(M),B=D.token,L=D.flush,W=qg(y,O,h),U=".".concat(w),J=Vg(y,O,W,{deprecatedTokens:g.deprecatedTokens});j&&W&&pt(W)==="object"&&Object.keys(W).forEach(function(X){W[X]="var(".concat(rl(X,Lg(y,j.prefix)),")")});var q=Qt(B,{componentCls:U,prefixCls:w,iconCls:".".concat(N),antCls:".".concat(I),calc:P,max:H,min:V},j?W:J),ee=v(q,{hashId:k,prefixCls:w,rootPrefixCls:I,iconPrefixCls:N});L(y,J);var G=typeof i=="function"?i(q,w,E,g.resetFont):null;return[g.resetStyle===!1?null:G,ee]});return[_,k]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(p,v,h,Z({resetStyle:!1,order:-998},g)),b=function(y){var x=y.prefixCls,C=y.rootCls,w=C===void 0?x:C;return m(x,w),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Ak="5.27.6";function au(e){return e>=0&&e<=255}function $i(e,t){const{r:n,g:r,b:o,a}=new Ut(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Ut(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(au(u)&&au(f)&&au(p))return new Ut({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new Ut({r:n,g:r,b:o,a:1}).toRgbString()}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};function Xy(e){const{override:t}=e,n=Rk(e,["override"]),r=Object.assign({},t);Object.keys(Ui).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),a=480,i=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:$i(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:$i(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:$i(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:$i(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:`
153
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
154
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
155
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
156
- `,boxShadowSecondary:`
157
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
158
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
159
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
160
- `,boxShadowTertiary:`
161
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
162
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
163
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
164
- `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,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:`
165
- 0 1px 2px -2px ${new Ut("rgba(0, 0, 0, 0.16)").toRgbString()},
166
- 0 3px 6px 0 ${new Ut("rgba(0, 0, 0, 0.12)").toRgbString()},
167
- 0 5px 12px 4px ${new Ut("rgba(0, 0, 0, 0.09)").toRgbString()}
168
- `,boxShadowDrawerRight:`
169
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
170
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
171
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
172
- `,boxShadowDrawerLeft:`
173
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
174
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
175
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
176
- `,boxShadowDrawerUp:`
177
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
178
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
179
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
180
- `,boxShadowDrawerDown:`
181
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
182
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
183
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
184
- `,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 Yg=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 Gy={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},Tk={motionBase:!0,motionUnit:!0},Dk={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},Ky=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Yg(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Xy(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=Yg(l,["theme"]);let f=u;c&&(f=Ky(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function kr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(Vy),a=`${Ak}-${t||""}`,i=n||Ly,[s,l,c]=h$(i,[Ui,e],{salt:a,override:r,getComputedToken:Ky,formatToken:Xy,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Gy,ignore:Tk,preserve:Dk}});return[i,c,t?l:"",s,o]}const Nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},pn=(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}),ds=()=>({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"}}),_k=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Bk=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"}}}),zk=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Up=(e,t)=>({outline:`${we(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Qy=(e,t)=>({"&:focus-visible":Up(e)}),Zy=e=>({[`.${e}`]:Object.assign(Object.assign({},ds()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:En,genComponentStyleHook:Hk,genSubStyleComponent:lc}=Pk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Kt(Bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=kr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=Kt(Bt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Bk(e);return[r,{"&":r},Zy((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:sc)]},getCommonStyle:zk,getCompUnitless:()=>Gy});function cc(e,t){return ta.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const Lk=(e,t)=>{const[n,r]=kr();return md({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Zy(e))},Vk=Object.assign({},d),{useId:Xg}=Vk,Wk=()=>"",qk=typeof Xg>"u"?Wk:Xg;function Uk(e,t,n){var r;ic();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Od),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Od.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=qk();return tc(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.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({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!Il(c,f,!0)}))}var Yk=["children"],Jy=d.createContext({});function Xk(e){var t=e.children,n=At(e,Yk);return d.createElement(Jy.Provider,{value:n},t)}var Gk=(function(e){jo(n,e);var t=Po(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function Kk(e){var t=d.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],o=d.useRef(e),a=Dt(function(){return o.current}),i=Dt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var vo="none",Is="appear",Ms="enter",Fs="leave",Gg="none",Fr="prepare",Oa="start",Ia="active",Yp="end",e1="prepared";function Kg(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 Qk(e,t){var n={animationend:Kg("Animation","AnimationEnd"),transitionend:Kg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Zk=Qk(Jn(),typeof window<"u"?window:{}),t1={};if(Jn()){var Jk=document.createElement("div");t1=Jk.style}var Ns={};function n1(e){if(Ns[e])return Ns[e];var t=Zk[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in t1)return Ns[e]=t[a],Ns[e]}return""}var r1=n1("animationend"),o1=n1("transitionend"),a1=!!(r1&&o1),Qg=r1||"animationend",Zg=o1||"transitionend";function Jg(e,t){if(!e)return null;if(pt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const eO=(function(e){var t=Ze();function n(o){o&&(o.removeEventListener(Zg,e),o.removeEventListener(Qg,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Zg,e),o.addEventListener(Qg,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var i1=Jn()?jb:vt;const tO=(function(){var e=d.useRef(null);function t(){Pt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Pt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var nO=[Fr,Oa,Ia,Yp],rO=[Fr,e1],s1=!1,oO=!0;function l1(e){return e===Ia||e===Yp}const aO=(function(e,t,n){var r=qa(Gg),o=te(r,2),a=o[0],i=o[1],s=tO(),l=te(s,2),c=l[0],u=l[1];function f(){i(Fr,!0)}var p=t?rO:nO;return i1(function(){if(a!==Gg&&a!==Yp){var v=p.indexOf(a),h=p[v+1],g=n(a);g===s1?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function iO(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,$=r.onVisibleChanged,O=qa(),k=te(O,2),M=k[0],j=k[1],R=Kk(vo),I=te(R,2),N=I[0],F=I[1],A=qa(null),P=te(A,2),z=P[0],H=P[1],V=N(),T=Ze(!1),_=Ze(null);function D(){return n()}var B=Ze(!1);function L(){F(vo),H(null,!0)}var W=Dt(function(ge){var Se=N();if(Se!==vo){var oe=D();if(!(ge&&!ge.deadline&&ge.target!==oe)){var ve=B.current,je;Se===Is&&ve?je=w==null?void 0:w(oe,ge):Se===Ms&&ve?je=E==null?void 0:E(oe,ge):Se===Fs&&ve&&(je=S==null?void 0:S(oe,ge)),ve&&je!==!1&&L()}}}),U=eO(W),J=te(U,1),q=J[0],ee=function(ge){switch(ge){case Is:return Q(Q(Q({},Fr,p),Oa,g),Ia,y);case Ms:return Q(Q(Q({},Fr,v),Oa,m),Ia,x);case Fs:return Q(Q(Q({},Fr,h),Oa,b),Ia,C);default:return{}}},G=d.useMemo(function(){return ee(V)},[V]),X=aO(V,!e,function(ge){if(ge===Fr){var Se=G[Fr];return Se?Se(D()):s1}if(ne in G){var oe;H(((oe=G[ne])===null||oe===void 0?void 0:oe.call(G,D(),null))||null)}return ne===Ia&&V!==vo&&(q(D()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){W({deadline:!0})},u))),ne===e1&&L(),oO}),ie=te(X,2),ae=ie[0],ne=ie[1],ce=l1(ne);B.current=ce;var de=Ze(null);i1(function(){if(!(T.current&&de.current===t)){j(t);var ge=T.current;T.current=!0;var Se;!ge&&t&&s&&(Se=Is),ge&&t&&a&&(Se=Ms),(ge&&!t&&c||!ge&&f&&!t&&c)&&(Se=Fs);var oe=ee(Se);Se&&(e||oe[Fr])?(F(Se),ae()):F(vo),de.current=t}},[t]),vt(function(){(V===Is&&!s||V===Ms&&!a||V===Fs&&!c)&&F(vo)},[s,a,c]),vt(function(){return function(){T.current=!1,clearTimeout(_.current)}},[]);var ye=d.useRef(!1);vt(function(){M&&(ye.current=!0),M!==void 0&&V===vo&&((ye.current||M)&&($==null||$(M)),ye.current=!0)},[M,V]);var Ee=z;return G[Fr]&&ne===Oa&&(Ee=Z({transition:"none"},Ee)),[V,ne,Ee,M??t]}function sO(e){var t=e;pt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=d.useContext(Jy),m=g.motion,b=n(o,m),y=Ze(),x=Ze();function C(){try{return y.current instanceof HTMLElement?y.current:nl(x.current)}catch{return null}}var w=iO(b,s,C,o),E=te(w,4),S=E[0],$=E[1],O=E[2],k=E[3],M=d.useRef(k);k&&(M.current=!0);var j=d.useCallback(function(P){y.current=P,Rp(a,P)},[a]),R,I=Z(Z({},h),{},{visible:s});if(!f)R=null;else if(S===vo)k?R=f(Z({},I),j):!c&&M.current&&v?R=f(Z(Z({},I),{},{className:v}),j):u||!c&&!v?R=f(Z(Z({},I),{},{style:{display:"none"}}),j):R=null;else{var N;$===Fr?N="prepare":l1($)?N="active":$===Oa&&(N="start");var F=Jg(p,"".concat(S,"-").concat(N));R=f(Z(Z({},I),{},{className:pe(Jg(p,S),Q(Q({},F,F&&N),p,typeof p=="string")),style:O}),j)}if(d.isValidElement(R)&&Za(R)){var A=cs(R);A||(R=d.cloneElement(R,{ref:j}))}return d.createElement(Gk,{ref:x},R)});return r.displayName="CSSMotion",r}const ia=sO(a1);var Md="add",Fd="keep",Nd="remove",iu="removed";function lO(e){var t;return e&&pt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function jd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(lO)}function cO(){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,a=jd(e),i=jd(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return Z(Z({},v),{},{status:Md})})),r=f),n.push(Z(Z({},p),{},{status:Fd})),r+=1,u=!0;break}}u||n.push(Z(Z({},c),{},{status:Nd}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Z(Z({},c),{},{status:Md})})));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,p=u.status;return f!==c||p!==Nd}),n.forEach(function(u){u.key===c&&(u.status=Fd)})}),n}var uO=["component","children","onVisibleChanged","onAllRemoved"],dO=["status"],fO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia,n=(function(r){jo(a,r);var o=Po(a);function a(){var i;mn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),Q(_t(i),"state",{keyEntities:[]}),Q(_t(i),"removeKey",function(u){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==u?v:Z(Z({},v),{},{status:iu})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==iu}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return gn(a,[{key:"render",value:function(){var i=this,s=this.state.keyEntities,l=this.props,c=l.component,u=l.children,f=l.onVisibleChanged,p=At(l,uO),v=c||d.Fragment,h={};return fO.forEach(function(g){h[g]=p[g],delete p[g]}),delete p.keys,d.createElement(v,p,s.map(function(g,m){var b=g.status,y=At(g,dO),x=b===Md||b===Fd;return d.createElement(t,Ke({},h,{key:y.key,visible:x,eventProps:y,onVisibleChanged:function(C){f==null||f(C,{key:y.key}),C||i.removeKey(y.key)}}),function(C,w){return u(Z(Z({},C),{},{index:m}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=i.keys,c=s.keyEntities,u=jd(l),f=cO(c,u);return{keyEntities:f.filter(function(p){var v=c.find(function(h){var g=h.key;return p.key===g});return!(v&&v.status===iu&&p.status===Nd)})}}}]),a})(d.Component);return Q(n,"defaultProps",{component:"div"}),n}const c1=pO(a1),eh=d.createContext(!0);function mO(e){const t=d.useContext(eh),{children:n}=e,[,r]=kr(),{motion:o}=r,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(eh.Provider,{value:o},d.createElement(Xk,{motion:o},n)):n}const gO=()=>null;var hO=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 vO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Xp,u1,d1,f1;function cl(){return Xp||Xi}function bO(){return u1||sc}function yO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const xO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Xp=t),n!==void 0&&(u1=n),"holderRender"in e&&(f1=o),r&&(yO(r)?yk(cl(),r):d1=r)},wO=()=>({getPrefixCls:(e,t)=>t||(e?`${cl()}-${e}`:cl()),getIconPrefixCls:bO,getRootPrefixCls:()=>Xp||cl(),getTheme:()=>d1,holderRender:f1}),CO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:M,typography:j,checkbox:R,descriptions:I,divider:N,drawer:F,skeleton:A,steps:P,image:z,layout:H,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:J,input:q,textArea:ee,empty:G,badge:X,radio:ie,rate:ae,switch:ne,transfer:ce,avatar:de,message:ye,tag:Ee,table:ge,card:Se,tabs:oe,timeline:ve,timePicker:je,upload:se,notification:He,tree:De,colorPicker:qe,datePicker:Ue,rangePicker:_e,flex:Oe,wave:Ie,dropdown:ke,warning:Ne,tour:Xe,tooltip:he,popover:st,popconfirm:yt,floatButton:St,floatButtonGroup:Nt,variant:Ve,inputNumber:Qe,treeSelect:Ge}=e,ot=d.useCallback((Y,ue)=>{const{prefixCls:be}=e;if(ue)return ue;const Me=be||b.getPrefixCls("");return Y?`${Me}-${Y}`:Me},[b.getPrefixCls,e.prefixCls]),nt=y||b.iconPrefixCls||sc,$t=n||b.csp;Lk(nt,$t);const Ot=Uk(x,b.theme,{prefixCls:ot("")}),et={csp:$t,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||m,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:ot,iconPrefixCls:nt,theme:Ot,segmented:w,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:M,typography:j,checkbox:R,descriptions:I,divider:N,drawer:F,skeleton:A,steps:P,image:z,input:q,textArea:ee,layout:H,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:J,empty:G,badge:X,radio:ie,rate:ae,switch:ne,transfer:ce,avatar:de,message:ye,tag:Ee,table:ge,card:Se,tabs:oe,timeline:ve,timePicker:je,upload:se,notification:He,tree:De,colorPicker:qe,datePicker:Ue,rangePicker:_e,flex:Oe,wave:Ie,dropdown:ke,warning:Ne,tour:Xe,tooltip:he,popover:st,popconfirm:yt,floatButton:St,floatButtonGroup:Nt,variant:Ve,inputNumber:Qe,treeSelect:Ge},lt=Object.assign({},b);Object.keys(et).forEach(Y=>{et[Y]!==void 0&&(lt[Y]=et[Y])}),vO.forEach(Y=>{const ue=e[Y];ue&&(lt[Y]=ue)}),typeof r<"u"&&(lt.button=Object.assign({autoInsertSpace:r},lt.button));const bt=tc(()=>lt,lt,(Y,ue)=>{const be=Object.keys(Y),Me=Object.keys(ue);return be.length!==Me.length||be.some(Be=>Y[Be]!==ue[Be])}),{layer:Le}=d.useContext(us),Fe=d.useMemo(()=>({prefixCls:nt,csp:$t,layer:Le?"antd":void 0}),[nt,$t,Le]);let xe=d.createElement(d.Fragment,null,d.createElement(gO,{dropdownMatchSelectWidth:v}),t);const Ae=d.useMemo(()=>{var Y,ue,be,Me;return ka(((Y=Io.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((be=(ue=bt.locale)===null||ue===void 0?void 0:ue.Form)===null||be===void 0?void 0:be.defaultValidateMessages)||{},((Me=bt.form)===null||Me===void 0?void 0:Me.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[bt,i==null?void 0:i.validateMessages]);Object.keys(Ae).length>0&&(xe=d.createElement(Dy.Provider,{value:Ae},xe)),s&&(xe=d.createElement(ek,{locale:s,_ANT_MARK__:J$},xe)),xe=d.createElement(Wp.Provider,{value:Fe},xe),l&&(xe=d.createElement(xk,{size:l},xe)),xe=d.createElement(mO,null,xe);const K=d.useMemo(()=>{const Y=Ot||{},{algorithm:ue,token:be,components:Me,cssVar:Be}=Y,ut=hO(Y,["algorithm","token","components","cssVar"]),tt=ue&&(!Array.isArray(ue)||ue.length>0)?ud(ue):Ly,at={};Object.entries(Me||{}).forEach(([ze,Et])=>{const Ce=Object.assign({},Et);"algorithm"in Ce&&(Ce.algorithm===!0?Ce.theme=tt:(Array.isArray(Ce.algorithm)||typeof Ce.algorithm=="function")&&(Ce.theme=ud(Ce.algorithm)),delete Ce.algorithm),at[ze]=Ce});const xt=Object.assign(Object.assign({},Ui),be);return Object.assign(Object.assign({},ut),{theme:tt,token:xt,components:at,override:Object.assign({override:xt},at),cssVar:Be})},[Ot]);return x&&(xe=d.createElement(Vy.Provider,{value:K},xe)),bt.warning&&(xe=d.createElement(X$.Provider,{value:bt.warning},xe)),C!==void 0&&(xe=d.createElement(Wy,{disabled:C},xe)),d.createElement(Bt.Provider,{value:bt},xe)},Ao=e=>{const t=d.useContext(Bt),n=d.useContext(qp);return d.createElement(CO,Object.assign({parentContext:t,legacyLocale:n},e))};Ao.ConfigContext=Bt;Ao.SizeContext=ea;Ao.config=xO;Ao.useConfig=wk;Object.defineProperty(Ao,"SizeContext",{get:()=>ea});var SO={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 p1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function EO(e){return p1(e)instanceof ShadowRoot}function jl(e){return EO(e)?p1(e):null}function $O(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function kO(e,t){An(e,"[@ant-design/icons] ".concat(t))}function th(e){return pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pt(e.icon)==="object"||typeof e.icon=="function")}function nh(){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[$O(n)]=r}return t},{})}function Pd(e,t,n){return n?fe.createElement(e.tag,Z(Z({key:t},nh(e.attrs)),n),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):fe.createElement(e.tag,Z({key:t},nh(e.attrs)),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function m1(e){return Yi(e)[0]}function g1(e){return e?Array.isArray(e)?e:[e]:[]}var OO=`
185
- .anticon {
186
- display: inline-flex;
187
- align-items: center;
188
- color: inherit;
189
- font-style: normal;
190
- line-height: 0;
191
- text-align: center;
192
- text-transform: none;
193
- vertical-align: -0.125em;
194
- text-rendering: optimizeLegibility;
195
- -webkit-font-smoothing: antialiased;
196
- -moz-osx-font-smoothing: grayscale;
197
- }
198
-
199
- .anticon > * {
200
- line-height: 1;
201
- }
202
-
203
- .anticon svg {
204
- display: inline-block;
205
- }
206
-
207
- .anticon::before {
208
- display: none;
209
- }
210
-
211
- .anticon .anticon-icon {
212
- display: block;
213
- }
214
-
215
- .anticon[tabindex] {
216
- cursor: pointer;
217
- }
218
-
219
- .anticon-spin::before,
220
- .anticon-spin {
221
- display: inline-block;
222
- -webkit-animation: loadingCircle 1s infinite linear;
223
- animation: loadingCircle 1s infinite linear;
224
- }
225
-
226
- @-webkit-keyframes loadingCircle {
227
- 100% {
228
- -webkit-transform: rotate(360deg);
229
- transform: rotate(360deg);
230
- }
231
- }
232
-
233
- @keyframes loadingCircle {
234
- 100% {
235
- -webkit-transform: rotate(360deg);
236
- transform: rotate(360deg);
237
- }
238
- }
239
- `,IO=function(e){var t=Kt(Wp),n=t.csp,r=t.prefixCls,o=t.layer,a=OO;r&&(a=a.replace(/anticon/g,r)),o&&(a="@layer ".concat(o,` {
240
- `).concat(a,`
241
- }`)),vt(function(){var i=e.current,s=jl(i);ro(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:s})},[])},MO=["icon","className","onClick","style","primaryColor","secondaryColor"],ji={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function FO(e){var t=e.primaryColor,n=e.secondaryColor;ji.primaryColor=t,ji.secondaryColor=n||m1(t),ji.calculated=!!n}function NO(){return Z({},ji)}var ei=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,a=e.primaryColor,i=e.secondaryColor,s=At(e,MO),l=d.useRef(),c=ji;if(a&&(c={primaryColor:a,secondaryColor:i||m1(a)}),IO(l),kO(th(t),"icon should be icon definiton, but got ".concat(t)),!th(t))return null;var u=t;return u&&typeof u.icon=="function"&&(u=Z(Z({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Pd(u.icon,"svg-".concat(u.name),Z(Z({className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};ei.displayName="IconReact";ei.getTwoToneColors=NO;ei.setTwoToneColors=FO;function h1(e){var t=g1(e),n=te(t,2),r=n[0],o=n[1];return ei.setTwoToneColors({primaryColor:r,secondaryColor:o})}function jO(){var e=ei.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var PO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];h1(Fl.primary);var Fn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=At(e,PO),u=d.useContext(Wp),f=u.prefixCls,p=f===void 0?"anticon":f,v=u.rootClassName,h=pe(v,p,Q(Q({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=g1(l),y=te(b,2),x=y[0],C=y[1];return d.createElement("span",Ke({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),d.createElement(ei,{icon:r,primaryColor:x,secondaryColor:C,style:m}))});Fn.displayName="AntdIcon";Fn.getTwoToneColor=jO;Fn.setTwoToneColor=h1;var AO=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:SO}))},v1=d.forwardRef(AO),RO={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"},TO=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:RO}))},uc=d.forwardRef(TO),DO={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"},_O=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:DO}))},Gp=d.forwardRef(_O),BO={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"},zO=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:BO}))},b1=d.forwardRef(zO),HO={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"},LO=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:HO}))},VO=d.forwardRef(LO),WO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
242
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
243
- charSet checked classID className colSpan cols content contentEditable contextMenu
244
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
245
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
246
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
247
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
248
- mediaGroup method min minLength multiple muted name noValidate nonce open
249
- optimum pattern placeholder poster preload radioGroup readOnly rel required
250
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
251
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
252
- summary tabIndex target title type useMap value width wmode wrap`,qO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
253
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
254
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
255
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
256
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
257
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
258
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,UO="".concat(WO," ").concat(qO).split(/[\s\n]+/),YO="aria-",XO="data-";function rh(e,t){return e.indexOf(t)===0}function Br(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=Z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||rh(o,YO))||n.data&&rh(o,XO)||n.attr&&UO.includes(o))&&(r[o]=e[o])}),r}function y1(e){return e&&fe.isValidElement(e)&&e.type===fe.Fragment}const x1=(e,t,n)=>fe.isValidElement(e)?fe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Mo(e,t){return x1(e,e,t)}const oh=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ah=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",js=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ah(n.overflowY,t)||ah(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ps=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,GO=e=>e.parentElement??(e.getRootNode().host||null),ih=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:F=>F!==c;if(!oh(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;oh(h)&&f(h);){if(h=GO(h),h===p){v.push(h);break}h!=null&&h===document.body&&js(h)&&!js(document.documentElement)||h!=null&&js(h,u)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:C,top:w,right:E,bottom:S,left:$}=e.getBoundingClientRect(),{top:O,right:k,bottom:M,left:j}=(F=>{const A=window.getComputedStyle(F);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(e);let R=s==="start"||s==="nearest"?w-O:s==="end"?S+M:w+x/2-O+M,I=l==="center"?$+C/2-j+k:l==="end"?E+k:$-j;const N=[];for(let F=0;F<v.length;F++){const A=v[F],{height:P,width:z,top:H,right:V,bottom:T,left:_}=A.getBoundingClientRect();if(i==="if-needed"&&w>=0&&$>=0&&S<=m&&E<=g&&(A===p&&!js(A)||w>=H&&S<=T&&$>=_&&E<=V))return N;const D=getComputedStyle(A),B=parseInt(D.borderLeftWidth,10),L=parseInt(D.borderTopWidth,10),W=parseInt(D.borderRightWidth,10),U=parseInt(D.borderBottomWidth,10);let J=0,q=0;const ee="offsetWidth"in A?A.offsetWidth-A.clientWidth-B-W:0,G="offsetHeight"in A?A.offsetHeight-A.clientHeight-L-U:0,X="offsetWidth"in A?A.offsetWidth===0?0:z/A.offsetWidth:0,ie="offsetHeight"in A?A.offsetHeight===0?0:P/A.offsetHeight:0;if(p===A)J=s==="start"?R:s==="end"?R-m:s==="nearest"?Ps(y,y+m,m,L,U,y+R,y+R+x,x):R-m/2,q=l==="start"?I:l==="center"?I-g/2:l==="end"?I-g:Ps(b,b+g,g,B,W,b+I,b+I+C,C),J=Math.max(0,J+y),q=Math.max(0,q+b);else{J=s==="start"?R-H-L:s==="end"?R-T+U+G:s==="nearest"?Ps(H,T,P,L,U+G,R,R+x,x):R-(H+P/2)+G/2,q=l==="start"?I-_-B:l==="center"?I-(_+z/2)+ee/2:l==="end"?I-V+W+ee:Ps(_,V,z,B,W+ee,I,I+C,C);const{scrollLeft:ae,scrollTop:ne}=A;J=ie===0?0:Math.max(0,Math.min(ne+J/ie,A.scrollHeight-P/ie+G)),q=X===0?0:Math.max(0,Math.min(ae+q/X,A.scrollWidth-z/X+ee)),R+=ne-J,I+=ae-q}N.push({el:A,top:J,left:q})}return N},KO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QO(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(ih(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of ih(e,KO(t))){const s=a-n.top+n.bottom,l=i-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const dr=e=>{const[,,,,t]=kr();return t?`${e}-css-var`:""};var ft={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,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},w1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,C=d.useState(!1),w=te(C,2),E=w[0],S=w[1],$=d.useState(0),O=te($,2),k=O[0],M=O[1],j=d.useState(0),R=te(j,2),I=R[0],N=R[1],F=x||E,A=i>0&&s,P=function(){b(u)},z=function(D){(D.key==="Enter"||D.code==="Enter"||D.keyCode===ft.ENTER)&&P()};d.useEffect(function(){if(!F&&i>0){var D=Date.now()-I,B=setTimeout(function(){P()},i*1e3-I);return function(){c&&clearTimeout(B),N(Date.now()-D)}}},[i,F,y]),d.useEffect(function(){if(!F&&A&&(c||I===0)){var D=performance.now(),B,L=function W(){cancelAnimationFrame(B),B=requestAnimationFrame(function(U){var J=U+I-D,q=Math.min(J/(i*1e3),1);M(q*100),q<1&&W()})};return L(),function(){c&&cancelAnimationFrame(B)}}},[i,I,F,A,y]);var H=d.useMemo(function(){return pt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),V=Br(H,!0),T=100-(!k||k<0?0:k>100?100:k),_="".concat(n,"-notice");return d.createElement("div",Ke({},g,{ref:t,className:pe(_,o,Q({},"".concat(_,"-closable"),p)),style:r,onMouseEnter:function(D){var B;S(!0),g==null||(B=g.onMouseEnter)===null||B===void 0||B.call(g,D)},onMouseLeave:function(D){var B;S(!1),g==null||(B=g.onMouseLeave)===null||B===void 0||B.call(g,D)},onClick:m}),d.createElement("div",{className:"".concat(_,"-content")},f),p&&d.createElement("a",Ke({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:z,"aria-label":"Close"},V,{onClick:function(D){D.preventDefault(),D.stopPropagation(),P()}}),H.closeIcon),A&&d.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:T},T+"%"))}),C1=fe.createContext({}),ZO=function(e){var t=e.children,n=e.classNames;return fe.createElement(C1.Provider,{value:{classNames:n}},t)},sh=8,lh=3,ch=16,JO=function(e){var t={offset:sh,threshold:lh,gap:ch};if(e&&pt(e)==="object"){var n,r,o;t.offset=(n=e.offset)!==null&&n!==void 0?n:sh,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:lh,t.gap=(o=e.gap)!==null&&o!==void 0?o:ch}return[!!e,t]},eI=["className","style","classNames","styles"],tI=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,a=e.style,i=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=e.stack,u=Kt(C1),f=u.classNames,p=Ze({}),v=ht(null),h=te(v,2),g=h[0],m=h[1],b=ht([]),y=te(b,2),x=y[0],C=y[1],w=t.map(function(N){return{config:N,key:String(N.key)}}),E=JO(c),S=te(E,2),$=S[0],O=S[1],k=O.offset,M=O.threshold,j=O.gap,R=$&&(x.length>0||w.length<=M),I=typeof i=="function"?i(n):i;return vt(function(){$&&x.length>1&&C(function(N){return N.filter(function(F){return w.some(function(A){var P=A.key;return F===P})})})},[x,w,$]),vt(function(){var N;if($&&p.current[(N=w[w.length-1])===null||N===void 0?void 0:N.key]){var F;m(p.current[(F=w[w.length-1])===null||F===void 0?void 0:F.key])}},[w,$]),fe.createElement(c1,Ke({key:n,className:pe(r,"".concat(r,"-").concat(n),f==null?void 0:f.list,o,Q(Q({},"".concat(r,"-stack"),!!$),"".concat(r,"-stack-expanded"),R)),style:a,keys:w,motionAppear:!0},I,{onAllRemoved:function(){s(n)}}),function(N,F){var A=N.config,P=N.className,z=N.style,H=N.index,V=A,T=V.key,_=V.times,D=String(T),B=A,L=B.className,W=B.style,U=B.classNames,J=B.styles,q=At(B,eI),ee=w.findIndex(function(oe){return oe.key===D}),G={};if($){var X=w.length-1-(ee>-1?ee:H-1),ie=n==="top"||n==="bottom"?"-50%":"0";if(X>0){var ae,ne,ce;G.height=R?(ae=p.current[D])===null||ae===void 0?void 0:ae.offsetHeight:g==null?void 0:g.offsetHeight;for(var de=0,ye=0;ye<X;ye++){var Ee;de+=((Ee=p.current[w[w.length-1-ye].key])===null||Ee===void 0?void 0:Ee.offsetHeight)+j}var ge=(R?de:X*k)*(n.startsWith("top")?1:-1),Se=!R&&g!==null&&g!==void 0&&g.offsetWidth&&(ne=p.current[D])!==null&&ne!==void 0&&ne.offsetWidth?((g==null?void 0:g.offsetWidth)-k*2*(X<3?X:3))/((ce=p.current[D])===null||ce===void 0?void 0:ce.offsetWidth):1;G.transform="translate3d(".concat(ie,", ").concat(ge,"px, 0) scaleX(").concat(Se,")")}else G.transform="translate3d(".concat(ie,", 0, 0)")}return fe.createElement("div",{ref:F,className:pe("".concat(r,"-notice-wrapper"),P,U==null?void 0:U.wrapper),style:Z(Z(Z({},z),G),J==null?void 0:J.wrapper),onMouseEnter:function(){return C(function(oe){return oe.includes(D)?oe:[].concat(Re(oe),[D])})},onMouseLeave:function(){return C(function(oe){return oe.filter(function(ve){return ve!==D})})}},fe.createElement(w1,Ke({},q,{ref:function(oe){ee>-1?p.current[D]=oe:delete p.current[D]},prefixCls:r,classNames:U,styles:J,className:pe(L,f==null?void 0:f.notice),style:W,times:_,key:T,eventKey:T,onNoticeClose:l,hovering:$&&x.length>0})))})},nI=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),v=te(p,2),h=v[0],g=v[1],m=function($){var O,k=h.find(function(M){return M.key===$});k==null||(O=k.onClose)===null||O===void 0||O.call(k),g(function(M){return M.filter(function(j){return j.key!==$})})};d.useImperativeHandle(t,function(){return{open:function($){g(function(O){var k=Re(O),M=k.findIndex(function(I){return I.key===$.key}),j=Z({},$);if(M>=0){var R;j.times=(((R=O[M])===null||R===void 0?void 0:R.times)||0)+1,k[M]=j}else j.times=0,k.push(j);return i>0&&k.length>i&&(k=k.slice(-i)),k})},close:function($){m($)},destroy:function(){g([])}}});var b=d.useState({}),y=te(b,2),x=y[0],C=y[1];d.useEffect(function(){var $={};h.forEach(function(O){var k=O.placement,M=k===void 0?"topRight":k;M&&($[M]=$[M]||[],$[M].push(O))}),Object.keys(x).forEach(function(O){$[O]=$[O]||[]}),C($)},[h]);var w=function($){C(function(O){var k=Z({},O),M=k[$]||[];return M.length||delete k[$],k})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[x]),!o)return null;var S=Object.keys(x);return wp(d.createElement(d.Fragment,null,S.map(function($){var O=x[$],k=d.createElement(tI,{key:$,configList:O,placement:$,prefixCls:r,className:s==null?void 0:s($),style:l==null?void 0:l($),motion:a,onNoticeClose:m,onAllNoticeRemoved:w,stack:u});return f?f(k,{prefixCls:r,key:$}):k})),o)}),rI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],oI=function(){return document.body},uh=0;function aI(){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(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function iI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?oI:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=At(e,rI),p=d.useState(),v=te(p,2),h=v[0],g=v[1],m=d.useRef(),b=d.createElement(nI,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=te(y,2),C=x[0],w=x[1],E=Dt(function($){var O=aI(f,$);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(uh),uh+=1),w(function(k){return[].concat(Re(k),[{type:"open",config:O}])})}),S=d.useMemo(function(){return{open:E,close:function($){w(function(O){return[].concat(Re(O),[{type:"close",key:$}])})},destroy:function(){w(function($){return[].concat(Re($),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){if(m.current&&C.length){C.forEach(function(k){switch(k.type){case"open":m.current.open(k.config);break;case"close":m.current.close(k.key);break;case"destroy":m.current.destroy();break}});var $,O;w(function(k){return($!==k||!O)&&($=k,O=k.filter(function(M){return!C.includes(M)})),O})}},[C]),[S,b]}var sI={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"},lI=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:sI}))},fs=d.forwardRef(lI);const S1=fe.createContext(void 0),bo=100,cI=10,uI=bo*cI,E1={Modal:bo,Drawer:bo,Popover:bo,Popconfirm:bo,Tooltip:bo,Tour:bo,FloatButton:bo},dI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fI(e){return e in E1}const dc=(e,t)=>{const[,n]=kr(),r=fe.useContext(S1),o=fI(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+E1[e]:i+=dI[e],a=[r===void 0?t:i,i]}return a},pI=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,x=new Yt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),C=new Yt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
259
- ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},pn(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
260
- ${t}-move-up-appear,
261
- ${t}-move-up-enter
262
- `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
263
- ${t}-move-up-appear${t}-move-up-appear-active,
264
- ${t}-move-up-enter${t}-move-up-enter-active
265
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,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({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},mI=e=>({zIndexPopup:e.zIndexPopupBase+uI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$1=En("Message",e=>{const t=Qt(e,{height:150});return pI(t)},mI);var gI=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 hI={info:d.createElement(VO,null),success:d.createElement(v1,null),error:d.createElement(uc,null),warning:d.createElement(b1,null),loading:d.createElement(fs,null)},k1=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:pe(`${e}-custom-content`,`${e}-${t}`)},n||hI[t],d.createElement("span",null,r)),vI=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=gI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Bt),l=t||s("message"),c=dr(l),[u,f,p]=$1(l,c);return u(d.createElement(w1,Object.assign({},i,{prefixCls:l,className:pe(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(k1,{prefixCls:l,type:r,icon:o},a)})))};function bI(e,t){return{motionName:t??`${e}-move-up`}}function Kp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var yI=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 xI=8,wI=3,CI=({children:e,prefixCls:t})=>{const n=dr(t),[r,o,a]=$1(t,n);return r(d.createElement(ZO,{classNames:{list:pe(o,a,n)}},e))},SI=(e,{prefixCls:t,key:n})=>d.createElement(CI,{prefixCls:t,key:n},e),EI=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=wI,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:v}=d.useContext(Bt),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??xI}),m=()=>pe({[`${h}-rtl`]:s??v==="rtl"}),b=()=>bI(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(Gp,{className:`${h}-close-icon`})),[x,C]=iI({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:SI});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),C});let dh=0;function O1(e){const t=d.useRef(null);return ic(),[d.useMemo(()=>{const n=a=>{var i;(i=t.current)===null||i===void 0||i.close(a)},r=a=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:i,prefixCls:s,message:l}=t.current,c=`${s}-notice`,{content:u,icon:f,type:p,key:v,className:h,style:g,onClose:m}=a,b=yI(a,["content","icon","type","key","className","style","onClose"]);let y=v;return y==null&&(dh+=1,y=`antd-message-${dh}`),Kp(x=>(i(Object.assign(Object.assign({},b),{key:y,content:d.createElement(k1,{prefixCls:s,type:p,icon:f},u),placement:"top",className:pe(p&&`${c}-${p}`,h,l==null?void 0:l.className),style:Object.assign(Object.assign({},l==null?void 0:l.style),g),onClose:()=>{m==null||m(),x()}})),()=>{n(y)}))},o={open:r,destroy:a=>{var i;a!==void 0?n(a):(i=t.current)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(a=>{const i=(s,l,c)=>{let u;s&&typeof s=="object"&&"content"in s?u=s:u={content:s};let f,p;typeof l=="function"?p=l:(f=l,p=c);const v=Object.assign(Object.assign({onClose:p,duration:f},u),{type:a});return r(v)};o[a]=i}),o},[]),d.createElement(EI,Object.assign({key:"message-holder"},e,{ref:t}))]}function $I(e){return O1(e)}function I1(e,t){this.v=e,this.k=t}function zn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}zn=function(a,i,s,l){function c(u,f){zn(a,u,function(p){return this._invoke(u,f,p)})}i?o?o(a,i,{value:s,enumerable:!l,configurable:!l,writable:!l}):a[i]=s:(c("next",0),c("throw",1),c("return",2))},zn(e,t,n,r)}function Qp(){/*! 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 a(v,h,g,m){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return zn(y,"_invoke",(function(x,C,w){var E,S,$,O=0,k=w||[],M=!1,j={p:0,n:0,v:e,a:R,f:R.bind(e,4),d:function(I,N){return E=I,S=0,$=e,j.n=N,i}};function R(I,N){for(S=I,$=N,t=0;!M&&O&&!F&&t<k.length;t++){var F,A=k[t],P=j.p,z=A[2];I>3?(F=z===N)&&($=A[(S=A[4])?5:(S=3,3)],A[4]=A[5]=e):A[0]<=P&&((F=I<2&&P<A[1])?(S=0,j.v=N,j.n=A[1]):P<z&&(F=I<3||A[0]>N||N>z)&&(A[4]=I,A[5]=N,j.n=z,S=0))}if(F||I>1)return i;throw M=!0,N}return function(I,N,F){if(O>1)throw TypeError("Generator is already running");for(M&&N===1&&R(N,F),S=N,$=F;(t=S<2?e:$)||!M;){E||(S?S<3?(S>1&&(j.n=-1),R(S,$)):j.n=$:j.v=$);try{if(O=2,E){if(S||(I="next"),t=E[I]){if(!(t=t.call(E,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,S<2&&(S=0)}else S===1&&(t=E.return)&&t.call(E),S<2&&($=TypeError("The iterator does not provide a '"+I+"' method"),S=1);E=e}else if((t=(M=j.n<0)?$:x.call(C,j))!==i)break}catch(A){E=e,S=1,$=A}finally{O=1}}return{value:t,done:M}}})(v,g,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(zn(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,zn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,zn(f,"constructor",c),zn(c,"constructor",l),l.displayName="GeneratorFunction",zn(c,o,"GeneratorFunction"),zn(f),zn(f,o,"Generator"),zn(f,r,function(){return this}),zn(f,"toString",function(){return"[object Generator]"}),(Qp=function(){return{w:a,m:p}})()}function Pl(e,t){function n(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof I1?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(zn(Pl.prototype),zn(Pl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),zn(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){n(o,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function M1(e,t,n,r,o){return new Pl(Qp().w(e,t,n,r),o||Promise)}function kI(e,t,n,r,o){var a=M1(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function OI(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 fh(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(pt(e)+" is not iterable")}function Wn(){var e=Qp(),t=e.m(Wn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,f){return l(c.a,o[u],f)},delegateYield:function(u,f,p){return s.resultName=f,l(c.d,fh(u),p)},finish:function(u){return l(c.f,u)}},l=function(u,f,p){c.p=s.prev,c.n=s.next;try{return u(f,p)}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 i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Wn=function(){return{wrap:function(i,s,l,c){return e.w(a(i),s,l,c&&c.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(i,s){return new I1(i,s)},AsyncIterator:Pl,async:function(i,s,l,c,u){return(r(s)?M1:kI)(a(i),s,l,c,u)},keys:OI,values:fh}})()}function ph(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){ph(a,r,o,i,s,"next",l)}function s(l){ph(a,r,o,i,s,"throw",l)}i(void 0)})}}var ps=Z({},Ab),II=ps.version,su=ps.render,MI=ps.unmountComponentAtNode,fc;try{var FI=Number((II||"").split(".")[0]);FI>=18&&(fc=ps.createRoot)}catch{}function mh(e){var t=ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&pt(t)==="object"&&(t.usingClientEntryPoint=e)}var Al="__rc_react_root__";function NI(e,t){mh(!0);var n=t[Al]||fc(t);mh(!1),n.render(e),t[Al]=n}function jI(e,t){su==null||su(e,t)}function PI(e,t){if(fc){NI(e,t);return}jI(e,t)}function AI(e){return Ad.apply(this,arguments)}function Ad(){return Ad=sa(Wn().mark(function e(t){return Wn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Al])===null||r===void 0||r.unmount(),delete t[Al]}));case 1:case"end":return n.stop()}},e)})),Ad.apply(this,arguments)}function RI(e){MI(e)}function TI(e){return Rd.apply(this,arguments)}function Rd(){return Rd=sa(Wn().mark(function e(t){return Wn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(fc===void 0){n.next=2;break}return n.abrupt("return",AI(t));case 2:RI(t);case 3:case"end":return n.stop()}},e)})),Rd.apply(this,arguments)}const DI=(e,t)=>(PI(e,t),()=>TI(t));let _I=DI;function F1(e){return _I}const lu=()=>({height:0,opacity:0}),gh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},BI=e=>({height:e?e.offsetHeight:0}),cu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",hh=(e=Xi)=>({motionName:`${e}-motion-collapse`,onAppearStart:lu,onEnterStart:lu,onAppearActive:gh,onEnterActive:gh,onLeaveStart:BI,onLeaveActive:lu,onAppearEnd:cu,onEnterEnd:cu,onLeaveEnd:cu,motionDeadline:500}),N1=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function to(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const pc=(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(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),zI=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(",")}}}}},HI=Hk("Wave",zI),Zp=`${Xi}-wave-target`;function LI(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"&&e!=="canvastext"}function VI(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(LI))!==null&&t!==void 0?t:null}function uu(e){return Number.isNaN(e)?0:e}const WI=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=d.useRef(null),i=d.useRef(null);d.useEffect(()=>{i.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[v,h]=d.useState(0),[g,m]=d.useState(0),[b,y]=d.useState(0),[x,C]=d.useState(!1),w={left:f,top:v,width:g,height:b,borderRadius:c.map($=>`${$}px`).join(" ")};s&&(w["--wave-color"]=s);function E(){const $=getComputedStyle(n);l(VI(n));const O=$.position==="static",{borderLeftWidth:k,borderTopWidth:M}=$;p(O?n.offsetLeft:uu(-Number.parseFloat(k))),h(O?n.offsetTop:uu(-Number.parseFloat(M))),m(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:j,borderTopRightRadius:R,borderBottomLeftRadius:I,borderBottomRightRadius:N}=$;u([j,R,N,I].map(F=>uu(Number.parseFloat(F))))}if(d.useEffect(()=>{if(n){const $=Pt(()=>{E(),C(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{Pt.cancel($),O==null||O.disconnect()}}},[n]),!x)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Zp));return d.createElement(ia,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,O)=>{var k,M;if(O.deadline||O.propertyName==="opacity"){const j=(k=a.current)===null||k===void 0?void 0:k.parentElement;(M=i.current)===null||M===void 0||M.call(i).then(()=>{j==null||j.remove()})}return!1}},({className:$},O)=>d.createElement("div",{ref:$r(a,O),className:pe(t,$,{"wave-quick":S}),style:w}))},qI=(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 a=F1();let i=null;function s(){return i}i=a(d.createElement(WI,Object.assign({},t,{target:e,registerUnmount:s})),o)},UI=(e,t,n)=>{const{wave:r}=d.useContext(Bt),[,o,a]=kr(),i=Dt(l=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const u=c.querySelector(`.${Zp}`)||c,{showEffect:f}=r||{};(f||qI)(u,{className:t,token:o,component:n,event:l,hashId:a})}),s=d.useRef(null);return l=>{Pt.cancel(s.current),s.current=Pt(()=>{i(l)})}},mc=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Kt(Bt),a=Ze(null),i=o("wave"),[,s]=HI(i),l=UI(a,pe(i,s),r);if(fe.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=p=>{!pc(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!fe.isValidElement(t))return t??null;const c=Za(t)?$r(cs(t),a):a;return Mo(t,{ref:c})},Or=e=>{const t=fe.useContext(ea);return fe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},j1=d.createContext(null),Ro=(e,t)=>{const n=d.useContext(j1),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return pe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${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}},YI=e=>{const{children:t}=e;return d.createElement(j1.Provider,{value:null},t)};var XI=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 P1=d.createContext(void 0),GI=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Bt),{prefixCls:r,size:o,className:a}=e,i=XI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=kr(),c=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=pe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(P1.Provider,{value:o},d.createElement("div",Object.assign({},i,{className:u})))},vh=/^[\u4E00-\u9FA5]{2}$/,Td=vh.test.bind(vh);function bh(e){return typeof e=="string"}function du(e){return e==="text"||e==="link"}function KI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bh(e.type)&&Td(e.props.children)?Mo(e,{children:e.props.children.split("").join(n)}):bh(e)?Td(e)?fe.createElement("span",null,e.split("").join(n)):fe.createElement("span",null,e):y1(e)?fe.createElement("span",null,e):e}function QI(e,t){let n=!1;const r=[];return fe.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=i}),fe.Children.map(r,o=>KI(o,t))}["default","primary","danger"].concat(Re(ta));const Dd=zr((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=pe(`${a}-icon`,n);return fe.createElement("span",{ref:t,className:i,style:r},o)}),yh=zr((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=pe(`${n}-loading-icon`,r);return fe.createElement(Dd,{prefixCls:n,className:i,style:o,ref:t},fe.createElement(fs,{className:a}))}),fu=()=>({width:0,opacity:0,transform:"scale(0)"}),pu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ZI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?fe.createElement(yh,{prefixCls:t,className:o,style:a}):fe.createElement(ia,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:fu,onAppearActive:pu,onEnterStart:fu,onEnterActive:pu,onLeaveStart:pu,onLeaveActive:fu},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},a),c);return fe.createElement(yh,{prefixCls:t,className:pe(o,l),style:f,ref:u})})},xh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),JI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=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}},xh(`${t}-primary`,o),xh(`${t}-danger`,a)]}};var eM=["b"],tM=["v"],mu=function(e){return Math.round(Number(e||0))},nM=function(e){if(e instanceof Ut)return e;if(e&&pt(e)==="object"&&"h"in e&&"b"in e){var t=e,n=t.b,r=At(t,eM);return Z(Z({},r),{},{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},_d=(function(e){jo(n,e);var t=Po(n);function n(r){return mn(this,n),t.call(this,nM(r))}return gn(n,[{key:"toHsbString",value:function(){var r=this.toHsb(),o=mu(r.s*100),a=mu(r.b*100),i=mu(r.h),s=r.a,l="hsb(".concat(i,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(i,", ").concat(o,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?l:c}},{key:"toHsb",value:function(){var r=this.toHsv(),o=r.v,a=At(r,tM);return Z(Z({},a),{},{b:o,a:this.a})}}]),n})(Ut);const rM=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",oM=(e,t)=>e?rM(e,t):"";let Bd=(function(){function e(t){mn(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(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new _d(this.colors[0].color.metaColor)):this.metaColor=new _d(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return gn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return oM(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()}}])})();const aM=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
266
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
267
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),iM=e=>({animationDuration:e,animationFillMode:"both"}),sM=e=>({animationDuration:e,animationFillMode:"both"}),Jp=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
268
- ${a}${e}-enter,
269
- ${a}${e}-appear
270
- `]:Object.assign(Object.assign({},iM(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},sM(r)),{animationPlayState:"paused"}),[`
271
- ${a}${e}-enter${e}-enter-active,
272
- ${a}${e}-appear${e}-appear-active
273
- `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lM=new Yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cM=new Yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),uM=new Yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dM=new Yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fM=new Yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pM=new Yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mM=new Yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gM=new Yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hM={"move-up":{inKeyframes:mM,outKeyframes:gM},"move-down":{inKeyframes:lM,outKeyframes:cM},"move-left":{inKeyframes:uM,outKeyframes:dM},"move-right":{inKeyframes:fM,outKeyframes:pM}},Rl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=hM[t];return[Jp(r,o,a,e.motionDurationMid),{[`
274
- ${r}-enter,
275
- ${r}-appear
276
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},em=new Yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),tm=new Yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),nm=new Yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),rm=new Yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vM=new Yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bM=new Yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yM=new Yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xM=new Yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wM={"slide-up":{inKeyframes:em,outKeyframes:tm},"slide-down":{inKeyframes:nm,outKeyframes:rm},"slide-left":{inKeyframes:vM,outKeyframes:bM},"slide-right":{inKeyframes:yM,outKeyframes:xM}},Tl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=wM[t];return[Jp(r,o,a,e.motionDurationMid),{[`
277
- ${r}-enter,
278
- ${r}-appear
279
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},om=new Yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CM=new Yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),wh=new Yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ch=new Yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),SM=new Yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),EM=new Yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$M=new Yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),kM=new Yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),OM=new Yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IM=new Yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),MM=new Yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FM=new Yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NM={zoom:{inKeyframes:om,outKeyframes:CM},"zoom-big":{inKeyframes:wh,outKeyframes:Ch},"zoom-big-fast":{inKeyframes:wh,outKeyframes:Ch},"zoom-left":{inKeyframes:$M,outKeyframes:kM},"zoom-right":{inKeyframes:OM,outKeyframes:IM},"zoom-up":{inKeyframes:SM,outKeyframes:EM},"zoom-down":{inKeyframes:MM,outKeyframes:FM}},jM=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=NM[t];return[Jp(r,o,a,e.motionDurationFast),{[`
280
- ${r}-enter,
281
- ${r}-appear
282
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},PM=e=>e instanceof Bd?e:new Bd(e),AM=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new _d(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},A1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Qt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},R1=e=>{var t,n,r,o,a,i;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:ll(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:ll(l),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:ll(c),v=AM(new Bd(e.colorBgSolid),"#fff")?"#000":"#fff",h=ta.reduce((g,m)=>Object.assign(Object.assign({},g),{[`${m}ShadowColor`]:`0 ${we(e.controlOutlineWidth)} 0 ${$i(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.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:p,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*p)/2-e.lineWidth,0)})},RM=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${we(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`]:ds(),"> a":{color:"currentColor"},"&:not(:disabled)":Qy(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}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).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()}}}}}},T1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),TM=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),DM=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gc=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},T1(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),_M=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},DM(e))}),BM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),hc=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?BM:_M;return Object.assign(Object.assign({},o(e)),T1(e.componentCls,t,n))},vc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},hc(e,r,o))}),bc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},hc(e,r,o))}),yc=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xc=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},hc(e,n,r))}),Zr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},hc(e,r,o,n))}),zM=e=>{const{componentCls:t}=e;return ta.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=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`]},vc(e,e.colorTextLightSolid,o,{background:i},{background:c})),bc(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),yc(e)),xc(e,a,{color:o,background:s},{color:o,background:l})),Zr(e,o,"link",{color:i},{color:c})),Zr(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},HM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},vc(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),yc(e)),xc(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),gc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),LM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},bc(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),yc(e)),xc(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Zr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Zr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),VM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},vc(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),bc(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yc(e)),xc(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Zr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Zr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),WM=e=>Object.assign(Object.assign({},Zr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),qM=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:HM(e),[`${t}-color-primary`]:LM(e),[`${t}-color-dangerous`]:VM(e),[`${t}-color-link`]:WM(e)},zM(e))},UM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},bc(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Zr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),vc(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Zr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),am=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${we(l)} ${we(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:TM(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},YM=e=>{const t=Qt(e,{fontSize:e.contentFontSize});return am(t,e.componentCls)},XM=e=>{const t=Qt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return am(t,`${e.componentCls}-sm`)},GM=e=>{const t=Qt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return am(t,`${e.componentCls}-lg`)},KM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},QM=En("Button",e=>{const t=A1(e);return[RM(t),YM(t),XM(t),GM(t),KM(t),qM(t),UM(t),JI(t)]},R1,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ZM(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function JM(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 ms(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},ZM(e,r,t,n)),JM(n,r,t))}}function eF(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function tF(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 nF(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},eF(e,t,e.componentCls)),tF(e.componentCls,t))}}const rF=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},oF=lc(["Button","compact"],e=>{const t=A1(e);return[ms(t),nF(t),rF(t)]},R1);var aF=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 iF(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 sF={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},lF=fe.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:p,disabled:v,className:h,rootClassName:g,children:m,icon:b,iconPosition:y="start",ghost:x=!1,block:C=!1,htmlType:w="button",classNames:E,style:S={},autoInsertSpace:$,autoFocus:O}=e,k=aF(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:j}=fe.useContext(Bt),R=u||(j==null?void 0:j.shape)||"default",[I,N]=Gt(()=>{if(i&&s)return[i,s];if(l||c){const Xe=sF[M]||[];return c?["danger",Xe[1]]:Xe}return j!=null&&j.color&&(j!=null&&j.variant)?[j.color,j.variant]:["default","outlined"]},[l,i,s,c,j==null?void 0:j.variant,j==null?void 0:j.color]),F=I==="danger"?"dangerous":I,{getPrefixCls:A,direction:P,autoInsertSpace:z,className:H,style:V,classNames:T,styles:_}=lo("button"),D=(n=$??z)!==null&&n!==void 0?n:!0,B=A("btn",a),[L,W,U]=QM(B),J=Kt(Yn),q=v??J,ee=Kt(P1),G=Gt(()=>iF(o),[o]),[X,ie]=ht(G.loading),[ae,ne]=ht(!1),ce=Ze(null),de=ls(t,ce),ye=Nb.count(m)===1&&!b&&!du(N),Ee=Ze(!0);fe.useEffect(()=>(Ee.current=!1,()=>{Ee.current=!0}),[]),Ht(()=>{let Xe=null;G.delay>0?Xe=setTimeout(()=>{Xe=null,ie(!0)},G.delay):ie(G.loading);function he(){Xe&&(clearTimeout(Xe),Xe=null)}return he},[G.delay,G.loading]),vt(()=>{if(!ce.current||!D)return;const Xe=ce.current.textContent||"";ye&&Td(Xe)?ae||ne(!0):ae&&ne(!1)}),vt(()=>{O&&ce.current&&ce.current.focus()},[]);const ge=fe.useCallback(Xe=>{var he;if(X||q){Xe.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,Xe)},[e.onClick,X,q]),{compactSize:Se,compactItemClassnames:oe}=Ro(B,P),ve={large:"lg",small:"sm",middle:void 0},je=Or(Xe=>{var he,st;return(st=(he=f??Se)!==null&&he!==void 0?he:ee)!==null&&st!==void 0?st:Xe}),se=je&&(r=ve[je])!==null&&r!==void 0?r:"",He=X?"loading":b,De=to(k,["navigate"]),qe=pe(B,W,U,{[`${B}-${R}`]:R!=="default"&&R,[`${B}-${M}`]:M,[`${B}-dangerous`]:c,[`${B}-color-${F}`]:F,[`${B}-variant-${N}`]:N,[`${B}-${se}`]:se,[`${B}-icon-only`]:!m&&m!==0&&!!He,[`${B}-background-ghost`]:x&&!du(N),[`${B}-loading`]:X,[`${B}-two-chinese-chars`]:ae&&D&&!X,[`${B}-block`]:C,[`${B}-rtl`]:P==="rtl",[`${B}-icon-end`]:y==="end"},oe,h,g,H),Ue=Object.assign(Object.assign({},V),S),_e=pe(E==null?void 0:E.icon,T.icon),Oe=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),_.icon||{}),Ie=b&&!X?fe.createElement(Dd,{prefixCls:B,className:_e,style:Oe},b):o&&typeof o=="object"&&o.icon?fe.createElement(Dd,{prefixCls:B,className:_e,style:Oe},o.icon):fe.createElement(ZI,{existIcon:!!b,prefixCls:B,loading:X,mount:Ee.current}),ke=m||m===0?QI(m,ye&&D):null;if(De.href!==void 0)return L(fe.createElement("a",Object.assign({},De,{className:pe(qe,{[`${B}-disabled`]:q}),href:q?void 0:De.href,style:Ue,onClick:ge,ref:de,tabIndex:q?-1:0,"aria-disabled":q}),Ie,ke));let Ne=fe.createElement("button",Object.assign({},k,{type:w,className:qe,style:Ue,onClick:ge,disabled:q,ref:de}),Ie,ke,oe&&fe.createElement(oF,{prefixCls:B}));return du(N)||(Ne=fe.createElement(mc,{component:"Button",disabled:X},Ne)),L(Ne)}),wc=lF;wc.Group=GI;wc.__ANT_BUTTON=!0;var D1=d.createContext(null),Sh=[];function cF(e,t){var n=d.useState(function(){if(!Jn())return null;var h=document.createElement("div");return h}),r=te(n,1),o=r[0],a=d.useRef(!1),i=d.useContext(D1),s=d.useState(Sh),l=te(s,2),c=l[0],u=l[1],f=i||(a.current?void 0:function(h){u(function(g){var m=[h].concat(Re(g));return m})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return Ht(function(){return e?i?i(p):p():v(),v},[e]),Ht(function(){c.length&&(c.forEach(function(h){return h()}),u(Sh))},[c]),[o,f]}function uF(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,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.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,";"):"";ro(`
283
- #`.concat(t,`::-webkit-scrollbar {
284
- `).concat(u,`
285
- `).concat(f,`
286
- }`),t)}catch(h){console.error(h),o=l,a=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vi(t),{width:p,height:v}}function dF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:uF(e)}function fF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pF="rc-util-locker-".concat(Date.now()),Eh=0;function mF(e){var t=!!e,n=d.useState(function(){return Eh+=1,"".concat(pF,"_").concat(Eh)}),r=te(n,1),o=r[0];Ht(function(){if(t){var a=dF(document.body).width,i=fF();ro(`
287
- html body {
288
- overflow-y: hidden;
289
- `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
290
- }`),o)}else Vi(o);return function(){Vi(o)}},[t,o])}var gF=!1;function hF(e){return gF}var $h=function(e){return e===!1?!1:!Jn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},_1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=d.useState(n),c=te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=d.useState(function(){return $h(o)}),h=te(v,2),g=h[0],m=h[1];d.useEffect(function(){var M=$h(o);m(M??null)});var b=cF(p&&!g),y=te(b,2),x=y[0],C=y[1],w=g??x;mF(r&&n&&Jn()&&(w===x||w===document.body));var E=null;if(s&&Za(s)&&t){var S=s;E=S.ref}var $=ls(E,t);if(!p||!Jn()||g===void 0)return null;var O=w===!1||hF(),k=s;return t&&(k=d.cloneElement(s,{ref:$})),d.createElement(D1.Provider,{value:C},O?k:wp(k,w))});function vF(){var e=Z({},d);return e.useId}var kh=0,Oh=vF();const im=Oh?(function(e){var t=Oh();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 a=kh;kh+=1,o("rc_unique_".concat(a))},[]),e||r});var Vo="RC_FORM_INTERNAL_HOOKS",en=function(){An(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},na=d.createContext({getFieldValue:en,getFieldsValue:en,getFieldError:en,getFieldWarning:en,getFieldsError:en,isFieldsTouched:en,isFieldTouched:en,isFieldValidating:en,isFieldsValidating:en,resetFields:en,setFields:en,setFieldValue:en,setFieldsValue:en,validateFields:en,submit:en,getInternalHooks:function(){return en(),{dispatch:en,initEntityValue:en,registerField:en,useSubscribe:en,setInitialValues:en,destroyForm:en,setCallbacks:en,registerWatch:en,getFields:en,setValidateMessages:en,setPreserve:en,getInitialValue:en}}}),Gi=d.createContext(null);function zd(e){return e==null?[]:Array.isArray(e)?e:[e]}function bF(e){return e&&!!e._init}function Hd(){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 Ld=Hd();function yF(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function xF(e,t,n){if(Tp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&zi(o,n.prototype),o}function Vd(e){var t=typeof Map=="function"?new Map:void 0;return Vd=function(n){if(n===null||!yF(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 xF(n,arguments,Hi(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),zi(r,n)},Vd(e)}var wF=/%[sdj%]/g,CF=function(){};function Wd(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(wF,function(s){if(s==="%%")return"%";if(o>=a)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 i}return e}function SF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function In(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||SF(t)&&typeof e=="string"&&!e)}function EF(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,Re(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function Ih(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function $F(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Re(e[n]||[]))}),t}var Mh=(function(e){jo(n,e);var t=Po(n);function n(r,o){var a;return mn(this,n),a=t.call(this,"Async Validation Error"),Q(_t(a),"errors",void 0),Q(_t(a),"fields",void 0),a.errors=r,a.fields=o,a}return gn(n)})(Vd(Error));function kF(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(m){return r(m),m.length?v(new Mh(m,Wd(m))):p(o)},g=$F(e);Ih(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,v){var h=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?v(new Mh(u,Wd(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?Ih(m,n,h):EF(m,n,h)})});return f.catch(function(p){return p}),f}function OF(e){return!!(e&&e.message!==void 0)}function IF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Fh(e,t){return function(n){var r;return e.fullFields?r=IF(t,e.fullFields):r=t[n.field||e.fullField],OF(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 Nh(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];pt(r)==="object"&&pt(e[n])==="object"?e[n]=Z(Z({},e[n]),r):e[n]=r}}return e}var ga="enum",MF=function(e,t,n,r,o){e[ga]=Array.isArray(e[ga])?e[ga]:[],e[ga].indexOf(t)===-1&&r.push(lr(o.messages[ga],e.fullField,e[ga].join(", ")))},FF=function(e,t,n,r,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(lr(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(lr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},NF=function(e,t,n,r,o){var a=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,f=typeof t=="number",p=typeof t=="string",v=Array.isArray(t);if(f?u="number":p?u="string":v&&(u="array"),!u)return!1;v&&(c=t.length),p&&(c=t.replace(l,"_").length),a?c!==e.len&&r.push(lr(o.messages[u].len,e.fullField,e.len)):i&&!s&&c<e.min?r.push(lr(o.messages[u].min,e.fullField,e.min)):s&&!i&&c>e.max?r.push(lr(o.messages[u].max,e.fullField,e.max)):i&&s&&(c<e.min||c>e.max)&&r.push(lr(o.messages[u].range,e.fullField,e.min,e.max))},B1=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||In(t,a||e.type))&&r.push(lr(o.messages.required,e.fullField))},As;const jF=(function(){if(As)return As;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(y).concat(x);return As=new RegExp("(?:^".concat(C,"$)"),"i"),As});var jh={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},ki={integer:function(e){return ki.number(e)&&parseInt(e,10)===e},float:function(e){return ki.number(e)&&!ki.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 pt(e)==="object"&&!ki.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(jh.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(jF())},hex:function(e){return typeof e=="string"&&!!e.match(jh.hex)}},PF=function(e,t,n,r,o){if(e.required&&t===void 0){B1(e,t,n,r,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?ki[i](t)||r.push(lr(o.messages.types[i],e.fullField,e.type)):i&&pt(t)!==e.type&&r.push(lr(o.messages.types[i],e.fullField,e.type))},AF=function(e,t,n,r,o){(/^\s+$/.test(t)||t==="")&&r.push(lr(o.messages.whitespace,e.fullField))};const Wt={required:B1,whitespace:AF,type:PF,range:NF,enum:MF,pattern:FF};var RF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o)}n(a)},TF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();Wt.required(e,t,r,a,o,"array"),t!=null&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},DF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt.type(e,t,r,a,o)}n(a)},_F=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t,"date")&&!e.required)return n();if(Wt.required(e,t,r,a,o),!In(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),Wt.type(e,s,r,a,o),s&&Wt.range(e,s.getTime(),r,a,o)}}n(a)},BF="enum",zF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt[BF](e,t,r,a,o)}n(a)},HF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},LF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},VF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt.type(e,t,r,a,o)}n(a)},WF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},qF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt.type(e,t,r,a,o)}n(a)},UF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t,"string")&&!e.required)return n();Wt.required(e,t,r,a,o),In(t,"string")||Wt.pattern(e,t,r,a,o)}n(a)},YF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),In(t)||Wt.type(e,t,r,a,o)}n(a)},XF=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":pt(t);Wt.required(e,t,r,a,o,i),n(a)},GF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t,"string")&&!e.required)return n();Wt.required(e,t,r,a,o,"string"),In(t,"string")||(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o),Wt.pattern(e,t,r,a,o),e.whitespace===!0&&Wt.whitespace(e,t,r,a,o))}n(a)},gu=function(e,t,n,r,o){var a=e.type,i=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(In(t,a)&&!e.required)return n();Wt.required(e,t,r,i,o,a),In(t,a)||Wt.type(e,t,r,i,o)}n(i)};const Pi={string:GF,method:VF,number:WF,boolean:DF,regexp:YF,integer:LF,float:HF,array:TF,object:qF,enum:zF,pattern:UF,date:_F,url:gu,hex:gu,email:gu,required:XF,any:RF};var gs=(function(){function e(t){mn(this,e),Q(this,"rules",null),Q(this,"_messages",Ld),this.define(t)}return gn(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(pt(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=Nh(Hd(),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(){},a=t,i=r,s=o;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function l(p){var v=[],h={};function g(b){if(Array.isArray(b)){var y;v=(y=v).concat.apply(y,Re(b))}else v.push(b)}for(var m=0;m<p.length;m++)g(p[m]);v.length?(h=Wd(v),s(v,h)):s(null,a)}if(i.messages){var c=this.messages();c===Ld&&(c=Hd()),Nh(c,i.messages),i.messages=c}else i.messages=this.messages();var u={},f=i.keys||Object.keys(this.rules);return f.forEach(function(p){var v=n.rules[p],h=a[p];v.forEach(function(g){var m=g;typeof m.transform=="function"&&(a===t&&(a=Z({},a)),h=a[p]=m.transform(h),h!=null&&(m.type=m.type||(Array.isArray(h)?"array":pt(h)))),typeof m=="function"?m={validator:m}:m=Z({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=p,m.fullField=m.fullField||p,m.type=n.getType(m),u[p]=u[p]||[],u[p].push({rule:m,value:h,source:a,field:p}))})}),kF(u,i,function(p,v){var h=p.rule,g=(h.type==="object"||h.type==="array")&&(pt(h.fields)==="object"||pt(h.defaultField)==="object");g=g&&(h.required||!h.required&&p.value),h.field=p.field;function m(w,E){return Z(Z({},E),{},{fullField:"".concat(h.fullField,".").concat(w),fullFields:h.fullFields?[].concat(Re(h.fullFields),[w]):[w]})}function b(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(w)?w:[w];!i.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&h.message!==void 0&&(E=[].concat(h.message));var S=E.map(Fh(h,a));if(i.first&&S.length)return v(S);if(!g)v(S);else{if(h.required&&!p.value)return h.message!==void 0?S=[].concat(h.message).map(Fh(h,a)):i.error&&(S=[i.error(h,lr(i.messages.required,h.field))]),v(S);var $={};h.defaultField&&Object.keys(p.value).map(function(M){$[M]=h.defaultField}),$=Z(Z({},$),p.rule.fields);var O={};Object.keys($).forEach(function(M){var j=$[M],R=Array.isArray(j)?j:[j];O[M]=R.map(m.bind(null,M))});var k=new e(O);k.messages(i.messages),p.rule.options&&(p.rule.options.messages=i.messages,p.rule.options.error=i.error),k.validate(p.value,p.rule.options||i,function(M){var j=[];S&&S.length&&j.push.apply(j,Re(S)),M&&M.length&&j.push.apply(j,Re(M)),v(j.length?j:null)})}}var y;if(h.asyncValidator)y=h.asyncValidator(h,p.value,b,p.source,i);else if(h.validator){try{y=h.validator(h,p.value,b,p.source,i)}catch(w){var x,C;(x=(C=console).error)===null||x===void 0||x.call(C,w),i.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}y===!0?b():y===!1?b(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):y instanceof Array?b(y):y instanceof Error&&b(y.message)}y&&y.then&&y.then(function(){return b()},function(w){return b(w)})},function(p){l(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Pi.hasOwnProperty(t.type))throw new Error(lr("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"?Pi.required:Pi[this.getType(t)]||void 0}}]),e})();Q(gs,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Pi[e]=t});Q(gs,"warning",CF);Q(gs,"messages",Ld);Q(gs,"validators",Pi);var or="'${name}' is not a valid ${type}",z1={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:or,method:or,array:or,object:or,number:or,date:or,boolean:or,integer:or,float:or,regexp:or,email:or,url:or,hex:or},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}"}},Ph=gs;function KF(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 Ah="CODE_LOGIC_ERROR";function qd(e,t,n,r,o){return Ud.apply(this,arguments)}function Ud(){return Ud=sa(Wn().mark(function e(t,n,r,o,a){var i,s,l,c,u,f,p,v,h;return Wn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=Z({},r),delete i.ruleIndex,Ph.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(Ah)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Ph(Q({},t,[i])),u=ka(z1,o.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(Q({},t,n),Z({},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(m,b){var y=m.message,x=y===Ah?u.default:y;return d.isValidElement(x)?d.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(m,b){return qd("".concat(t,".").concat(b),m,l,o,a)}));case 21:return p=g.sent,g.abrupt("return",p.reduce(function(m,b){return[].concat(Re(m),Re(b))},[]));case 23:return v=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(m){return typeof m=="string"?KF(m,v):m}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ud.apply(this,arguments)}function QF(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,f){var p=u.validator,v=Z(Z({},u),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,y=function(){for(var C=arguments.length,w=new Array(C),E=0;E<C;E++)w[E]=arguments[E];Promise.resolve().then(function(){An(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,w)})},x=p(h,g,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",An(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){m()}).catch(function(C){m(C||" ")})}),v}).sort(function(u,f){var p=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),l;if(o===!0)l=new Promise((function(){var u=sa(Wn().mark(function f(p,v){var h,g,m;return Wn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<s.length)){b.next=12;break}return g=s[h],b.next=5,qd(i,t,g,r,a);case 5:if(m=b.sent,!m.length){b.next=9;break}return v([{errors:m,rule:g}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:p([]);case 13:case"end":return b.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return qd(i,t,u,r,a).then(function(f){return{errors:f,rule:u}})});l=(o?JF(c):ZF(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function ZF(e){return Yd.apply(this,arguments)}function Yd(){return Yd=sa(Wn().mark(function e(t){return Wn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var o,a=(o=[]).concat.apply(o,Re(r));return a}));case 1:case"end":return n.stop()}},e)})),Yd.apply(this,arguments)}function JF(e){return Xd.apply(this,arguments)}function Xd(){return Xd=sa(Wn().mark(function e(t){var n;return Wn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(i){i.errors.length&&o([i]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return r.stop()}},e)})),Xd.apply(this,arguments)}function vn(e){return zd(e)}function Rh(e,t){var n={};return t.forEach(function(r){var o=Cr(e,r);n=wr(n,r,o)}),n}function Da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return H1(t,r,n)})}function H1(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 eN(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pt(e)!=="object"||pt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Re(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function tN(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pt(t.target)==="object"&&e in t.target?t.target[e]:t}function Th(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Re(e.slice(0,n)),[o],Re(e.slice(n,t)),Re(e.slice(t+1,r))):a<0?[].concat(Re(e.slice(0,t)),Re(e.slice(t+1,n+1)),[o],Re(e.slice(n+1,r))):e}var nN=["name"],mr=[];function hu(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var sm=(function(e){jo(n,e);var t=Po(n);function n(r){var o;if(mn(this,n),o=t.call(this,r),Q(_t(o),"state",{resetCount:0}),Q(_t(o),"cancelRegisterFunc",null),Q(_t(o),"mounted",!1),Q(_t(o),"touched",!1),Q(_t(o),"dirty",!1),Q(_t(o),"validatePromise",void 0),Q(_t(o),"prevValidating",void 0),Q(_t(o),"errors",mr),Q(_t(o),"warnings",mr),Q(_t(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,vn(f)),o.cancelRegisterFunc=null}),Q(_t(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Re(p),Re(c)):[]}),Q(_t(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),Q(_t(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Q(_t(o),"metaCache",null),Q(_t(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Z(Z({},o.getMeta()),{},{destroy:l});Il(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),Q(_t(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(m),C=c&&Da(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!Il(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=mr,o.warnings=mr,o.triggerMetaEvent()),u.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&hu(p,l,m,y,x,u)){o.reRender();return}break}case"setField":{var w=u.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||mr),"warnings"in w&&(o.warnings=w.warnings||mr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Da(c,b,!0)){o.reRender();return}if(p&&!b.length&&hu(p,l,m,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(vn);if(E.some(function(S){return Da(u.relatedFields,S)})){o.reRender();return}break}default:if(C||(!h.length||b.length||p)&&hu(p,l,m,y,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),Q(_t(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(sa(Wn().mark(function m(){var b,y,x,C,w,E,S;return Wn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(o.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,C=b.messageVariables,w=b.validateDebounce,E=o.getRules(),p&&(E=E.filter(function(O){return O}).filter(function(O){var k=O.validateTrigger;if(!k)return!0;var M=zd(k);return M.includes(p)})),!(w&&p)){$.next=10;break}return $.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(o.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return S=QF(c,u,E,l,x,C),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr;if(o.validatePromise===g){var k;o.validatePromise=null;var M=[],j=[];(k=O.forEach)===null||k===void 0||k.call(O,function(R){var I=R.rule.warningOnly,N=R.errors,F=N===void 0?mr:N;I?j.push.apply(j,Re(F)):M.push.apply(M,Re(F))}),o.errors=M,o.warnings=j,o.triggerMetaEvent(),o.reRender()}}),$.abrupt("return",S);case 13:case"end":return $.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),o.reRender()),g}),Q(_t(o),"isFieldValidating",function(){return!!o.validatePromise}),Q(_t(o),"isFieldTouched",function(){return o.touched}),Q(_t(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Vo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),Q(_t(o),"getErrors",function(){return o.errors}),Q(_t(o),"getWarnings",function(){return o.warnings}),Q(_t(o),"isListField",function(){return o.props.isListField}),Q(_t(o),"isList",function(){return o.props.isList}),Q(_t(o),"isPreserve",function(){return o.props.preserve}),Q(_t(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}),Q(_t(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Z(Z({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Ha(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Q(_t(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Cr(l||c(!0),u)}),Q(_t(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),C=b.getInternalHooks,w=b.getFieldsValue,E=C(Vo),S=E.dispatch,$=o.getValue(),O=m||function(I){return Q({},g,I)},k=l[f],M=u!==void 0?O($):{},j=Z(Z({},l),M);j[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,N=arguments.length,F=new Array(N),A=0;A<N;A++)F[A]=arguments[A];v?I=v.apply(void 0,F):I=tN.apply(void 0,[g].concat(F)),h&&(I=h(I,$,w(!0))),I!==$&&S({type:"updateValue",namePath:x,value:I}),k&&k.apply(void 0,F)};var R=zd(y||[]);return R.forEach(function(I){var N=j[I];j[I]=function(){N&&N.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&S({type:"validateField",namePath:x,triggerName:I})}}),j}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Vo),s=i.initEntityValue;s(_t(o))}return o}return gn(n,[{key:"componentDidMount",value:function(){var r=this.props,o=r.shouldUpdate,a=r.fieldContext;if(this.mounted=!0,a){var i=a.getInternalHooks,s=i(Vo),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,a=this.getOnlyChild(o),i=a.child,s=a.isFunction,l;return s?l=i:d.isValidElement(i)?l=d.cloneElement(i,this.getControlled(i.props)):(An(!i,"`children` of Field is not validate ReactElement."),l=i),d.createElement(d.Fragment,{key:r},l)}}]),n})(d.Component);Q(sm,"contextType",na);Q(sm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function lm(e){var t,n=e.name,r=At(e,nN),o=d.useContext(na),a=d.useContext(Gi),i=n!==void 0?vn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),d.createElement(sm,Ke({key:l,name:i,isListField:s},r,{fieldContext:o}))}function L1(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(na),l=d.useContext(Gi),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var g=vn(s.prefixName)||[];return[].concat(Re(g),Re(vn(t)))},[s.prefixName,t]),p=d.useMemo(function(){return Z(Z({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(g){var m=f.length,b=g[m];return[u.keys[b],g.slice(m+1)]}}},[f]);if(typeof r!="function")return An(!1,"Form.List only accepts function as children."),null;var h=function(g,m,b){var y=b.source;return y==="internal"?!1:g!==m};return d.createElement(Gi.Provider,{value:v},d.createElement(na.Provider,{value:p},d.createElement(lm,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var b=g.value,y=b===void 0?[]:b,x=g.onChange,C=s.getFieldValue,w=function(){var $=C(f||[]);return $||[]},E={add:function($,O){var k=w();O>=0&&O<=k.length?(u.keys=[].concat(Re(u.keys.slice(0,O)),[u.id],Re(u.keys.slice(O))),x([].concat(Re(k.slice(0,O)),[$],Re(k.slice(O))))):(u.keys=[].concat(Re(u.keys),[u.id]),x([].concat(Re(k),[$]))),u.id+=1},remove:function($){var O=w(),k=new Set(Array.isArray($)?$:[$]);k.size<=0||(u.keys=u.keys.filter(function(M,j){return!k.has(j)}),x(O.filter(function(M,j){return!k.has(j)})))},move:function($,O){if($!==O){var k=w();$<0||$>=k.length||O<0||O>=k.length||(u.keys=Th(u.keys,$,O),x(Th(k,$,O)))}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function($,O){var k=u.keys[O];return k===void 0&&(u.keys[O]=u.id,k=u.keys[O],u.id+=1),{name:O,key:k,isListField:!0}}),E,m)})))}function rN(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var V1="__@field_split__";function vu(e){return e.map(function(t){return"".concat(pt(t),":").concat(t)}).join(V1)}var ha=(function(){function e(){mn(this,e),Q(this,"kvs",new Map)}return gn(e,[{key:"set",value:function(t,n){this.kvs.set(vu(t),n)}},{key:"get",value:function(t){return this.kvs.get(vu(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(vu(t))}},{key:"map",value:function(t){return Re(this.kvs.entries()).map(function(n){var r=te(n,2),o=r[0],a=r[1],i=o.split(V1);return t({key:i.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=te(l,3),u=c[1],f=c[2];return u==="number"?Number(f):f}),value:a})})}},{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})(),oN=["name"],aN=gn(function e(t){var n=this;mn(this,e),Q(this,"formHooked",!1),Q(this,"forceRootUpdate",void 0),Q(this,"subscribable",!0),Q(this,"store",{}),Q(this,"fieldEntities",[]),Q(this,"initialValues",{}),Q(this,"callbacks",{}),Q(this,"validateMessages",null),Q(this,"preserve",null),Q(this,"lastValidatePromise",null),Q(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}}),Q(this,"getInternalHooks",function(r){return r===Vo?(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}):(An(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Q(this,"useSubscribe",function(r){n.subscribable=r}),Q(this,"prevWithoutPreserves",null),Q(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=ka(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=wr(i,l,Cr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),Q(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ha;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Q(this,"getInitialValue",function(r){var o=Cr(n.initialValues,r);return r.length?ka(o):o}),Q(this,"setCallbacks",function(r){n.callbacks=r}),Q(this,"setValidateMessages",function(r){n.validateMessages=r}),Q(this,"setPreserve",function(r){n.preserve=r}),Q(this,"watchList",[]),Q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),Q(this,"timeoutId",null),Q(this,"warningUnhooked",function(){}),Q(this,"updateStore",function(r){n.store=r}),Q(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}),Q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ha;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),Q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=vn(a);return o.get(i)||{INVALIDATE_NAME_PATH:vn(a)}})}),Q(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&pt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in u?u.getMeta():null;i(m)&&c.push(v)}}),Rh(n.store,c.map(vn))}),Q(this,"getFieldValue",function(r){n.warningUnhooked();var o=vn(r);return Cr(n.store,o)}),Q(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:vn(r[i]),errors:[],warnings:[]}})}),Q(this,"getFieldError",function(r){n.warningUnhooked();var o=vn(r),a=n.getFieldsError([o])[0];return a.errors}),Q(this,"getFieldWarning",function(r){n.warningUnhooked();var o=vn(r),a=n.getFieldsError([o])[0];return a.warnings}),Q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(vn),c=!1):(l=null,c=i):(l=i.map(vn),c=s);var u=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(g){return f(g)||g.isList()}):u.some(f);var p=new ha;l.forEach(function(g){p.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();l.forEach(function(b){b.every(function(y,x){return m[x]===y})&&p.update(b,function(y){return[].concat(Re(y),[g])})})});var v=function(g){return g.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),Q(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Q(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(vn);return o.some(function(i){var s=i.getNamePath();return Da(a,s)&&i.isFieldValidating()})}),Q(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Q(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ha,a=n.getFieldEntities(!0);a.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 i=function(l){l.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var f=c.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)An(!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)An(!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),g=c.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(wr(n.store,f,Re(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,Re(Re(c).map(function(f){return f.entity})))}})):s=a,i(s)}),Q(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ka(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(vn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(wr(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),Q(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=At(i,oN),c=vn(s);a.push(c),"value"in l&&n.updateStore(wr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),Q(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=Z(Z({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),Q(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Cr(n.store,a);i===void 0&&n.updateStore(wr(n.store,a,o))}}),Q(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Q(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,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)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!H1(f.getNamePath(),o)})){var u=n.store;n.updateStore(wr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),Q(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),Q(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=Z(Z({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i)})}else n.forceRootUpdate()}),Q(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Re(a))}),a}),Q(this,"updateValue",function(r,o){var a=vn(r),i=n.store;n.updateStore(wr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Rh(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Re(s)))}),Q(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ka(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Q(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Q(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ha;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=vn(u);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),Q(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new ha;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return Da(r,u)});l.length&&a(l,i)}}),Q(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(vn):[],c=[],u=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.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||Da(l,x,v)){var C=y.validateRules(Z({validateMessages:Z(Z({},z1),n.validateMessages)},i));c.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var E,S=[],$=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(O){var k=O.rule.warningOnly,M=O.errors;k?$.push.apply($,Re(M)):S.push.apply(S,Re(M))}),S.length?Promise.reject({name:x,errors:S,warnings:$}):{name:x,errors:S,warnings:$}}))}}});var g=rN(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),m}),Q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function cm(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 a=function(){o({})},i=new aN(a);t.current=i.getForm()}return[t.current]}var Gd=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),W1=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=d.useContext(Gd),i=d.useRef({});return d.createElement(Gd.Provider,{value:Z(Z({},a),{},{validateMessages:Z(Z({},a.validateMessages),t),triggerFormChange:function(s,l){n&&n(s,{changedFields:l,forms:i.current}),a.triggerFormChange(s,l)},triggerFormFinish:function(s,l){r&&r(s,{values:l,forms:i.current}),a.triggerFormFinish(s,l)},registerForm:function(s,l){s&&(i.current=Z(Z({},i.current),{},Q({},s,l))),a.registerForm(s,l)},unregisterForm:function(s){var l=Z({},i.current);delete l[s],i.current=l,a.unregisterForm(s)}})},o)},iN=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],sN=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,s=e.children,l=e.component,c=l===void 0?"form":l,u=e.validateMessages,f=e.validateTrigger,p=f===void 0?"onChange":f,v=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=e.clearOnDestroy,y=At(e,iN),x=d.useRef(null),C=d.useContext(Gd),w=cm(a),E=te(w,1),S=E[0],$=S.getInternalHooks(Vo),O=$.useSubscribe,k=$.setInitialValues,M=$.setCallbacks,j=$.setValidateMessages,R=$.setPreserve,I=$.destroyForm;d.useImperativeHandle(t,function(){return Z(Z({},S),{},{nativeElement:x.current})}),d.useEffect(function(){return C.registerForm(n,S),function(){C.unregisterForm(n)}},[C,S,n]),j(Z(Z({},C.validateMessages),u)),M({onValuesChange:v,onFieldsChange:function(T){if(C.triggerFormChange(n,T),h){for(var _=arguments.length,D=new Array(_>1?_-1:0),B=1;B<_;B++)D[B-1]=arguments[B];h.apply(void 0,[T].concat(D))}},onFinish:function(T){C.triggerFormFinish(n,T),g&&g(T)},onFinishFailed:m}),R(i);var N=d.useRef(null);k(r,!N.current),N.current||(N.current=!0),d.useEffect(function(){return function(){return I(b)}},[]);var F,A=typeof s=="function";if(A){var P=S.getFieldsValue(!0);F=s(P,S)}else F=s;O(!A);var z=d.useRef();d.useEffect(function(){eN(z.current||[],o||[])||S.setFields(o||[]),z.current=o},[o,S]);var H=d.useMemo(function(){return Z(Z({},S),{},{validateTrigger:p})},[S,p]),V=d.createElement(Gi.Provider,{value:null},d.createElement(na.Provider,{value:H},F));return c===!1?V:d.createElement(c,Ke({},y,{ref:x,onSubmit:function(T){T.preventDefault(),T.stopPropagation(),S.submit()},onReset:function(T){var _;T.preventDefault(),S.resetFields(),(_=y.onReset)===null||_===void 0||_.call(y,T)}}),V)};function Dh(e){try{return JSON.stringify(e)}catch{return Math.random()}}function q1(){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],a=o===void 0?{}:o,i=bF(a)?{form:a}:a,s=i.form,l=ht(),c=te(l,2),u=c[0],f=c[1],p=Gt(function(){return Dh(u)},[u]),v=Ze(p);v.current=p;var h=Kt(na),g=s||h,m=g&&g._init,b=vn(r),y=Ze(b);return y.current=b,vt(function(){if(m){var x=g.getFieldsValue,C=g.getInternalHooks,w=C(Vo),E=w.registerWatch,S=function(k,M){var j=i.preserve?M:k;return typeof r=="function"?r(j):Cr(j,y.current)},$=E(function(k,M){var j=S(k,M),R=Dh(j);v.current!==R&&(v.current=R,f(j))}),O=S(x(),x(!0));return u!==O&&f(O),$}},[m]),u}var lN=d.forwardRef(sN),ti=lN;ti.FormProvider=W1;ti.Field=lm;ti.List=L1;ti.useForm=cm;ti.useWatch=q1;const oo=d.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),U1=d.createContext(null),Y1=e=>{const t=to(e,["prefixCls"]);return d.createElement(W1,Object.assign({},t))},um=d.createContext({prefixCls:""}),Rn=d.createContext({}),X1=({children:e,status:t,override:n})=>{const r=d.useContext(Rn),o=d.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return d.createElement(Rn.Provider,{value:o},e)},G1=d.createContext(void 0),Fo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=fe.createElement(X1,{override:!0,status:!0},o)),t&&(o=fe.createElement(YI,null,o)),o};function _h(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Bh(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function zh(e){const{closable:t,closeIcon:n}=e||{};return fe.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])}const cN={};function uN(e,t,n=cN){const r=zh(e),o=zh(t),[a]=aa("global",Io.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=fe.useMemo(()=>Object.assign({closeIcon:fe.createElement(Gp,null)},n),[n]),l=fe.useMemo(()=>r===!1?!1:r?_h(s,o,r):o===!1?!1:o?_h(s,o):s.closable?s:!1,[r,o,s]);return fe.useMemo(()=>{var c,u;if(l===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:p}=l;let v=p;const h=Br(l,!0);return v!=null&&(f&&(v=f(p)),v=fe.isValidElement(v)?fe.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(u=(c=v.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:a.close}),h)):fe.createElement("span",Object.assign({"aria-label":a.close},h),v)),[!0,v,i,h]},[i,a.close,l,s])}const dN=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"}}}},fN=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pN=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Kd=(e,t)=>pN(e,t),mN=(e,t,n)=>({[`@media (min-width: ${we(t)})`]:Object.assign({},Kd(e,n))}),gN=()=>({}),hN=()=>({}),vN=En("Grid",dN,gN),bN=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),yN=En("Grid",e=>{const t=Qt(e,{gridColumns:24}),n=bN(t);return delete n.xs,[fN(t),Kd(t,""),Kd(t,"-xs"),Object.keys(n).map(r=>mN(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},hN),xN=fe.createContext({});function wN(e){return t=>d.createElement(Ao,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const dm=(e,t,n,r,o)=>wN(a=>{const{prefixCls:i,style:s}=a,l=d.useRef(null),[c,u]=d.useState(0),[f,p]=d.useState(0),[v,h]=fn(!1,{value:a.open}),{getPrefixCls:g}=d.useContext(Bt),m=g(r||"select",i);d.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(w=>{const E=w[0].target;u(E.offsetHeight+8),p(E.offsetWidth)}),C=setInterval(()=>{var w;const E=`.${m}-dropdown`,S=(w=l.current)===null||w===void 0?void 0:w.querySelector(E);S&&(clearInterval(C),x.observe(S))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{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)))}),fm=(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 Cc=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,s=typeof n=="function"?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(l){l.preventDefault(),a==null||a(l)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},s!==void 0?s:d.createElement("span",{className:pe(t.split(/\s+/).map(function(l){return"".concat(l,"-icon")}))},o))},CN=function(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=fe.useMemo(function(){if(pt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=fe.useMemo(function(){return!!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return{allowClear:c,clearIcon:fe.createElement(Cc,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"\xD7")}},K1=d.createContext(null);function SN(){return d.useContext(K1)}function EN(){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],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};d.useEffect(function(){return i},[]);var s=function(l,c){i(),a.current=window.setTimeout(function(){o(l),c&&c()},e)};return[r,s,i]}function Q1(){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 $N(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.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",a),function(){return window.removeEventListener("mousedown",a)}},[])}function kN(e){return e&&![ft.ESC,ft.SHIFT,ft.BACKSPACE,ft.TAB,ft.WIN_KEY,ft.ALT,ft.META,ft.WIN_KEY_RIGHT,ft.CTRL,ft.SEMICOLON,ft.EQUALS,ft.CAPS_LOCK,ft.CONTEXT_MENU,ft.F1,ft.F2,ft.F3,ft.F4,ft.F5,ft.F6,ft.F7,ft.F8,ft.F9,ft.F10,ft.F11,ft.F12].includes(e)}var ON=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],va=void 0;function IN(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,v=e.display,h=e.order,g=e.component,m=g===void 0?"div":g,b=At(e,ON),y=i&&!v;function x($){l(c,$)}d.useEffect(function(){return function(){x(null)}},[]);var C=a&&o!==va?a(o,{index:h}):p,w;r||(w={opacity:y?0:1,height:y?0:va,overflowY:y?"hidden":va,order:i?h:va,pointerEvents:y?"none":va,position:y?"absolute":va});var E={};y&&(E["aria-hidden"]=!0);var S=d.createElement(m,Ke({className:pe(!r&&n,u),style:Z(Z({},w),f)},E,b,{ref:t}),C);return i&&(S=d.createElement(eo,{onResize:function($){var O=$.offsetWidth;x(O)},disabled:s},S)),S}var Ma=d.forwardRef(IN);Ma.displayName="Item";function MN(e){if(typeof MessageChannel>"u")Pt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function FN(){var e=d.useRef(null),t=function(n){e.current||(e.current=[],MN(function(){zS(function(){e.current.forEach(function(r){r()}),e.current=null})})),e.current.push(n)};return t}function ba(e,t){var n=d.useState(t),r=te(n,2),o=r[0],a=r[1],i=Dt(function(s){e(function(){a(s)})});return[o,i]}var Dl=fe.createContext(null),NN=["component"],jN=["className"],PN=["className"],AN=function(e,t){var n=d.useContext(Dl);if(!n){var r=e.component,o=r===void 0?"div":r,a=At(e,NN);return d.createElement(o,Ke({},a,{ref:t}))}var i=n.className,s=At(n,jN),l=e.className,c=At(e,PN);return d.createElement(Dl.Provider,{value:null},d.createElement(Ma,Ke({ref:t,className:pe(i,l)},s,c)))},Z1=d.forwardRef(AN);Z1.displayName="RawItem";var RN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],J1="responsive",ex="invalidate";function TN(e){return"+ ".concat(e.length," ...")}function DN(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,v=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.prefix,y=e.suffix,x=e.component,C=x===void 0?"div":x,w=e.itemComponent,E=e.onVisibleChange,S=At(e,RN),$=f==="full",O=FN(),k=ba(O,null),M=te(k,2),j=M[0],R=M[1],I=j||0,N=ba(O,new Map),F=te(N,2),A=F[0],P=F[1],z=ba(O,0),H=te(z,2),V=H[0],T=H[1],_=ba(O,0),D=te(_,2),B=D[0],L=D[1],W=ba(O,0),U=te(W,2),J=U[0],q=U[1],ee=ba(O,0),G=te(ee,2),X=G[0],ie=G[1],ae=ht(null),ne=te(ae,2),ce=ne[0],de=ne[1],ye=ht(null),Ee=te(ye,2),ge=Ee[0],Se=Ee[1],oe=d.useMemo(function(){return ge===null&&$?Number.MAX_SAFE_INTEGER:ge||0},[ge,j]),ve=ht(!1),je=te(ve,2),se=je[0],He=je[1],De="".concat(r,"-item"),qe=Math.max(V,B),Ue=h===J1,_e=a.length&&Ue,Oe=h===ex,Ie=_e||typeof h=="number"&&a.length>h,ke=Gt(function(){var Fe=a;return _e?j===null&&$?Fe=a:Fe=a.slice(0,Math.min(a.length,I/u)):typeof h=="number"&&(Fe=a.slice(0,h)),Fe},[a,u,j,h,_e]),Ne=Gt(function(){return _e?a.slice(oe+1):a.slice(ke.length)},[a,ke,_e,oe]),Xe=rg(function(Fe,xe){var Ae;return typeof l=="function"?l(Fe):(Ae=l&&(Fe==null?void 0:Fe[l]))!==null&&Ae!==void 0?Ae:xe},[l]),he=rg(i||function(Fe){return Fe},[i]);function st(Fe,xe,Ae){ge===Fe&&(xe===void 0||xe===ce)||(Se(Fe),Ae||(He(Fe<a.length-1),E==null||E(Fe)),xe!==void 0&&de(xe))}function yt(Fe,xe){R(xe.clientWidth)}function St(Fe,xe){P(function(Ae){var K=new Map(Ae);return xe===null?K.delete(Fe):K.set(Fe,xe),K})}function Nt(Fe,xe){L(xe),T(B)}function Ve(Fe,xe){q(xe)}function Qe(Fe,xe){ie(xe)}function Ge(Fe){return A.get(Xe(ke[Fe],Fe))}Ht(function(){if(I&&typeof qe=="number"&&ke){var Fe=J+X,xe=ke.length,Ae=xe-1;if(!xe){st(0,null);return}for(var K=0;K<xe;K+=1){var Y=Ge(K);if($&&(Y=Y||0),Y===void 0){st(K-1,void 0,!0);break}if(Fe+=Y,Ae===0&&Fe<=I||K===Ae-1&&Fe+Ge(Ae)<=I){st(Ae,null);break}else if(Fe+qe>I){st(K-1,Fe-Y-X+B);break}}y&&Ge(0)+X>I&&de(null)}},[I,A,B,J,X,Xe,ke]);var ot=se&&!!Ne.length,nt={};ce!==null&&_e&&(nt={position:"absolute",left:ce,top:0});var $t={prefixCls:De,responsive:_e,component:w,invalidate:Oe},Ot=s?function(Fe,xe){var Ae=Xe(Fe,xe);return d.createElement(Dl.Provider,{key:Ae,value:Z(Z({},$t),{},{order:xe,item:Fe,itemKey:Ae,registerSize:St,display:xe<=oe})},s(Fe,xe))}:function(Fe,xe){var Ae=Xe(Fe,xe);return d.createElement(Ma,Ke({},$t,{order:xe,key:Ae,item:Fe,renderItem:he,itemKey:Ae,registerSize:St,display:xe<=oe}))},et={order:ot?oe:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:Nt,display:ot},lt=g||TN,bt=m?d.createElement(Dl.Provider,{value:Z(Z({},$t),et)},m(Ne)):d.createElement(Ma,Ke({},$t,et),typeof lt=="function"?lt(Ne):lt),Le=d.createElement(C,Ke({className:pe(!Oe&&r,v),style:p,ref:t},S),b&&d.createElement(Ma,Ke({},$t,{responsive:Ue,responsiveDisabled:!_e,order:-1,className:"".concat(De,"-prefix"),registerSize:Ve,display:!0}),b),ke.map(Ot),Ie?bt:null,y&&d.createElement(Ma,Ke({},$t,{responsive:Ue,responsiveDisabled:!_e,order:oe,className:"".concat(De,"-suffix"),registerSize:Qe,display:!0,style:nt}),y));return Ue?d.createElement(eo,{onResize:yt,disabled:!_e},Le):Le}var ni=d.forwardRef(DN);ni.displayName="Overflow";ni.Item=Z1;ni.RESPONSIVE=J1;ni.INVALIDATE=ex;function _N(e,t,n){var r=Z(Z({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a.apply(void 0,l),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(l))})}),r}var BN=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],zN=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,s=e.editable,l=e.activeDescendantId,c=e.value,u=e.open,f=e.attrs,p=At(e,BN),v=o||d.createElement("input",null),h=v,g=h.ref,m=h.props;return"maxLength"in v.props,v=d.cloneElement(v,Z(Z(Z({type:"search"},_N(p,m)),{},{id:r,ref:$r(t,g),autoComplete:i||"off",autoFocus:a,className:pe("".concat(n,"-selection-search-input"),m==null?void 0:m.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":u?l:void 0},f),{},{value:s?c:"",readOnly:!s,unselectable:s?null:"on",style:Z(Z({},m.style),{},{opacity:s?null:0})})),v},tx=d.forwardRef(zN);function nx(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var HN=typeof window<"u"&&window.document&&window.document.documentElement,LN=HN;function VN(e){return e!=null}function WN(e){return!e&&e!==0}function Hh(e){return["string","number"].includes(pt(e))}function rx(e){var t=void 0;return e&&(Hh(e.title)?t=e.title.toString():Hh(e.label)&&(t=e.label.toString())),t}function qN(e,t){LN?d.useLayoutEffect(e,t):d.useEffect(e,t)}function UN(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Lh=function(e){e.preventDefault(),e.stopPropagation()},YN=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,a=e.searchValue,i=e.autoClearSearchValue,s=e.inputRef,l=e.placeholder,c=e.disabled,u=e.mode,f=e.showSearch,p=e.autoFocus,v=e.autoComplete,h=e.activeDescendantId,g=e.tabIndex,m=e.removeIcon,b=e.maxTagCount,y=e.maxTagTextLength,x=e.maxTagPlaceholder,C=x===void 0?function(X){return"+ ".concat(X.length," ...")}:x,w=e.tagRender,E=e.onToggleOpen,S=e.onRemove,$=e.onInputChange,O=e.onInputPaste,k=e.onInputKeyDown,M=e.onInputMouseDown,j=e.onInputCompositionStart,R=e.onInputCompositionEnd,I=e.onInputBlur,N=d.useRef(null),F=ht(0),A=te(F,2),P=A[0],z=A[1],H=ht(!1),V=te(H,2),T=V[0],_=V[1],D="".concat(n,"-selection"),B=o||u==="multiple"&&i===!1||u==="tags"?a:"",L=u==="tags"||u==="multiple"&&i===!1||f&&(o||T);qN(function(){z(N.current.scrollWidth)},[B]);var W=function(X,ie,ae,ne,ce){return d.createElement("span",{title:rx(X),className:pe("".concat(D,"-item"),Q({},"".concat(D,"-item-disabled"),ae))},d.createElement("span",{className:"".concat(D,"-item-content")},ie),ne&&d.createElement(Cc,{className:"".concat(D,"-item-remove"),onMouseDown:Lh,onClick:ce,customizeIcon:m},"\xD7"))},U=function(X,ie,ae,ne,ce,de){var ye=function(Ee){Lh(Ee),E(!o)};return d.createElement("span",{onMouseDown:ye},w({label:ie,value:X,disabled:ae,closable:ne,onClose:ce,isMaxTag:!!de}))},J=function(X){var ie=X.disabled,ae=X.label,ne=X.value,ce=!c&&!ie,de=ae;if(typeof y=="number"&&(typeof ae=="string"||typeof ae=="number")){var ye=String(de);ye.length>y&&(de="".concat(ye.slice(0,y),"..."))}var Ee=function(ge){ge&&ge.stopPropagation(),S(X)};return typeof w=="function"?U(ne,de,ie,ce,Ee):W(X,de,ie,ce,Ee)},q=function(X){if(!r.length)return null;var ie=typeof C=="function"?C(X):C;return typeof w=="function"?U(void 0,ie,!1,!1,void 0,!0):W({title:ie},ie,!1)},ee=d.createElement("div",{className:"".concat(D,"-search"),style:{width:P},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},d.createElement(tx,{ref:s,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:p,autoComplete:v,editable:L,activeDescendantId:h,value:B,onKeyDown:k,onMouseDown:M,onChange:$,onPaste:O,onCompositionStart:j,onCompositionEnd:R,onBlur:I,tabIndex:g,attrs:Br(e,!0)}),d.createElement("span",{ref:N,className:"".concat(D,"-search-mirror"),"aria-hidden":!0},B,"\xA0")),G=d.createElement(ni,{prefixCls:"".concat(D,"-overflow"),data:r,renderItem:J,renderRest:q,suffix:ee,itemKey:UN,maxCount:b});return d.createElement("span",{className:"".concat(D,"-wrap")},G,!r.length&&!B&&d.createElement("span",{className:"".concat(D,"-placeholder")},l))},XN=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,f=e.values,p=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,C=e.onInputChange,w=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,$=e.onInputBlur,O=e.title,k=d.useState(!1),M=te(k,2),j=M[0],R=M[1],I=c==="combobox",N=I||h,F=f[0],A=g||"";I&&m&&!j&&(A=m),d.useEffect(function(){I&&R(!1)},[I,m]);var P=c!=="combobox"&&!u&&!h?!1:!!A,z=O===void 0?rx(F):O,H=d.useMemo(function(){return F?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:P?{visibility:"hidden"}:void 0},p)},[F,P,p,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(tx,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:N,activeDescendantId:l,value:A,onKeyDown:y,onMouseDown:x,onChange:function(V){R(!0),C(V)},onPaste:w,onCompositionStart:E,onCompositionEnd:S,onBlur:$,tabIndex:v,attrs:Br(e,!0),maxLength:I?b:void 0})),!I&&F?d.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:P?{visibility:"hidden"}:void 0},F.label):null,H)},GN=function(e,t){var n=Ze(null),r=Ze(!1),o=e.prefixCls,a=e.open,i=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.disabled,u=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,m=e.onInputBlur,b=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(P){n.current.focus(P)},blur:function(){n.current.blur()}}});var y=Q1(0),x=te(y,2),C=x[0],w=x[1],E=function(P){var z=P.which,H=n.current instanceof HTMLTextAreaElement;!H&&a&&(z===ft.UP||z===ft.DOWN)&&P.preventDefault(),g&&g(P),z===ft.ENTER&&i==="tags"&&!r.current&&!a&&(v==null||v(P.target.value)),!(H&&!a&&~[ft.UP,ft.DOWN,ft.LEFT,ft.RIGHT].indexOf(z))&&kN(z)&&h(!0)},S=function(){w(!0)},$=Ze(null),O=function(P){p(P,!0,r.current)!==!1&&h(!0)},k=function(){r.current=!0},M=function(P){r.current=!1,i!=="combobox"&&O(P.target.value)},j=function(P){var z=P.target.value;if(l&&$.current&&/[\r\n]/.test($.current)){var H=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(H,$.current)}$.current=null,O(z)},R=function(P){var z=P.clipboardData,H=z==null?void 0:z.getData("text");$.current=H||""},I=function(P){var z=P.target;if(z!==n.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){n.current.focus()}):n.current.focus()}},N=function(P){var z=C();P.target!==n.current&&!z&&!(i==="combobox"&&c)&&P.preventDefault(),(i!=="combobox"&&(!s||!z)||!a)&&(a&&f!==!1&&p("",!0,!1),h())},F={inputRef:n,onInputKeyDown:E,onInputMouseDown:S,onInputChange:j,onInputPaste:R,onInputCompositionStart:k,onInputCompositionEnd:M,onInputBlur:m},A=i==="multiple"||i==="tags"?d.createElement(YN,Ke({},e,F)):d.createElement(XN,Ke({},e,F));return d.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:I,onMouseDown:N},u&&d.createElement("div",{className:"".concat(o,"-prefix")},u),A)},KN=d.forwardRef(GN);function QN(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],y=g[0],x=g[1];m===y||!["t","b"].includes(m)?v.top=f:m==="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:p,className:pe("".concat(t,"-arrow"),i),style:v},s)}function ZN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?d.createElement(ia,Ke({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return d.createElement("div",{style:{zIndex:r},className:pe("".concat(t,"-mask"),s)})}):null}var JN=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),e5=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,v=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,w=e.portal,E=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,k=e.onPointerDownCapture,M=e.ready,j=e.offsetX,R=e.offsetY,I=e.offsetR,N=e.offsetB,F=e.onAlign,A=e.onPrepare,P=e.stretch,z=e.targetWidth,H=e.targetHeight,V=typeof n=="function"?n():n,T=l||c,_=(x==null?void 0:x.length)>0,D=d.useState(!x||!_),B=te(D,2),L=B[0],W=B[1];if(Ht(function(){!L&&_&&i&&W(!0)},[L,_,i]),!L)return null;var U="auto",J={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(M||!l){var q,ee=g.points,G=g.dynamicInset||((q=g._experimental)===null||q===void 0?void 0:q.dynamicInset),X=G&&ee[0][1]==="r",ie=G&&ee[0][0]==="b";X?(J.right=I,J.left=U):(J.left=j,J.right=U),ie?(J.bottom=N,J.top=U):(J.top=R,J.bottom=U)}var ae={};return P&&(P.includes("height")&&H?ae.height=H:P.includes("minHeight")&&H&&(ae.minHeight=H),P.includes("width")&&z?ae.width=z:P.includes("minWidth")&&z&&(ae.minWidth=z)),l||(ae.pointerEvents="none"),d.createElement(w,{open:y||T,getContainer:x&&function(){return x(i)},autoDestroy:C},d.createElement(ZN,{prefixCls:o,open:l,zIndex:E,mask:p,motion:b}),d.createElement(eo,{onResize:F,disabled:!l},function(ne){return d.createElement(ia,Ke({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(ce){var de;m==null||(de=m.onVisibleChanged)===null||de===void 0||de.call(m,ce),s(ce)}}),function(ce,de){var ye=ce.className,Ee=ce.style,ge=pe(o,ye,r);return d.createElement("div",{ref:$r(ne,t,de),className:ge,style:Z(Z(Z(Z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),ae),Ee),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:O,onClick:f,onPointerDownCapture:k},v&&d.createElement(QN,{prefixCls:o,arrow:v,arrowPos:h,align:g}),d.createElement(JN,{cache:!l&&!u},V))})}))}),t5=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Za(n),a=d.useCallback(function(s){Rp(t,r?r(s):s)},[r]),i=ls(a,cs(n));return o?d.cloneElement(n,{ref:i}):n}),Vh=d.createContext(null);function Wh(e){return e?Array.isArray(e)?e:[e]:[]}function n5(e,t,n,r){return d.useMemo(function(){var o=Wh(n??t),a=Wh(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function r5(){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 o5(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(r5((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function qh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hs(e){return e.ownerDocument.defaultView}function Qd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=hs(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function xi(e){return Ki(parseFloat(e),0)}function Uh(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=hs(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,m=xi(s),b=xi(l),y=xi(c),x=xi(u),C=Ki(Math.round(f.width/h*1e3)/1e3),w=Ki(Math.round(f.height/p*1e3)/1e3),E=(h-g-y-x)*C,S=(p-v-m-b)*w,$=m*w,O=b*w,k=y*C,M=x*C,j=0,R=0;if(a==="clip"){var I=xi(i);j=I*C,R=I*w}var N=f.x+k-j,F=f.y+$-R,A=N+f.width+2*j-k-M-E,P=F+f.height+2*R-$-O-S;n.left=Math.max(n.left,N),n.top=Math.max(n.top,F),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,P)}}),n}function Yh(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 Xh(e,t){var n=t||[],r=te(n,2),o=r[0],a=r[1];return[Yh(e.width,o),Yh(e.height,a)]}function Gh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ya(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function mo(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 a5(e,t,n,r,o,a,i){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),p=d.useMemo(function(){return t?Qd(t):[]},[t]),v=d.useRef({}),h=function(){v.current={}};e||h();var g=Dt(function(){if(t&&n&&e){let $n=function(fo,gi){var po=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je,hi=T.x+fo,Cs=T.y+gi,Vc=hi+ie,Wc=Cs+X,qc=Math.max(hi,po.left),it=Math.max(Cs,po.top),Vt=Math.min(Vc,po.right),Nn=Math.min(Wc,po.bottom);return Math.max(0,(Vt-qc)*(Nn-it))},ma=function(){tt=T.y+lt,at=tt+X,xt=T.x+et,ze=xt+ie};var y,x,C,w,E=t,S=E.ownerDocument,$=hs(E),O=$.getComputedStyle(E),k=O.position,M=E.style.left,j=E.style.top,R=E.style.right,I=E.style.bottom,N=E.style.overflow,F=Z(Z({},o[r]),a),A=S.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(A),A.style.left="".concat(E.offsetLeft,"px"),A.style.top="".concat(E.offsetTop,"px"),A.style.position=k,A.style.height="".concat(E.offsetHeight,"px"),A.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var z,H,V=n.getBoundingClientRect();V.x=(z=V.x)!==null&&z!==void 0?z:V.left,V.y=(H=V.y)!==null&&H!==void 0?H:V.top,P={x:V.x,y:V.y,width:V.width,height:V.height}}var T=E.getBoundingClientRect(),_=$.getComputedStyle(E),D=_.height,B=_.width;T.x=(x=T.x)!==null&&x!==void 0?x:T.left,T.y=(C=T.y)!==null&&C!==void 0?C:T.top;var L=S.documentElement,W=L.clientWidth,U=L.clientHeight,J=L.scrollWidth,q=L.scrollHeight,ee=L.scrollTop,G=L.scrollLeft,X=T.height,ie=T.width,ae=P.height,ne=P.width,ce={left:0,top:0,right:W,bottom:U},de={left:-G,top:-ee,right:J-G,bottom:q-ee},ye=F.htmlRegion,Ee="visible",ge="visibleFirst";ye!=="scroll"&&ye!==ge&&(ye=Ee);var Se=ye===ge,oe=Uh(de,p),ve=Uh(ce,p),je=ye===Ee?ve:oe,se=Se?ve:je;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var He=E.getBoundingClientRect();E.style.left=M,E.style.top=j,E.style.right=R,E.style.bottom=I,E.style.overflow=N,(w=E.parentElement)===null||w===void 0||w.removeChild(A);var De=Ki(Math.round(ie/parseFloat(B)*1e3)/1e3),qe=Ki(Math.round(X/parseFloat(D)*1e3)/1e3);if(De===0||qe===0||Bi(n)&&!pc(n))return;var Ue=F.offset,_e=F.targetOffset,Oe=Xh(T,Ue),Ie=te(Oe,2),ke=Ie[0],Ne=Ie[1],Xe=Xh(P,_e),he=te(Xe,2),st=he[0],yt=he[1];P.x-=st,P.y-=yt;var St=F.points||[],Nt=te(St,2),Ve=Nt[0],Qe=Nt[1],Ge=Gh(Qe),ot=Gh(Ve),nt=ya(P,Ge),$t=ya(T,ot),Ot=Z({},F),et=nt.x-$t.x+ke,lt=nt.y-$t.y+Ne,bt=$n(et,lt),Le=$n(et,lt,ve),Fe=ya(P,["t","l"]),xe=ya(T,["t","l"]),Ae=ya(P,["b","r"]),K=ya(T,["b","r"]),Y=F.overflow||{},ue=Y.adjustX,be=Y.adjustY,Me=Y.shiftX,Be=Y.shiftY,ut=function(fo){return typeof fo=="boolean"?fo:fo>=0},tt,at,xt,ze;ma();var Et=ut(be),Ce=ot[0]===Ge[0];if(Et&&ot[0]==="t"&&(at>se.bottom||v.current.bt)){var Ye=lt;Ce?Ye-=X-ae:Ye=Fe.y-K.y-Ne;var $e=$n(et,Ye),We=$n(et,Ye,ve);$e>bt||$e===bt&&(!Se||We>=Le)?(v.current.bt=!0,lt=Ye,Ne=-Ne,Ot.points=[mo(ot,0),mo(Ge,0)]):v.current.bt=!1}if(Et&&ot[0]==="b"&&(tt<se.top||v.current.tb)){var Pe=lt;Ce?Pe+=X-ae:Pe=Ae.y-xe.y-Ne;var ct=$n(et,Pe),dt=$n(et,Pe,ve);ct>bt||ct===bt&&(!Se||dt>=Le)?(v.current.tb=!0,lt=Pe,Ne=-Ne,Ot.points=[mo(ot,0),mo(Ge,0)]):v.current.tb=!1}var It=ut(ue),Mt=ot[1]===Ge[1];if(It&&ot[1]==="l"&&(ze>se.right||v.current.rl)){var Lt=et;Mt?Lt-=ie-ne:Lt=Fe.x-K.x-ke;var zt=$n(Lt,lt),on=$n(Lt,lt,ve);zt>bt||zt===bt&&(!Se||on>=Le)?(v.current.rl=!0,et=Lt,ke=-ke,Ot.points=[mo(ot,1),mo(Ge,1)]):v.current.rl=!1}if(It&&ot[1]==="r"&&(xt<se.left||v.current.lr)){var an=et;Mt?an+=ie-ne:an=Ae.x-xe.x-ke;var _n=$n(an,lt),Bn=$n(an,lt,ve);_n>bt||_n===bt&&(!Se||Bn>=Le)?(v.current.lr=!0,et=an,ke=-ke,Ot.points=[mo(ot,1),mo(Ge,1)]):v.current.lr=!1}ma();var Dn=Me===!0?0:Me;typeof Dn=="number"&&(xt<ve.left&&(et-=xt-ve.left-ke,P.x+ne<ve.left+Dn&&(et+=P.x-ve.left+ne-Dn)),ze>ve.right&&(et-=ze-ve.right-ke,P.x>ve.right-Dn&&(et+=P.x-ve.right+Dn)));var Kn=Be===!0?0:Be;typeof Kn=="number"&&(tt<ve.top&&(lt-=tt-ve.top-Ne,P.y+ae<ve.top+Kn&&(lt+=P.y-ve.top+ae-Kn)),at>ve.bottom&&(lt-=at-ve.bottom-Ne,P.y>ve.bottom-Kn&&(lt+=P.y-ve.bottom+Kn)));var Qn=T.x+et,Zn=Qn+ie,fr=T.y+lt,Ir=fr+X,mt=P.x,Xt=mt+ne,cn=P.y,Je=cn+ae,Rt=Math.max(Qn,mt),sn=Math.min(Zn,Xt),hn=(Rt+sn)/2,er=hn-Qn,tr=Math.max(fr,cn),nr=Math.min(Ir,Je),Wr=(tr+nr)/2,gt=Wr-fr;i==null||i(t,Ot);var Ft=He.right-T.x-(et+T.width),rn=He.bottom-T.y-(lt+T.height);De===1&&(et=Math.round(et),Ft=Math.round(Ft)),qe===1&&(lt=Math.round(lt),rn=Math.round(rn));var ln={ready:!0,offsetX:et/De,offsetY:lt/qe,offsetR:Ft/De,offsetB:rn/qe,arrowX:er/De,arrowY:gt/qe,scaleX:De,scaleY:qe,align:Ot};u(ln)}}),m=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&g()})},b=function(){u(function(y){return Z(Z({},y),{},{ready:!1})})};return Ht(b,[r]),Ht(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function i5(e,t,n,r,o){Ht(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,s=Qd(a),l=Qd(i),c=hs(i),u=new Set([c].concat(Re(s),Re(l)));return u.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function s5(e,t,n,r,o,a,i,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){c.current=!1},p=function(g){var m;l.current&&!i(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&!c.current&&s(!1)},v=hs(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0);var h=jl(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,a]);function u(){c.current=!0}return u}var l5=["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 c5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_1,t=d.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,b=m===void 0?.1:m,y=n.focusDelay,x=n.blurDelay,C=n.mask,w=n.maskClosable,E=w===void 0?!0:w,S=n.getPopupContainer,$=n.forceRender,O=n.autoDestroy,k=n.destroyPopupOnHide,M=n.popup,j=n.popupClassName,R=n.popupStyle,I=n.popupPlacement,N=n.builtinPlacements,F=N===void 0?{}:N,A=n.popupAlign,P=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,V=n.fresh,T=n.alignPoint,_=n.onPopupClick,D=n.onPopupAlign,B=n.arrow,L=n.popupMotion,W=n.maskMotion,U=n.popupTransitionName,J=n.popupAnimation,q=n.maskTransitionName,ee=n.maskAnimation,G=n.className,X=n.getTriggerDOMNode,ie=At(n,l5),ae=O||k||!1,ne=d.useState(!1),ce=te(ne,2),de=ce[0],ye=ce[1];Ht(function(){ye(fm())},[]);var Ee=d.useRef({}),ge=d.useContext(Vh),Se=d.useMemo(function(){return{registerSubPopup:function(it,Vt){Ee.current[it]=Vt,ge==null||ge.registerSubPopup(it,Vt)}}},[ge]),oe=im(),ve=d.useState(null),je=te(ve,2),se=je[0],He=je[1],De=d.useRef(null),qe=Dt(function(it){De.current=it,Bi(it)&&se!==it&&He(it),ge==null||ge.registerSubPopup(oe,it)}),Ue=d.useState(null),_e=te(Ue,2),Oe=_e[0],Ie=_e[1],ke=d.useRef(null),Ne=Dt(function(it){Bi(it)&&Oe!==it&&(Ie(it),ke.current=it)}),Xe=d.Children.only(i),he=(Xe==null?void 0:Xe.props)||{},st={},yt=Dt(function(it){var Vt,Nn,kn=Oe;return(kn==null?void 0:kn.contains(it))||((Vt=jl(kn))===null||Vt===void 0?void 0:Vt.host)===it||it===kn||(se==null?void 0:se.contains(it))||((Nn=jl(se))===null||Nn===void 0?void 0:Nn.host)===it||it===se||Object.values(Ee.current).some(function(dn){return(dn==null?void 0:dn.contains(it))||it===dn})}),St=qh(a,L,J,U),Nt=qh(a,W,ee,q),Ve=d.useState(p||!1),Qe=te(Ve,2),Ge=Qe[0],ot=Qe[1],nt=f??Ge,$t=Dt(function(it){f===void 0&&ot(it)});Ht(function(){ot(f||!1)},[f]);var Ot=d.useRef(nt);Ot.current=nt;var et=d.useRef([]);et.current=[];var lt=Dt(function(it){var Vt;$t(it),((Vt=et.current[et.current.length-1])!==null&&Vt!==void 0?Vt:nt)!==it&&(et.current.push(it),v==null||v(it))}),bt=d.useRef(),Le=function(){clearTimeout(bt.current)},Fe=function(it){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),Vt===0?lt(it):bt.current=setTimeout(function(){lt(it)},Vt*1e3)};d.useEffect(function(){return Le},[]);var xe=d.useState(!1),Ae=te(xe,2),K=Ae[0],Y=Ae[1];Ht(function(it){(!it||nt)&&Y(!0)},[nt]);var ue=d.useState(null),be=te(ue,2),Me=be[0],Be=be[1],ut=d.useState(null),tt=te(ut,2),at=tt[0],xt=tt[1],ze=function(it){xt([it.clientX,it.clientY])},Et=a5(nt,se,T&&at!==null?at:Oe,I,F,A,D),Ce=te(Et,11),Ye=Ce[0],$e=Ce[1],We=Ce[2],Pe=Ce[3],ct=Ce[4],dt=Ce[5],It=Ce[6],Mt=Ce[7],Lt=Ce[8],zt=Ce[9],on=Ce[10],an=n5(de,l,c,u),_n=te(an,2),Bn=_n[0],Dn=_n[1],Kn=Bn.has("click"),Qn=Dn.has("click")||Dn.has("contextMenu"),Zn=Dt(function(){K||on()}),fr=function(){Ot.current&&T&&Qn&&Fe(!1)};i5(nt,Oe,se,Zn,fr),Ht(function(){Zn()},[at,I]),Ht(function(){nt&&!(F!=null&&F[I])&&Zn()},[JSON.stringify(A)]);var Ir=d.useMemo(function(){var it=o5(F,a,zt,T);return pe(it,H==null?void 0:H(zt))},[zt,H,F,a,T]);d.useImperativeHandle(r,function(){return{nativeElement:ke.current,popupElement:De.current,forceAlign:Zn}});var mt=d.useState(0),Xt=te(mt,2),cn=Xt[0],Je=Xt[1],Rt=d.useState(0),sn=te(Rt,2),hn=sn[0],er=sn[1],tr=function(){if(z&&Oe){var it=Oe.getBoundingClientRect();Je(it.width),er(it.height)}},nr=function(){tr(),Zn()},Wr=function(it){Y(!1),on(),h==null||h(it)},gt=function(){return new Promise(function(it){tr(),Be(function(){return it})})};Ht(function(){Me&&(on(),Me(),Be(null))},[Me]);function Ft(it,Vt,Nn,kn){st[it]=function(dn){var Ss;kn==null||kn(dn),Fe(Vt,Nn);for(var Uc=arguments.length,ng=new Array(Uc>1?Uc-1:0),Es=1;Es<Uc;Es++)ng[Es-1]=arguments[Es];(Ss=he[it])===null||Ss===void 0||Ss.call.apply(Ss,[he,dn].concat(ng))}}(Kn||Qn)&&(st.onClick=function(it){var Vt;Ot.current&&Qn?Fe(!1):!Ot.current&&Kn&&(ze(it),Fe(!0));for(var Nn=arguments.length,kn=new Array(Nn>1?Nn-1:0),dn=1;dn<Nn;dn++)kn[dn-1]=arguments[dn];(Vt=he.onClick)===null||Vt===void 0||Vt.call.apply(Vt,[he,it].concat(kn))});var rn=s5(nt,Qn,Oe,se,C,E,yt,Fe),ln=Bn.has("hover"),$n=Dn.has("hover"),ma,fo;ln&&(Ft("onMouseEnter",!0,g,function(it){ze(it)}),Ft("onPointerEnter",!0,g,function(it){ze(it)}),ma=function(it){(nt||K)&&se!==null&&se!==void 0&&se.contains(it.target)&&Fe(!0,g)},T&&(st.onMouseMove=function(it){var Vt;(Vt=he.onMouseMove)===null||Vt===void 0||Vt.call(he,it)})),$n&&(Ft("onMouseLeave",!1,b),Ft("onPointerLeave",!1,b),fo=function(){Fe(!1,b)}),Bn.has("focus")&&Ft("onFocus",!0,y),Dn.has("focus")&&Ft("onBlur",!1,x),Bn.has("contextMenu")&&(st.onContextMenu=function(it){var Vt;Ot.current&&Dn.has("contextMenu")?Fe(!1):(ze(it),Fe(!0)),it.preventDefault();for(var Nn=arguments.length,kn=new Array(Nn>1?Nn-1:0),dn=1;dn<Nn;dn++)kn[dn-1]=arguments[dn];(Vt=he.onContextMenu)===null||Vt===void 0||Vt.call.apply(Vt,[he,it].concat(kn))}),G&&(st.className=pe(he.className,G));var gi=d.useRef(!1);gi.current||(gi.current=$||nt||K);var po=Z(Z({},he),st),hi={},Cs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Cs.forEach(function(it){ie[it]&&(hi[it]=function(){for(var Vt,Nn=arguments.length,kn=new Array(Nn),dn=0;dn<Nn;dn++)kn[dn]=arguments[dn];(Vt=po[it])===null||Vt===void 0||Vt.call.apply(Vt,[po].concat(kn)),ie[it].apply(ie,kn)})});var Vc=d.cloneElement(Xe,Z(Z({},po),hi)),Wc={x:dt,y:It},qc=B?Z({},B!==!0?B:{}):null;return d.createElement(d.Fragment,null,d.createElement(eo,{disabled:!nt,ref:Ne,onResize:nr},d.createElement(t5,{getTriggerDOMNode:X},Vc)),gi.current&&d.createElement(Vh.Provider,{value:Se},d.createElement(e5,{portal:e,ref:qe,prefixCls:a,popup:M,className:pe(j,Ir),style:R,target:Oe,onMouseEnter:ma,onMouseLeave:fo,onPointerEnter:ma,zIndex:P,open:nt,keepDom:K,fresh:V,onClick:_,onPointerDownCapture:rn,mask:C,motion:St,maskMotion:Nt,onVisibleChanged:Wr,onPrepare:gt,forceRender:$,autoDestroy:ae,getPopupContainer:S,align:zt,arrow:qc,arrowPos:Wc,ready:Ye,offsetX:$e,offsetY:We,offsetR:Pe,offsetB:ct,onAlign:Zn,stretch:z,targetWidth:cn/Mt,targetHeight:hn/Lt})))});return t}const pm=c5(_1);var u5=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],d5=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"}}},f5=function(e,t){var n=e.prefixCls,r=e.visible,o=e.children,a=e.popupElement,i=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,f=u===void 0?"ltr":u,p=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,C=e.onPopupVisibleChange,w=e.onPopupMouseEnter,E=At(e,u5),S="".concat(n,"-dropdown"),$=a;g&&($=g(a));var O=d.useMemo(function(){return v||d5(h)},[v,h]),k=i?"".concat(S,"-").concat(i):s,M=typeof h=="number",j=d.useMemo(function(){return M?null:h===!1?"minWidth":"width"},[h,M]),R=l;M&&(R=Z(Z({},R),{},{width:h}));var I=d.useRef(null);return d.useImperativeHandle(t,function(){return{getPopupElement:function(){var N;return(N=I.current)===null||N===void 0?void 0:N.popupElement}}}),d.createElement(pm,Ke({},E,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:S,popupTransitionName:k,popup:d.createElement("div",{onMouseEnter:w},$),ref:I,stretch:j,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:pe(c,Q({},"".concat(S,"-empty"),y)),popupStyle:R,getTriggerDOMNode:x,onPopupVisibleChange:C}),o)},p5=d.forwardRef(f5);function Kh(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 Zd(e){return typeof e<"u"&&!Number.isNaN(e)}function ox(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function m5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=ox(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(v){if(p||!(l in v)){var h=v[s];o.push({key:Kh(v,o.length),groupOption:p,data:v,label:v[i],value:h})}else{var g=v[c];g===void 0&&r&&(g=v.label),o.push({key:Kh(v,o.length),group:!0,data:v,label:g}),u(v[l],!0)}})}return u(e,!1),o}function Jd(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return An(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var g5=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function i(s,l){var c=Ry(l),u=c[0],f=c.slice(1);if(!u)return[s];var p=s.split(u);return r=r||p.length>1,p.reduce(function(v,h){return[].concat(Re(v),Re(i(h,f)))},[]).filter(Boolean)},a=o(e,t);return r?typeof n<"u"?a.slice(0,n):a:null},mm=d.createContext(null);function h5(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 a=o.label,i=o.value;return["number","string"].includes(pt(a))?a:i}).join(", ")),n.length>r?", ...":null)}var v5=["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"],b5=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ef=function(e){return e==="tags"||e==="multiple"},y5=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,g=e.onClear,m=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,C=e.getRawInputElement,w=e.open,E=e.defaultOpen,S=e.onDropdownVisibleChange,$=e.activeValue,O=e.onActiveValueChange,k=e.activeDescendantId,M=e.searchValue,j=e.autoClearSearchValue,R=e.onSearch,I=e.onSearchSplit,N=e.tokenSeparators,F=e.allowClear,A=e.prefix,P=e.suffixIcon,z=e.clearIcon,H=e.OptionList,V=e.animation,T=e.transitionName,_=e.dropdownStyle,D=e.dropdownClassName,B=e.dropdownMatchSelectWidth,L=e.dropdownRender,W=e.dropdownAlign,U=e.placement,J=e.builtinPlacements,q=e.getPopupContainer,ee=e.showAction,G=ee===void 0?[]:ee,X=e.onFocus,ie=e.onBlur,ae=e.onKeyUp,ne=e.onKeyDown,ce=e.onMouseDown,de=At(e,v5),ye=ef(m),Ee=(i!==void 0?i:ye)||m==="combobox",ge=Z({},de);b5.forEach(function(mt){delete ge[mt]}),c==null||c.forEach(function(mt){delete ge[mt]});var Se=d.useState(!1),oe=te(Se,2),ve=oe[0],je=oe[1];d.useEffect(function(){je(fm())},[]);var se=d.useRef(null),He=d.useRef(null),De=d.useRef(null),qe=d.useRef(null),Ue=d.useRef(null),_e=d.useRef(!1),Oe=EN(),Ie=te(Oe,3),ke=Ie[0],Ne=Ie[1],Xe=Ie[2];d.useImperativeHandle(t,function(){var mt,Xt;return{focus:(mt=qe.current)===null||mt===void 0?void 0:mt.focus,blur:(Xt=qe.current)===null||Xt===void 0?void 0:Xt.blur,scrollTo:function(cn){var Je;return(Je=Ue.current)===null||Je===void 0?void 0:Je.scrollTo(cn)},nativeElement:se.current||He.current}});var he=d.useMemo(function(){var mt;if(m!=="combobox")return M;var Xt=(mt=u[0])===null||mt===void 0?void 0:mt.value;return typeof Xt=="string"||typeof Xt=="number"?String(Xt):""},[M,m,u]),st=m==="combobox"&&typeof x=="function"&&x()||null,yt=typeof C=="function"&&C(),St=ls(He,yt==null||(n=yt.props)===null||n===void 0?void 0:n.ref),Nt=d.useState(!1),Ve=te(Nt,2),Qe=Ve[0],Ge=Ve[1];Ht(function(){Ge(!0)},[]);var ot=fn(!1,{defaultValue:E,value:w}),nt=te(ot,2),$t=nt[0],Ot=nt[1],et=Qe?$t:!1,lt=!h&&p;(b||lt&&et&&m==="combobox")&&(et=!1);var bt=lt?!1:et,Le=d.useCallback(function(mt){var Xt=mt!==void 0?mt:!et;b||(Ot(Xt),et!==Xt&&(S==null||S(Xt)))},[b,et,Ot,S]),Fe=d.useMemo(function(){return(N||[]).some(function(mt){return[`
291
- `,`\r
292
- `].includes(mt)})},[N]),xe=d.useContext(mm)||{},Ae=xe.maxCount,K=xe.rawValues,Y=function(mt,Xt,cn){if(!(ye&&Zd(Ae)&&(K==null?void 0:K.size)>=Ae)){var Je=!0,Rt=mt;O==null||O(null);var sn=g5(mt,N,Zd(Ae)?Ae-K.size:void 0),hn=cn?null:sn;return m!=="combobox"&&hn&&(Rt="",I==null||I(hn),Le(!1),Je=!1),R&&he!==Rt&&R(Rt,{source:Xt?"typing":"effect"}),Je}},ue=function(mt){!mt||!mt.trim()||R(mt,{source:"submit"})};d.useEffect(function(){!et&&!ye&&m!=="combobox"&&Y("",!1,!1)},[et]),d.useEffect(function(){$t&&b&&Ot(!1),b&&!_e.current&&Ne(!1)},[b]);var be=Q1(),Me=te(be,2),Be=Me[0],ut=Me[1],tt=d.useRef(!1),at=function(mt){var Xt=Be(),cn=mt.key,Je=cn==="Enter";if(Je&&(m!=="combobox"&&mt.preventDefault(),et||Le(!0)),ut(!!he),cn==="Backspace"&&!Xt&&ye&&!he&&u.length){for(var Rt=Re(u),sn=null,hn=Rt.length-1;hn>=0;hn-=1){var er=Rt[hn];if(!er.disabled){Rt.splice(hn,1),sn=er;break}}sn&&f(Rt,{type:"remove",values:[sn]})}for(var tr=arguments.length,nr=new Array(tr>1?tr-1:0),Wr=1;Wr<tr;Wr++)nr[Wr-1]=arguments[Wr];if(et&&(!Je||!tt.current)){var gt;Je&&(tt.current=!0),(gt=Ue.current)===null||gt===void 0||gt.onKeyDown.apply(gt,[mt].concat(nr))}ne==null||ne.apply(void 0,[mt].concat(nr))},xt=function(mt){for(var Xt=arguments.length,cn=new Array(Xt>1?Xt-1:0),Je=1;Je<Xt;Je++)cn[Je-1]=arguments[Je];if(et){var Rt;(Rt=Ue.current)===null||Rt===void 0||Rt.onKeyUp.apply(Rt,[mt].concat(cn))}mt.key==="Enter"&&(tt.current=!1),ae==null||ae.apply(void 0,[mt].concat(cn))},ze=function(mt){var Xt=u.filter(function(cn){return cn!==mt});f(Xt,{type:"remove",values:[mt]})},Et=function(){tt.current=!1},Ce=d.useRef(!1),Ye=function(){Ne(!0),b||(X&&!Ce.current&&X.apply(void 0,arguments),G.includes("focus")&&Le(!0)),Ce.current=!0},$e=function(){_e.current=!0,Ne(!1,function(){Ce.current=!1,_e.current=!1,Le(!1)}),!b&&(he&&(m==="tags"?R(he,{source:"submit"}):m==="multiple"&&R("",{source:"blur"})),ie&&ie.apply(void 0,arguments))},We=[];d.useEffect(function(){return function(){We.forEach(function(mt){return clearTimeout(mt)}),We.splice(0,We.length)}},[]);var Pe=function(mt){var Xt,cn=mt.target,Je=(Xt=De.current)===null||Xt===void 0?void 0:Xt.getPopupElement();if(Je&&Je.contains(cn)){var Rt=setTimeout(function(){var tr=We.indexOf(Rt);if(tr!==-1&&We.splice(tr,1),Xe(),!ve&&!Je.contains(document.activeElement)){var nr;(nr=qe.current)===null||nr===void 0||nr.focus()}});We.push(Rt)}for(var sn=arguments.length,hn=new Array(sn>1?sn-1:0),er=1;er<sn;er++)hn[er-1]=arguments[er];ce==null||ce.apply(void 0,[mt].concat(hn))},ct=d.useState({}),dt=te(ct,2),It=dt[1];function Mt(){It({})}var Lt;yt&&(Lt=function(mt){Le(mt)}),$N(function(){var mt;return[se.current,(mt=De.current)===null||mt===void 0?void 0:mt.getPopupElement()]},bt,Le,!!yt);var zt=d.useMemo(function(){return Z(Z({},e),{},{notFoundContent:h,open:et,triggerOpen:bt,id:r,showSearch:Ee,multiple:ye,toggleOpen:Le})},[e,h,bt,et,r,Ee,ye,Le]),on=!!P||y,an;on&&(an=d.createElement(Cc,{className:pe("".concat(o,"-arrow"),Q({},"".concat(o,"-arrow-loading"),y)),customizeIcon:P,customizeIconProps:{loading:y,searchValue:he,open:et,focused:ke,showSearch:Ee}}));var _n=function(){var mt;g==null||g(),(mt=qe.current)===null||mt===void 0||mt.focus(),f([],{type:"clear",values:u}),Y("",!1,!1)},Bn=CN(o,_n,u,F,z,b,he,m),Dn=Bn.allowClear,Kn=Bn.clearIcon,Qn=d.createElement(H,{ref:Ue}),Zn=pe(o,a,Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(o,"-focused"),ke),"".concat(o,"-multiple"),ye),"".concat(o,"-single"),!ye),"".concat(o,"-allow-clear"),F),"".concat(o,"-show-arrow"),on),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),et),"".concat(o,"-customize-input"),st),"".concat(o,"-show-search"),Ee)),fr=d.createElement(p5,{ref:De,disabled:b,prefixCls:o,visible:bt,popupElement:Qn,animation:V,transitionName:T,dropdownStyle:_,dropdownClassName:D,direction:l,dropdownMatchSelectWidth:B,dropdownRender:L,dropdownAlign:W,placement:U,builtinPlacements:J,getPopupContainer:q,empty:p,getTriggerDOMNode:function(mt){return He.current||mt},onPopupVisibleChange:Lt,onPopupMouseEnter:Mt},yt?d.cloneElement(yt,{ref:St}):d.createElement(KN,Ke({},e,{domRef:He,prefixCls:o,inputElement:st,ref:qe,id:r,prefix:A,showSearch:Ee,autoClearSearchValue:j,mode:m,activeDescendantId:k,tagRender:s,values:u,open:et,onToggleOpen:Le,activeValue:$,searchValue:he,onSearch:Y,onSearchSubmit:ue,onRemove:ze,tokenWithEnter:Fe,onInputBlur:Et}))),Ir;return yt?Ir=fr:Ir=d.createElement("div",Ke({className:Zn},ge,{ref:se,onMouseDown:Pe,onKeyDown:at,onKeyUp:xt,onFocus:Ye,onBlur:$e}),d.createElement(h5,{visible:ke&&!et,values:u}),fr,an,Dn&&Kn),d.createElement(K1.Provider,{value:zt},Ir)}),gm=function(){return null};gm.isSelectOptGroup=!0;var hm=function(){return null};hm.isSelectOption=!0;var ax=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},p=Z(Z({},p),{},Q(Q(Q(Q(Q({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:f},d.createElement(eo,{onResize:function(v){var h=v.offsetHeight;h&&s&&s()}},d.createElement("div",Ke({style:p,className:pe(Q({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});ax.displayName="Filler";function x5(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function w5(e,t,n,r,o,a,i,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var f=t+u,p=i(c,f,{style:{width:r},offsetX:o}),v=l(c);return d.createElement(x5,{key:v,setRef:function(h){return a(c,h)}},p)})}function C5(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=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<i.length;f+=1){var p=l(a[f]),v=l(i[f]);if(p!==v){c=f,u=u||p!==l(i[f+1]);break}}return c===null?null:{index:c,multiple:u}}function S5(e,t,n){var r=d.useState(e),o=te(r,2),a=o[0],i=o[1],s=d.useState(null),l=te(s,2),c=l[0],u=l[1];return d.useEffect(function(){var f=C5(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&u(e[f.index]),i(e)},[e]),[c]}var Qh=(typeof navigator>"u"?"undefined":pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ix=(function(e,t,n,r){var o=Ze(!1),a=Ze(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=Ze({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(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}});function E5(e,t,n,r,o,a,i){var s=Ze(0),l=Ze(null),c=Ze(null),u=Ze(!1),f=ix(t,n,r,o);function p(y,x){if(Pt.cancel(l.current),!f(!1,x)){var C=y;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=x,c.current=x,Qh||C.preventDefault(),l.current=Pt(function(){var w=u.current?10:1;i(s.current*w,!1),s.current=0})}}function v(y,x){i(x,!0),Qh||y.preventDefault()}var h=Ze(null),g=Ze(null);function m(y){if(e){Pt.cancel(g.current),g.current=Pt(function(){h.current=null},2);var x=y.deltaX,C=y.deltaY,w=y.shiftKey,E=x,S=C;(h.current==="sx"||!h.current&&w&&C&&!x)&&(E=C,S=0,h.current="sx");var $=Math.abs(E),O=Math.abs(S);h.current===null&&(h.current=a&&$>O?"x":"y"),h.current==="y"?p(y,S):v(y,E)}}function b(y){e&&(u.current=y.detail===c.current)}return[m,b]}function $5(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=te(o,2),i=a[0],s=a[1],l=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=i.get(c),p=i.get(u);if(f===void 0||p===void 0)for(var v=e.length,h=s.length;h<v;h+=1){var g,m=e[h],b=t(m);i.set(b,h);var y=(g=n.get(b))!==null&&g!==void 0?g:r;if(s[h]=(s[h-1]||0)+y,b===c&&(f=h),b===u&&(p=h),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var k5=(function(){function e(){mn(this,e),Q(this,"maps",void 0),Q(this,"id",0),Q(this,"diffRecords",new Map),this.maps=Object.create(null)}return gn(e,[{key:"set",value:function(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Zh(e){var t=parseFloat(e);return isNaN(t)?0:t}function O5(e,t,n){var r=d.useState(0),o=te(r,2),a=o[0],i=o[1],s=Ze(new Map),l=Ze(new k5),c=Ze(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 m=!1;s.current.forEach(function(b,y){if(b&&b.offsetParent){var x=b.offsetHeight,C=getComputedStyle(b),w=C.marginTop,E=C.marginBottom,S=Zh(w),$=Zh(E),O=x+S+$;l.current.get(y)!==O&&(l.current.set(y,O),m=!0)}}),m&&i(function(b){return b+1})};if(v)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function p(v,h){var g=e(v);s.current.get(g),h?(s.current.set(g,h),f()):s.current.delete(g)}return vt(function(){return u},[]),[p,f,l.current,a]}var Jh=14/15;function I5(e,t,n){var r=Ze(!1),o=Ze(0),a=Ze(0),i=Ze(null),s=Ze(null),l,c=function(p){if(r.current){var v=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),g=o.current-v,m=a.current-h,b=Math.abs(g)>Math.abs(m);b?o.current=v:a.current=h;var y=n(b,b?g:m,!1,p);y&&p.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){b?g*=Jh:m*=Jh;var x=Math.floor(b?g:m);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",u,{passive:!0}))};l=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",u))},Ht(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function ev(e){return Math.floor(Math.pow(e,.5))}function tf(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function M5(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){Pt.cancel(a)},l=function p(){s(),a=Pt(function(){n(i),p()})},c=function(){o=!1,s()},u=function(p){if(!(p.target.draggable||p.button!==0)){var v=p;v._virtualHandled||(v._virtualHandled=!0,o=!0)}},f=function(p){if(o){var v=tf(p,!1),h=r.getBoundingClientRect(),g=h.top,m=h.bottom;if(v<=g){var b=g-v;i=-ev(b),l()}else if(v>=m){var y=v-m;i=ev(y),l()}else s()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var F5=10;function N5(e,t,n,r,o,a,i,s){var l=d.useRef(),c=d.useState(null),u=te(c,2),f=u[0],p=u[1];return Ht(function(){if(f&&f.times<F5){if(!e.current){p(function(z){return Z({},z)});return}a();var v=f.targetAlign,h=f.originAlign,g=f.index,m=f.offset,b=e.current.clientHeight,y=!1,x=v,C=null;if(b){for(var w=v||h,E=0,S=0,$=0,O=Math.min(t.length-1,g),k=0;k<=O;k+=1){var M=o(t[k]);S=E;var j=n.get(M);$=S+(j===void 0?r:j),E=$}for(var R=w==="top"?m:b-m,I=O;I>=0;I-=1){var N=o(t[I]),F=n.get(N);if(F===void 0){y=!0;break}if(R-=F,R<=0)break}switch(w){case"top":C=S-m;break;case"bottom":C=$-b+m;break;default:{var A=e.current.scrollTop,P=A+b;S<A?x="top":$>P&&(x="bottom")}}C!==null&&i(C),C!==f.lastTop&&(y=!0)}y&&p(Z(Z({},f),{},{times:f.times+1,targetAlign:x,lastTop:C}))}},[f,e.current]),function(v){if(v==null){s();return}if(Pt.cancel(l.current),typeof v=="number")i(v);else if(v&&pt(v)==="object"){var h,g=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var m=v.offset,b=m===void 0?0:m;p({times:0,index:h,offset:b,originAlign:g})}}}var tv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,v=e.thumbStyle,h=e.showScrollBar,g=d.useState(!1),m=te(g,2),b=m[0],y=m[1],x=d.useState(null),C=te(x,2),w=C[0],E=C[1],S=d.useState(null),$=te(S,2),O=$[0],k=$[1],M=!r,j=d.useRef(),R=d.useRef(),I=d.useState(h),N=te(I,2),F=N[0],A=N[1],P=d.useRef(),z=function(){h===!0||h===!1||(clearTimeout(P.current),A(!0),P.current=setTimeout(function(){A(!1)},3e3))},H=a-f||0,V=f-u||0,T=d.useMemo(function(){if(o===0||H===0)return 0;var ee=o/H;return ee*V},[o,H,V]),_=function(ee){ee.stopPropagation(),ee.preventDefault()},D=d.useRef({top:T,dragging:b,pageY:w,startTop:O});D.current={top:T,dragging:b,pageY:w,startTop:O};var B=function(ee){y(!0),E(tf(ee,c)),k(D.current.top),i(),ee.stopPropagation(),ee.preventDefault()};d.useEffect(function(){var ee=function(ie){ie.preventDefault()},G=j.current,X=R.current;return G.addEventListener("touchstart",ee,{passive:!1}),X.addEventListener("touchstart",B,{passive:!1}),function(){G.removeEventListener("touchstart",ee),X.removeEventListener("touchstart",B)}},[]);var L=d.useRef();L.current=H;var W=d.useRef();W.current=V,d.useEffect(function(){if(b){var ee,G=function(ie){var ae=D.current,ne=ae.dragging,ce=ae.pageY,de=ae.startTop;Pt.cancel(ee);var ye=j.current.getBoundingClientRect(),Ee=f/(c?ye.width:ye.height);if(ne){var ge=(tf(ie,c)-ce)*Ee,Se=de;!M&&c?Se-=ge:Se+=ge;var oe=L.current,ve=W.current,je=ve?Se/ve:0,se=Math.ceil(je*oe);se=Math.max(se,0),se=Math.min(se,oe),ee=Pt(function(){l(se,c)})}},X=function(){y(!1),s()};return window.addEventListener("mousemove",G,{passive:!0}),window.addEventListener("touchmove",G,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),Pt.cancel(ee)}}},[b]),d.useEffect(function(){return z(),function(){clearTimeout(P.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:z}});var U="".concat(n,"-scrollbar"),J={position:"absolute",visibility:F?null:"hidden"},q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(J,{height:8,left:0,right:0,bottom:0}),Object.assign(q,Q({height:"100%",width:u},M?"left":"right",T))):(Object.assign(J,Q({width:8,top:0,bottom:0},M?"right":"left",0)),Object.assign(q,{width:"100%",height:u,top:T})),d.createElement("div",{ref:j,className:pe(U,Q(Q(Q({},"".concat(U,"-horizontal"),c),"".concat(U,"-vertical"),!c),"".concat(U,"-visible"),F)),style:Z(Z({},J),p),onMouseDown:_,onMouseMove:z},d.createElement("div",{ref:R,className:pe("".concat(U,"-thumb"),Q({},"".concat(U,"-thumb-moving"),b)),style:Z(Z({},q),v),onMouseDown:B}))}),j5=20;function nv(){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,j5),Math.floor(n)}var P5=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],A5=[],R5={overflowY:"auto",overflowAnchor:"none"};function T5(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,v=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=m===void 0?"div":m,y=e.onScroll,x=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,E=e.extraRender,S=e.styles,$=e.showScrollBar,O=$===void 0?"optional":$,k=At(e,P5),M=d.useCallback(function(Ce){return typeof p=="function"?p(Ce):Ce==null?void 0:Ce[p]},[p]),j=O5(M),R=te(j,4),I=R[0],N=R[1],F=R[2],A=R[3],P=!!(v!==!1&&a&&i),z=d.useMemo(function(){return Object.values(F.maps).reduce(function(Ce,Ye){return Ce+Ye},0)},[F.id,F.maps]),H=P&&u&&(Math.max(i*u.length,z)>a||!!g),V=h==="rtl",T=pe(r,Q({},"".concat(r,"-rtl"),V),o),_=u||A5,D=Ze(),B=Ze(),L=Ze(),W=ht(0),U=te(W,2),J=U[0],q=U[1],ee=ht(0),G=te(ee,2),X=G[0],ie=G[1],ae=ht(!1),ne=te(ae,2),ce=ne[0],de=ne[1],ye=function(){de(!0)},Ee=function(){de(!1)},ge={getKey:M};function Se(Ce){q(function(Ye){var $e;typeof Ce=="function"?$e=Ce(Ye):$e=Ce;var We=Ge($e);return D.current.scrollTop=We,We})}var oe=Ze({start:0,end:_.length}),ve=Ze(),je=S5(_,M),se=te(je,1),He=se[0];ve.current=He;var De=d.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!H){var Ce;return{scrollHeight:((Ce=B.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:_.length-1,offset:void 0}}for(var Ye=0,$e,We,Pe,ct=_.length,dt=0;dt<ct;dt+=1){var It=_[dt],Mt=M(It),Lt=F.get(Mt),zt=Ye+(Lt===void 0?i:Lt);zt>=J&&$e===void 0&&($e=dt,We=Ye),zt>J+a&&Pe===void 0&&(Pe=dt),Ye=zt}return $e===void 0&&($e=0,We=0,Pe=Math.ceil(a/i)),Pe===void 0&&(Pe=_.length-1),Pe=Math.min(Pe+1,_.length-1),{scrollHeight:Ye,start:$e,end:Pe,offset:We}},[H,P,J,_,A,a]),qe=De.scrollHeight,Ue=De.start,_e=De.end,Oe=De.offset;oe.current.start=Ue,oe.current.end=_e,d.useLayoutEffect(function(){var Ce=F.getRecord();if(Ce.size===1){var Ye=Array.from(Ce.keys())[0],$e=Ce.get(Ye),We=_[Ue];if(We&&$e===void 0){var Pe=M(We);if(Pe===Ye){var ct=F.get(Ye),dt=ct-i;Se(function(It){return It+dt})}}}F.resetRecord()},[qe]);var Ie=d.useState({width:0,height:a}),ke=te(Ie,2),Ne=ke[0],Xe=ke[1],he=function(Ce){Xe({width:Ce.offsetWidth,height:Ce.offsetHeight})},st=Ze(),yt=Ze(),St=d.useMemo(function(){return nv(Ne.width,g)},[Ne.width,g]),Nt=d.useMemo(function(){return nv(Ne.height,qe)},[Ne.height,qe]),Ve=qe-a,Qe=Ze(Ve);Qe.current=Ve;function Ge(Ce){var Ye=Ce;return Number.isNaN(Qe.current)||(Ye=Math.min(Ye,Qe.current)),Ye=Math.max(Ye,0),Ye}var ot=J<=0,nt=J>=Ve,$t=X<=0,Ot=X>=g,et=ix(ot,nt,$t,Ot),lt=function(){return{x:V?-X:X,y:J}},bt=Ze(lt()),Le=Dt(function(Ce){if(x){var Ye=Z(Z({},lt()),Ce);(bt.current.x!==Ye.x||bt.current.y!==Ye.y)&&(x(Ye),bt.current=Ye)}});function Fe(Ce,Ye){var $e=Ce;Ye?(ed(function(){ie($e)}),Le()):Se($e)}function xe(Ce){var Ye=Ce.currentTarget.scrollTop;Ye!==J&&Se(Ye),y==null||y(Ce),Le()}var Ae=function(Ce){var Ye=Ce,$e=g?g-Ne.width:0;return Ye=Math.max(Ye,0),Ye=Math.min(Ye,$e),Ye},K=Dt(function(Ce,Ye){Ye?(ed(function(){ie(function($e){var We=$e+(V?-Ce:Ce);return Ae(We)})}),Le()):Se(function($e){var We=$e+Ce;return We})}),Y=E5(P,ot,nt,$t,Ot,!!g,K),ue=te(Y,2),be=ue[0],Me=ue[1];I5(P,D,function(Ce,Ye,$e,We){var Pe=We;return et(Ce,Ye,$e)?!1:!Pe||!Pe._virtualHandled?(Pe&&(Pe._virtualHandled=!0),be({preventDefault:function(){},deltaX:Ce?Ye:0,deltaY:Ce?0:Ye}),!0):!1}),M5(H,D,function(Ce){Se(function(Ye){return Ye+Ce})}),Ht(function(){function Ce($e){var We=ot&&$e.detail<0,Pe=nt&&$e.detail>0;P&&!We&&!Pe&&$e.preventDefault()}var Ye=D.current;return Ye.addEventListener("wheel",be,{passive:!1}),Ye.addEventListener("DOMMouseScroll",Me,{passive:!0}),Ye.addEventListener("MozMousePixelScroll",Ce,{passive:!1}),function(){Ye.removeEventListener("wheel",be),Ye.removeEventListener("DOMMouseScroll",Me),Ye.removeEventListener("MozMousePixelScroll",Ce)}},[P,ot,nt]),Ht(function(){if(g){var Ce=Ae(X);ie(Ce),Le({x:Ce})}},[Ne.width,g]);var Be=function(){var Ce,Ye;(Ce=st.current)===null||Ce===void 0||Ce.delayHidden(),(Ye=yt.current)===null||Ye===void 0||Ye.delayHidden()},ut=N5(D,_,F,i,M,function(){return N(!0)},Se,Be);d.useImperativeHandle(t,function(){return{nativeElement:L.current,getScrollInfo:lt,scrollTo:function(Ce){function Ye($e){return $e&&pt($e)==="object"&&("left"in $e||"top"in $e)}Ye(Ce)?(Ce.left!==void 0&&ie(Ae(Ce.left)),ut(Ce.top)):ut(Ce)}}}),Ht(function(){if(C){var Ce=_.slice(Ue,_e+1);C(Ce,_)}},[Ue,_e,_]);var tt=$5(_,M,F,i),at=E==null?void 0:E({start:Ue,end:_e,virtual:H,offsetX:X,offsetY:Oe,rtl:V,getSize:tt}),xt=w5(_,Ue,_e,g,X,I,f,ge),ze=null;a&&(ze=Z(Q({},l?"height":"maxHeight",a),R5),P&&(ze.overflowY="hidden",g&&(ze.overflowX="hidden"),ce&&(ze.pointerEvents="none")));var Et={};return V&&(Et.dir="rtl"),d.createElement("div",Ke({ref:L,style:Z(Z({},c),{},{position:"relative"}),className:T},Et,k),d.createElement(eo,{onResize:he},d.createElement(b,{className:"".concat(r,"-holder"),style:ze,ref:D,onScroll:xe,onMouseEnter:Be},d.createElement(ax,{prefixCls:r,height:qe,offsetX:X,offsetY:Oe,scrollWidth:g,onInnerResize:N,ref:B,innerProps:w,rtl:V,extra:at},xt))),H&&qe>a&&d.createElement(tv,{ref:st,prefixCls:r,scrollOffset:J,scrollRange:qe,rtl:V,onScroll:Fe,onStartMove:ye,onStopMove:Ee,spinSize:Nt,containerSize:Ne.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb,showScrollBar:O}),H&&g>Ne.width&&d.createElement(tv,{ref:yt,prefixCls:r,scrollOffset:X,scrollRange:g,rtl:V,onScroll:Fe,onStartMove:ye,onStopMove:Ee,spinSize:St,containerSize:Ne.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb,showScrollBar:O}))}var sx=d.forwardRef(T5);sx.displayName="List";function D5(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _5=["disabled","title","children","style","className"];function rv(e){return typeof e=="string"||typeof e=="number"}var B5=function(e,t){var n=SN(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,f=n.onPopupScroll,p=d.useContext(mm),v=p.maxCount,h=p.flattenOptions,g=p.onActiveValue,m=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,C=p.fieldNames,w=p.virtual,E=p.direction,S=p.listHeight,$=p.listItemHeight,O=p.optionRender,k="".concat(r,"-item"),M=tc(function(){return h},[a,h],function(q,ee){return ee[0]&&q[1]!==ee[1]}),j=d.useRef(null),R=d.useMemo(function(){return i&&Zd(v)&&(x==null?void 0:x.size)>=v},[i,v,x==null?void 0:x.size]),I=function(q){q.preventDefault()},N=function(q){var ee;(ee=j.current)===null||ee===void 0||ee.scrollTo(typeof q=="number"?{index:q}:q)},F=d.useCallback(function(q){return s==="combobox"?!1:x.has(q)},[s,Re(x).toString(),x.size]),A=function(q){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=M.length,X=0;X<G;X+=1){var ie=(q+X*ee+G)%G,ae=M[ie]||{},ne=ae.group,ce=ae.data;if(!ne&&!(ce!=null&&ce.disabled)&&(F(ce.value)||!R))return ie}return-1},P=d.useState(function(){return A(0)}),z=te(P,2),H=z[0],V=z[1],T=function(q){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(q);var G={source:ee?"keyboard":"mouse"},X=M[q];if(!X){g(null,-1,G);return}g(X.value,q,G)};vt(function(){T(m!==!1?A(0):-1)},[M.length,l]);var _=d.useCallback(function(q){return s==="combobox"?String(q).toLowerCase()===l.toLowerCase():x.has(q)},[s,l,Re(x).toString(),x.size]);vt(function(){var q=setTimeout(function(){if(!i&&a&&x.size===1){var G=Array.from(x)[0],X=M.findIndex(function(ie){var ae=ie.data;return l?String(ae.value).startsWith(l):ae.value===G});X!==-1&&(T(X),N(X))}});if(a){var ee;(ee=j.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(q)}},[a,l]);var D=function(q){q!==void 0&&b(q,{selected:!x.has(q)}),i||c(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(q){var ee=q.which,G=q.ctrlKey;switch(ee){case ft.N:case ft.P:case ft.UP:case ft.DOWN:{var X=0;if(ee===ft.UP?X=-1:ee===ft.DOWN?X=1:D5()&&G&&(ee===ft.N?X=1:ee===ft.P&&(X=-1)),X!==0){var ie=A(H+X,X);N(ie),T(ie,!0)}break}case ft.TAB:case ft.ENTER:{var ae,ne=M[H];ne&&!(ne!=null&&(ae=ne.data)!==null&&ae!==void 0&&ae.disabled)&&!R?D(ne.value):D(void 0),a&&q.preventDefault();break}case ft.ESC:c(!1),a&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){N(q)}}}),M.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(k,"-empty"),onMouseDown:I},u);var B=Object.keys(C).map(function(q){return C[q]}),L=function(q){return q.label};function W(q,ee){var G=q.group;return{role:G?"presentation":"option",id:"".concat(o,"_list_").concat(ee)}}var U=function(q){var ee=M[q];if(!ee)return null;var G=ee.data||{},X=G.value,ie=ee.group,ae=Br(G,!0),ne=L(ee);return ee?d.createElement("div",Ke({"aria-label":typeof ne=="string"&&!ie?ne:null},ae,{key:q},W(ee,q),{"aria-selected":_(X)}),X):null},J={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,w&&d.createElement("div",Ke({},J,{style:{height:0,width:0,overflow:"hidden"}}),U(H-1),U(H),U(H+1)),d.createElement(sx,{itemKey:"key",ref:j,data:M,height:S,itemHeight:$,fullHeight:!1,onMouseDown:I,onScroll:f,virtual:w,direction:E,innerProps:w?null:J},function(q,ee){var G=q.group,X=q.groupOption,ie=q.data,ae=q.label,ne=q.value,ce=ie.key;if(G){var de,ye=(de=ie.title)!==null&&de!==void 0?de:rv(ae)?ae.toString():void 0;return d.createElement("div",{className:pe(k,"".concat(k,"-group"),ie.className),title:ye},ae!==void 0?ae:ce)}var Ee=ie.disabled,ge=ie.title,Se=ie.style,oe=ie.className,ve=At(ie,_5),je=to(ve,B),se=F(ne),He=Ee||!se&&R,De="".concat(k,"-option"),qe=pe(k,De,oe,Q(Q(Q(Q({},"".concat(De,"-grouped"),X),"".concat(De,"-active"),H===ee&&!He),"".concat(De,"-disabled"),He),"".concat(De,"-selected"),se)),Ue=L(q),_e=!y||typeof y=="function"||se,Oe=typeof Ue=="number"?Ue:Ue||ne,Ie=rv(Oe)?Oe.toString():void 0;return ge!==void 0&&(Ie=ge),d.createElement("div",Ke({},Br(je),w?{}:W(q,ee),{"aria-selected":_(ne),className:qe,title:Ie,onMouseMove:function(){H===ee||He||T(ee)},onClick:function(){He||D(ne)},style:Se}),d.createElement("div",{className:"".concat(De,"-content")},typeof O=="function"?O(q,{index:ee}):Oe),d.isValidElement(y)||se,_e&&d.createElement(Cc,{className:"".concat(k,"-option-state"),customizeIcon:y,customizeIconProps:{value:ne,disabled:He,isSelected:se}},se?"\u2713":null))}))},z5=d.forwardRef(B5);const H5=(function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return Z(Z({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.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(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]});function bu(e,t){return nx(e).join("").toUpperCase().includes(t)}const L5=(function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(v,h){return o?bu(h[o],u):h[a]?bu(h[i!=="children"?i:"label"],u):bu(h[s],u)},p=c?function(v){return Jd(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,p(v));if(h)l.push(v);else{var g=v[a].filter(function(m){return f(n,p(m))});g.length&&l.push(Z(Z({},v),{},Q({},a,g)))}return}f(n,p(v))&&l.push(v)}),l},[e,r,o,n,t])});var ov=0,V5=Jn();function W5(){var e;return V5?(e=ov,ov+=1):e="TEST_OR_SSR",e}function q5(e){var t=d.useState(),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(W5()))},[]),e||r}var U5=["children","value"],Y5=["children"];function X5(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=At(r,U5);return Z({key:n,value:a!==void 0?a:n,children:o},i)}function lx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ha(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=At(s,Y5);return t||!a?X5(n):Z(Z({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:lx(l)})}).filter(function(n){return n})}var G5=function(e,t,n,r,o){return d.useMemo(function(){var a=e,i=!e;i&&(a=lx(t));var s=new Map,l=new Map,c=function(f,p,v){v&&typeof v=="string"&&f.set(p[v],p)},u=function f(p){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<p.length;h+=1){var g=p[h];!g[n.options]||v?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):f(g[n.options],!0)}};return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])};function av(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var K5=["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"],Q5=["inputValue"];function Z5(e){return!e||pt(e)!=="object"}var J5=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=g===void 0?!0:g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,C=e.optionLabelProp,w=e.options,E=e.optionRender,S=e.children,$=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,k=e.virtual,M=e.direction,j=e.listHeight,R=j===void 0?200:j,I=e.listItemHeight,N=I===void 0?20:I,F=e.labelRender,A=e.value,P=e.defaultValue,z=e.labelInValue,H=e.onChange,V=e.maxCount,T=At(e,K5),_=q5(n),D=ef(r),B=!!(!w&&S),L=d.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),W=d.useMemo(function(){return ox(s,B)},[JSON.stringify(s),B]),U=fn("",{value:c!==void 0?c:l,postState:function(Le){return Le||""}}),J=te(U,2),q=J[0],ee=J[1],G=G5(w,S,W,x,C),X=G.valueOptions,ie=G.labelOptions,ae=G.options,ne=d.useCallback(function(Le){var Fe=nx(Le);return Fe.map(function(xe){var Ae,K,Y,ue,be;if(Z5(xe))Ae=xe;else{var Me;Y=xe.key,K=xe.label,Ae=(Me=xe.value)!==null&&Me!==void 0?Me:Y}var Be=X.get(Ae);if(Be){var ut;K===void 0&&(K=Be==null?void 0:Be[C||W.label]),Y===void 0&&(Y=(ut=Be==null?void 0:Be.key)!==null&&ut!==void 0?ut:Ae),ue=Be==null?void 0:Be.disabled,be=Be==null?void 0:Be.title}return{label:K,value:Ae,key:Y,disabled:ue,title:be}})},[W,C,X]),ce=fn(P,{value:A}),de=te(ce,2),ye=de[0],Ee=de[1],ge=d.useMemo(function(){var Le,Fe=D&&ye===null?[]:ye,xe=ne(Fe);return r==="combobox"&&WN((Le=xe[0])===null||Le===void 0?void 0:Le.value)?[]:xe},[ye,ne,r,D]),Se=H5(ge,X),oe=te(Se,2),ve=oe[0],je=oe[1],se=d.useMemo(function(){if(!r&&ve.length===1){var Le=ve[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return ve.map(function(Fe){var xe;return Z(Z({},Fe),{},{label:(xe=typeof F=="function"?F(Fe):Fe.label)!==null&&xe!==void 0?xe:Fe.value})})},[r,ve,F]),He=d.useMemo(function(){return new Set(ve.map(function(Le){return Le.value}))},[ve]);d.useEffect(function(){if(r==="combobox"){var Le,Fe=(Le=ve[0])===null||Le===void 0?void 0:Le.value;ee(VN(Fe)?String(Fe):"")}},[ve]);var De=av(function(Le,Fe){var xe=Fe??Le;return Q(Q({},W.value,Le),W.label,xe)}),qe=d.useMemo(function(){if(r!=="tags")return ae;var Le=Re(ae),Fe=function(xe){return X.has(xe)};return Re(ve).sort(function(xe,Ae){return xe.value<Ae.value?-1:1}).forEach(function(xe){var Ae=xe.value;Fe(Ae)||Le.push(De(Ae,xe.label))}),Le},[De,ae,X,ve,r]),Ue=L5(qe,W,q,L,x),_e=d.useMemo(function(){return r!=="tags"||!q||Ue.some(function(Le){return Le[x||"value"]===q})||Ue.some(function(Le){return Le[W.value]===q})?Ue:[De(q)].concat(Re(Ue))},[De,x,r,Ue,q,W]),Oe=function Le(Fe){var xe=Re(Fe).sort(function(Ae,K){return y(Ae,K,{searchValue:q})});return xe.map(function(Ae){return Array.isArray(Ae.options)?Z(Z({},Ae),{},{options:Ae.options.length>0?Le(Ae.options):Ae.options}):Ae})},Ie=d.useMemo(function(){return y?Oe(_e):_e},[_e,y,q]),ke=d.useMemo(function(){return m5(Ie,{fieldNames:W,childrenAsData:B})},[Ie,W,B]),Ne=function(Le){var Fe=ne(Le);if(Ee(Fe),H&&(Fe.length!==ve.length||Fe.some(function(K,Y){var ue;return((ue=ve[Y])===null||ue===void 0?void 0:ue.value)!==(K==null?void 0:K.value)}))){var xe=z?Fe:Fe.map(function(K){return K.value}),Ae=Fe.map(function(K){return Jd(je(K.value))});H(D?xe:xe[0],D?Ae:Ae[0])}},Xe=d.useState(null),he=te(Xe,2),st=he[0],yt=he[1],St=d.useState(0),Nt=te(St,2),Ve=Nt[0],Qe=Nt[1],Ge=$!==void 0?$:r!=="combobox",ot=d.useCallback(function(Le,Fe){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ae=xe.source,K=Ae===void 0?"keyboard":Ae;Qe(Fe),i&&r==="combobox"&&Le!==null&&K==="keyboard"&&yt(String(Le))},[i,r]),nt=function(Le,Fe,xe){var Ae=function(){var at,xt=je(Le);return[z?{label:xt==null?void 0:xt[W.label],value:Le,key:(at=xt==null?void 0:xt.key)!==null&&at!==void 0?at:Le}:Le,Jd(xt)]};if(Fe&&v){var K=Ae(),Y=te(K,2),ue=Y[0],be=Y[1];v(ue,be)}else if(!Fe&&h&&xe!=="clear"){var Me=Ae(),Be=te(Me,2),ut=Be[0],tt=Be[1];h(ut,tt)}},$t=av(function(Le,Fe){var xe,Ae=D?Fe.selected:!0;Ae?xe=D?[].concat(Re(ve),[Le]):[Le]:xe=ve.filter(function(K){return K.value!==Le}),Ne(xe),nt(Le,Ae),r==="combobox"?yt(""):(!ef||p)&&(ee(""),yt(""))}),Ot=function(Le,Fe){Ne(Le);var xe=Fe.type,Ae=Fe.values;(xe==="remove"||xe==="clear")&&Ae.forEach(function(K){nt(K.value,!1,xe)})},et=function(Le,Fe){if(ee(Le),yt(null),Fe.source==="submit"){var xe=(Le||"").trim();if(xe){var Ae=Array.from(new Set([].concat(Re(He),[xe])));Ne(Ae),nt(xe,!0),ee("")}return}Fe.source!=="blur"&&(r==="combobox"&&Ne(Le),u==null||u(Le))},lt=function(Le){var Fe=Le;r!=="tags"&&(Fe=Le.map(function(Ae){var K=ie.get(Ae);return K==null?void 0:K.value}).filter(function(Ae){return Ae!==void 0}));var xe=Array.from(new Set([].concat(Re(He),Re(Fe))));Ne(xe),xe.forEach(function(Ae){nt(Ae,!0)})},bt=d.useMemo(function(){var Le=k!==!1&&m!==!1;return Z(Z({},G),{},{flattenOptions:ke,onActiveValue:ot,defaultActiveFirstOption:Ge,onSelect:$t,menuItemSelectedIcon:O,rawValues:He,fieldNames:W,virtual:Le,direction:M,listHeight:R,listItemHeight:N,childrenAsData:B,maxCount:V,optionRender:E})},[V,G,ke,ot,Ge,$t,O,He,W,k,m,M,R,N,B,E]);return d.createElement(mm.Provider,{value:bt},d.createElement(y5,Ke({},T,{id:_,prefixCls:a,ref:t,omitDomProps:Q5,mode:r,displayValues:se,onDisplayValuesChange:Ot,direction:M,searchValue:q,onSearch:et,autoClearSearchValue:p,onSearchSplit:lt,dropdownMatchSelectWidth:m,OptionList:z5,emptyOptions:!ke.length,activeValue:st,activeDescendantId:"".concat(_,"_list_").concat(Ve)})))}),vm=J5;vm.Option=hm;vm.OptGroup=gm;function No(e,t,n){return pe({[`${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 la=(e,t)=>t||e,ej=()=>{const[,e]=kr(),[t]=aa("Empty"),n=new Ut(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"}))))},tj=()=>{const[,e]=kr(),[t]=aa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:l}=Gt(()=>({borderColor:new Ut(n).onBackground(a).toHexString(),shadowColor:new Ut(r).onBackground(a).toHexString(),contentColor:new Ut(o).onBackground(a).toHexString()}),[n,r,o,a]);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:i},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}))))},nj=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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}}}}},rj=En("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Qt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return nj(o)});var oj=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 cx=d.createElement(ej,null),ux=d.createElement(tj,null),Bo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:s,imageStyle:l,style:c,classNames:u,styles:f}=e,p=oj(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:g,style:m,classNames:b,styles:y,image:x}=lo("empty"),C=v("empty",o),[w,E,S]=rj(C),[$]=aa("Empty"),O=typeof i<"u"?i:$==null?void 0:$.description,k=typeof O=="string"?O:"empty",M=(t=a??x)!==null&&t!==void 0?t:cx;let j=null;return typeof M=="string"?j=d.createElement("img",{draggable:!1,alt:k,src:M}):j=M,w(d.createElement("div",Object.assign({className:pe(E,S,C,g,{[`${C}-normal`]:M===ux,[`${C}-rtl`]:h==="rtl"},n,r,b.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),m),f==null?void 0:f.root),c)},p),d.createElement("div",{className:pe(`${C}-image`,b.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),f==null?void 0:f.image)},j),O&&d.createElement("div",{className:pe(`${C}-description`,b.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),f==null?void 0:f.description)},O),s&&d.createElement("div",{className:pe(`${C}-footer`,b.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),f==null?void 0:f.footer)},s)))};Bo.PRESENTED_IMAGE_DEFAULT=cx;Bo.PRESENTED_IMAGE_SIMPLE=ux;const aj=e=>{const{componentName:t}=e,{getPrefixCls:n}=Kt(Bt),r=n("empty");switch(t){case"Table":case"List":return fe.createElement(Bo,{image:Bo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return fe.createElement(Bo,{image:Bo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return fe.createElement(Bo,null)}},ri=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=d.useContext(Bt),s=d.useContext(G1),l=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const u=gk.includes(c);return[c,u]},ij=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 sj(e,t){return e||ij(t)}const iv=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"}},lj=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},pn(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,[`
293
- ${o}${s}bottomLeft,
294
- ${a}${s}bottomLeft
295
- `]:{animationName:em},[`
296
- ${o}${s}topLeft,
297
- ${a}${s}topLeft,
298
- ${o}${s}topRight,
299
- ${a}${s}topRight
300
- `]:{animationName:nm},[`${i}${s}bottomLeft`]:{animationName:tm},[`
301
- ${i}${s}topLeft,
302
- ${i}${s}topRight
303
- `]:{animationName:rm},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},iv(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"},Nl),"&-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({},iv(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Tl(e,"slide-up"),Tl(e,"slide-down"),Rl(e,"move-up"),Rl(e,"move-down")]},dx=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:we(t),itemLineHeight:we(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},cj=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},fx=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,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:"calc(100% - 4px)",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:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ds()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},uj=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=cj(e),s=t?`${n}-${t}`:"",l=dx(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},fx(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:`${we(r)} 0`,lineHeight:we(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:we(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:we(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
304
- ${n}-prefix + ${n}-selection-wrap
305
- `]:{[`${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(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:we(a),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 yu(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
306
- &${n}-show-arrow ${n}-selector,
307
- &${n}-allow-clear ${n}-selector
308
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[uj(e,t),o]}const dj=e=>{const{componentCls:t}=e,n=Qt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Qt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[yu(e),yu(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},yu(r,"lg")]};function xu(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},pn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:we(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
309
- ${n}-selection-item,
310
- ${n}-selection-placeholder
311
- `]:{display:"block",padding:0,lineHeight:we(a),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"'}}),[`
312
- &${n}-show-arrow ${n}-selection-item,
313
- &${n}-show-arrow ${n}-selection-search,
314
- &${n}-show-arrow ${n}-selection-placeholder
315
- `]:{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 ${we(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:we(a)}}},[`&${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 ${we(r)}`,"&:after":{display:"none"}}}}}}}function fj(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[xu(e),xu(Qt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${we(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
316
- &${t}-show-arrow ${t}-selection-item,
317
- &${t}-show-arrow ${t}-selection-placeholder
318
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},xu(Qt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const pj=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:x,controlOutline:C}=e,w=s*2,E=r*2,S=Math.min(o-w,o-E),$=Math.min(a-w,a-E),O=Math.min(i-w,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:$,multipleItemHeightLG:O,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:C,selectAffixPadding:s}},px=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${we(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 ${we(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},sv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},px(e,t))}),mj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},px(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),sv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),sv(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:`${we(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${we(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}}}},lv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mx(e,t))}),gj=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),lv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),lv(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:`${we(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),hj=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${we(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:`${we(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}}}}),gx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${we(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}}}},cv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gx(e,t))}),vj=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},gx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,color:e.colorText})),cv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,color:e.colorError})),cv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,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:`${we(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bj=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},mj(e)),gj(e)),hj(e)),vj(e))}),yj=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"}}}},xj=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"}}}},wj=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yj(e)),xj(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Nl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Nl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ds()),{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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Cj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},wj(e),fj(e),dj(e),lj(e),{[`${t}-rtl`]:{direction:"rtl"}},ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Sj=En("Select",(e,{rootPrefixCls:t})=>{const n=Qt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Cj(n),bj(n)]},pj,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ej={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(Fn,Ke({},e,{ref:t,icon:Ej}))},kj=d.forwardRef($j),Oj={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"},Ij=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:Oj}))},hx=d.forwardRef(Ij),Mj={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"},Fj=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:Mj}))},vx=d.forwardRef(Fj);function bx({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){const p=t??d.createElement(uc,null),v=b=>e===null&&!i&&!u?null:d.createElement(d.Fragment,null,l!==!1&&b,i&&c);let h=null;if(e!==void 0)h=v(e);else if(o)h=v(d.createElement(fs,{spin:!0}));else{const b=`${s}-suffix`;h=({open:y,showSearch:x})=>v(y&&x?d.createElement(vx,{className:b}):d.createElement(hx,{className:b}))}let g=null;n!==void 0?g=n:a?g=d.createElement(kj,null):g=null;let m=null;return r!==void 0?m=r:m=d.createElement(Gp,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:m}}function Nj(e){return fe.useMemo(()=>{if(e)return(...t)=>fe.createElement(Fo,{space:!0},e.apply(void 0,t))},[e])}function jj(e,t){return t!==void 0?t:e!==null}var Pj=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 yx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Aj=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:p,dropdownClassName:v,listHeight:h=256,placement:g,listItemHeight:m,size:b,disabled:y,notFoundContent:x,status:C,builtinPlacements:w,dropdownMatchSelectWidth:E,popupMatchSelectWidth:S,direction:$,style:O,allowClear:k,variant:M,dropdownStyle:j,transitionName:R,tagRender:I,maxCount:N,prefix:F,dropdownRender:A,popupRender:P,onDropdownVisibleChange:z,onOpenChange:H,styles:V,classNames:T}=e,_=Pj(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","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:D,getPrefixCls:B,renderEmpty:L,direction:W,virtual:U,popupMatchSelectWidth:J,popupOverflow:q}=d.useContext(Bt),{showSearch:ee,style:G,styles:X,className:ie,classNames:ae}=lo("select"),[,ne]=kr(),ce=m??(ne==null?void 0:ne.controlHeight),de=B("select",s),ye=B(),Ee=$??W,{compactSize:ge,compactItemClassnames:Se}=Ro(de,Ee),[oe,ve]=ri("select",M,l),je=dr(de),[se,He,De]=Sj(de,je),qe=d.useMemo(()=>{const{mode:Ae}=e;if(Ae!=="combobox")return Ae===yx?"combobox":Ae},[e.mode]),Ue=qe==="multiple"||qe==="tags",_e=jj(e.suffixIcon,e.showArrow),Oe=(n=S??E)!==null&&n!==void 0?n:J,Ie=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((o=X.popup)===null||o===void 0?void 0:o.root)||j,ke=Nj(P||A),Ne=H||z,{status:Xe,hasFeedback:he,isFormItemInput:st,feedbackIcon:yt}=d.useContext(Rn),St=la(Xe,C);let Nt;x!==void 0?Nt=x:qe==="combobox"?Nt=null:Nt=(L==null?void 0:L("Select"))||d.createElement(aj,{componentName:"Select"});const{suffixIcon:Ve,itemIcon:Qe,removeIcon:Ge,clearIcon:ot}=bx(Object.assign(Object.assign({},_),{multiple:Ue,hasFeedback:he,feedbackIcon:yt,showSuffixIcon:_e,prefixCls:de,componentName:"Select"})),nt=k===!0?{clearIcon:ot}:k,$t=to(_,["suffixIcon","itemIcon"]),Ot=pe(((a=T==null?void 0:T.popup)===null||a===void 0?void 0:a.root)||((i=ae==null?void 0:ae.popup)===null||i===void 0?void 0:i.root)||p||v,{[`${de}-dropdown-${Ee}`]:Ee==="rtl"},u,ae.root,T==null?void 0:T.root,De,je,He),et=Or(Ae=>{var K;return(K=b??ge)!==null&&K!==void 0?K:Ae}),lt=d.useContext(Yn),bt=y??lt,Le=pe({[`${de}-lg`]:et==="large",[`${de}-sm`]:et==="small",[`${de}-rtl`]:Ee==="rtl",[`${de}-${oe}`]:ve,[`${de}-in-form-item`]:st},No(de,St,he),Se,ie,c,ae.root,T==null?void 0:T.root,u,De,je,He),Fe=d.useMemo(()=>g!==void 0?g:Ee==="rtl"?"bottomRight":"bottomLeft",[g,Ee]),[xe]=dc("SelectLike",Ie==null?void 0:Ie.zIndex);return se(d.createElement(vm,Object.assign({ref:t,virtual:U,showSearch:ee},$t,{style:Object.assign(Object.assign(Object.assign(Object.assign({},X.root),V==null?void 0:V.root),G),O),dropdownMatchSelectWidth:Oe,transitionName:N1(ye,"slide-up",R),builtinPlacements:sj(w,q),listHeight:h,listItemHeight:ce,mode:qe,prefixCls:de,placement:Fe,direction:Ee,prefix:F,suffixIcon:Ve,menuItemSelectedIcon:Qe,removeIcon:Ge,allowClear:nt,notFoundContent:Nt,className:Le,getPopupContainer:f||D,dropdownClassName:Ot,disabled:bt,dropdownStyle:Object.assign(Object.assign({},Ie),{zIndex:xe}),maxCount:Ue?N:void 0,tagRender:Ue?I:void 0,dropdownRender:ke,onDropdownVisibleChange:Ne})))},ca=d.forwardRef(Aj),Rj=dm(ca,"dropdownAlign");ca.SECRET_COMBOBOX_MODE_DO_NOT_USE=yx;ca.Option=hm;ca.OptGroup=gm;ca._InternalPanelDoNotUseOrYouWillBeFired=Rj;const Tj=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},Dj=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Qi=["xxl","xl","lg","md","sm","xs"],_j=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)`}),Bj=e=>{const t=e,n=[].concat(Qi).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}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},zj=()=>{const[,e]=kr(),t=_j(Bj(e));return fe.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);Tj(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];Dj(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function Hj(){const[,e]=d.useReducer(t=>t+1,0);return e}function Lj(e=!0,t={}){const n=Ze(t),r=Hj(),o=zj();return Ht(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function xx(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return d.createElement("div",{className:pe("".concat(n,"-content"),i),style:s},d.createElement("div",{className:pe("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var xa={shiftX:64,adjustY:1},wa={adjustX:1,shiftY:!0},gr=[0,0],Vj={left:{points:["cr","cl"],overflow:wa,offset:[-4,0],targetOffset:gr},right:{points:["cl","cr"],overflow:wa,offset:[4,0],targetOffset:gr},top:{points:["bc","tc"],overflow:xa,offset:[0,-4],targetOffset:gr},bottom:{points:["tc","bc"],overflow:xa,offset:[0,4],targetOffset:gr},topLeft:{points:["bl","tl"],overflow:xa,offset:[0,-4],targetOffset:gr},leftTop:{points:["tr","tl"],overflow:wa,offset:[-4,0],targetOffset:gr},topRight:{points:["br","tr"],overflow:xa,offset:[0,-4],targetOffset:gr},rightTop:{points:["tl","tr"],overflow:wa,offset:[4,0],targetOffset:gr},bottomRight:{points:["tr","br"],overflow:xa,offset:[0,4],targetOffset:gr},rightBottom:{points:["bl","br"],overflow:wa,offset:[4,0],targetOffset:gr},bottomLeft:{points:["tl","bl"],overflow:xa,offset:[0,4],targetOffset:gr},leftBottom:{points:["br","bl"],overflow:wa,offset:[-4,0],targetOffset:gr}},Wj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],qj=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,a=e.mouseEnterDelay,i=a===void 0?0:a,s=e.mouseLeaveDelay,l=s===void 0?.1:s,c=e.overlayStyle,u=e.prefixCls,f=u===void 0?"rc-tooltip":u,p=e.children,v=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,y=e.placement,x=y===void 0?"right":y,C=e.align,w=C===void 0?{}:C,E=e.destroyTooltipOnHide,S=E===void 0?!1:E,$=e.defaultVisible,O=e.getTooltipContainer,k=e.overlayInnerStyle,M=e.overlay,j=e.id,R=e.showArrow,I=R===void 0?!0:R,N=e.classNames,F=e.styles,A=At(e,Wj),P=im(j),z=Ze(null);Qa(t,function(){return z.current});var H=Z({},A);"visible"in e&&(H.popupVisible=e.visible);var V=function(){return d.createElement(xx,{key:"content",prefixCls:f,id:P,bodyClassName:N==null?void 0:N.body,overlayInnerStyle:Z(Z({},k),F==null?void 0:F.body)},M)},T=function(){var _=d.Children.only(p),D=(_==null?void 0:_.props)||{},B=Z(Z({},D),{},{"aria-describedby":M?P:null});return d.cloneElement(p,B)};return d.createElement(pm,Ke({popupClassName:pe(n,N==null?void 0:N.root),prefixCls:f,popup:V,action:o,builtinPlacements:Vj,popupPlacement:x,ref:z,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:$,autoDestroy:S,mouseLeaveDelay:l,popupStyle:Z(Z({},c),F==null?void 0:F.root),mouseEnterDelay:i,arrow:I},H),T())};const Uj=zr(qj);function wx(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=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,p=u,v=2*o-s,h=l,g=2*o-a,m=i,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%)`,C=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${v} ${h} A ${r} ${r} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:b,arrowPath:C,arrowPolygon:x}}const Cx=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,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,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${we(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sx=8;function Ex(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sx:r}}function Rs(e,t){return e?t:{}}function Yj(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Cx(e,t,o)),{"&:before":{background:t}})]},Rs(!!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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${we(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Rs(!!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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${we(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Rs(!!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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Rs(!!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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function Xj(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const uv={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"]}},Gj={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"]}},Kj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Qj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a}=e,i=t/2,s={},l=Ex({contentRadius:a,limitVerticalRadius:!0});return Object.keys(uv).forEach(c=>{const u=r&&Gj[c]||uv[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,Kj.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-l.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=l.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-l.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=l.arrowOffsetHorizontal*2-i;break}f.overflow=Xj(c,l,t,n),f.htmlRegion="visibleFirst"}),s}const Zj=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:v}=e,h=t(i).add(v).add(p).equal(),g=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(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":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${we(e.calc(u).div(2).equal())} ${we(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,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(i,Sx)}},[`${n}-content`]:{position:"relative"}}),cc(e,(m,{darkColor:b})=>({[`&${n}-${m}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Yj(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jj=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ex({contentRadius:e.borderRadius,limitVerticalRadius:!0})),wx(Qt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$x=(e,t=!0)=>En("Tooltip",n=>{const{borderRadius:r,colorTextLightSolid:o,colorBgSpotlight:a}=n,i=Qt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:r,tooltipBg:a});return[Zj(i),jM(n,"zoom-big-fast")]},Jj,{resetStyle:!1,injectStyle:t})(e),e6=ta.map(e=>`${e}-inverse`),t6=["success","processing","error","default","warning"];function Sc(e,t=!0){return t?[].concat(Re(e6),Re(ta)).includes(e):ta.includes(e)}function n6(e){return t6.includes(e)}function kx(e,t){const n=Sc(t),r=pe({[`${e}-${t}`]:t&&n}),o={},a={},i=PM(t).toRgb(),s=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=s,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const r6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=d.useContext(Bt),l=s("tooltip",t),[c,u,f]=$x(l),p=kx(l,a),v=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),g=pe(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:v},d.createElement("div",{className:`${l}-arrow`}),d.createElement(xx,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var o6=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 a6=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:v,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0,getPopupContainer:C,placement:w="top",mouseEnterDelay:E=.1,mouseLeaveDelay:S=.1,overlayStyle:$,rootClassName:O,overlayClassName:k,styles:M,classNames:j}=e,R=o6(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),I=!!h,[,N]=kr(),{getPopupContainer:F,getPrefixCls:A,direction:P,className:z,style:H,classNames:V,styles:T}=lo("tooltip"),_=ic(),D=d.useRef(null),B=()=>{var Ue;(Ue=D.current)===null||Ue===void 0||Ue.forceAlign()};d.useImperativeHandle(t,()=>{var Ue,_e;return{forceAlign:B,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),B()},nativeElement:(Ue=D.current)===null||Ue===void 0?void 0:Ue.nativeElement,popupElement:(_e=D.current)===null||_e===void 0?void 0:_e.popupElement}});const[L,W]=fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),U=!g&&!m&&g!==0,J=Ue=>{var _e,Oe;W(U?!1:Ue),U||((_e=e.onOpenChange)===null||_e===void 0||_e.call(e,Ue),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,Ue))},q=d.useMemo(()=>{var Ue,_e;let Oe=y;return typeof h=="object"&&(Oe=(_e=(Ue=h.pointAtCenter)!==null&&Ue!==void 0?Ue:h.arrowPointAtCenter)!==null&&_e!==void 0?_e:y),b||Qj({arrowPointAtCenter:Oe,autoAdjustOverflow:x,arrowWidth:I?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS})},[y,h,b,N]),ee=d.useMemo(()=>g===0?g:m||g||"",[m,g]),G=d.createElement(Fo,{space:!0},typeof ee=="function"?ee():ee),X=A("tooltip",o),ie=A(),ae=e["data-popover-inject"];let ne=L;!("open"in e)&&!("visible"in e)&&U&&(ne=!1);const ce=d.isValidElement(c)&&!y1(c)?c:d.createElement("span",null,c),de=ce.props,ye=!de.className||typeof de.className=="string"?pe(de.className,a||`${X}-open`):de.className,[Ee,ge,Se]=$x(X,!ae),oe=kx(X,s),ve=oe.arrowStyle,je=pe(k,{[`${X}-rtl`]:P==="rtl"},oe.className,O,ge,Se,z,V.root,j==null?void 0:j.root),se=pe(V.body,j==null?void 0:j.body),[He,De]=dc("Tooltip",R.zIndex),qe=d.createElement(Uj,Object.assign({},R,{zIndex:He,showArrow:I,placement:w,mouseEnterDelay:E,mouseLeaveDelay:S,prefixCls:X,classNames:{root:je,body:se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ve),T.root),H),$),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},T.body),l),M==null?void 0:M.body),oe.overlayStyle)},getTooltipContainer:C||i||F,ref:D,builtinPlacements:q,overlay:G,visible:ne,onVisibleChange:J,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:N1(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!p}),ne?Mo(ce,{className:ye}):ce);return Ee(d.createElement(S1.Provider,{value:De},qe))}),Ec=a6;Ec._InternalPanelDoNotUseOrYouWillBeFired=r6;const i6=new Yt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),s6=new Yt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),l6=new Yt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),c6=new Yt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),u6=new Yt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),d6=new Yt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),f6=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:v}=e,h=`${r}-scroll-number`,g=cc(e,(m,{darkColor:b})=>({[`&${t} ${t}-color-${m}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(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:a,lineHeight:we(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(u).div(2).equal(),boxShadow:`0 0 0 ${we(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:i,lineHeight:we(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${we(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 ${we(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:d6,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:i6,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:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:s6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:l6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:c6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:u6,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%)"}}})}},Ox=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Qt(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ix=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}},p6=En("Badge",e=>{const t=Ox(e);return f6(t)},Ix),m6=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=cc(e,(c,{darkColor:u})=>({[`&${i}-color-${c}`]:{background:u,color:u}}));return{[s]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{position:"absolute",top:r,padding:`0 ${we(e.paddingXS)}`,color:e.colorPrimary,lineHeight:we(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${we(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},g6=En(["Badge","Ribbon"],e=>{const t=Ox(e);return m6(t)},Ix),h6=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Bt),f=c("ribbon",n),p=`${f}-wrapper`,[v,h,g]=g6(f,p),m=Sc(o,!1),b=pe(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:m},t),y={},x={};return o&&!m&&(y.background=o,x.color=o),v(d.createElement("div",{className:pe(p,l,h,g)},a,d.createElement("div",{className:pe(b,h),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},i),d.createElement("div",{className:`${f}-corner`,style:x}))))},dv=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:a,className:pe(`${t}-only-unit`,{current:r})},n)};function v6(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const b6=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=d.useState(o),[l,c]=d.useState(a),u=()=>{s(o),c(a)};d.useEffect(()=>{const v=setTimeout(u,1e3);return()=>clearTimeout(v)},[o]);let f,p;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[d.createElement(dv,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const v=o+10,h=[];for(let b=o;b<=v;b+=1)h.push(b);const g=l<a?1:-1,m=h.findIndex(b=>b%10===i);f=(g<0?h.slice(0,m+1):h.slice(m)).map((b,y)=>{const x=b%10;return d.createElement(dv,Object.assign({},e,{key:b,value:x,offset:g<0?y-m:y,current:y===m}))}),p={transform:`translateY(${-v6(i,o,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var y6=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 x6=d.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,f=y6(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(Bt),v=p("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":l,style:i,className:pe(v,o,a),title:s});let g=r;if(r&&Number(r)%1===0){const m=String(r).split("");g=d.createElement("bdi",null,m.map((b,y)=>d.createElement(b6,{prefixCls:v,count:Number(r),value:b,key:m.length-y})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Mo(u,m=>({className:pe(`${v}-custom-component`,m==null?void 0:m.className,a)})):d.createElement(c,Object.assign({},h,{ref:t}),g)});var w6=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 C6=d.forwardRef((e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:v=null,overflowCount:h=99,dot:g=!1,size:m="default",title:b,offset:y,style:x,className:C,rootClassName:w,classNames:E,styles:S,showZero:$=!1}=e,O=w6(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:M,badge:j}=d.useContext(Bt),R=k("badge",s),[I,N,F]=p6(R),A=v>h?`${h}+`:v,P=A==="0"||A===0||f==="0"||f===0,z=v===null||P&&!$,H=(u!=null||p!=null)&&z,V=u!=null||!P,T=g&&!P,_=T?"":A,D=Gt(()=>((_==null||_==="")&&(f==null||f==="")||P&&!$)&&!T,[_,P,$,T,f]),B=Ze(v);D||(B.current=v);const L=B.current,W=Ze(_);D||(W.current=_);const U=W.current,J=Ze(T);D||(J.current=T);const q=Gt(()=>{if(!y)return Object.assign(Object.assign({},j==null?void 0:j.style),x);const ye={marginTop:y[1]};return M==="rtl"?ye.left=Number.parseInt(y[0],10):ye.right=-Number.parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},ye),j==null?void 0:j.style),x)},[M,y,x,j==null?void 0:j.style]),ee=b??(typeof L=="string"||typeof L=="number"?L:void 0),G=!D&&(f===0?$:!!f&&f!==!0),X=G?d.createElement("span",{className:`${R}-status-text`},f):null,ie=!L||typeof L!="object"?void 0:Mo(L,ye=>({style:Object.assign(Object.assign({},q),ye.style)})),ae=Sc(p,!1),ne=pe(E==null?void 0:E.indicator,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.indicator,{[`${R}-status-dot`]:H,[`${R}-status-${u}`]:!!u,[`${R}-color-${p}`]:ae}),ce={};p&&!ae&&(ce.color=p,ce.background=p);const de=pe(R,{[`${R}-status`]:H,[`${R}-not-a-wrapper`]:!c,[`${R}-rtl`]:M==="rtl"},C,w,j==null?void 0:j.className,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,N,F);if(!c&&H&&(f||V||!z)){const ye=q.color;return I(d.createElement("span",Object.assign({},O,{className:de,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.root),q)}),d.createElement("span",{className:ne,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.indicator),ce)}),G&&d.createElement("span",{style:{color:ye},className:`${R}-status-text`},f)))}return I(d.createElement("span",Object.assign({ref:t},O,{className:de,style:Object.assign(Object.assign({},(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,d.createElement(ia,{visible:!D,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:ye})=>{var Ee,ge;const Se=k("scroll-number",l),oe=J.current,ve=pe(E==null?void 0:E.indicator,(Ee=j==null?void 0:j.classNames)===null||Ee===void 0?void 0:Ee.indicator,{[`${R}-dot`]:oe,[`${R}-count`]:!oe,[`${R}-count-sm`]:m==="small",[`${R}-multiple-words`]:!oe&&U&&U.toString().length>1,[`${R}-status-${u}`]:!!u,[`${R}-color-${p}`]:ae});let je=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(ge=j==null?void 0:j.styles)===null||ge===void 0?void 0:ge.indicator),q);return p&&!ae&&(je=je||{},je.background=p),d.createElement(x6,{prefixCls:Se,show:!D,motionClassName:ye,className:ve,count:U,title:ee,style:je,key:"scrollNumber"},ie)}),X))}),Mx=C6;Mx.Ribbon=h6;var nf={exports:{}},S6=nf.exports,fv;function E6(){return fv||(fv=1,(function(e,t){(function(n,r){e.exports=r()})(S6,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\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(I){var N=["th","st","nd","rd"],F=I%100;return"["+I+(N[(F-20)%10]||N[F]||N[0])+"]"}},x=function(I,N,F){var A=String(I);return!A||A.length>=N?I:""+Array(N+1-A.length).join(F)+I},C={s:x,z:function(I){var N=-I.utcOffset(),F=Math.abs(N),A=Math.floor(F/60),P=F%60;return(N<=0?"+":"-")+x(A,2,"0")+":"+x(P,2,"0")},m:function I(N,F){if(N.date()<F.date())return-I(F,N);var A=12*(F.year()-N.year())+(F.month()-N.month()),P=N.clone().add(A,f),z=F-P<0,H=N.clone().add(A+(z?-1:1),f);return+(-(A+(F-P)/(z?P-H:H-P))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",E={};E[w]=y;var S="$isDayjsObject",$=function(I){return I instanceof j||!(!I||!I[S])},O=function I(N,F,A){var P;if(!N)return w;if(typeof N=="string"){var z=N.toLowerCase();E[z]&&(P=z),F&&(E[z]=F,P=z);var H=N.split("-");if(!P&&H.length>1)return I(H[0])}else{var V=N.name;E[V]=N,P=V}return!A&&P&&(w=P),P||!A&&w},k=function(I,N){if($(I))return I.clone();var F=typeof N=="object"?N:{};return F.date=I,F.args=arguments,new j(F)},M=C;M.l=O,M.i=$,M.w=function(I,N){return k(I,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var j=(function(){function I(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[S]=!0}var N=I.prototype;return N.parse=function(F){this.$d=(function(A){var P=A.date,z=A.utc;if(P===null)return new Date(NaN);if(M.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var H=P.match(m);if(H){var V=H[2]-1||0,T=(H[7]||"0").substring(0,3);return z?new Date(Date.UTC(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)):new Date(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)}}return new Date(P)})(F),this.init()},N.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},N.$utils=function(){return M},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(F,A){var P=k(F);return this.startOf(A)<=P&&P<=this.endOf(A)},N.isAfter=function(F,A){return k(F)<this.startOf(A)},N.isBefore=function(F,A){return this.endOf(A)<k(F)},N.$g=function(F,A,P){return M.u(F)?this[A]:this.set(P,F)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(F,A){var P=this,z=!!M.u(A)||A,H=M.p(F),V=function(J,q){var ee=M.w(P.$u?Date.UTC(P.$y,q,J):new Date(P.$y,q,J),P);return z?ee:ee.endOf(c)},T=function(J,q){return M.w(P.toDate()[J].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(q)),P)},_=this.$W,D=this.$M,B=this.$D,L="set"+(this.$u?"UTC":"");switch(H){case v:return z?V(1,0):V(31,11);case f:return z?V(1,D):V(0,D+1);case u:var W=this.$locale().weekStart||0,U=(_<W?_+7:_)-W;return V(z?B-U:B+(6-U),D);case c:case h:return T(L+"Hours",0);case l:return T(L+"Minutes",1);case s:return T(L+"Seconds",2);case i:return T(L+"Milliseconds",3);default:return this.clone()}},N.endOf=function(F){return this.startOf(F,!1)},N.$set=function(F,A){var P,z=M.p(F),H="set"+(this.$u?"UTC":""),V=(P={},P[c]=H+"Date",P[h]=H+"Date",P[f]=H+"Month",P[v]=H+"FullYear",P[l]=H+"Hours",P[s]=H+"Minutes",P[i]=H+"Seconds",P[a]=H+"Milliseconds",P)[z],T=z===c?this.$D+(A-this.$W):A;if(z===f||z===v){var _=this.clone().set(h,1);_.$d[V](T),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else V&&this.$d[V](T);return this.init(),this},N.set=function(F,A){return this.clone().$set(F,A)},N.get=function(F){return this[M.p(F)]()},N.add=function(F,A){var P,z=this;F=Number(F);var H=M.p(A),V=function(D){var B=k(z);return M.w(B.date(B.date()+Math.round(D*F)),z)};if(H===f)return this.set(f,this.$M+F);if(H===v)return this.set(v,this.$y+F);if(H===c)return V(1);if(H===u)return V(7);var T=(P={},P[s]=r,P[l]=o,P[i]=n,P)[H]||1,_=this.$d.getTime()+F*T;return M.w(_,this)},N.subtract=function(F,A){return this.add(-1*F,A)},N.format=function(F){var A=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var z=F||"YYYY-MM-DDTHH:mm:ssZ",H=M.z(this),V=this.$H,T=this.$m,_=this.$M,D=P.weekdays,B=P.months,L=P.meridiem,W=function(q,ee,G,X){return q&&(q[ee]||q(A,z))||G[ee].slice(0,X)},U=function(q){return M.s(V%12||12,q,"0")},J=L||function(q,ee,G){var X=q<12?"AM":"PM";return G?X.toLowerCase():X};return z.replace(b,(function(q,ee){return ee||(function(G){switch(G){case"YY":return String(A.$y).slice(-2);case"YYYY":return M.s(A.$y,4,"0");case"M":return _+1;case"MM":return M.s(_+1,2,"0");case"MMM":return W(P.monthsShort,_,B,3);case"MMMM":return W(B,_);case"D":return A.$D;case"DD":return M.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return W(P.weekdaysMin,A.$W,D,2);case"ddd":return W(P.weekdaysShort,A.$W,D,3);case"dddd":return D[A.$W];case"H":return String(V);case"HH":return M.s(V,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return J(V,T,!0);case"A":return J(V,T,!1);case"m":return String(T);case"mm":return M.s(T,2,"0");case"s":return String(A.$s);case"ss":return M.s(A.$s,2,"0");case"SSS":return M.s(A.$ms,3,"0");case"Z":return H}return null})(q)||H.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(F,A,P){var z,H=this,V=M.p(A),T=k(F),_=(T.utcOffset()-this.utcOffset())*r,D=this-T,B=function(){return M.m(H,T)};switch(V){case v:z=B()/12;break;case f:z=B();break;case p:z=B()/3;break;case u:z=(D-_)/6048e5;break;case c:z=(D-_)/864e5;break;case l:z=D/o;break;case s:z=D/r;break;case i:z=D/n;break;default:z=D}return P?z:M.a(z)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return E[this.$L]},N.locale=function(F,A){if(!F)return this.$L;var P=this.clone(),z=O(F,A,!0);return z&&(P.$L=z),P},N.clone=function(){return M.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},I})(),R=j.prototype;return k.prototype=R,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(I){R[I[1]]=function(N){return this.$g(N,I[0],I[1])}})),k.extend=function(I,N){return I.$i||(I(N,j,k),I.$i=!0),k},k.locale=O,k.isDayjs=$,k.unix=function(I){return k(1e3*I)},k.en=E[w],k.Ls=E,k.p={},k}))})(nf)),nf.exports}var $6=E6();const Ln=so($6);var rf={exports:{}},k6=rf.exports,pv;function O6(){return pv||(pv=1,(function(e,t){(function(n,r){e.exports=r()})(k6,(function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,s=(i<a?i+7:i)-a;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}}))})(rf)),rf.exports}var I6=O6();const M6=so(I6);var of={exports:{}},F6=of.exports,mv;function N6(){return mv||(mv=1,(function(e,t){(function(n,r){e.exports=r()})(F6,(function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,p,v,h,g){var m=f.name?f:f.$locale(),b=i(m[p]),y=i(m[v]),x=b||y.map((function(w){return w.slice(0,h)}));if(!g)return x;var C=m.weekStart;return x.map((function(w,E){return x[(E+(C||0))%7]}))},l=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,g,m){return g||m.slice(1)}))})(f.formats[p.toUpperCase()])},u=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):s(f,"months")},monthsShort:function(p){return p?p.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.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(p){return c(f,p)},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)}}}))})(of)),of.exports}var j6=N6();const P6=so(j6);var af={exports:{}},A6=af.exports,gv;function R6(){return gv||(gv=1,(function(e,t){(function(n,r){e.exports=r()})(A6,(function(){var n="week",r="year";return function(o,a,i){var s=a.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=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(p,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(af)),af.exports}var T6=R6();const D6=so(T6);var sf={exports:{}},_6=sf.exports,hv;function B6(){return hv||(hv=1,(function(e,t){(function(n,r){e.exports=r()})(_6,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}}))})(sf)),sf.exports}var z6=B6();const H6=so(z6);var lf={exports:{}},L6=lf.exports,vv;function V6(){return vv||(vv=1,(function(e,t){(function(n,r){e.exports=r()})(L6,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),u=(i||"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 a.bind(this)(u)}}}))})(lf)),lf.exports}var W6=V6();const q6=so(W6);var cf={exports:{}},U6=cf.exports,bv;function Y6(){return bv||(bv=1,(function(e,t){(function(n,r){e.exports=r()})(U6,(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/,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(b){this[m]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(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})(m)}],p=function(m){var b=l[m];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(m,b){var y,x=l.meridiem;if(x){for(var C=1;C<=24;C+=1)if(m.indexOf(x(C,0,b))>-1){y=C>12;break}}else y=m===(b?"pm":"PM");return y},h={A:[s,function(m){this.afternoon=v(m,!1)}],a:[s,function(m){this.afternoon=v(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[s,function(m){var b=l.ordinal,y=m.match(/\d+/);if(this.day=y[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===m&&(this.day=x)}],w:[i,u("week")],ww:[a,u("week")],M:[i,u("month")],MM:[a,u("month")],MMM:[s,function(m){var b=p("months"),y=(p("monthsShort")||b.map((function(x){return x.slice(0,3)}))).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(m){var b=p("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(m){var b,y;b=m,y=l&&l.formats;for(var x=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,M,j){var R=j&&j.toUpperCase();return M||y[j]||n[j]||y[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(I,N,F){return N||F.slice(1)}))}))).match(r),C=x.length,w=0;w<C;w+=1){var E=x[w],S=h[E],$=S&&S[0],O=S&&S[1];x[w]=O?{regex:$,parser:O}:E.replace(/^\[|\]$/g,"")}return function(k){for(var M={},j=0,R=0;j<C;j+=1){var I=x[j];if(typeof I=="string")R+=I.length;else{var N=I.regex,F=I.parser,A=k.slice(R),P=N.exec(A)[0];F.call(M,P),k=k.replace(P,"")}}return(function(z){var H=z.afternoon;if(H!==void 0){var V=z.hours;H?V<12&&(z.hours+=12):V===12&&(z.hours=0),delete z.afternoon}})(M),M}}return function(m,b,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var x=b.prototype,C=x.parse;x.parse=function(w){var E=w.date,S=w.utc,$=w.args;this.$u=S;var O=$[1];if(typeof O=="string"){var k=$[2]===!0,M=$[3]===!0,j=k||M,R=$[2];M&&(R=$[2]),l=this.$locale(),!k&&R&&(l=y.Ls[R]),this.$d=(function(A,P,z,H){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*A);var V=g(P)(A),T=V.year,_=V.month,D=V.day,B=V.hours,L=V.minutes,W=V.seconds,U=V.milliseconds,J=V.zone,q=V.week,ee=new Date,G=D||(T||_?1:ee.getDate()),X=T||ee.getFullYear(),ie=0;T&&!_||(ie=_>0?_-1:ee.getMonth());var ae,ne=B||0,ce=L||0,de=W||0,ye=U||0;return J?new Date(Date.UTC(X,ie,G,ne,ce,de,ye+60*J.offset*1e3)):z?new Date(Date.UTC(X,ie,G,ne,ce,de,ye)):(ae=new Date(X,ie,G,ne,ce,de,ye),q&&(ae=H(ae).week(q).toDate()),ae)}catch{return new Date("")}})(E,O,S,y),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),j&&E!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var I=O.length,N=1;N<=I;N+=1){$[1]=O[N-1];var F=y.apply(this,$);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}N===I&&(this.$d=new Date(""))}else C.call(this,w)}}}))})(cf)),cf.exports}var X6=Y6();const G6=so(X6);Ln.extend(G6);Ln.extend(q6);Ln.extend(M6);Ln.extend(P6);Ln.extend(D6);Ln.extend(H6);Ln.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var K6={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"},Do=function(e){var t=K6[e];return t||e.split("_")[0]},Q6={getNow:function(){var e=Ln();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return Ln(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 Ln().locale(Do(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(Do(e)).weekday(0)},getWeek:function(e,t){return t.locale(Do(e)).week()},getShortWeekDays:function(e){return Ln().locale(Do(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Ln().locale(Do(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(Do(e)).format(n)},parse:function(e,t,n){for(var r=Do(e),o=0;o<n.length;o+=1){var a=n[o],i=t;if(a.includes("wo")||a.includes("Wo")){for(var s=i.split("-")[0],l=i.split("-")[1],c=Ln(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 p=Ln(i,a,!0).locale(r);if(p.isValid())return p}return null}}};function Z6(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Vr=d.createContext(null),J6={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 Fx(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,f=u===void 0?J6:u,p=e.direction,v=e.visible,h=e.onClose,g=d.useContext(Vr),m=g.prefixCls,b="".concat(m,"-dropdown"),y=Z6(c,p==="rtl");return d.createElement(pm,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:b,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:pe(r,Q(Q({},"".concat(b,"-range"),l),"".concat(b,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(x){x||h()}},s)}function bm(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 ua(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ai(e,t,n){var r=Re(e);return r[t]=n,r}function $c(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function Nx(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 jx(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function Px(e){return $c(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ym(e,t,n,r){var o=d.useMemo(function(){return e||function(i,s){var l=i;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),a=d.useCallback(function(i,s){return o(i,Z(Z({},s),{},{range:r}))},[o,r]);return a}function Ax(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=te(r,2),a=o[0],i=o[1],s=function(c,u){i(function(f){return Ai(f,u,c)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Rx(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function eP(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,b=e.cellDateFormat,y=Rx(t,n,r,o,a);return Z(Z({},e),{},{fieldDateTimeFormat:i||"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:p||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||m||"D"})}function Tx(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return fe.useMemo(function(){return eP(e,n,r,o,a,i)},[e,n,r,o,a,i])}function wi(e,t,n){return n??t.some(function(r){return e.includes(r)})}var tP=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function nP(e){var t=$c(e,tP),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=pt(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function rP(e){return e&&typeof e=="string"}function Dx(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function _x(e,t,n,r,o){var a=t,i=n,s=r;if(!e&&!a&&!i&&!s&&!o)a=!0,i=!0,s=!0;else if(e){var l,c,u,f=[a,i,s].some(function(h){return h===!1}),p=[a,i,s].some(function(h){return h===!0}),v=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:v,i=(c=i)!==null&&c!==void 0?c:v,s=(u=s)!==null&&u!==void 0?u:v}return[a,i,s,o]}function Bx(e){var t=e.showTime,n=nP(e),r=te(n,2),o=r[0],a=r[1],i=t&&pt(t)==="object"?t:{},s=Z(Z({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=Dx(c,u,f,l),v=_x(p,c,u,f,l),h=te(v,3);return c=h[0],u=h[1],f=h[2],[s,Z(Z({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function zx(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,s=Nx(e,o,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var f=ua(c[u])[0];if(rP(f)){l=f;break}}var p=i.showHour,v=i.showMinute,h=i.showSecond,g=i.showMillisecond,m=i.use12Hours,b=wi(l,["a","A","LT","LLL","LTS"],m),y=Dx(p,v,h,g);y||(p=wi(l,["H","h","k","LT","LLL"]),v=wi(l,["m","LT","LLL"]),h=wi(l,["s","LTS"]),g=wi(l,["SSS"]));var x=_x(y,p,v,h,g),C=te(x,3);p=C[0],v=C[1],h=C[2];var w=t||Rx(p,v,h,g,b);return Z(Z({},i),{},{format:w,showHour:p,showMinute:v,showSecond:h,showMillisecond:g,use12Hours:b})}return null}function oP(e,t,n){if(t===!1)return null;var r=t&&pt(t)==="object"?t:{};return r.clearIcon||n||d.createElement("span",{className:"".concat(e,"-clear-btn")})}var wu=7;function To(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function uf(e,t,n){return To(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function ra(e,t,n){return To(t,n,function(){return e.getYear(t)===e.getYear(n)})}function yv(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function aP(e,t,n){return To(t,n,function(){return ra(e,t,n)&&yv(e,t)===yv(e,n)})}function xm(e,t,n){return To(t,n,function(){return ra(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function wm(e,t,n){return To(t,n,function(){return ra(e,t,n)&&xm(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Hx(e,t,n){return To(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Lx(e,t,n){return To(t,n,function(){return wm(e,t,n)&&Hx(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Oi(e,t,n,r){return To(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return ra(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Vn(e,t,n,r,o){switch(o){case"date":return wm(e,n,r);case"week":return Oi(e,t.locale,n,r);case"month":return xm(e,n,r);case"quarter":return aP(e,n,r);case"year":return ra(e,n,r);case"decade":return uf(e,n,r);case"time":return Hx(e,n,r);default:return Lx(e,n,r)}}function kc(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Ts(e,t,n,r,o){return Vn(e,t,n,r,o)?!0:e.isAfter(n,r)}function iP(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function On(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 _l(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,s){n?r=e[i](r,e[o[s]](n)):r=e[i](r,0)}),r}function sP(e,t,n,r,o){var a=Dt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!Vn(e,t,r,i,s.type)||o&&e.isAfter(i,o)&&!Vn(e,t,o,i,s.type))});return a}function lP(e,t,n){return d.useMemo(function(){var r=Nx(e,t,n),o=ua(r),a=o[0],i=pt(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function cP(e,t,n){return typeof e[0]=="function"||n?!0:t}function uP(e,t,n,r){var o=Dt(function(a,i){var s=Z({type:t},i);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=i&&i.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,v=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,y=f||g,x=p||m,C=v||b,w=e.getHour(a),E=e.getMinute(a),S=e.getSecond(a),$=e.getMillisecond(a);if(y&&y().includes(w)||x&&x(w).includes(E)||C&&C(w,E).includes(S)||h&&h(w,E,S).includes($))return!0}return!1});return o}function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&ua(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Vx(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,s=i===void 0?"rc-picker":i,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,v=p===void 0?!0:p,h=e.components,g=h===void 0?{}:h,m=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,C=e.multiple,w=e.format,E=e.inputReadOnly,S=e.disabledDate,$=e.minDate,O=e.maxDate,k=e.showTime,M=e.value,j=e.defaultValue,R=e.pickerValue,I=e.defaultPickerValue,N=Ds(M),F=Ds(j),A=Ds(R),P=Ds(I),z=a==="date"&&k?"datetime":a,H=z==="time"||z==="datetime",V=H||C,T=x??H,_=Bx(e),D=te(_,4),B=D[0],L=D[1],W=D[2],U=D[3],J=Tx(r,L),q=d.useMemo(function(){return zx(z,W,U,B,J)},[z,W,U,B,J]),ee=d.useMemo(function(){return Z(Z({},e),{},{prefixCls:s,locale:J,picker:a,styles:c,classNames:f,order:v,components:Z({input:m},g),clearIcon:oP(s,b,y),showTime:q,value:N,defaultValue:F,pickerValue:A,defaultPickerValue:P},t==null?void 0:t())},[e]),G=lP(z,J,w),X=te(G,2),ie=X[0],ae=X[1],ne=cP(ie,E,C),ce=sP(n,r,S,$,O),de=uP(n,a,ce,q),ye=d.useMemo(function(){return Z(Z({},ee),{},{needConfirm:T,inputReadOnly:ne,disabledDate:ce})},[ee,T,ne,ce]);return[ye,z,V,ie,ae,de]}function dP(e,t,n){var r=fn(t,{value:e}),o=te(r,2),a=o[0],i=o[1],s=fe.useRef(e),l=fe.useRef(),c=function(){Pt.cancel(l.current)},u=Dt(function(){i(s.current),n&&a!==s.current&&n(s.current)}),f=Dt(function(p,v){c(),s.current=p,p||v?u():l.current=Pt(u)});return fe.useEffect(function(){return c},[]),[a,f]}function Wx(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,a=dP(o,t||!1,r),i=te(a,2),s=i[0],l=i[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 qx(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 Ux(e,t){return d.useMemo(function(){return e||(t?(An(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=te(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function Cm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Ra(function(){if(e)r.current(e);else{var o=Pt(function(){r.current(e)},n);return function(){Pt.cancel(o)}}},[e])}function Yx(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),a=o[0],i=o[1],s=d.useState(!1),l=te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),v=d.useRef(null),h=function(x){p.current=x},g=function(x){return p.current===x},m=function(x){u(x)},b=function(x){return x&&(v.current=x),v.current},y=function(x){var C=f.current,w=new Set(C.filter(function(S){return x[S]||t[S]})),E=C[C.length-1]===0?1:0;return w.size>=2||e[E]?null:E};return Cm(c||n,function(){c||(f.current=[],h(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,m,b,a,i,y,f.current,h,g]}function fP(e,t,n,r,o,a){var i=n[n.length-1],s=function(l,c){var u=te(e,2),f=u[0],p=u[1],v=Z(Z({},c),{},{from:jx(e,n)});return i===1&&t[0]&&f&&!Vn(r,o,f,l,v.type)&&r.isAfter(f,l)||i===0&&t[1]&&p&&!Vn(r,o,p,l,v.type)&&r.isAfter(l,p)?!0:a==null?void 0:a(l,v)};return s}function Ii(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 Cu=[];function Xx(e,t,n,r,o,a,i,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Cu,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Cu,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Cu,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=i==="time",g=a||0,m=function(F){var A=e.getNow();return h&&(A=_l(e,A)),l[F]||n[F]||A},b=te(c,2),y=b[0],x=b[1],C=fn(function(){return m(0)},{value:y}),w=te(C,2),E=w[0],S=w[1],$=fn(function(){return m(1)},{value:x}),O=te($,2),k=O[0],M=O[1],j=d.useMemo(function(){var F=[E,k][g];return h?F:_l(e,F,u[g])},[h,E,k,g,e,u]),R=function(F){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",P=[S,M][g];P(F);var z=[E,k];z[g]=F,f&&(!Vn(e,t,E,z[0],i)||!Vn(e,t,k,z[1],i))&&f(z,{source:A,range:g===1?"end":"start",mode:r})},I=function(F,A){if(s){var P={date:"month",week:"month",month:"year",quarter:"year"},z=P[i];if(z&&!Vn(e,t,F,A,z))return Ii(e,i,A,-1);if(i==="year"&&F){var H=Math.floor(e.getYear(F)/10),V=Math.floor(e.getYear(A)/10);if(H!==V)return Ii(e,i,A,-1)}}return A},N=d.useRef(null);return Ht(function(){if(o&&!l[g]){var F=h?null:e.getNow();if(N.current!==null&&N.current!==g?F=[E,k][g^1]:n[g]?F=g===0?n[0]:I(n[0],n[1]):n[g^1]&&(F=n[g^1]),F){p&&e.isAfter(p,F)&&(F=p);var A=s?Ii(e,i,F,1):F;v&&e.isAfter(A,v)&&(F=s?Ii(e,i,v,-1):v),R(F,"reset")}}},[o,g,n[g]]),d.useEffect(function(){o?N.current=g:N.current=null},[o,g]),Ht(function(){o&&l&&l[g]&&R(l[g],"reset")},[o,g]),[j,R]}function Gx(e,t){var n=d.useRef(e),r=d.useState({}),o=te(r,2),a=o[1],i=function(l){return l&&t!==void 0?t:n.current},s=function(l){n.current=l,a({})};return[i,s,i(!0)]}var pP=[];function Kx(e,t,n){var r=function(a){return a.map(function(i){return On(i,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,i){for(var s=Math.max(a.length,i.length),l=-1,c=0;c<s;c+=1){var u=a[c]||null,f=i[c]||null;if(u!==f&&!Lx(e,u,f)){l=c;break}}return[l<0,l!==0]};return[r,o]}function Qx(e,t){return Re(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function mP(e){var t=Gx(e),n=te(t,2),r=n[0],o=n[1],a=Dt(function(){o(e)});return d.useEffect(function(){a()},[e]),[r,o]}function Zx(e,t,n,r,o,a,i,s,l){var c=fn(a,{value:i}),u=te(c,2),f=u[0],p=u[1],v=f||pP,h=mP(v),g=te(h,2),m=g[0],b=g[1],y=Kx(e,t,n),x=te(y,2),C=x[0],w=x[1],E=Dt(function($){var O=Re($);if(r)for(var k=0;k<2;k+=1)O[k]=O[k]||null;else o&&(O=Qx(O.filter(function(F){return F}),e));var M=w(m(),O),j=te(M,2),R=j[0],I=j[1];if(!R&&(b(O),s)){var N=C(O);s(O,N,{range:I?"end":"start"})}}),S=function(){l&&l(m())};return[v,p,m,E,S]}function Jx(e,t,n,r,o,a,i,s,l,c){var u=e.generateConfig,f=e.locale,p=e.picker,v=e.onChange,h=e.allowEmpty,g=e.order,m=a.some(function(R){return R})?!1:g,b=Kx(u,f,i),y=te(b,2),x=y[0],C=y[1],w=Gx(t),E=te(w,2),S=E[0],$=E[1],O=Dt(function(){$(t)});d.useEffect(function(){O()},[t]);var k=Dt(function(R){var I=R===null,N=Re(R||S());if(I)for(var F=Math.max(a.length,N.length),A=0;A<F;A+=1)a[A]||(N[A]=null);m&&N[0]&&N[1]&&(N=Qx(N,u)),o(N);var P=N,z=te(P,2),H=z[0],V=z[1],T=!H,_=!V,D=h?(!T||h[0])&&(!_||h[1]):!0,B=!g||T||_||Vn(u,f,H,V,p)||u.isAfter(V,H),L=(a[0]||!H||!c(H,{activeIndex:0}))&&(a[1]||!V||!c(V,{from:H,activeIndex:1})),W=I||D&&B&&L;if(W){n(N);var U=C(N,t),J=te(U,1),q=J[0];v&&!q&&v(I&&N.every(function(ee){return!ee})?null:N,x(N))}return W}),M=Dt(function(R,I){var N=Ai(S(),R,r()[R]);$(N),I&&k()}),j=!s&&!l;return Cm(!j,function(){j&&(k(),o(t),O())},2),[M,k]}function ew(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 gP(e,t,n,r,o,a){var i=e;function s(f,p,v){var h=a[f](i),g=v.find(function(x){return x.value===h});if(!g||g.disabled){var m=v.filter(function(x){return!x.disabled}),b=Re(m).reverse(),y=b.find(function(x){return x.value<=h})||m[0];y&&(h=y.value,i=a[p](i,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)),i}function _s(){return[]}function Bs(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]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=o.includes(l);(!c||!r)&&i.push({label:bm(l,a),value:l,disabled:c})}return i}function Sm(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,a=r.hourStep,i=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),x=d.useCallback(function(P){var z=(h==null?void 0:h(P))||{};return[z.disabledHours||g||_s,z.disabledMinutes||m||_s,z.disabledSeconds||b||_s,z.disabledMilliseconds||_s]},[h,g,m,b]),C=d.useMemo(function(){return x(y)},[y,x]),w=te(C,4),E=w[0],S=w[1],$=w[2],O=w[3],k=d.useCallback(function(P,z,H,V){var T=Bs(0,23,i,v,P()),_=o?T.map(function(W){return Z(Z({},W),{},{label:bm(W.value%12||12,2)})}):T,D=function(W){return Bs(0,59,l,v,z(W))},B=function(W,U){return Bs(0,59,u,v,H(W,U))},L=function(W,U,J){return Bs(0,999,p,v,V(W,U,J),3)};return[_,D,B,L]},[v,i,o,p,l,u]),M=d.useMemo(function(){return k(E,S,$,O)},[k,E,S,$,O]),j=te(M,4),R=j[0],I=j[1],N=j[2],F=j[3],A=function(P,z){var H=function(){return R},V=I,T=N,_=F;if(z){var D=x(z),B=te(D,4),L=B[0],W=B[1],U=B[2],J=B[3],q=k(L,W,U,J),ee=te(q,4),G=ee[0],X=ee[1],ie=ee[2],ae=ee[3];H=function(){return G},V=X,T=ie,_=ae}var ne=gP(P,H,V,T,_,e);return ne};return[A,R,I,N,F]}function hP(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Vr),v=p.prefixCls,h=p.locale,g=p.button,m=g===void 0?"button":g,b=u.getNow(),y=Sm(u,a,b),x=te(y,1),C=x[0],w=r==null?void 0:r(t),E=f(b,{type:t}),S=function(){if(!E){var R=C(b);s(R)}},$="".concat(v,"-now"),O="".concat($,"-btn"),k=o&&d.createElement("li",{className:$},d.createElement("a",{className:pe(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:S},n==="date"?h.today:h.now)),M=c&&d.createElement("li",{className:"".concat(v,"-ok")},d.createElement(m,{disabled:l,onClick:i},h.ok)),j=(k||M)&&d.createElement("ul",{className:"".concat(v,"-ranges")},k,M);return!w&&!j?null:d.createElement("div",{className:"".concat(v,"-footer")},w&&d.createElement("div",{className:"".concat(v,"-footer-extra")},w),j)}function tw(e,t,n){function r(o,a){var i=o.findIndex(function(l){return Vn(e,t,l,a,n)});if(i===-1)return[].concat(Re(o),[a]);var s=Re(o);return s.splice(i,1),s}return r}var da=d.createContext(null);function Oc(){return d.useContext(da)}function oi(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,v=e.pickerValue,h=e.onSelect,g=e.prevIcon,m=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),C={now:x,values:p,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:b,superNextIcon:y};return[C,x]}var Oo=d.createContext({});function vs(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,v=e.disabledDate,h=Oc(),g=h.prefixCls,m=h.panelType,b=h.now,y=h.disabledDate,x=h.cellRender,C=h.onHover,w=h.hoverValue,E=h.hoverRangeValue,S=h.generateConfig,$=h.values,O=h.locale,k=h.onSelect,M=v||y,j="".concat(g,"-cell"),R=d.useContext(Oo),I=R.onCellDblClick,N=function(T){return $.some(function(_){return _&&Vn(S,O,T,_,m)})},F=[],A=0;A<t;A+=1){for(var P=[],z=void 0,H=function(){var T=A*n+V,_=o(r,T),D=M==null?void 0:M(_,{type:m});V===0&&(z=_,a&&P.push(a(z)));var B=!1,L=!1,W=!1;if(p&&E){var U=te(E,2),J=U[0],q=U[1];B=kc(S,J,q,_),L=Vn(S,O,_,J,m),W=Vn(S,O,_,q,m)}var ee=s?On(_,{locale:O,format:s,generateConfig:S}):void 0,G=d.createElement("div",{className:"".concat(j,"-inner")},l(_));P.push(d.createElement("td",{key:V,title:ee,className:pe(j,Z(Q(Q(Q(Q(Q(Q({},"".concat(j,"-disabled"),D),"".concat(j,"-hover"),(w||[]).some(function(X){return Vn(S,O,_,X,m)})),"".concat(j,"-in-range"),B&&!L&&!W),"".concat(j,"-range-start"),L),"".concat(j,"-range-end"),W),"".concat(g,"-cell-selected"),!E&&m!=="week"&&N(_)),c(_))),onClick:function(){D||k(_)},onDoubleClick:function(){!D&&I&&I()},onMouseEnter:function(){D||(C==null||C(_))},onMouseLeave:function(){D||(C==null||C(null))}},x?x(_,{prefixCls:g,originNode:G,today:b,type:m,locale:O}):G))},V=0;V<n;V+=1)H();F.push(d.createElement("tr",{key:A,className:i==null?void 0:i(z)},P))}return d.createElement("div",{className:"".concat(g,"-body")},d.createElement("table",{className:"".concat(g,"-content")},u&&d.createElement("thead",null,d.createElement("tr",null,u)),d.createElement("tbody",null,F)))}var zs={visibility:"hidden"};function ai(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,s=Oc(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"\u2039":c,f=s.nextIcon,p=f===void 0?"\u203A":f,v=s.superPrevIcon,h=v===void 0?"\xAB":v,g=s.superNextIcon,m=g===void 0?"\xBB":g,b=s.minDate,y=s.maxDate,x=s.generateConfig,C=s.locale,w=s.pickerValue,E=s.panelType,S="".concat(l,"-header"),$=d.useContext(Oo),O=$.hidePrev,k=$.hideNext,M=$.hideHeader,j=d.useMemo(function(){if(!b||!t||!a)return!1;var T=a(t(-1,w));return!Ts(x,C,T,b,E)},[b,t,w,a,x,C,E]),R=d.useMemo(function(){if(!b||!n||!a)return!1;var T=a(n(-1,w));return!Ts(x,C,T,b,E)},[b,n,w,a,x,C,E]),I=d.useMemo(function(){if(!y||!t||!o)return!1;var T=o(t(1,w));return!Ts(x,C,y,T,E)},[y,t,w,o,x,C,E]),N=d.useMemo(function(){if(!y||!n||!o)return!1;var T=o(n(1,w));return!Ts(x,C,y,T,E)},[y,n,w,o,x,C,E]),F=function(T){t&&r(t(T,w))},A=function(T){n&&r(n(T,w))};if(M)return null;var P="".concat(S,"-prev-btn"),z="".concat(S,"-next-btn"),H="".concat(S,"-super-prev-btn"),V="".concat(S,"-super-next-btn");return d.createElement("div",{className:S},n&&d.createElement("button",{type:"button","aria-label":C.previousYear,onClick:function(){return A(-1)},tabIndex:-1,className:pe(H,R&&"".concat(H,"-disabled")),disabled:R,style:O?zs:{}},h),t&&d.createElement("button",{type:"button","aria-label":C.previousMonth,onClick:function(){return F(-1)},tabIndex:-1,className:pe(P,j&&"".concat(P,"-disabled")),disabled:j,style:O?zs:{}},u),d.createElement("div",{className:"".concat(S,"-view")},i),t&&d.createElement("button",{type:"button","aria-label":C.nextMonth,onClick:function(){return F(1)},tabIndex:-1,className:pe(z,I&&"".concat(z,"-disabled")),disabled:I,style:k?zs:{}},p),n&&d.createElement("button",{type:"button","aria-label":C.nextYear,onClick:function(){return A(1)},tabIndex:-1,className:pe(V,N&&"".concat(V,"-disabled")),disabled:N,style:k?zs:{}},m))}function Ic(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,f=e.disabledDate,p=e.onSelect,v=e.onHover,h=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),m="".concat(t,"-cell"),b=u==="week",y=oi(e,u),x=te(y,2),C=x[0],w=x[1],E=a.locale.getWeekFirstDay(o.locale),S=a.setDate(i,1),$=iP(o.locale,a,S),O=a.getMonth(i),k=h===void 0?b:h,M=k?function(T){var _=f==null?void 0:f(T,{type:"week"});return d.createElement("td",{key:"week",className:pe(m,"".concat(m,"-week"),Q({},"".concat(m,"-disabled"),_)),onClick:function(){_||p(T)},onMouseEnter:function(){_||(v==null||v(T))},onMouseLeave:function(){_||(v==null||v(null))}},d.createElement("div",{className:"".concat(m,"-inner")},a.locale.getWeek(o.locale,T)))}:null,j=[],R=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);M&&j.push(d.createElement("th",{key:"empty"},d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var I=0;I<wu;I+=1)j.push(d.createElement("th",{key:I},R[(I+E)%wu]));var N=function(T,_){return a.addDate(T,_)},F=function(T){return On(T,{locale:o,format:o.cellDateFormat,generateConfig:a})},A=function(T){var _=Q(Q({},"".concat(t,"-cell-in-view"),xm(a,T,i)),"".concat(t,"-cell-today"),wm(a,T,w));return _},P=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),z=d.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){l("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},On(i,{locale:o,format:o.yearFormat,generateConfig:a})),H=d.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){l("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?On(i,{locale:o,format:o.monthFormat,generateConfig:a}):P[O]),V=o.monthBeforeYear?[H,z]:[z,H];return d.createElement(da.Provider,{value:C},d.createElement("div",{className:pe(g,h&&"".concat(g,"-show-week"))},d.createElement(ai,{offset:function(T){return a.addMonth(i,T)},superOffset:function(T){return a.addYear(i,T)},onChange:s,getStart:function(T){return a.setDate(T,1)},getEnd:function(T){var _=a.setDate(T,1);return _=a.addMonth(_,1),a.addDate(_,-1)}},V),d.createElement(vs,Ke({titleFormat:o.fieldDateFormat},e,{colNum:wu,rowNum:6,baseDate:$,headerCells:j,getCellDate:N,getCellText:F,getCellClassName:A,prefixColumn:M,cellSelection:!b}))))}var vP=1/3;function bP(e,t){var n=d.useRef(!1),r=d.useRef(null),o=d.useRef(null),a=function(){return n.current},i=function(){Pt.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,'"]')),p=u.querySelector("li"),v=function h(){i(),n.current=!0,s.current+=1;var g=u.scrollTop,m=p.offsetTop,b=f.offsetTop,y=b-m;if(b===0&&f!==p||!pc(u)){s.current<=5&&(r.current=Pt(h));return}var x=g+(y-g)*vP,C=Math.abs(y-x);if(o.current!==null&&o.current<C){i();return}if(o.current=C,C<=1){u.scrollTop=y,i();return}u.scrollTop=x,r.current=Pt(h)};f&&p&&v()}},c=Dt(l);return[c,i,a]}var yP=300;function xP(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Ci(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=Oc(),u=c.prefixCls,f=c.cellRender,p=c.now,v=c.locale,h="".concat(u,"-time-panel"),g="".concat(u,"-time-panel-cell"),m=d.useRef(null),b=d.useRef(),y=function(){clearTimeout(b.current)},x=bP(m,n??r),C=te(x,3),w=C[0],E=C[1],S=C[2];Ht(function(){return w(),y(),function(){E(),y()}},[n,r,xP(t)]);var $=function(k){y();var M=k.target;!S()&&l&&(b.current=setTimeout(function(){var j=m.current,R=j.querySelector("li").offsetTop,I=Array.from(j.querySelectorAll("li")),N=I.map(function(H){return H.offsetTop-R}),F=N.map(function(H,V){return t[V].disabled?Number.MAX_SAFE_INTEGER:Math.abs(H-M.scrollTop)}),A=Math.min.apply(Math,Re(F)),P=F.findIndex(function(H){return H===A}),z=t[P];z&&!z.disabled&&a(z.value)},yP))},O="".concat(h,"-column");return d.createElement("ul",{className:O,ref:m,"data-type":o,onScroll:$},t.map(function(k){var M=k.label,j=k.value,R=k.disabled,I=d.createElement("div",{className:"".concat(g,"-inner")},M);return d.createElement("li",{key:j,className:pe(g,Q(Q({},"".concat(g,"-selected"),n===j),"".concat(g,"-disabled"),R)),onClick:function(){R||a(j)},onDoubleClick:function(){!R&&s&&s()},onMouseEnter:function(){i(j)},onMouseLeave:function(){i(null)},"data-value":j},f?f(j,{prefixCls:u,originNode:I,today:p,type:"time",subType:o,locale:v}):I)}))}function go(e){return e<12}function wP(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,s=Oc(),l=s.prefixCls,c=s.values,u=s.generateConfig,f=s.locale,p=s.onSelect,v=s.onHover,h=v===void 0?function(){}:v,g=s.pickerValue,m=(c==null?void 0:c[0])||null,b=d.useContext(Oo),y=b.onCellDblClick,x=Sm(u,e,m),C=te(x,5),w=C[0],E=C[1],S=C[2],$=C[3],O=C[4],k=function(he){var st=m&&u[he](m),yt=g&&u[he](g);return[st,yt]},M=k("getHour"),j=te(M,2),R=j[0],I=j[1],N=k("getMinute"),F=te(N,2),A=F[0],P=F[1],z=k("getSecond"),H=te(z,2),V=H[0],T=H[1],_=k("getMillisecond"),D=te(_,2),B=D[0],L=D[1],W=R===null?null:go(R)?"am":"pm",U=d.useMemo(function(){return a?go(R)?E.filter(function(he){return go(he.value)}):E.filter(function(he){return!go(he.value)}):E},[R,E,a]),J=function(he,st){var yt,St=he.filter(function(Nt){return!Nt.disabled});return st??(St==null||(yt=St[0])===null||yt===void 0?void 0:yt.value)},q=J(E,R),ee=d.useMemo(function(){return S(q)},[S,q]),G=J(ee,A),X=d.useMemo(function(){return $(q,G)},[$,q,G]),ie=J(X,V),ae=d.useMemo(function(){return O(q,G,ie)},[O,q,G,ie]),ne=J(ae,B),ce=d.useMemo(function(){if(!a)return[];var he=u.getNow(),st=u.setHour(he,6),yt=u.setHour(he,18),St=function(Nt,Ve){var Qe=f.cellMeridiemFormat;return Qe?On(Nt,{generateConfig:u,locale:f,format:Qe}):Ve};return[{label:St(st,"AM"),value:"am",disabled:E.every(function(Nt){return Nt.disabled||!go(Nt.value)})},{label:St(yt,"PM"),value:"pm",disabled:E.every(function(Nt){return Nt.disabled||go(Nt.value)})}]},[E,a,u,f]),de=function(he){var st=w(he);p(st)},ye=d.useMemo(function(){var he=m||g||u.getNow(),st=function(yt){return yt!=null};return st(R)?(he=u.setHour(he,R),he=u.setMinute(he,A),he=u.setSecond(he,V),he=u.setMillisecond(he,B)):st(I)?(he=u.setHour(he,I),he=u.setMinute(he,P),he=u.setSecond(he,T),he=u.setMillisecond(he,L)):st(q)&&(he=u.setHour(he,q),he=u.setMinute(he,G),he=u.setSecond(he,ie),he=u.setMillisecond(he,ne)),he},[m,g,R,A,V,B,q,G,ie,ne,I,P,T,L,u]),Ee=function(he,st){return he===null?null:u[st](ye,he)},ge=function(he){return Ee(he,"setHour")},Se=function(he){return Ee(he,"setMinute")},oe=function(he){return Ee(he,"setSecond")},ve=function(he){return Ee(he,"setMillisecond")},je=function(he){return he===null?null:he==="am"&&!go(R)?u.setHour(ye,R-12):he==="pm"&&go(R)?u.setHour(ye,R+12):ye},se=function(he){de(ge(he))},He=function(he){de(Se(he))},De=function(he){de(oe(he))},qe=function(he){de(ve(he))},Ue=function(he){de(je(he))},_e=function(he){h(ge(he))},Oe=function(he){h(Se(he))},Ie=function(he){h(oe(he))},ke=function(he){h(ve(he))},Ne=function(he){h(je(he))},Xe={onDblClick:y,changeOnScroll:i};return d.createElement("div",{className:"".concat(l,"-content")},t&&d.createElement(Ci,Ke({units:U,value:R,optionalValue:I,type:"hour",onChange:se,onHover:_e},Xe)),n&&d.createElement(Ci,Ke({units:ee,value:A,optionalValue:P,type:"minute",onChange:He,onHover:Oe},Xe)),r&&d.createElement(Ci,Ke({units:X,value:V,optionalValue:T,type:"second",onChange:De,onHover:Ie},Xe)),o&&d.createElement(Ci,Ke({units:ae,value:B,optionalValue:L,type:"millisecond",onChange:qe,onHover:ke},Xe)),a&&d.createElement(Ci,Ke({units:ce,value:W,type:"meridiem",onChange:Ue,onHover:Ne},Xe)))}function nw(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},s=i.format,l="".concat(t,"-time-panel"),c=oi(e,"time"),u=te(c,1),f=u[0];return d.createElement(da.Provider,{value:f},d.createElement("div",{className:pe(l)},d.createElement(ai,null,n?On(n,{locale:r,format:s,generateConfig:o}):"\xA0"),d.createElement(wP,a)))}function CP(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=Sm(n,r),u=te(c,1),f=u[0],p=function(g){return a?_l(n,g,a):_l(n,g,i)},v=function(g){s==null||s(g&&p(g))},h=function(g){var m=p(g);o(f(m,m))};return d.createElement("div",{className:l},d.createElement(Ic,Ke({},e,{onSelect:h,onHover:v})),d.createElement(nw,e))}function SP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=oi(e,"decade"),c=te(l,1),u=c[0],f=function(w){var E=Math.floor(r.getYear(w)/100)*100;return r.setYear(w,E)},p=function(w){var E=f(w);return r.addYear(E,99)},v=f(o),h=p(o),g=r.addYear(v,-10),m=function(w,E){return r.addYear(w,E*10)},b=function(w){var E=n.cellYearFormat,S=On(w,{locale:n,format:E,generateConfig:r}),$=On(r.addYear(w,9),{locale:n,format:E,generateConfig:r});return"".concat(S,"-").concat($)},y=function(w){return Q({},"".concat(t,"-cell-in-view"),uf(r,w,v)||uf(r,w,h)||kc(r,v,h,w))},x=a?function(w,E){var S=r.setDate(w,1),$=r.setMonth(S,0),O=r.setYear($,Math.floor(r.getYear($)/10)*10),k=r.addYear(O,10),M=r.addDate(k,-1);return a(O,E)&&a(M,E)}:null,C="".concat(On(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(On(h,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:u},d.createElement("div",{className:s},d.createElement(ai,{superOffset:function(w){return r.addYear(o,w*100)},onChange:i,getStart:f,getEnd:p},C),d.createElement(vs,Ke({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:g,getCellDate:m,getCellText:b,getCellClassName:y}))))}function EP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=oi(e,"month"),u=te(c,1),f=u[0],p=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(x,C){return r.addMonth(x,C)},g=function(x){var C=r.getMonth(x);return n.monthFormat?On(x,{locale:n,format:n.monthFormat,generateConfig:r}):v[C]},m=function(){return Q({},"".concat(t,"-cell-in-view"),!0)},b=a?function(x,C){var w=r.setDate(x,1),E=r.setMonth(w,r.getMonth(w)+1),S=r.addDate(E,-1);return a(w,C)&&a(S,C)}:null,y=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},On(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:f},d.createElement("div",{className:l},d.createElement(ai,{superOffset:function(x){return r.addYear(o,x)},onChange:i,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},y),d.createElement(vs,Ke({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:h,getCellText:g,getCellClassName:m}))))}function $P(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),l=oi(e,"quarter"),c=te(l,1),u=c[0],f=r.setMonth(o,0),p=function(m,b){return r.addMonth(m,b*3)},v=function(m){return On(m,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return Q({},"".concat(t,"-cell-in-view"),!0)},g=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},On(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:u},d.createElement("div",{className:s},d.createElement(ai,{superOffset:function(m){return r.addYear(o,m)},onChange:a,getStart:function(m){return r.setMonth(m,0)},getEnd:function(m){return r.setMonth(m,11)}},g),d.createElement(vs,Ke({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:v,getCellClassName:h}))))}function kP(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(u){var f={};if(i){var p=te(i,2),v=p[0],h=p[1],g=Oi(n,s,v,u),m=Oi(n,s,h,u);f["".concat(l,"-range-start")]=g,f["".concat(l,"-range-end")]=m,f["".concat(l,"-range-hover")]=!g&&!m&&kc(n,v,h,u)}return a&&(f["".concat(l,"-hover")]=a.some(function(b){return Oi(n,s,u,b)})),pe(l,Q({},"".concat(l,"-selected"),!i&&Oi(n,s,o,u)),f)};return d.createElement(Ic,Ke({},e,{mode:"week",panelName:"week",rowClassName:c}))}function OP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=oi(e,"year"),u=te(c,1),f=u[0],p=function(E){var S=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,S)},v=function(E){var S=p(E);return r.addYear(S,9)},h=p(o),g=v(o),m=r.addYear(h,-1),b=function(E,S){return r.addYear(E,S)},y=function(E){return On(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(E){return Q({},"".concat(t,"-cell-in-view"),ra(r,E,h)||ra(r,E,g)||kc(r,h,g,E))},C=a?function(E,S){var $=r.setMonth(E,0),O=r.setDate($,1),k=r.addYear(O,1),M=r.addDate(k,-1);return a(O,S)&&a(M,S)}:null,w=d.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},On(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",On(g,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(da.Provider,{value:f},d.createElement("div",{className:l},d.createElement(ai,{superOffset:function(E){return r.addYear(o,E*10)},onChange:i,getStart:p,getEnd:v},w),d.createElement(vs,Ke({},e,{disabledDate:C,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:b,getCellText:y,getCellClassName:x}))))}var IP={date:Ic,datetime:CP,week:kP,month:EP,quarter:$P,year:OP,decade:SP,time:nw};function MP(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,f=e.value,p=e.onChange,v=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,m=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,C=x===void 0?"date":x,w=e.showTime,E=e.hoverValue,S=e.hoverRangeValue,$=e.cellRender,O=e.dateRender,k=e.monthCellRender,M=e.components,j=M===void 0?{}:M,R=e.hideHeader,I=((n=d.useContext(Vr))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",N=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:N.current}});var F=Bx(e),A=te(F,4),P=A[0],z=A[1],H=A[2],V=A[3],T=Tx(r,z),_=C==="date"&&w?"datetime":C,D=d.useMemo(function(){return zx(_,H,V,P,T)},[_,H,V,P,T]),B=o.getNow(),L=fn(C,{value:b,postState:function(ke){return ke||"date"}}),W=te(L,2),U=W[0],J=W[1],q=U==="date"&&D?"datetime":U,ee=tw(o,r,_),G=fn(u,{value:f}),X=te(G,2),ie=X[0],ae=X[1],ne=d.useMemo(function(){var ke=ua(ie).filter(function(Ne){return Ne});return c?ke:ke.slice(0,1)},[ie,c]),ce=Dt(function(ke){ae(ke),p&&(ke===null||ne.length!==ke.length||ne.some(function(Ne,Xe){return!Vn(o,r,Ne,ke[Xe],_)}))&&(p==null||p(c?ke:ke[0]))}),de=Dt(function(ke){if(v==null||v(ke),U===C){var Ne=c?ee(ne,ke):[ke];ce(Ne)}}),ye=fn(h||ne[0]||B,{value:g}),Ee=te(ye,2),ge=Ee[0],Se=Ee[1];d.useEffect(function(){ne[0]&&!g&&Se(ne[0])},[ne[0]]);var oe=function(ke,Ne){y==null||y(ke||g,Ne||U)},ve=function(ke){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Se(ke),m==null||m(ke),Ne&&oe(ke)},je=function(ke,Ne){J(ke),Ne&&ve(Ne),oe(Ne,ke)},se=function(ke){if(de(ke),ve(ke),U!==C){var Ne=["decade","year"],Xe=[].concat(Ne,["month"]),he={quarter:[].concat(Ne,["quarter"]),week:[].concat(Re(Xe),["week"]),date:[].concat(Re(Xe),["date"])},st=he[C]||Xe,yt=st.indexOf(U),St=st[yt+1];St&&je(St,ke)}},He=d.useMemo(function(){var ke,Ne;if(Array.isArray(S)){var Xe=te(S,2);ke=Xe[0],Ne=Xe[1]}else ke=S;return!ke&&!Ne?null:(ke=ke||Ne,Ne=Ne||ke,o.isAfter(ke,Ne)?[Ne,ke]:[ke,Ne])},[S,o]),De=ym($,O,k),qe=j[q]||IP[q]||Ic,Ue=d.useContext(Oo),_e=d.useMemo(function(){return Z(Z({},Ue),{},{hideHeader:R})},[Ue,R]),Oe="".concat(I,"-panel"),Ie=$c(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Oo.Provider,{value:_e},d.createElement("div",{ref:N,tabIndex:l,className:pe(Oe,Q({},"".concat(Oe,"-rtl"),a==="rtl"))},d.createElement(qe,Ke({},Ie,{showTime:D,prefixCls:I,locale:T,generateConfig:o,onModeChange:je,pickerValue:ge,onPickerValueChange:function(ke){ve(ke,!0)},value:ne[0],onSelect:se,values:ne,cellRender:De,hoverRangeValue:He,hoverValue:E}))))}var Su=d.memo(d.forwardRef(MP));function FP(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Vr),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(y,x){return Ii(f,t,y,x)},[f,t]),v=d.useMemo(function(){return p(r,1)},[r,p]),h=function(y){o(p(y,-1))},g={onCellDblClick:function(){a&&i()}},m=t==="time",b=Z(Z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(Oo.Provider,{value:Z(Z({},g),{},{hideNext:!0})},d.createElement(Su,b)),d.createElement(Oo.Provider,{value:Z(Z({},g),{},{hidePrev:!0})},d.createElement(Su,Ke({},b,{pickerValue:v,onPickerValueChange:h})))):d.createElement(Oo.Provider,{value:Z({},g)},d.createElement(Su,b))}function xv(e){return typeof e=="function"?e():e}function NP(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(a,i){var s=a.label,l=a.value;return d.createElement("li",{key:i,onClick:function(){r(xv(l))},onMouseEnter:function(){o(xv(l))},onMouseLeave:function(){o(null)}},s)}))):null}function rw(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,g=e.direction,m=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,C=e.onOk,w=e.onSubmit,E=d.useContext(Vr),S=E.prefixCls,$="".concat(S,"-panel"),O=g==="rtl",k=d.useRef(null),M=d.useRef(null),j=d.useState(0),R=te(j,2),I=R[0],N=R[1],F=d.useState(0),A=te(F,2),P=A[0],z=A[1],H=d.useState(0),V=te(H,2),T=V[0],_=V[1],D=function(je){je.width&&N(je.width)},B=te(l,3),L=B[0],W=B[1],U=B[2],J=d.useState(0),q=te(J,2),ee=q[0],G=q[1];d.useEffect(function(){G(10)},[L]),d.useEffect(function(){if(a&&M.current){var je,se=((je=k.current)===null||je===void 0?void 0:je.offsetWidth)||0,He=M.current.getBoundingClientRect();if(!He.height||He.right<0){G(function(_e){return Math.max(0,_e-1)});return}var De=(O?W-se:L)-He.left;if(_(De),I&&I<U){var qe=O?He.right-(W-se+I):L+se-He.left-I,Ue=Math.max(0,qe);z(Ue)}else z(0)}},[ee,O,I,L,W,U,a]);function X(je){return je.filter(function(se){return se})}var ie=d.useMemo(function(){return X(ua(m))},[m]),ae=r==="time"&&!ie.length,ne=d.useMemo(function(){return ae?X([x]):ie},[ae,ie,x]),ce=ae?x:ie,de=d.useMemo(function(){return ne.length?ne.some(function(je){return y(je)}):!0},[ne,y]),ye=function(){ae&&b(x),C(),w()},Ee=d.createElement("div",{className:"".concat(S,"-panel-layout")},d.createElement(NP,{prefixCls:S,presets:c,onClick:f,onHover:u}),d.createElement("div",null,d.createElement(FP,Ke({},e,{value:ce})),d.createElement(hP,Ke({},e,{showNow:i?!1:o,invalid:de,onSubmit:ye}))));t&&(Ee=t(Ee));var ge="".concat($,"-container"),Se="marginLeft",oe="marginRight",ve=d.createElement("div",{onMouseDown:h,tabIndex:-1,className:pe(ge,"".concat(S,"-").concat(n,"-panel-container")),style:Q(Q({},O?oe:Se,P),O?Se:oe,"auto"),onFocus:p,onBlur:v},Ee);return a&&(ve=d.createElement("div",{onMouseDown:h,ref:M,className:pe("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:k,className:"".concat(S,"-range-arrow"),style:{left:T}}),d.createElement(eo,{onResize:D},ve))),ve}function ow(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,v=e.onInputChange,h=e.onInvalid,g=e.open,m=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,C=e.name,w=e.autoComplete,E=e.id,S=e.value,$=e.invalid,O=e.placeholder,k=e.disabled,M=e.activeIndex,j=e.allHelp,R=e.picker,I=function(V,T){var _=o.locale.parse(a.locale,V,[T]);return _&&o.isValidate(_)?_:null},N=n[0],F=d.useCallback(function(V){return On(V,{locale:a,format:N,generateConfig:o})},[a,o,N]),A=d.useMemo(function(){return S.map(F)},[S,F]),P=d.useMemo(function(){var V=R==="time"?8:10,T=typeof N=="function"?N(o.getNow()).length:N.length;return Math.max(V,T)+2},[N,R,o]),z=function(V){for(var T=0;T<n.length;T+=1){var _=n[T];if(typeof _=="string"){var D=I(V,_);if(D)return D}}return!1},H=function(V){function T(B){return V!==void 0?B[V]:B}var _=Br(e,{aria:!0,data:!0}),D=Z(Z({},_),{},{format:r,validateFormat:function(B){return!!z(B)},preserveInvalidOnBlur:i,readOnly:s,required:l,"aria-required":c,name:C,autoComplete:w,size:P,id:T(E),value:T(A)||"",invalid:T($),placeholder:T(O),active:M===V,helped:j||x&&M===V,disabled:T(k),onFocus:function(B){f(B,V)},onBlur:function(B){p(B,V)},onSubmit:u,onChange:function(B){v();var L=z(B);if(L){h(!1,V),y(L,V);return}h(!!B,V)},onHelp:function(){m(!0,{index:V})},onKeyDown:function(B){var L=!1;if(b==null||b(B,function(){L=!0}),!B.defaultPrevented&&!L)switch(B.key){case"Escape":m(!1,{index:V});break;case"Enter":g||m(!0);break}}},t==null?void 0:t({valueTexts:A}));return Object.keys(D).forEach(function(B){D[B]===void 0&&delete D[B]}),D};return[H,F]}var jP=["onMouseEnter","onMouseLeave"];function aw(e){return d.useMemo(function(){return $c(e,jP)},[e])}var PP=["icon","type"],AP=["onClear"];function Mc(e){var t=e.icon,n=e.type,r=At(e,PP),o=d.useContext(Vr),a=o.prefixCls;return t?d.createElement("span",Ke({className:"".concat(a,"-").concat(n)},r),t):null}function df(e){var t=e.onClear,n=At(e,AP);return d.createElement(Mc,Ke({},n,{type:"clear",role:"button",onMouseDown:function(r){r.preventDefault()},onClick:function(r){r.stopPropagation(),t()}}))}var Eu=["YYYY","MM","DD","HH","mm","ss","SSS"],wv="\u9867",RP=(function(){function e(t){mn(this,e),Q(this,"format",void 0),Q(this,"maskFormat",void 0),Q(this,"cells",void 0),Q(this,"maskCells",void 0),this.format=t;var n=Eu.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return wv.repeat(s.length)});var o=new RegExp("(".concat(Eu.join("|"),")")),a=(t.split(o)||[]).filter(function(s){return s}),i=0;this.cells=a.map(function(s){var l=Eu.includes(s),c=i,u=i+s.length;return i=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return gn(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!==wv&&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 a=this.maskCells[o],i=a.start,s=a.end;if(t>=i&&t<=s)return o;var l=Math.min(Math.abs(t-i),Math.abs(t-s));l<n&&(n=l,r=o)}return r}}]),e})();function TP(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 DP=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ff=d.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,s=e.validateFormat,l=e.onChange,c=e.helped,u=e.onHelp,f=e.onSubmit,p=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,g=e.invalid,m=e.clearIcon,b=At(e,DP),y=e.value,x=e.onFocus,C=e.onBlur,w=e.onMouseUp,E=d.useContext(Vr),S=E.prefixCls,$=E.input,O=$===void 0?"input":$,k="".concat(S,"-input"),M=d.useState(!1),j=te(M,2),R=j[0],I=j[1],N=d.useState(y),F=te(N,2),A=F[0],P=F[1],z=d.useState(""),H=te(z,2),V=H[0],T=H[1],_=d.useState(null),D=te(_,2),B=D[0],L=D[1],W=d.useState(null),U=te(W,2),J=U[0],q=U[1],ee=A||"";d.useEffect(function(){P(y)},[y]);var G=d.useRef(),X=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:G.current,inputElement:X.current,focus:function(Ie){X.current.focus(Ie)},blur:function(){X.current.blur()}}});var ie=d.useMemo(function(){return new RP(i||"")},[i]),ae=d.useMemo(function(){return c?[0,0]:ie.getSelection(B)},[ie,B,c]),ne=te(ae,2),ce=ne[0],de=ne[1],ye=function(Ie){Ie&&Ie!==i&&Ie!==y&&u()},Ee=Dt(function(Ie){s(Ie)&&l(Ie),P(Ie),ye(Ie)}),ge=function(Ie){if(!i){var ke=Ie.target.value;ye(ke),P(ke),l(ke)}},Se=function(Ie){var ke=Ie.clipboardData.getData("text");s(ke)&&Ee(ke)},oe=d.useRef(!1),ve=function(){oe.current=!0},je=function(Ie){var ke=Ie.target,Ne=ke.selectionStart,Xe=ie.getMaskCellIndex(Ne);L(Xe),q({}),w==null||w(Ie),oe.current=!1},se=function(Ie){I(!0),L(0),T(""),x(Ie)},He=function(Ie){C(Ie)},De=function(Ie){I(!1),He(Ie)};Cm(n,function(){!n&&!h&&P(y)});var qe=function(Ie){Ie.key==="Enter"&&s(ee)&&f(),p==null||p(Ie)},Ue=function(Ie){qe(Ie);var ke=Ie.key,Ne=null,Xe=null,he=de-ce,st=i.slice(ce,de),yt=function(Ve){L(function(Qe){var Ge=Qe+Ve;return Ge=Math.max(Ge,0),Ge=Math.min(Ge,ie.size()-1),Ge})},St=function(Ve){var Qe=TP(st),Ge=te(Qe,3),ot=Ge[0],nt=Ge[1],$t=Ge[2],Ot=ee.slice(ce,de),et=Number(Ot);if(isNaN(et))return String($t||(Ve>0?ot:nt));var lt=et+Ve,bt=nt-ot+1;return String(ot+(bt+lt-ot)%bt)};switch(ke){case"Backspace":case"Delete":Ne="",Xe=st;break;case"ArrowLeft":Ne="",yt(-1);break;case"ArrowRight":Ne="",yt(1);break;case"ArrowUp":Ne="",Xe=St(1);break;case"ArrowDown":Ne="",Xe=St(-1);break;default:isNaN(Number(ke))||(Ne=V+ke,Xe=Ne);break}if(Ne!==null&&(T(Ne),Ne.length>=he&&(yt(1),T(""))),Xe!==null){var Nt=ee.slice(0,ce)+bm(Xe,he)+ee.slice(de);Ee(Nt.slice(0,i.length))}q({})},_e=d.useRef();Ht(function(){if(!(!R||!i||oe.current)){if(!ie.match(ee)){Ee(i);return}return X.current.setSelectionRange(ce,de),_e.current=Pt(function(){X.current.setSelectionRange(ce,de)}),function(){Pt.cancel(_e.current)}}},[ie,i,R,ee,B,ce,de,J,Ee]);var Oe=i?{onFocus:se,onBlur:De,onKeyDown:Ue,onMouseDown:ve,onMouseUp:je,onPaste:Se}:{};return d.createElement("div",{ref:G,className:pe(k,Q(Q({},"".concat(k,"-active"),n&&o),"".concat(k,"-placeholder"),c))},d.createElement(O,Ke({ref:X,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:qe,onBlur:He},Oe,{value:ee,onChange:ge})),d.createElement(Mc,{type:"suffix",icon:a}),m)}),_P=["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"],BP=["index"];function zP(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,l=e.activeIndex,c=e.focused,u=e.placeholder,f=e.className,p=e.style,v=e.onClick,h=e.onClear,g=e.value,m=e.disabled,b=e.invalid,y=e.direction,x=e.onActiveInfo,C=e.onMouseDown,w=e.autoFocus,E=e.tabIndex,S=At(e,_P),$=y==="rtl",O=d.useContext(Vr),k=O.prefixCls,M=d.useMemo(function(){if(typeof n=="string")return[n];var J=n||{};return[J.start,J.end]},[n]),j=d.useRef(),R=d.useRef(),I=d.useRef(),N=function(J){var q;return(q=[R,I][J])===null||q===void 0?void 0:q.current};d.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(J){if(pt(J)==="object"){var q,ee=J||{},G=ee.index,X=G===void 0?0:G,ie=At(ee,BP);(q=N(X))===null||q===void 0||q.focus(ie)}else{var ae;(ae=N(J??0))===null||ae===void 0||ae.focus()}},blur:function(){var J,q;(J=N(0))===null||J===void 0||J.blur(),(q=N(1))===null||q===void 0||q.blur()}}});var F=aw(S),A=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),P=ow(Z(Z({},e),{},{id:M,placeholder:A})),z=te(P,1),H=z[0],V=d.useState({position:"absolute",width:0}),T=te(V,2),_=T[0],D=T[1],B=Dt(function(){var J=N(l);if(J){var q=J.nativeElement.getBoundingClientRect(),ee=j.current.getBoundingClientRect(),G=q.left-ee.left;D(function(X){return Z(Z({},X),{},{width:q.width,left:G})}),x([q.left,q.right,ee.width])}});d.useEffect(function(){B()},[l]);var L=o&&(g[0]&&!m[0]||g[1]&&!m[1]),W=w&&!m[0],U=w&&!W&&!m[1];return d.createElement(eo,{onResize:B},d.createElement("div",Ke({},F,{className:pe(k,"".concat(k,"-range"),Q(Q(Q(Q({},"".concat(k,"-focused"),c),"".concat(k,"-disabled"),m.every(function(J){return J})),"".concat(k,"-invalid"),b.some(function(J){return J})),"".concat(k,"-rtl"),$),f),style:p,ref:j,onClick:v,onMouseDown:function(J){var q=J.target;q!==R.current.inputElement&&q!==I.current.inputElement&&J.preventDefault(),C==null||C(J)}}),r&&d.createElement("div",{className:"".concat(k,"-prefix")},r),d.createElement(ff,Ke({ref:R},H(0),{autoFocus:W,tabIndex:E,"date-range":"start"})),d.createElement("div",{className:"".concat(k,"-range-separator")},s),d.createElement(ff,Ke({ref:I},H(1),{autoFocus:U,tabIndex:E,"date-range":"end"})),d.createElement("div",{className:"".concat(k,"-active-bar"),style:_}),d.createElement(Mc,{type:"suffix",icon:a}),L&&d.createElement(df,{icon:o,onClear:h})))}var HP=d.forwardRef(zP);function Cv(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Hs(e){return e===1?"end":"start"}function LP(e,t){var n=Vx(e,function(){var gt=e.disabled,Ft=e.allowEmpty,rn=Cv(gt,!1),ln=Cv(Ft,!1);return{disabled:rn,allowEmpty:ln}}),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,p=o.classNames,v=o.defaultValue,h=o.value,g=o.needConfirm,m=o.onKeyDown,b=o.disabled,y=o.allowEmpty,x=o.disabledDate,C=o.minDate,w=o.maxDate,E=o.defaultOpen,S=o.open,$=o.onOpenChange,O=o.locale,k=o.generateConfig,M=o.picker,j=o.showNow,R=o.showToday,I=o.showTime,N=o.mode,F=o.onPanelChange,A=o.onCalendarChange,P=o.onOk,z=o.defaultPickerValue,H=o.pickerValue,V=o.onPickerValueChange,T=o.inputReadOnly,_=o.suffixIcon,D=o.onFocus,B=o.onBlur,L=o.presets,W=o.ranges,U=o.components,J=o.cellRender,q=o.dateRender,ee=o.monthCellRender,G=o.onClick,X=qx(t),ie=Wx(S,E,b,$),ae=te(ie,2),ne=ae[0],ce=ae[1],de=function(gt,Ft){(b.some(function(rn){return!rn})||!gt)&&ce(gt,Ft)},ye=Zx(k,O,s,!0,!1,v,h,A,P),Ee=te(ye,5),ge=Ee[0],Se=Ee[1],oe=Ee[2],ve=Ee[3],je=Ee[4],se=oe(),He=Yx(b,y,ne),De=te(He,9),qe=De[0],Ue=De[1],_e=De[2],Oe=De[3],Ie=De[4],ke=De[5],Ne=De[6],Xe=De[7],he=De[8],st=function(gt,Ft){Ue(!0),D==null||D(gt,{range:Hs(Ft??Oe)})},yt=function(gt,Ft){Ue(!1),B==null||B(gt,{range:Hs(Ft??Oe)})},St=d.useMemo(function(){if(!I)return null;var gt=I.disabledTime,Ft=gt?function(rn){var ln=Hs(Oe),$n=jx(se,Ne,Oe);return gt(rn,ln,{from:$n})}:void 0;return Z(Z({},I),{},{disabledTime:Ft})},[I,Oe,se,Ne]),Nt=fn([M,M],{value:N}),Ve=te(Nt,2),Qe=Ve[0],Ge=Ve[1],ot=Qe[Oe]||M,nt=ot==="date"&&St?"datetime":ot,$t=nt===M&&nt!=="time",Ot=ew(M,ot,j,R,!0),et=Jx(o,ge,Se,oe,ve,b,s,qe,ne,c),lt=te(et,2),bt=lt[0],Le=lt[1],Fe=fP(se,b,Ne,k,O,x),xe=Ax(se,c,y),Ae=te(xe,2),K=Ae[0],Y=Ae[1],ue=Xx(k,O,se,Qe,ne,Oe,a,$t,z,H,St==null?void 0:St.defaultOpenValue,V,C,w),be=te(ue,2),Me=be[0],Be=be[1],ut=Dt(function(gt,Ft,rn){var ln=Ai(Qe,Oe,Ft);if((ln[0]!==Qe[0]||ln[1]!==Qe[1])&&Ge(ln),F&&rn!==!1){var $n=Re(se);gt&&($n[Oe]=gt),F($n,ln)}}),tt=function(gt,Ft){return Ai(se,Ft,gt)},at=function(gt,Ft){var rn=se;gt&&(rn=tt(gt,Oe)),Xe(Oe);var ln=ke(rn);ve(rn),bt(Oe,ln===null),ln===null?de(!1,{force:!0}):Ft||X.current.focus({index:ln})},xt=function(gt){var Ft,rn=gt.target.getRootNode();if(!X.current.nativeElement.contains((Ft=rn.activeElement)!==null&&Ft!==void 0?Ft:document.activeElement)){var ln=b.findIndex(function($n){return!$n});ln>=0&&X.current.focus({index:ln})}de(!0),G==null||G(gt)},ze=function(){Le(null),de(!1,{force:!0})},Et=d.useState(null),Ce=te(Et,2),Ye=Ce[0],$e=Ce[1],We=d.useState(null),Pe=te(We,2),ct=Pe[0],dt=Pe[1],It=d.useMemo(function(){return ct||se},[se,ct]);d.useEffect(function(){ne||dt(null)},[ne]);var Mt=d.useState([0,0,0]),Lt=te(Mt,2),zt=Lt[0],on=Lt[1],an=Ux(L,W),_n=function(gt){dt(gt),$e("preset")},Bn=function(gt){var Ft=Le(gt);Ft&&de(!1,{force:!0})},Dn=function(gt){at(gt)},Kn=function(gt){dt(gt?tt(gt,Oe):null),$e("cell")},Qn=function(gt){de(!0),st(gt)},Zn=function(){_e("panel")},fr=function(gt){var Ft=Ai(se,Oe,gt);ve(Ft),!g&&!i&&a===nt&&at(gt)},Ir=function(){de(!1)},mt=ym(J,q,ee,Hs(Oe)),Xt=se[Oe]||null,cn=Dt(function(gt){return c(gt,{activeIndex:Oe})}),Je=d.useMemo(function(){var gt=Br(o,!1),Ft=to(o,[].concat(Re(Object.keys(gt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ft},[o]),Rt=d.createElement(rw,Ke({},Je,{showNow:Ot,showTime:St,range:!0,multiplePanel:$t,activeInfo:zt,disabledDate:Fe,onFocus:Qn,onBlur:yt,onPanelMouseDown:Zn,picker:M,mode:ot,internalMode:nt,onPanelChange:ut,format:l,value:Xt,isInvalid:cn,onChange:null,onSelect:fr,pickerValue:Me,defaultOpenValue:ua(I==null?void 0:I.defaultOpenValue)[Oe],onPickerValueChange:Be,hoverValue:It,onHover:Kn,needConfirm:g,onSubmit:at,onOk:je,presets:an,onPresetHover:_n,onPresetSubmit:Bn,onNow:Dn,cellRender:mt})),sn=function(gt,Ft){var rn=tt(gt,Ft);ve(rn)},hn=function(){_e("input")},er=function(gt,Ft){var rn=Ne.length,ln=Ne[rn-1];if(rn&&ln!==Ft&&g&&!y[ln]&&!he(ln)&&se[ln]){X.current.focus({index:ln});return}_e("input"),de(!0,{inherit:!0}),Oe!==Ft&&ne&&!g&&i&&at(null,!0),Ie(Ft),st(gt,Ft)},tr=function(gt,Ft){if(de(!1),!g&&_e()==="input"){var rn=ke(se);bt(Oe,rn===null)}yt(gt,Ft)},nr=function(gt,Ft){gt.key==="Tab"&&at(null,!0),m==null||m(gt,Ft)},Wr=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:k,button:U.button,input:U.input}},[u,O,k,U.button,U.input]);return Ht(function(){ne&&Oe!==void 0&&ut(null,M,!1)},[ne,Oe,M]),Ht(function(){var gt=_e();!ne&&gt==="input"&&(de(!1),at(null,!0)),!ne&&i&&!g&&gt==="panel"&&(de(!0),at())},[ne]),d.createElement(Vr.Provider,{value:Wr},d.createElement(Fx,Ke({},Px(o),{popupElement:Rt,popupStyle:f.popup,popupClassName:p.popup,visible:ne,onClose:Ir,range:!0}),d.createElement(HP,Ke({},o,{ref:X,suffixIcon:_,activeIndex:qe||ne?Oe:null,activeHelp:!!ct,allHelp:!!ct&&Ye==="preset",focused:qe,onFocus:er,onBlur:tr,onKeyDown:nr,onSubmit:at,value:It,maskFormat:l,onChange:sn,onInputChange:hn,format:s,inputReadOnly:T,disabled:b,open:ne,onOpenChange:de,onClick:xt,onClear:ze,invalid:K,onInvalid:Y,onActiveInfo:on}))))}var VP=d.forwardRef(LP);function WP(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"\xD7":o,i=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function v(m,b){return d.createElement("span",{className:pe("".concat(f,"-item")),title:typeof m=="string"?m:null},d.createElement("span",{className:"".concat(f,"-item-content")},m),!s&&b&&d.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},a))}function h(m){var b=i(m),y=function(x){x&&x.stopPropagation(),r(m)};return v(b,y)}function g(m){var b="+ ".concat(m.length," ...");return v(b)}return d.createElement("div",{className:u},d.createElement(ni,{prefixCls:p,data:n,renderItem:h,renderRest:g,itemKey:function(m){return i(m)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var qP=["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 UP(e,t){var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.focused,s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,v=e.onClear,h=e.internalPicker,g=e.value,m=e.onChange,b=e.onSubmit,y=e.multiple,x=e.maxTagCount,C=e.disabled,w=e.invalid,E=e.direction,S=e.onMouseDown,$=e.autoFocus,O=e.tabIndex,k=e.removeIcon,M=At(e,qP),j=E==="rtl",R=d.useContext(Vr),I=R.prefixCls,N=d.useRef(),F=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(L){var W;(W=F.current)===null||W===void 0||W.focus(L)},blur:function(){var L;(L=F.current)===null||L===void 0||L.blur()}}});var A=aw(M),P=function(L){m([L])},z=function(L){var W=g.filter(function(U){return U&&!Vn(l,s,U,L,h)});m(W),n||b()},H=ow(Z(Z({},e),{},{onChange:P}),function(L){var W=L.valueTexts;return{value:W[0]||"",active:i}}),V=te(H,2),T=V[0],_=V[1],D=!!(o&&g.length&&!C),B=y?d.createElement(d.Fragment,null,d.createElement(WP,{prefixCls:I,value:g,onRemove:z,formatDate:_,maxTagCount:x,disabled:C,removeIcon:k,placeholder:c}),d.createElement("input",{className:"".concat(I,"-multiple-input"),value:g.map(_).join(","),ref:F,readOnly:!0,autoFocus:$,tabIndex:O}),d.createElement(Mc,{type:"suffix",icon:a}),D&&d.createElement(df,{icon:o,onClear:v})):d.createElement(ff,Ke({ref:F},T(),{autoFocus:$,tabIndex:O,suffixIcon:a,clearIcon:D&&d.createElement(df,{icon:o,onClear:v}),showActiveCls:!1}));return d.createElement("div",Ke({},A,{className:pe(I,Q(Q(Q(Q(Q({},"".concat(I,"-multiple"),y),"".concat(I,"-focused"),i),"".concat(I,"-disabled"),C),"".concat(I,"-invalid"),w),"".concat(I,"-rtl"),j),u),style:f,ref:N,onClick:p,onMouseDown:function(L){var W,U=L.target;U!==((W=F.current)===null||W===void 0?void 0:W.inputElement)&&L.preventDefault(),S==null||S(L)}}),r&&d.createElement("div",{className:"".concat(I,"-prefix")},r),B)}var YP=d.forwardRef(UP);function XP(e,t){var n=Vx(e),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,p=u.styles,v=u.classNames,h=u.order,g=u.defaultValue,m=u.value,b=u.needConfirm,y=u.onChange,x=u.onKeyDown,C=u.disabled,w=u.disabledDate,E=u.minDate,S=u.maxDate,$=u.defaultOpen,O=u.open,k=u.onOpenChange,M=u.locale,j=u.generateConfig,R=u.picker,I=u.showNow,N=u.showToday,F=u.showTime,A=u.mode,P=u.onPanelChange,z=u.onCalendarChange,H=u.onOk,V=u.multiple,T=u.defaultPickerValue,_=u.pickerValue,D=u.onPickerValueChange,B=u.inputReadOnly,L=u.suffixIcon,W=u.removeIcon,U=u.onFocus,J=u.onBlur,q=u.presets,ee=u.components,G=u.cellRender,X=u.dateRender,ie=u.monthCellRender,ae=u.onClick,ne=qx(t);function ce(Je){return Je===null?null:V?Je:Je[0]}var de=tw(j,M,a),ye=Wx(O,$,[C],k),Ee=te(ye,2),ge=Ee[0],Se=Ee[1],oe=function(Je,Rt,sn){if(z){var hn=Z({},sn);delete hn.range,z(ce(Je),ce(Rt),hn)}},ve=function(Je){H==null||H(ce(Je))},je=Zx(j,M,s,!1,h,g,m,oe,ve),se=te(je,5),He=se[0],De=se[1],qe=se[2],Ue=se[3],_e=se[4],Oe=qe(),Ie=Yx([C]),ke=te(Ie,4),Ne=ke[0],Xe=ke[1],he=ke[2],st=ke[3],yt=function(Je){Xe(!0),U==null||U(Je,{})},St=function(Je){Xe(!1),J==null||J(Je,{})},Nt=fn(R,{value:A}),Ve=te(Nt,2),Qe=Ve[0],Ge=Ve[1],ot=Qe==="date"&&F?"datetime":Qe,nt=ew(R,Qe,I,N),$t=y&&function(Je,Rt){y(ce(Je),ce(Rt))},Ot=Jx(Z(Z({},o),{},{onChange:$t}),He,De,qe,Ue,[],s,Ne,ge,c),et=te(Ot,2),lt=et[1],bt=Ax(Oe,c),Le=te(bt,2),Fe=Le[0],xe=Le[1],Ae=d.useMemo(function(){return Fe.some(function(Je){return Je})},[Fe]),K=function(Je,Rt){if(D){var sn=Z(Z({},Rt),{},{mode:Rt.mode[0]});delete sn.range,D(Je[0],sn)}},Y=Xx(j,M,Oe,[Qe],ge,st,a,!1,T,_,ua(F==null?void 0:F.defaultOpenValue),K,E,S),ue=te(Y,2),be=ue[0],Me=ue[1],Be=Dt(function(Je,Rt,sn){if(Ge(Rt),P&&sn!==!1){var hn=Je||Oe[Oe.length-1];P(hn,Rt)}}),ut=function(){lt(qe()),Se(!1,{force:!0})},tt=function(Je){!C&&!ne.current.nativeElement.contains(document.activeElement)&&ne.current.focus(),Se(!0),ae==null||ae(Je)},at=function(){lt(null),Se(!1,{force:!0})},xt=d.useState(null),ze=te(xt,2),Et=ze[0],Ce=ze[1],Ye=d.useState(null),$e=te(Ye,2),We=$e[0],Pe=$e[1],ct=d.useMemo(function(){var Je=[We].concat(Re(Oe)).filter(function(Rt){return Rt});return V?Je:Je.slice(0,1)},[Oe,We,V]),dt=d.useMemo(function(){return!V&&We?[We]:Oe.filter(function(Je){return Je})},[Oe,We,V]);d.useEffect(function(){ge||Pe(null)},[ge]);var It=Ux(q),Mt=function(Je){Pe(Je),Ce("preset")},Lt=function(Je){var Rt=V?de(qe(),Je):[Je],sn=lt(Rt);sn&&!V&&Se(!1,{force:!0})},zt=function(Je){Lt(Je)},on=function(Je){Pe(Je),Ce("cell")},an=function(Je){Se(!0),yt(Je)},_n=function(Je){if(he("panel"),!(V&&ot!==R)){var Rt=V?de(qe(),Je):[Je];Ue(Rt),!b&&!i&&a===ot&&ut()}},Bn=function(){Se(!1)},Dn=ym(G,X,ie),Kn=d.useMemo(function(){var Je=Br(o,!1),Rt=to(o,[].concat(Re(Object.keys(Je)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Z(Z({},Rt),{},{multiple:o.multiple})},[o]),Qn=d.createElement(rw,Ke({},Kn,{showNow:nt,showTime:F,disabledDate:w,onFocus:an,onBlur:St,picker:R,mode:Qe,internalMode:ot,onPanelChange:Be,format:l,value:Oe,isInvalid:c,onChange:null,onSelect:_n,pickerValue:be,defaultOpenValue:F==null?void 0:F.defaultOpenValue,onPickerValueChange:Me,hoverValue:ct,onHover:on,needConfirm:b,onSubmit:ut,onOk:_e,presets:It,onPresetHover:Mt,onPresetSubmit:Lt,onNow:zt,cellRender:Dn})),Zn=function(Je){Ue(Je)},fr=function(){he("input")},Ir=function(Je){he("input"),Se(!0,{inherit:!0}),yt(Je)},mt=function(Je){Se(!1),St(Je)},Xt=function(Je,Rt){Je.key==="Tab"&&ut(),x==null||x(Je,Rt)},cn=d.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:j,button:ee.button,input:ee.input}},[f,M,j,ee.button,ee.input]);return Ht(function(){ge&&st!==void 0&&Be(null,R,!1)},[ge,st,R]),Ht(function(){var Je=he();!ge&&Je==="input"&&(Se(!1),ut()),!ge&&i&&!b&&Je==="panel"&&ut()},[ge]),d.createElement(Vr.Provider,{value:cn},d.createElement(Fx,Ke({},Px(o),{popupElement:Qn,popupStyle:p.popup,popupClassName:v.popup,visible:ge,onClose:Bn}),d.createElement(YP,Ke({},o,{ref:ne,suffixIcon:L,removeIcon:W,activeHelp:!!We,allHelp:!!We&&Et==="preset",focused:Ne,onFocus:Ir,onBlur:mt,onKeyDown:Xt,onSubmit:ut,value:dt,maskFormat:l,onChange:Zn,onInputChange:fr,internalPicker:a,format:s,inputReadOnly:B,disabled:C,open:ge,onOpenChange:Se,onClick:tt,onClear:at,invalid:Ae,onInvalid:function(Je){xe(Je,0)}}))))}var GP=d.forwardRef(XP);const iw=d.createContext(null),KP=iw.Provider,sw=d.createContext(null),QP=sw.Provider;var ZP=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],JP=zr(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,v=e.onChange,h=At(e,ZP),g=Ze(null),m=Ze(null),b=fn(c,{value:i}),y=te(b,2),x=y[0],C=y[1];Qa(t,function(){return{focus:function(S){var $;($=g.current)===null||$===void 0||$.focus(S)},blur:function(){var S;(S=g.current)===null||S===void 0||S.blur()},input:g.current,nativeElement:m.current}});var w=pe(r,o,Q(Q({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),E=function(S){s||("checked"in e||C(S.target.checked),v==null||v({target:Z(Z({},e),{},{type:f,checked:S.target.checked}),stopPropagation:function(){S.stopPropagation()},preventDefault:function(){S.preventDefault()},nativeEvent:S.nativeEvent}))};return d.createElement("span",{className:w,title:p,style:a,ref:m},d.createElement("input",Ke({},h,{className:"".concat(r,"-input"),ref:g,onChange:E,disabled:s,checked:!!x,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function eA(e){const t=fe.useRef(null),n=()=>{Pt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Pt(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}const tA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},pn(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"}})}},nA=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:v,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:b,calc:y}=e,x=`${t}-inner`,C=y(o).sub(y(4).mul(2)),w=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},pn(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:`${we(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
319
- &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Up(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:w,height:w,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${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 ${a} ${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:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(C).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},rA=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:f,controlHeightLG:p,controlHeightSM:v,paddingXS:h,borderRadius:g,borderRadiusSM:m,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:S,colorPrimary:$,colorPrimaryHover:O,colorPrimaryActive:k,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:R,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:we(I(n).sub(I(o).mul(2)).equal()),background:u,border:`${we(o)} ${a} ${i}`,borderBlockStartWidth:I(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:I(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${we(o)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:we(I(p).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:I(h).sub(o).equal(),paddingBlock:0,lineHeight:we(I(v).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Up(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:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:M,borderColor:M,"&:hover":{color:x,background:j,borderColor:j},"&:active":{color:x,background:R,borderColor:R}},"&-disabled":{color:C,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},oA=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:v,colorWhite:h}=e,g=4,m=a,b=t?m-g*2:m-(g+o)*2;return{radioSize:m,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},lw=En("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${we(n)} ${t}`,o=Qt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[tA(o),nA(o),rA(o)]},oA,{unitless:{radioSize:!0,dotSize:!0}});var aA=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 iA=(e,t)=>{var n,r;const o=d.useContext(iw),a=d.useContext(sw),{getPrefixCls:i,direction:s,radio:l}=d.useContext(Bt),c=d.useRef(null),u=$r(t,c),{isFormItemInput:f}=d.useContext(Rn),p=F=>{var A,P;(A=e.onChange)===null||A===void 0||A.call(e,F),(P=o==null?void 0:o.onChange)===null||P===void 0||P.call(o,F)},{prefixCls:v,className:h,rootClassName:g,children:m,style:b,title:y}=e,x=aA(e,["prefixCls","className","rootClassName","children","style","title"]),C=i("radio",v),w=((o==null?void 0:o.optionType)||a)==="button",E=w?`${C}-button`:C,S=dr(C),[$,O,k]=lw(C,S),M=Object.assign({},x),j=d.useContext(Yn);o&&(M.name=o.name,M.onChange=p,M.checked=e.value===o.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:o.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:j;const R=pe(`${E}-wrapper`,{[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:M.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,h,g,O,k,S),[I,N]=eA(M.onClick);return $(d.createElement(mc,{component:"Radio",disabled:M.disabled},d.createElement("label",{className:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:I},d.createElement(JP,Object.assign({},M,{className:pe(M.className,{[Zp]:!w}),type:"radio",prefixCls:E,ref:u,onClick:N})),m!==void 0?d.createElement("span",{className:`${E}-label`},m):null)))},Bl=d.forwardRef(iA),sA=["parentNode"],lA="form_item";function Ri(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function cw(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:sA.includes(n)?`${lA}_${n}`:n}function uw(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var cA=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 pf(e){return Ri(e).join("_")}function Sv(e,t){const n=t.getFieldInstance(e),r=iy(n);if(r)return r;const o=cw(Ri(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function dw(e){const[t]=cm(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=pf(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=cA(a,["focus"]),l=Sv(o,r);l&&(QO(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Sv(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=pf(o);return n.current[a]}}),[e,t]);return[r]}const uA=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Bt),{name:o}=d.useContext(Rn),a=im(pf(o)),{prefixCls:i,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:f,children:p,size:v,style:h,id:g,optionType:m,name:b=a,defaultValue:y,value:x,block:C=!1,onChange:w,onMouseEnter:E,onMouseLeave:S,onFocus:$,onBlur:O}=e,[k,M]=fn(y,{value:x}),j=d.useCallback(_=>{const D=k,B=_.target.value;"value"in e||M(B),B!==D&&(w==null||w(_))},[k,M,w]),R=n("radio",i),I=`${R}-group`,N=dr(R),[F,A,P]=lw(R,N);let z=p;c&&c.length>0&&(z=c.map(_=>typeof _=="string"||typeof _=="number"?d.createElement(Bl,{key:_.toString(),prefixCls:R,disabled:f,value:_,checked:k===_},_):d.createElement(Bl,{key:`radio-group-value-options-${_.value}`,prefixCls:R,disabled:_.disabled||f,value:_.value,checked:k===_.value,title:_.title,style:_.style,className:_.className,id:_.id,required:_.required},_.label)));const H=Or(v),V=pe(I,`${I}-${u}`,{[`${I}-${H}`]:H,[`${I}-rtl`]:r==="rtl",[`${I}-block`]:C},s,l,A,P,N),T=d.useMemo(()=>({onChange:j,value:k,disabled:f,name:b,optionType:m,block:C}),[j,k,f,b,m,C]);return F(d.createElement("div",Object.assign({},Br(e,{aria:!0,data:!0}),{className:V,style:h,onMouseEnter:E,onMouseLeave:S,onFocus:$,onBlur:O,id:g,ref:t}),d.createElement(KP,{value:T},z)))}),dA=d.memo(uA);var fA=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 pA=(e,t)=>{const{getPrefixCls:n}=d.useContext(Bt),{prefixCls:r}=e,o=fA(e,["prefixCls"]),a=n("radio",r);return d.createElement(QP,{value:"button"},d.createElement(Bl,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},mA=d.forwardRef(pA),Fc=Bl;Fc.Button=mA;Fc.Group=dA;Fc.__ANT_RADIO=!0;function ii(e){return Qt(e,{inputAffixPadding:e.paddingXXS})}const si=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:x,inputFontSize:C,inputFontSizeLG:w,inputFontSizeSM:E}=e,S=C||n,$=E||S,O=w||s,k=Math.round((t-S*r)/2*10)/10-o,M=Math.round((a-$*r)/2*10)/10-o,j=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(j,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:S,inputFontSizeLG:O,inputFontSizeSM:$}},gA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Em=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({},gA(Qt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),fw=(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}}),Ev=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),$m=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Em(e))}),Ev(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ev(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$v=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$v(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$v(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Em(e))}})}),km=(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)}},mw=(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}}},kv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Om=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Em(e))}),kv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),kv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ov=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ov(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ov(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:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${we(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.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Iv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hw(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`}}),Im=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hw(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${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"}}),Iv(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),Iv(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),Mm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),vw=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${we(t)} ${we(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},bw=e=>({padding:`${we(e.paddingBlockSM)} ${we(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Nc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${we(e.paddingBlock)} ${we(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Mm(e.colorTextPlaceholder)),{"&-lg":Object.assign({},vw(e)),"&-sm":Object.assign({},bw(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yw=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({},vw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bw(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 ${we(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${we(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${we(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:`${we(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${we(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"},_k()),{[`${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},[`
320
- & > ${t}-affix-wrapper,
321
- & > ${t}-number-affix-wrapper,
322
- & > ${n}-picker-range
323
- `]:{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,
324
- & > ${n}-select-auto-complete ${t},
325
- & > ${n}-cascader-picker ${t},
326
- & > ${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,
327
- & > ${n}-select:first-child > ${n}-select-selector,
328
- & > ${n}-select-auto-complete:first-child ${t},
329
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
330
- & > ${n}-select:last-child > ${n}-select-selector,
331
- & > ${n}-cascader-picker:last-child ${t},
332
- & > ${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}}}})}},hA=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=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({},pn(e)),Nc(e)),$m(e)),Om(e)),km(e)),Im(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},vA=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${we(e.inputAffixPadding)}`}}}},bA=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Nc(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),vA(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},yA=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},pn(e)),yw(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}}},pw(e)),gw(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}}})})}},xA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset: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,
333
- > ${t},
334
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},wA=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xw=En(["Input","Shared"],e=>{const t=Qt(e,ii(e));return[hA(t),bA(t)]},si,{resetFont:!1}),ww=En(["Input","Component"],e=>{const t=Qt(e,ii(e));return[yA(t),xA(t),wA(t),ms(t)]},si,{resetFont:!1}),$u=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=dx(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:we(a.itemLineHeight)}}}]},CA=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Qt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Qt(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[$u(o,"small"),$u(e),$u(a,"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"}}},fx(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},SA=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,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:we(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
335
- &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${we(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
336
- &-in-view${t}-range-start,
337
- &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
338
- &-in-view${t}-range-start,
339
- &-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:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},EA=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:v,colorPrimary:h,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:x,motionDurationMid:C,colorIconHover:w,fontWeightStrong:E,cellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:O,colorText:k,fontSize:M,motionDurationSlow:j,withoutTimeCellHeight:R,pickerQuarterPanelContentHeight:I,borderRadiusSM:N,colorTextLightSolid:F,cellHoverBg:A,timeColumnHeight:P,timeColumnWidth:z,timeCellHeight:H,controlItemBgActive:V,marginXXS:T,pickerDatePanelPaddingHorizontal:_,pickerControlIconMargin:D}=e,B=e.calc(i).mul(7).add(e.calc(_).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,
340
- ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
341
- ${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:B},"&-header":{display:"flex",padding:`0 ${we(l)}`,color:g,borderBottom:`${we(f)} ${p} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:we(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:we(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:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,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:a,height:a,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:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc($).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${we($)} 0`,color:O,cursor:"pointer","&-in-view":{color:k}},SA(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(R).mul(4).equal()},[r]:{padding:`0 ${we(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${we(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${we(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${we(l)} ${we(_)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:A},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Ut(F).setA(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${we(l)} ${we(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${we(f)} ${p} ${m}`},[`${t}-date-panel,
342
- ${t}-time-panel`]:{transition:`opacity ${j}`},"&-active":{[`${t}-date-panel,
343
- ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:P},"&-column":{flex:"1 0 auto",width:z,margin:`${we(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,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% - ${we(H)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${we(f)} ${p} ${m}`},"&-active":{background:new Ut(V).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:H,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(H).div(2).equal(),color:k,lineHeight:we(H),borderRadius:N,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:A}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},$A=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${we(r)} ${c} ${u}`,"&-extra":{padding:`0 ${we(o)}`,lineHeight:we(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${we(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:we(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:we(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},kA=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()}},OA=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,s=a*2,l=i*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(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Ut(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ut(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"}},IA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},si(e)),OA(e)),wx(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),MA=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},$m(e)),Im(e)),Om(e)),km(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${we(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${we(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${we(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${we(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},ku=(e,t)=>({padding:`${we(e)} ${we(t)}`}),FA=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}}}}},NA=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,colorTextQuaternary:p,fontSizeLG:v,inputFontSizeLG:h,fontSizeSM:g,inputFontSizeSM:m,controlHeightSM:b,paddingInlineSM:y,paddingXS:x,marginXS:C,colorIcon:w,lineWidthBold:E,colorPrimary:S,motionDurationSlow:$,zIndexPopup:O,paddingXXS:k,sizePopupArrow:M,colorBgElevated:j,borderRadiusLG:R,boxShadowSecondary:I,borderRadiusSM:N,colorSplit:F,cellHoverBg:A,presetsWidth:P,presetsMaxWidth:z,boxShadowPopoverArrow:H,fontHeight:V,lineHeightLG:T}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},pn(e)),ku(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-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:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},Mm(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({},ku(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??v,lineHeight:T}}),"&-small":Object.assign(Object.assign({},ku(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:m??g}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:p,fontSize:v,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:E,background:S,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${we(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:y}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},pn(e)),EA(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
344
- &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
345
- &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
346
- &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
347
- &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
348
- &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:nm},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
349
- &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
350
- &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
351
- &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:em},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
352
- &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:rm},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
353
- &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:tm},[`${n}-panel > ${n}-time-panel`]:{paddingTop:k},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-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 ${$} ease-out`},Cx(e,j,H)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:j,borderRadius:R,boxShadow:I,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${we(a)} ${i} ${F}`,li:Object.assign(Object.assign({},Nl),{borderRadius:N,paddingInline:x,paddingBlock:e.calc(b).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:C},"&:hover":{background:A}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${we(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Tl(e,"slide-up"),Tl(e,"slide-down"),Rl(e,"move-up"),Rl(e,"move-down")]},Cw=En("DatePicker",e=>{const t=Qt(ii(e),kA(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[$A(t),NA(t),MA(t),FA(t),CA(t),ms(e,{focusElCls:`${e.componentCls}-focused`})]},IA),Sw=Hr({});var jA=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 Mv(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const PA=["xs","sm","md","lg","xl","xxl"],zl=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Bt),{gutter:o,wrap:a}=d.useContext(Sw),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:f,className:p,children:v,flex:h,style:g}=e,m=jA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[y,x,C]=yN(b),w={};let E={};PA.forEach(O=>{let k={};const M=e[O];typeof M=="number"?k.span=M:typeof M=="object"&&(k=M||{}),delete m[O],E=Object.assign(Object.assign({},E),{[`${b}-${O}-${k.span}`]:k.span!==void 0,[`${b}-${O}-order-${k.order}`]:k.order||k.order===0,[`${b}-${O}-offset-${k.offset}`]:k.offset||k.offset===0,[`${b}-${O}-push-${k.push}`]:k.push||k.push===0,[`${b}-${O}-pull-${k.pull}`]:k.pull||k.pull===0,[`${b}-rtl`]:r==="rtl"}),k.flex&&(E[`${b}-${O}-flex`]=!0,w[`--${b}-${O}-flex`]=Mv(k.flex))});const S=pe(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},p,E,x,C),$={};if(o&&o[0]>0){const O=o[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=Mv(h),a===!1&&!$.minWidth&&($.minWidth=0)),y(d.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},$),g),w),className:S,ref:t}),v))});function AA(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((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Qi.length;s++){const l=Qi[s];if(o[l]&&a[l]!==void 0){n[i]=a[l];break}}else n[i]=a}),n}var RA=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 Fv(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Qi.length;a++){const i=Qi[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Ew=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=RA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(Bt),v=Lj(!0,null),h=Fv(o,v),g=Fv(r,v),m=f("row",n),[b,y,x]=vN(m),C=AA(l,v),w=pe(m,{[`${m}-no-wrap`]:c===!1,[`${m}-${g}`]:g,[`${m}-${h}`]:h,[`${m}-rtl`]:p==="rtl"},a,y,x),E={},S=C[0]!=null&&C[0]>0?C[0]/-2:void 0;S&&(E.marginLeft=S,E.marginRight=S);const[$,O]=C;E.rowGap=O;const k=d.useMemo(()=>({gutter:[$,O],wrap:c}),[$,O,c]);return b(d.createElement(Sw.Provider,{value:k},d.createElement("div",Object.assign({},u,{className:w,style:Object.assign(Object.assign({},E),i),ref:t}),s)))});var TA={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"},DA=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:TA}))},_A=d.forwardRef(DA);function mf(){return typeof BigInt=="function"}function $w(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ko(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("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function Fm(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Wo(e){var t=String(e);if(Fm(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(".")&&Nm(t)?t.length-t.indexOf(".")-1:0}function jc(e){var t=String(e);if(Fm(e)){if(e>Number.MAX_SAFE_INTEGER)return String(mf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(mf()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Wo(t))}return Ko(t).fullStr}function Nm(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 BA=(function(){function e(t){if(mn(this,e),Q(this,"origin",""),Q(this,"negative",void 0),Q(this,"integer",void 0),Q(this,"decimal",void 0),Q(this,"decimalLen",void 0),Q(this,"empty",void 0),Q(this,"nan",void 0),$w(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Fm(n)&&(n=Number(n)),n=typeof n=="string"?n:jc(n),Nm(n)){var r=Ko(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return gn(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),a=this.alignDecimal(o),i=t.alignDecimal(o),s=n(a,i).toString(),l=r(o),c=Ko(s),u=c.negativeStr,f=c.trimStr,p="".concat(u).concat(f.padStart(l+1,"0"));return new e("".concat(p.slice(0,-l),".").concat(p.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()?"":Ko("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),zA=(function(){function e(t){if(mn(this,e),Q(this,"origin",""),Q(this,"number",void 0),Q(this,"empty",void 0),$w(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return gn(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(Wo(this.number),Wo(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(Wo(this.number),Wo(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()?"":jc(this.number):this.origin}}]),e})();function Mr(e){return mf()?new BA(e):new zA(e)}function ul(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ko(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Mr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return ul(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 HA(e){return!!(e.addonBefore||e.addonAfter)}function LA(e){return!!(e.prefix||e.suffix||e.allowClear)}function Nv(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 Hl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Nv(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Nv(t,e,r),n(o);return}n(o)}}function jm(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 Pm=fe.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,v=e.style,h=e.disabled,g=e.readOnly,m=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,C=e.handleReset,w=e.hidden,E=e.classes,S=e.classNames,$=e.dataAttrs,O=e.styles,k=e.components,M=e.onClear,j=i??a,R=(k==null?void 0:k.affixWrapper)||"span",I=(k==null?void 0:k.groupWrapper)||"span",N=(k==null?void 0:k.wrapper)||"span",F=(k==null?void 0:k.groupAddon)||"span",A=Ze(null),P=function(ie){var ae;(ae=A.current)!==null&&ae!==void 0&&ae.contains(ie.target)&&(b==null||b())},z=LA(e),H=Pb(j,{value:x,className:pe((n=j.props)===null||n===void 0?void 0:n.className,!z&&(S==null?void 0:S.variant))||null}),V=Ze(null);if(fe.useImperativeHandle(t,function(){return{nativeElement:V.current||A.current}}),z){var T=null;if(y){var _=!h&&!g&&x,D="".concat(s,"-clear-icon"),B=pt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";T=fe.createElement("button",{type:"button",tabIndex:-1,onClick:function(ie){C==null||C(ie),M==null||M()},onMouseDown:function(ie){return ie.preventDefault()},className:pe(D,Q(Q({},"".concat(D,"-hidden"),!_),"".concat(D,"-has-suffix"),!!c))},B)}var L="".concat(s,"-affix-wrapper"),W=pe(L,Q(Q(Q(Q(Q({},"".concat(s,"-disabled"),h),"".concat(L,"-disabled"),h),"".concat(L,"-focused"),m),"".concat(L,"-readonly"),g),"".concat(L,"-input-with-clear-btn"),c&&y&&x),E==null?void 0:E.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),U=(c||y)&&fe.createElement("span",{className:pe("".concat(s,"-suffix"),S==null?void 0:S.suffix),style:O==null?void 0:O.suffix},T,c);H=fe.createElement(R,Ke({className:W,style:O==null?void 0:O.affixWrapper,onClick:P},$==null?void 0:$.affixWrapper,{ref:A}),l&&fe.createElement("span",{className:pe("".concat(s,"-prefix"),S==null?void 0:S.prefix),style:O==null?void 0:O.prefix},l),H,U)}if(HA(e)){var J="".concat(s,"-group"),q="".concat(J,"-addon"),ee="".concat(J,"-wrapper"),G=pe("".concat(s,"-wrapper"),J,E==null?void 0:E.wrapper,S==null?void 0:S.wrapper),X=pe(ee,Q({},"".concat(ee,"-disabled"),h),E==null?void 0:E.group,S==null?void 0:S.groupWrapper);H=fe.createElement(I,{className:X,ref:V},fe.createElement(N,{className:G},u&&fe.createElement(F,{className:q},u),H,f&&fe.createElement(F,{className:q},f)))}return fe.cloneElement(H,{className:pe((r=H.props)===null||r===void 0?void 0:r.className,p)||null,style:Z(Z({},(o=H.props)===null||o===void 0?void 0:o.style),v),hidden:w})}),VA=["show"];function kw(e,t){return d.useMemo(function(){var n={};t&&(n.show=pt(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,o=r.show,a=At(r,VA);return Z(Z({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var WA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],qA=zr(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,v=e.className,h=e.maxLength,g=e.suffix,m=e.showCount,b=e.count,y=e.type,x=y===void 0?"text":y,C=e.classes,w=e.classNames,E=e.styles,S=e.onCompositionStart,$=e.onCompositionEnd,O=At(e,WA),k=ht(!1),M=te(k,2),j=M[0],R=M[1],I=Ze(!1),N=Ze(!1),F=Ze(null),A=Ze(null),P=function(oe){F.current&&jm(F.current,oe)},z=fn(e.defaultValue,{value:e.value}),H=te(z,2),V=H[0],T=H[1],_=V==null?"":String(V),D=ht(null),B=te(D,2),L=B[0],W=B[1],U=kw(b,m),J=U.max||h,q=U.strategy(_),ee=!!J&&q>J;Qa(t,function(){var oe;return{focus:P,blur:function(){var ve;(ve=F.current)===null||ve===void 0||ve.blur()},setSelectionRange:function(ve,je,se){var He;(He=F.current)===null||He===void 0||He.setSelectionRange(ve,je,se)},select:function(){var ve;(ve=F.current)===null||ve===void 0||ve.select()},input:F.current,nativeElement:((oe=A.current)===null||oe===void 0?void 0:oe.nativeElement)||F.current}}),vt(function(){N.current&&(N.current=!1),R(function(oe){return oe&&f?!1:oe})},[f]);var G=function(oe,ve,je){var se=ve;if(!I.current&&U.exceedFormatter&&U.max&&U.strategy(ve)>U.max){if(se=U.exceedFormatter(ve,{max:U.max}),ve!==se){var He,De;W([((He=F.current)===null||He===void 0?void 0:He.selectionStart)||0,((De=F.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(je.source==="compositionEnd")return;T(se),F.current&&Hl(F.current,oe,r,se)};vt(function(){if(L){var oe;(oe=F.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,Re(L))}},[L]);var X=function(oe){G(oe,oe.target.value,{source:"change"})},ie=function(oe){I.current=!1,G(oe,oe.currentTarget.value,{source:"compositionEnd"}),$==null||$(oe)},ae=function(oe){i&&oe.key==="Enter"&&!N.current&&(N.current=!0,i(oe)),s==null||s(oe)},ne=function(oe){oe.key==="Enter"&&(N.current=!1),l==null||l(oe)},ce=function(oe){R(!0),o==null||o(oe)},de=function(oe){N.current&&(N.current=!1),R(!1),a==null||a(oe)},ye=function(oe){T(""),P(),F.current&&Hl(F.current,oe,r)},Ee=ee&&"".concat(u,"-out-of-range"),ge=function(){var oe=to(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return fe.createElement("input",Ke({autoComplete:n},oe,{onChange:X,onFocus:ce,onBlur:de,onKeyDown:ae,onKeyUp:ne,className:pe(u,Q({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:F,size:p,type:x,onCompositionStart:function(ve){I.current=!0,S==null||S(ve)},onCompositionEnd:ie}))},Se=function(){var oe=Number(J)>0;if(g||U.show){var ve=U.showFormatter?U.showFormatter({value:_,count:q,maxLength:J}):"".concat(q).concat(oe?" / ".concat(J):"");return fe.createElement(fe.Fragment,null,U.show&&fe.createElement("span",{className:pe("".concat(u,"-show-count-suffix"),Q({},"".concat(u,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:Z({},E==null?void 0:E.count)},ve),g)}return null};return fe.createElement(Pm,Ke({},O,{prefixCls:u,className:pe(v,Ee),handleReset:ye,value:_,focused:j,triggerFocus:P,suffix:Se(),disabled:f,classes:C,classNames:w,styles:E,ref:A}),ge())});function UA(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 YA(e,t){var n=Ze(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(v){An(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var XA=function(){var e=ht(!1),t=te(e,2),n=t[0],r=t[1];return Ht(function(){r(fm())},[]),n},GA=200,KA=600;function QA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=i;var u=function(){clearTimeout(s.current)},f=function(y,x){y.preventDefault(),u(),c.current(x);function C(){c.current(x),s.current=setTimeout(C,GA)}s.current=setTimeout(C,KA)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Pt.cancel(y)})}},[]);var p=XA();if(p)return null;var v="".concat(t,"-handler"),h=pe(v,"".concat(v,"-up"),Q({},"".concat(v,"-up-disabled"),o)),g=pe(v,"".concat(v,"-down"),Q({},"".concat(v,"-down-disabled"),a)),m=function(){return l.current.push(Pt(u))},b={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return d.createElement("div",{className:"".concat(v,"-wrap")},d.createElement("span",Ke({},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",Ke({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function jv(e){var t=typeof e=="number"?jc(e):Ko(e).fullStr,n=t.includes(".");return n?Ko(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ZA=(function(){var e=Ze(0),t=function(){Pt.cancel(e.current)};return vt(function(){return t},[]),function(n){t(),e.current=Pt(function(){n()})}});var JA=["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"],eR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Pv=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Av=function(e){var t=Mr(e);return t.isInvalidate()?null:t},tR=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,v=e.upHandler,h=e.downHandler,g=e.keyboard,m=e.changeOnWheel,b=m===void 0?!1:m,y=e.controls,x=y===void 0?!0:y,C=e.stringMode,w=e.parser,E=e.formatter,S=e.precision,$=e.decimalSeparator,O=e.onChange,k=e.onInput,M=e.onPressEnter,j=e.onStep,R=e.changeOnBlur,I=R===void 0?!0:R,N=e.domRef,F=At(e,JA),A="".concat(n,"-input"),P=d.useRef(null),z=d.useState(!1),H=te(z,2),V=H[0],T=H[1],_=d.useRef(!1),D=d.useRef(!1),B=d.useRef(!1),L=d.useState(function(){return Mr(u??c)}),W=te(L,2),U=W[0],J=W[1];function q(Ve){u===void 0&&J(Ve)}var ee=d.useCallback(function(Ve,Qe){if(!Qe)return S>=0?S:Math.max(Wo(Ve),Wo(l))},[S,l]),G=d.useCallback(function(Ve){var Qe=String(Ve);if(w)return w(Qe);var Ge=Qe;return $&&(Ge=Ge.replace($,".")),Ge.replace(/[^\w.-]+/g,"")},[w,$]),X=d.useRef(""),ie=d.useCallback(function(Ve,Qe){if(E)return E(Ve,{userTyping:Qe,input:String(X.current)});var Ge=typeof Ve=="number"?jc(Ve):Ve;if(!Qe){var ot=ee(Ge,Qe);if(Nm(Ge)&&($||ot>=0)){var nt=$||".";Ge=ul(Ge,nt,ot)}}return Ge},[E,ee,$]),ae=d.useState(function(){var Ve=c??u;return U.isInvalidate()&&["string","number"].includes(pt(Ve))?Number.isNaN(Ve)?"":Ve:ie(U.toString(),!1)}),ne=te(ae,2),ce=ne[0],de=ne[1];X.current=ce;function ye(Ve,Qe){de(ie(Ve.isInvalidate()?Ve.toString(!1):Ve.toString(!Qe),Qe))}var Ee=d.useMemo(function(){return Av(i)},[i,S]),ge=d.useMemo(function(){return Av(a)},[a,S]),Se=d.useMemo(function(){return!Ee||!U||U.isInvalidate()?!1:Ee.lessEquals(U)},[Ee,U]),oe=d.useMemo(function(){return!ge||!U||U.isInvalidate()?!1:U.lessEquals(ge)},[ge,U]),ve=YA(P.current,V),je=te(ve,2),se=je[0],He=je[1],De=function(Ve){return Ee&&!Ve.lessEquals(Ee)?Ee:ge&&!ge.lessEquals(Ve)?ge:null},qe=function(Ve){return!De(Ve)},Ue=function(Ve,Qe){var Ge=Ve,ot=qe(Ge)||Ge.isEmpty();if(!Ge.isEmpty()&&!Qe&&(Ge=De(Ge)||Ge,ot=!0),!p&&!f&&ot){var nt=Ge.toString(),$t=ee(nt,Qe);return $t>=0&&(Ge=Mr(ul(nt,".",$t)),qe(Ge)||(Ge=Mr(ul(nt,".",$t,!0)))),Ge.equals(U)||(q(Ge),O==null||O(Ge.isEmpty()?null:Pv(C,Ge)),u===void 0&&ye(Ge,Qe)),Ge}return U},_e=ZA(),Oe=function Ve(Qe){if(se(),X.current=Qe,de(Qe),!D.current){var Ge=G(Qe),ot=Mr(Ge);ot.isNaN()||Ue(ot,!0)}k==null||k(Qe),_e(function(){var nt=Qe;w||(nt=Qe.replace(/。/g,".")),nt!==Qe&&Ve(nt)})},Ie=function(){D.current=!0},ke=function(){D.current=!1,Oe(P.current.value)},Ne=function(Ve){Oe(Ve.target.value)},Xe=function(Ve){var Qe;if(!(Ve&&Se||!Ve&&oe)){_.current=!1;var Ge=Mr(B.current?jv(l):l);Ve||(Ge=Ge.negate());var ot=(U||Mr(0)).add(Ge.toString()),nt=Ue(ot,!1);j==null||j(Pv(C,nt),{offset:B.current?jv(l):l,type:Ve?"up":"down"}),(Qe=P.current)===null||Qe===void 0||Qe.focus()}},he=function(Ve){var Qe=Mr(G(ce)),Ge;Qe.isNaN()?Ge=Ue(U,Ve):Ge=Ue(Qe,Ve),u!==void 0?ye(U,!1):Ge.isNaN()||ye(Ge,!1)},st=function(){_.current=!0},yt=function(Ve){var Qe=Ve.key,Ge=Ve.shiftKey;_.current=!0,B.current=Ge,Qe==="Enter"&&(D.current||(_.current=!1),he(!1),M==null||M(Ve)),g!==!1&&!D.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qe)&&(Xe(Qe==="Up"||Qe==="ArrowUp"),Ve.preventDefault())},St=function(){_.current=!1,B.current=!1};d.useEffect(function(){if(b&&V){var Ve=function(Ge){Xe(Ge.deltaY<0),Ge.preventDefault()},Qe=P.current;if(Qe)return Qe.addEventListener("wheel",Ve,{passive:!1}),function(){return Qe.removeEventListener("wheel",Ve)}}});var Nt=function(){I&&he(!1),T(!1),_.current=!1};return Ra(function(){U.isInvalidate()||ye(U,!1)},[S,E]),Ra(function(){var Ve=Mr(u);J(Ve);var Qe=Mr(G(ce));(!Ve.equals(Qe)||!_.current||E)&&ye(Ve,_.current)},[u]),Ra(function(){E&&He()},[ce]),d.createElement("div",{ref:N,className:pe(n,r,Q(Q(Q(Q(Q({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!qe(U))),style:o,onFocus:function(){T(!0)},onBlur:Nt,onKeyDown:yt,onKeyUp:St,onCompositionStart:Ie,onCompositionEnd:ke,onBeforeInput:st},x&&d.createElement(QA,{prefixCls:n,upNode:v,downNode:h,upDisabled:Se,downDisabled:oe,onStep:Xe}),d.createElement("div",{className:"".concat(A,"-wrap")},d.createElement("input",Ke({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:l},F,{ref:$r(P,t),className:A,value:ce,onChange:Ne,disabled:f,readOnly:p}))))}),nR=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,v=At(e,eR),h=d.useRef(null),g=d.useRef(null),m=d.useRef(null),b=function(y){m.current&&jm(m.current,y)};return d.useImperativeHandle(t,function(){return UA(m.current,{focus:b,nativeElement:h.current.nativeElement||g.current})}),d.createElement(Pm,{className:f,triggerFocus:b,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},d.createElement(tR,Ke({prefixCls:a,disabled:n,ref:m,domRef:g,className:p==null?void 0:p.input},v)))});const rR=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({},si(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ut(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Rv=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},oR=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:v,colorIcon:h,motionDurationMid:g,handleHoverColor:m,handleOpacity:b,paddingInline:y,paddingBlock:x,handleBg:C,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:$,controlWidth:O,handleBorderColor:k,filledHandleBg:M,lineHeightLG:j,calc:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),Nc(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),$m(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${we(n)} ${r} ${k}`}}})),Om(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${we(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),Im(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${we(n)} ${r} ${k}`}}})),km(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:j,borderRadius:$,[`input${t}-input`]:{height:R(s).sub(R(n).mul(2)).equal(),padding:`${we(p)} ${we(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:R(l).sub(R(n).mul(2)).equal(),padding:`${we(f)} ${we(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},pn(e)),yw(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:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}},pw(e)),gw(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({},pn(e)),{width:"100%",padding:`${we(x)} ${we(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Mm(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 ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
354
- ${t}-handler-up-inner,
355
- ${t}-handler-down-inner
356
- `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${we(n)} ${r} ${k}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
357
- ${t}-handler-up-inner,
358
- ${t}-handler-down-inner
359
- `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ds()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Rv(e,"lg")),Rv(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
360
- ${t}-handler-up-disabled,
361
- ${t}-handler-down-disabled
362
- `]:{cursor:"not-allowed"},[`
363
- ${t}-handler-up-disabled:hover &-handler-up-inner,
364
- ${t}-handler-down-disabled:hover &-handler-down-inner
365
- `]:{color:E}})}]},aR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${we(n)} 0`}},Nc(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:l,[`input${t}-input`]:{padding:`${we(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${we(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 ${p}`}},[`&: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()}}),[`${t}-underlined`]:{borderRadius:0}}},iR=En("InputNumber",e=>{const t=Qt(e,ii(e));return[oR(t),aR(t),ms(t)]},rR,{unitless:{handleOpacity:!0},resetFont:!1});var sR=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=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Bt),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:v,bordered:h,readOnly:g,status:m,controls:b,variant:y}=e,x=sR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),w=dr(C),[E,S,$]=iR(C,w),{compactSize:O,compactItemClassnames:k}=Ro(C,r);let M=d.createElement(_A,{className:`${C}-handler-up-inner`}),j=d.createElement(hx,{className:`${C}-handler-down-inner`});const R=typeof b=="boolean"?b:void 0;typeof b=="object"&&(M=typeof b.upIcon>"u"?M:d.createElement("span",{className:`${C}-handler-up-inner`},b.upIcon),j=typeof b.downIcon>"u"?j:d.createElement("span",{className:`${C}-handler-down-inner`},b.downIcon));const{hasFeedback:I,status:N,isFormItemInput:F,feedbackIcon:A}=d.useContext(Rn),P=la(N,m),z=Or(U=>{var J;return(J=s??O)!==null&&J!==void 0?J:U}),H=d.useContext(Yn),V=l??H,[T,_]=ri("inputNumber",y,h),D=I&&d.createElement(d.Fragment,null,A),B=pe({[`${C}-lg`]:z==="large",[`${C}-sm`]:z==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:F},S),L=`${C}-group`,W=d.createElement(nR,Object.assign({ref:o,disabled:V,className:pe($,w,a,i,k),upHandler:M,downHandler:j,prefixCls:C,readOnly:g,controls:R,prefix:p,suffix:D||v,addonBefore:u&&d.createElement(Fo,{form:!0,space:!0},u),addonAfter:f&&d.createElement(Fo,{form:!0,space:!0},f),classNames:{input:B,variant:pe({[`${C}-${T}`]:_},No(C,P,I)),affixWrapper:pe({[`${C}-affix-wrapper-sm`]:z==="small",[`${C}-affix-wrapper-lg`]:z==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:b===!1||V||g},S),wrapper:pe({[`${L}-rtl`]:r==="rtl"},S),groupWrapper:pe({[`${C}-group-wrapper-sm`]:z==="small",[`${C}-group-wrapper-lg`]:z==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${T}`]:_},No(`${C}-group-wrapper`,P,I),S)}},x));return E(W)}),gf=Ow,lR=e=>d.createElement(Ao,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Ow,Object.assign({},e)));gf._InternalPanelDoNotUseOrYouWillBeFired=lR;const Iw=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:fe.createElement(uc,null)}),t};function Mw(e,t){const n=Ze([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value")&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return vt(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function cR(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var uR=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 Pc=zr((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:p,className:v,style:h,styles:g,rootClassName:m,onChange:b,classNames:y,variant:x}=e,C=uR(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:E,allowClear:S,autoComplete:$,className:O,style:k,classNames:M,styles:j}=lo("input"),R=w("input",n),I=Ze(null),N=dr(R),[F,A,P]=xw(R,m),[z]=ww(R,N),{compactSize:H,compactItemClassnames:V}=Ro(R,E),T=Or(de=>{var ye;return(ye=a??H)!==null&&ye!==void 0?ye:de}),_=fe.useContext(Yn),D=i??_,{status:B,hasFeedback:L,feedbackIcon:W}=Kt(Rn),U=la(B,o),J=cR(e)||!!L;Ze(J);const q=Mw(I,!0),ee=de=>{q(),s==null||s(de)},G=de=>{q(),l==null||l(de)},X=de=>{q(),b==null||b(de)},ie=(L||c)&&fe.createElement(fe.Fragment,null,c,L&&W),ae=Iw(u??S),[ne,ce]=ri("input",x,r);return F(z(fe.createElement(qA,Object.assign({ref:$r(t,I),prefixCls:R,autoComplete:$},C,{disabled:D,onBlur:ee,onFocus:G,style:Object.assign(Object.assign({},k),h),styles:Object.assign(Object.assign({},j),g),suffix:ie,allowClear:ae,className:pe(v,m,P,N,V,O),onChange:X,addonBefore:p&&fe.createElement(Fo,{form:!0,space:!0},p),addonAfter:f&&fe.createElement(Fo,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),M),{input:pe({[`${R}-sm`]:T==="small",[`${R}-lg`]:T==="large",[`${R}-rtl`]:E==="rtl"},y==null?void 0:y.input,M.input,A),variant:pe({[`${R}-${ne}`]:ce},No(R,U)),affixWrapper:pe({[`${R}-affix-wrapper-sm`]:T==="small",[`${R}-affix-wrapper-lg`]:T==="large",[`${R}-affix-wrapper-rtl`]:E==="rtl"},A),wrapper:pe({[`${R}-group-rtl`]:E==="rtl"},A),groupWrapper:pe({[`${R}-group-wrapper-sm`]:T==="small",[`${R}-group-wrapper-lg`]:T==="large",[`${R}-group-wrapper-rtl`]:E==="rtl",[`${R}-group-wrapper-${ne}`]:ce},No(`${R}-group-wrapper`,U,L),A)})}))))});function hf(e,t,n){return(e-t)/(n-t)}function Am(e,t,n,r){var o=hf(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function zo(e,t){return Array.isArray(e)?e[t]:e}var fa=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),dR=d.createContext({}),fR=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Tv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,a=e.onStartMove,i=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,v=e.onFocus,h=e.onMouseEnter,g=At(e,fR),m=d.useContext(fa),b=m.min,y=m.max,x=m.direction,C=m.disabled,w=m.keyboard,E=m.range,S=m.tabIndex,$=m.ariaLabelForHandle,O=m.ariaLabelledByForHandle,k=m.ariaRequired,M=m.ariaValueTextFormatterForHandle,j=m.styles,R=m.classNames,I="".concat(n,"-handle"),N=function(D){C||a(D,o)},F=function(D){v==null||v(D,o)},A=function(D){h(D,o)},P=function(D){if(!C&&w){var B=null;switch(D.which||D.keyCode){case ft.LEFT:B=x==="ltr"||x==="btt"?-1:1;break;case ft.RIGHT:B=x==="ltr"||x==="btt"?1:-1;break;case ft.UP:B=x!=="ttb"?1:-1;break;case ft.DOWN:B=x!=="ttb"?-1:1;break;case ft.HOME:B="min";break;case ft.END:B="max";break;case ft.PAGE_UP:B=2;break;case ft.PAGE_DOWN:B=-2;break;case ft.BACKSPACE:case ft.DELETE:i==null||i(o);break}B!==null&&(D.preventDefault(),f(B,o))}},z=function(D){switch(D.which||D.keyCode){case ft.LEFT:case ft.RIGHT:case ft.UP:case ft.DOWN:case ft.HOME:case ft.END:case ft.PAGE_UP:case ft.PAGE_DOWN:p==null||p();break}},H=Am(x,r,b,y),V={};if(o!==null){var T;V={tabIndex:C?null:zo(S,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":C,"aria-label":zo($,o),"aria-labelledby":zo(O,o),"aria-required":zo(k,o),"aria-valuetext":(T=zo(M,o))===null||T===void 0?void 0:T(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:N,onTouchStart:N,onFocus:F,onMouseEnter:A,onKeyDown:P,onKeyUp:z}}var _=d.createElement("div",Ke({ref:t,className:pe(I,Q(Q(Q({},"".concat(I,"-").concat(o+1),o!==null&&E),"".concat(I,"-dragging"),c),"".concat(I,"-dragging-delete"),u),R.handle),style:Z(Z(Z({},H),s),j.handle)},V,g));return l&&(_=l(_,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),_}),pR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],mR=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=At(e,pR),v=d.useRef({}),h=d.useState(!1),g=te(h,2),m=g[0],b=g[1],y=d.useState(-1),x=te(y,2),C=x[0],w=x[1],E=function(k){w(k),b(!0)},S=function(k,M){E(M),f==null||f(k)},$=function(k,M){E(M)};d.useImperativeHandle(t,function(){return{focus:function(k){var M;(M=v.current[k])===null||M===void 0||M.focus()},hideHelp:function(){ed(function(){b(!1)})}}});var O=Z({prefixCls:n,onStartMove:o,onOffsetChange:a,render:s,onFocus:S,onMouseEnter:$},p);return d.createElement(d.Fragment,null,i.map(function(k,M){var j=c===M;return d.createElement(Tv,Ke({ref:function(R){R?v.current[M]=R:delete v.current[M]},dragging:j,draggingDelete:j&&u,style:zo(r,M),key:M,value:k,valueIndex:M},O))}),l&&m&&d.createElement(Tv,Ke({key:"a11y"},O,{value:i[C],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),gR=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=d.useContext(fa),s=i.min,l=i.max,c=i.direction,u=i.includedStart,f=i.includedEnd,p=i.included,v="".concat(t,"-text"),h=Am(c,o,s,l);return d.createElement("span",{className:pe(v,Q({},"".concat(v,"-active"),p&&u<=o&&o<=f)),style:Z(Z({},h),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(o)}},r)},hR=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(a){var i=a.value,s=a.style,l=a.label;return d.createElement(gR,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null},vR=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=d.useContext(fa),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,f=a.includedEnd,p="".concat(t,"-dot"),v=c&&u<=n&&n<=f,h=Z(Z({},Am(l,n,i,s)),typeof r=="function"?r(n):r);return v&&(h=Z(Z({},h),typeof o=="function"?o(n):o)),d.createElement("span",{className:pe(p,Q({},"".concat(p,"-active"),v)),style:h})},bR=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=d.useContext(fa),s=i.min,l=i.max,c=i.step,u=d.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),r&&c!==null)for(var p=s;p<=l;)f.add(p),p+=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(vR,{prefixCls:t,key:f,value:f,style:o,activeStyle:a})}))},Dv=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,s=e.replaceCls,l=d.useContext(fa),c=l.direction,u=l.min,f=l.max,p=l.disabled,v=l.range,h=l.classNames,g="".concat(t,"-track"),m=hf(r,u,f),b=hf(o,u,f),y=function(w){!p&&i&&i(w,-1)},x={};switch(c){case"rtl":x.right="".concat(m*100,"%"),x.width="".concat(b*100-m*100,"%");break;case"btt":x.bottom="".concat(m*100,"%"),x.height="".concat(b*100-m*100,"%");break;case"ttb":x.top="".concat(m*100,"%"),x.height="".concat(b*100-m*100,"%");break;default:x.left="".concat(m*100,"%"),x.width="".concat(b*100-m*100,"%")}var C=s||pe(g,Q(Q({},"".concat(g,"-").concat(a+1),a!==null&&v),"".concat(t,"-track-draggable"),i),h.track);return d.createElement("div",{className:C,style:Z(Z({},x),n),onMouseDown:y,onTouchStart:y})},yR=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=d.useContext(fa),s=i.included,l=i.range,c=i.min,u=i.styles,f=i.classNames,p=d.useMemo(function(){if(!l){if(r.length===0)return[];var h=o??c,g=r[0];return[{start:Math.min(h,g),end:Math.max(h,g)}]}for(var m=[],b=0;b<r.length-1;b+=1)m.push({start:r[b],end:r[b+1]});return m},[r,l,o,c]);if(!s)return null;var v=p!=null&&p.length&&(f.tracks||u.tracks)?d.createElement(Dv,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:pe(f.tracks,"".concat(t,"-tracks")),style:u.tracks}):null;return d.createElement(d.Fragment,null,v,p.map(function(h,g){var m=h.start,b=h.end;return d.createElement(Dv,{index:g,prefixCls:t,style:Z(Z({},zo(n,g)),u.track),start:m,end:b,key:g,onStartMove:a})}))},xR=130;function _v(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function wR(e,t,n,r,o,a,i,s,l,c,u){var f=d.useState(null),p=te(f,2),v=p[0],h=p[1],g=d.useState(-1),m=te(g,2),b=m[0],y=m[1],x=d.useState(!1),C=te(x,2),w=C[0],E=C[1],S=d.useState(n),$=te(S,2),O=$[0],k=$[1],M=d.useState(n),j=te(M,2),R=j[0],I=j[1],N=d.useRef(null),F=d.useRef(null),A=d.useRef(null),P=d.useContext(dR),z=P.onDragStart,H=P.onDragChange;Ht(function(){b===-1&&k(n)},[n,b]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",N.current),document.removeEventListener("mouseup",F.current),A.current&&(A.current.removeEventListener("touchmove",N.current),A.current.removeEventListener("touchend",F.current))}},[]);var V=function(B,L,W){L!==void 0&&h(L),k(B);var U=B;W&&(U=B.filter(function(J,q){return q!==b})),i(U),H&&H({rawValues:B,deleteIndex:W?b:-1,draggingIndex:b,draggingValue:L})},T=Dt(function(B,L,W){if(B===-1){var U=R[0],J=R[R.length-1],q=r-U,ee=o-J,G=L*(o-r);G=Math.max(G,q),G=Math.min(G,ee);var X=a(U+G);G=X-U;var ie=R.map(function(de){return de+G});V(ie)}else{var ae=(o-r)*L,ne=Re(O);ne[B]=R[B];var ce=l(ne,ae,B,"dist");V(ce.values,ce.value,W)}}),_=function(B,L,W){B.stopPropagation();var U=W||n,J=U[L];y(L),h(J),I(U),k(U),E(!1);var q=_v(B),ee=q.pageX,G=q.pageY,X=!1;z&&z({rawValues:U,draggingIndex:L,draggingValue:J});var ie=function(ne){ne.preventDefault();var ce=_v(ne),de=ce.pageX,ye=ce.pageY,Ee=de-ee,ge=ye-G,Se=e.current.getBoundingClientRect(),oe=Se.width,ve=Se.height,je,se;switch(t){case"btt":je=-ge/ve,se=Ee;break;case"ttb":je=ge/ve,se=Ee;break;case"rtl":je=-Ee/oe,se=ge;break;default:je=Ee/oe,se=ge}X=c?Math.abs(se)>xR&&u<O.length:!1,E(X),T(L,je,X)},ae=function ne(ce){ce.preventDefault(),document.removeEventListener("mouseup",ne),document.removeEventListener("mousemove",ie),A.current&&(A.current.removeEventListener("touchmove",N.current),A.current.removeEventListener("touchend",F.current)),N.current=null,F.current=null,A.current=null,s(X),y(-1),E(!1)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",ie),B.currentTarget.addEventListener("touchend",ae),B.currentTarget.addEventListener("touchmove",ie),N.current=ie,F.current=ae,A.current=B.currentTarget},D=d.useMemo(function(){var B=Re(n).sort(function(q,ee){return q-ee}),L=Re(O).sort(function(q,ee){return q-ee}),W={};L.forEach(function(q){W[q]=(W[q]||0)+1}),B.forEach(function(q){W[q]=(W[q]||0)-1});var U=c?1:0,J=Object.values(W).reduce(function(q,ee){return q+Math.abs(ee)},0);return J<=U?O:n},[n,O,c]);return[b,v,w,D,_]}function CR(e,t,n,r,o,a){var i=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((i(v)-e)/n)*n,g=function(y){return(String(y).split(".")[1]||"").length},m=Math.max(g(n),g(t),g(e)),b=Number(h.toFixed(m));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=d.useCallback(function(v){var h=i(v),g=r.map(function(y){return y.value});n!==null&&g.push(s(v)),g.push(e,t);var m=g[0],b=t-e;return g.forEach(function(y){var x=Math.abs(h-y);x<=b&&(m=y,b=x)}),m},[e,t,r,n,i,s]),c=function v(h,g,m){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,x=h[m],C=x+g,w=[];r.forEach(function(k){w.push(k.value)}),w.push(e,t),w.push(s(x));var E=g>0?1:-1;b==="unit"?w.push(s(x+E*n)):w.push(s(C)),w=w.filter(function(k){return k!==null}).filter(function(k){return g<0?k<=x:k>=x}),b==="unit"&&(w=w.filter(function(k){return k!==x}));var S=b==="unit"?x:C;y=w[0];var $=Math.abs(y-S);if(w.forEach(function(k){var M=Math.abs(k-S);M<$&&(y=k,$=M)}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var O=Re(h);return O[m]=y,v(O,g-E,m,b)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[g],y=c(v,h,g,m);return{value:y,changed:y!==b}},f=function(v){return a===null&&v===0||typeof a=="number"&&v<a},p=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(l),y=b[g],x=c(b,h,g,m);if(b[g]=x,o===!1){var C=a||0;g>0&&b[g-1]!==y&&(b[g]=Math.max(b[g],b[g-1]+C)),g<b.length-1&&b[g+1]!==y&&(b[g]=Math.min(b[g],b[g+1]-C))}else if(typeof a=="number"||a===null){for(var w=g+1;w<b.length;w+=1)for(var E=!0;f(b[w]-b[w-1])&&E;){var S=u(b,1,w);b[w]=S.value,E=S.changed}for(var $=g;$>0;$-=1)for(var O=!0;f(b[$]-b[$-1])&&O;){var k=u(b,-1,$-1);b[$-1]=k.value,O=k.changed}for(var M=b.length-1;M>0;M-=1)for(var j=!0;f(b[M]-b[M-1])&&j;){var R=u(b,-1,M-1);b[M-1]=R.value,j=R.changed}for(var I=0;I<b.length-1;I+=1)for(var N=!0;f(b[I+1]-b[I])&&N;){var F=u(b,1,I+1);b[I+1]=F.value,N=F.changed}}return{value:b[g],values:b}};return[l,p]}function SR(e){return Gt(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 ER=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,a=e.style,i=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,p=f===void 0?!0:f,v=e.autoFocus,h=e.onFocus,g=e.onBlur,m=e.min,b=m===void 0?0:m,y=e.max,x=y===void 0?100:y,C=e.step,w=C===void 0?1:C,E=e.value,S=e.defaultValue,$=e.range,O=e.count,k=e.onChange,M=e.onBeforeChange,j=e.onAfterChange,R=e.onChangeComplete,I=e.allowCross,N=I===void 0?!0:I,F=e.pushable,A=F===void 0?!1:F,P=e.reverse,z=e.vertical,H=e.included,V=H===void 0?!0:H,T=e.startPoint,_=e.trackStyle,D=e.handleStyle,B=e.railStyle,L=e.dotStyle,W=e.activeDotStyle,U=e.marks,J=e.dots,q=e.handleRender,ee=e.activeHandleRender,G=e.track,X=e.tabIndex,ie=X===void 0?0:X,ae=e.ariaLabelForHandle,ne=e.ariaLabelledByForHandle,ce=e.ariaRequired,de=e.ariaValueTextFormatterForHandle,ye=d.useRef(null),Ee=d.useRef(null),ge=d.useMemo(function(){return z?P?"ttb":"btt":P?"rtl":"ltr"},[P,z]),Se=SR($),oe=te(Se,5),ve=oe[0],je=oe[1],se=oe[2],He=oe[3],De=oe[4],qe=d.useMemo(function(){return isFinite(b)?b:0},[b]),Ue=d.useMemo(function(){return isFinite(x)?x:100},[x]),_e=d.useMemo(function(){return w!==null&&w<=0?1:w},[w]),Oe=d.useMemo(function(){return typeof A=="boolean"?A?_e:!1:A>=0?A:!1},[A,_e]),Ie=d.useMemo(function(){return Object.keys(U||{}).map(function($e){var We=U[$e],Pe={value:Number($e)};return We&&pt(We)==="object"&&!d.isValidElement(We)&&("label"in We||"style"in We)?(Pe.style=We.style,Pe.label=We.label):Pe.label=We,Pe}).filter(function($e){var We=$e.label;return We||typeof We=="number"}).sort(function($e,We){return $e.value-We.value})},[U]),ke=CR(qe,Ue,_e,Ie,N,Oe),Ne=te(ke,2),Xe=Ne[0],he=Ne[1],st=fn(S,{value:E}),yt=te(st,2),St=yt[0],Nt=yt[1],Ve=d.useMemo(function(){var $e=St==null?[]:Array.isArray(St)?St:[St],We=te($e,1),Pe=We[0],ct=Pe===void 0?qe:Pe,dt=St===null?[]:[ct];if(ve){if(dt=Re($e),O||St===void 0){var It=O>=0?O+1:2;for(dt=dt.slice(0,It);dt.length<It;){var Mt;dt.push((Mt=dt[dt.length-1])!==null&&Mt!==void 0?Mt:qe)}}dt.sort(function(Lt,zt){return Lt-zt})}return dt.forEach(function(Lt,zt){dt[zt]=Xe(Lt)}),dt},[St,ve,qe,O,Xe]),Qe=function($e){return ve?$e:$e[0]},Ge=Dt(function($e){var We=Re($e).sort(function(Pe,ct){return Pe-ct});k&&!Il(We,Ve,!0)&&k(Qe(We)),Nt(We)}),ot=Dt(function($e){$e&&ye.current.hideHelp();var We=Qe(Ve);j==null||j(We),An(!j,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),R==null||R(We)}),nt=function($e){if(!(u||!je||Ve.length<=He)){var We=Re(Ve);We.splice($e,1),M==null||M(Qe(We)),Ge(We);var Pe=Math.max(0,$e-1);ye.current.hideHelp(),ye.current.focus(Pe)}},$t=wR(Ee,ge,Ve,qe,Ue,Xe,Ge,ot,he,je,He),Ot=te($t,5),et=Ot[0],lt=Ot[1],bt=Ot[2],Le=Ot[3],Fe=Ot[4],xe=function($e,We){if(!u){var Pe=Re(Ve),ct=0,dt=0,It=Ue-qe;Ve.forEach(function(an,_n){var Bn=Math.abs($e-an);Bn<=It&&(It=Bn,ct=_n),an<$e&&(dt=_n)});var Mt=ct;je&&It!==0&&(!De||Ve.length<De)?(Pe.splice(dt+1,0,$e),Mt=dt+1):Pe[ct]=$e,ve&&!Ve.length&&O===void 0&&Pe.push($e);var Lt=Qe(Pe);if(M==null||M(Lt),Ge(Pe),We){var zt,on;(zt=document.activeElement)===null||zt===void 0||(on=zt.blur)===null||on===void 0||on.call(zt),ye.current.focus(Mt),Fe(We,Mt,Pe)}else j==null||j(Lt),An(!j,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),R==null||R(Lt)}},Ae=function($e){$e.preventDefault();var We=Ee.current.getBoundingClientRect(),Pe=We.width,ct=We.height,dt=We.left,It=We.top,Mt=We.bottom,Lt=We.right,zt=$e.clientX,on=$e.clientY,an;switch(ge){case"btt":an=(Mt-on)/ct;break;case"ttb":an=(on-It)/ct;break;case"rtl":an=(Lt-zt)/Pe;break;default:an=(zt-dt)/Pe}var _n=qe+an*(Ue-qe);xe(Xe(_n),$e)},K=d.useState(null),Y=te(K,2),ue=Y[0],be=Y[1],Me=function($e,We){if(!u){var Pe=he(Ve,$e,We);M==null||M(Qe(Ve)),Ge(Pe.values),be(Pe.value)}};d.useEffect(function(){if(ue!==null){var $e=Ve.indexOf(ue);$e>=0&&ye.current.focus($e)}be(null)},[ue]);var Be=d.useMemo(function(){return se&&_e===null?!1:se},[se,_e]),ut=Dt(function($e,We){Fe($e,We),M==null||M(Qe(Ve))}),tt=et!==-1;d.useEffect(function(){if(!tt){var $e=Ve.lastIndexOf(lt);ye.current.focus($e)}},[tt]);var at=d.useMemo(function(){return Re(Le).sort(function($e,We){return $e-We})},[Le]),xt=d.useMemo(function(){return ve?[at[0],at[at.length-1]]:[qe,at[0]]},[at,ve,qe]),ze=te(xt,2),Et=ze[0],Ce=ze[1];d.useImperativeHandle(t,function(){return{focus:function(){ye.current.focus(0)},blur:function(){var $e,We=document,Pe=We.activeElement;($e=Ee.current)!==null&&$e!==void 0&&$e.contains(Pe)&&(Pe==null||Pe.blur())}}}),d.useEffect(function(){v&&ye.current.focus(0)},[]);var Ye=d.useMemo(function(){return{min:qe,max:Ue,direction:ge,disabled:u,keyboard:p,step:_e,included:V,includedStart:Et,includedEnd:Ce,range:ve,tabIndex:ie,ariaLabelForHandle:ae,ariaLabelledByForHandle:ne,ariaRequired:ce,ariaValueTextFormatterForHandle:de,styles:s||{},classNames:i||{}}},[qe,Ue,ge,u,p,_e,V,Et,Ce,ve,ie,ae,ne,ce,de,s,i]);return d.createElement(fa.Provider,{value:Ye},d.createElement("div",{ref:Ee,className:pe(r,o,Q(Q(Q(Q({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),z),"".concat(r,"-horizontal"),!z),"".concat(r,"-with-marks"),Ie.length)),style:a,onMouseDown:Ae,id:l},d.createElement("div",{className:pe("".concat(r,"-rail"),i==null?void 0:i.rail),style:Z(Z({},B),s==null?void 0:s.rail)}),G!==!1&&d.createElement(yR,{prefixCls:r,style:_,values:Ve,startPoint:T,onStartMove:Be?ut:void 0}),d.createElement(bR,{prefixCls:r,marks:Ie,dots:J,style:L,activeStyle:W}),d.createElement(mR,{ref:ye,prefixCls:r,style:D,values:Le,draggingIndex:et,draggingDelete:bt,onStartMove:ut,onOffsetChange:Me,onFocus:h,onBlur:g,handleRender:q,activeHandleRender:ee,onChangeComplete:ot,onDelete:je?nt:void 0}),d.createElement(hR,{prefixCls:r,marks:Ie,onClick:xe})))});const $R=Hr({}),Bv=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,a=Ze(null),i=n&&!r,s=Ze(null);function l(){Pt.cancel(s.current),s.current=null}function c(){s.current=Pt(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),s.current=null})}return d.useEffect(()=>(i?c():l(),l),[i,e.title,o]),d.createElement(Ec,Object.assign({ref:$r(a,t)},e,{open:i}))}),kR=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:v,handleLineWidth:h,handleLineWidthHover:g,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",height:r,margin:`${we(i)} ${we(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${we(a)} ${we(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${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 ${we(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 ${we(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
366
- inset-inline-start ${m},
367
- inset-block-start ${m},
368
- width ${m},
369
- height ${m},
370
- box-shadow ${m},
371
- outline ${m}
372
- `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),width:c(f).add(c(g).mul(2)).equal(),height:c(f).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${we(g)} ${p}`,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:`${we(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`},[`
373
- ${t}-dot
374
- `]:{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 ${we(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
375
- ${t}-mark-text,
376
- ${t}-dot
377
- `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Fw=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",v=s(r).mul(3).sub(o).div(2).equal(),h=s(o).sub(r).div(2).equal(),g=t?{borderWidth:`${we(h)} 0`,transform:`translateY(${we(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${we(h)}`,transform:`translateX(${we(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({},g),[`${n}-handle`]:{[f]:v},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},OR=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Fw(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},IR=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Fw(e,!1)),{height:"100%"})}},MR=e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,i=new Ut(a).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:a,handleActiveOutlineColor:i,handleColorDisabled:new Ut(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},FR=En("Slider",e=>{const t=Qt(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[kR(t),OR(t),IR(t)]},MR);function Ou(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{Pt.cancel(n.current)},o=a=>{r(),a?t(a):n.current=Pt(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,o]}var NR=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 jR(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const PR=fe.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:v={},onChangeComplete:h,classNames:g,styles:m}=e,b=NR(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:C,className:w,style:E,classNames:S,styles:$,getPopupContainer:O}=lo("slider"),k=fe.useContext(Yn),M=s??k,{handleRender:j,direction:R}=fe.useContext($R),I=(R||C)==="rtl",[N,F]=Ou(),[A,P]=Ou(),z=Object.assign({},v),{open:H,placement:V,getPopupContainer:T,prefixCls:_,formatter:D}=z,B=H??u,L=(N||A)&&B!==!1,W=jR(D,c),[U,J]=Ou(),q=oe=>{h==null||h(oe),J(!1)},ee=(oe,ve)=>oe||(ve?I?"left":"right":"top"),G=x("slider",n),[X,ie,ae]=FR(G),ne=pe(o,w,S.root,g==null?void 0:g.root,a,{[`${G}-rtl`]:I,[`${G}-lock`]:U},ie,ae);I&&!b.vertical&&(b.reverse=!b.reverse),fe.useEffect(()=>{const oe=()=>{Pt(()=>{P(!1)},1)};return document.addEventListener("mouseup",oe),()=>{document.removeEventListener("mouseup",oe)}},[]);const ce=r&&!B,de=j||((oe,ve)=>{const{index:je}=ve,se=oe.props;function He(_e,Oe,Ie){var ke,Ne,Xe,he;Ie&&((Ne=(ke=b)[_e])===null||Ne===void 0||Ne.call(ke,Oe)),(he=(Xe=se)[_e])===null||he===void 0||he.call(Xe,Oe)}const De=Object.assign(Object.assign({},se),{onMouseEnter:_e=>{F(!0),He("onMouseEnter",_e)},onMouseLeave:_e=>{F(!1),He("onMouseLeave",_e)},onMouseDown:_e=>{P(!0),J(!0),He("onMouseDown",_e)},onFocus:_e=>{var Oe;P(!0),(Oe=b.onFocus)===null||Oe===void 0||Oe.call(b,_e),He("onFocus",_e,!0)},onBlur:_e=>{var Oe;P(!1),(Oe=b.onBlur)===null||Oe===void 0||Oe.call(b,_e),He("onBlur",_e,!0)}}),qe=fe.cloneElement(oe,De),Ue=(!!B||L)&&W!==null;return ce?qe:fe.createElement(Bv,Object.assign({},z,{prefixCls:x("tooltip",_??l),title:W?W(ve.value):"",value:ve.value,open:Ue,placement:ee(V??p,y),key:je,classNames:{root:`${G}-tooltip`},getPopupContainer:T||f||O}),qe)}),ye=ce?(oe,ve)=>{const je=fe.cloneElement(oe,{style:Object.assign(Object.assign({},oe.props.style),{visibility:"hidden"})});return fe.createElement(Bv,Object.assign({},z,{prefixCls:x("tooltip",_??l),title:W?W(ve.value):"",open:W!==null&&L,placement:ee(V??p,y),key:"tooltip",classNames:{root:`${G}-tooltip`},getPopupContainer:T||f||O,draggingDelete:ve.draggingDelete}),je)}:void 0,Ee=Object.assign(Object.assign(Object.assign(Object.assign({},$.root),E),m==null?void 0:m.root),i),ge=Object.assign(Object.assign({},$.tracks),m==null?void 0:m.tracks),Se=pe(S.tracks,g==null?void 0:g.tracks);return X(fe.createElement(ER,Object.assign({},b,{classNames:Object.assign({handle:pe(S.handle,g==null?void 0:g.handle),rail:pe(S.rail,g==null?void 0:g.rail),track:pe(S.track,g==null?void 0:g.track)},Se?{tracks:Se}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},$.handle),m==null?void 0:m.handle),rail:Object.assign(Object.assign({},$.rail),m==null?void 0:m.rail),track:Object.assign(Object.assign({},$.track),m==null?void 0:m.track)},Object.keys(ge).length?{tracks:ge}:{}),step:b.step,range:r,className:ne,style:Ee,disabled:M,ref:t,prefixCls:G,handleRender:de,activeHandleRender:ye,onChangeComplete:q})))});var AR={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"},RR=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:AR}))},Nw=d.forwardRef(RR),TR={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"},DR=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:TR}))},jw=d.forwardRef(DR),_R={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"},BR=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:_R}))},zR=d.forwardRef(BR);function HR(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 LR(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 Pw(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=bx(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[VR,WR]=["week","WeekPicker"],[qR,UR]=["month","MonthPicker"],[YR,XR]=["year","YearPicker"],[GR,KR]=["quarter","QuarterPicker"],[vf,zv]=["time","TimePicker"],QR=e=>d.createElement(wc,Object.assign({size:"small",type:"primary"},e));function Aw(e){return Gt(()=>Object.assign({button:QR},e),[e])}function Rw(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],s=o[a];if(i&&typeof i=="object")if(s&&typeof s=="object")r[a]=Rw(i,r[a],s);else{const{_default:l}=i;l&&(r[a]=r[a]||{},r[a][l]=pe(r[a][l],s))}else r[a]=pe(r[a],s)}),r),{})}function ZR(e,...t){return d.useMemo(()=>Rw.apply(void 0,[e].concat(t)),[t,e])}function JR(...e){return d.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function bf(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?bf(a,o):a}}),n}function eT(e,t,n){const r=ZR.apply(void 0,[n].concat(Re(e))),o=JR.apply(void 0,Re(t));return d.useMemo(()=>[bf(r,n),bf(o,n)],[r,o,n])}const Tw=(e,t,n,r,o)=>{const{classNames:a,styles:i}=lo(e),[s,l]=eT([a,t],[i,n],{popup:{_default:"root"}});return d.useMemo(()=>{var c,u;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:pe((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),p=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),o)})});return[f,p]},[s,l,r,o])};var tT=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 nT=e=>zr((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:v=!0,placeholder:h,popupStyle:g,popupClassName:m,dropdownClassName:b,status:y,rootClassName:x,variant:C,picker:w,styles:E,classNames:S}=n,$=tT(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),O=w===vf?"timePicker":"datePicker",k=d.useRef(null),{getPrefixCls:M,direction:j,getPopupContainer:R,rangePicker:I}=Kt(Bt),N=M("picker",a),{compactSize:F,compactItemClassnames:A}=Ro(N,j),P=M(),[z,H]=ri("rangePicker",C,v),V=dr(N),[T,_,D]=Cw(N,V),[B,L]=Tw(O,S,E,m||b,g),[W]=Pw(n,N),U=Aw(s),J=Or(Ee=>{var ge;return(ge=f??F)!==null&&ge!==void 0?ge:Ee}),q=d.useContext(Yn),ee=p??q,G=Kt(Rn),{hasFeedback:X,status:ie,feedbackIcon:ae}=G,ne=d.createElement(d.Fragment,null,w===vf?d.createElement(jw,null):d.createElement(Nw,null),X&&ae);Qa(r,()=>k.current);const[ce]=aa("Calendar",Ml),de=Object.assign(Object.assign({},ce),n.locale),[ye]=dc("DatePicker",(o=L.popup.root)===null||o===void 0?void 0:o.zIndex);return T(d.createElement(Fo,{space:!0},d.createElement(VP,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${N}-separator`},d.createElement(zR,null)),disabled:ee,ref:k,placement:u,placeholder:LR(de,w,h),suffixIcon:ne,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:`${P}-slide-up`,picker:w},$,{className:pe({[`${N}-${J}`]:J,[`${N}-${z}`]:H},No(N,la(ie,y),X),_,A,l,I==null?void 0:I.className,D,V,x,B.root),style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),c),L.root),locale:de.lang,prefixCls:N,getPopupContainer:i||R,generateConfig:e,components:U,direction:j,classNames:{popup:pe(_,D,V,x,B.popup.root)},styles:{popup:Object.assign(Object.assign({},L.popup.root),{zIndex:ye})},allowClear:W}))))});var rT=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 oT=e=>{const t=(l,c)=>{const u=c===zv?"timePicker":"datePicker";return zr((p,v)=>{var h;const{prefixCls:g,getPopupContainer:m,components:b,style:y,className:x,rootClassName:C,size:w,bordered:E,placement:S,placeholder:$,popupStyle:O,popupClassName:k,dropdownClassName:M,disabled:j,status:R,variant:I,onCalendarChange:N,styles:F,classNames:A}=p,P=rT(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:z,direction:H,getPopupContainer:V,[u]:T}=Kt(Bt),_=z("picker",g),{compactSize:D,compactItemClassnames:B}=Ro(_,H),L=d.useRef(null),[W,U]=ri("datePicker",I,E),J=dr(_),[q,ee,G]=Cw(_,J);Qa(v,()=>L.current);const X={showToday:!0},ie=l||p.picker,ae=z(),{onSelect:ne,multiple:ce}=P,de=ne&&l==="time"&&!ce,ye=(Xe,he,st)=>{N==null||N(Xe,he,st),de&&ne(Xe)},[Ee,ge]=Tw(u,A,F,k||M,O),[Se,oe]=Pw(p,_),ve=Aw(b),je=Or(Xe=>{var he;return(he=w??D)!==null&&he!==void 0?he:Xe}),se=d.useContext(Yn),He=j??se,De=Kt(Rn),{hasFeedback:qe,status:Ue,feedbackIcon:_e}=De,Oe=d.createElement(d.Fragment,null,ie==="time"?d.createElement(jw,null):d.createElement(Nw,null),qe&&_e),[Ie]=aa("DatePicker",Ml),ke=Object.assign(Object.assign({},Ie),p.locale),[Ne]=dc("DatePicker",(h=ge.popup.root)===null||h===void 0?void 0:h.zIndex);return q(d.createElement(Fo,{space:!0},d.createElement(GP,Object.assign({ref:L,placeholder:HR(ke,ie,$),suffixIcon:Oe,placement:S,prevIcon:d.createElement("span",{className:`${_}-prev-icon`}),nextIcon:d.createElement("span",{className:`${_}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${_}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${_}-super-next-icon`}),transitionName:`${ae}-slide-up`,picker:l,onCalendarChange:ye},X,P,{locale:ke.lang,className:pe({[`${_}-${je}`]:je,[`${_}-${W}`]:U},No(_,la(Ue,R),qe),ee,B,T==null?void 0:T.className,x,G,J,C,Ee.root),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),y),ge.root),prefixCls:_,getPopupContainer:m||V,generateConfig:e,components:ve,direction:H,disabled:He,classNames:{popup:pe(ee,G,J,C,Ee.popup.root)},styles:{popup:Object.assign(Object.assign({},ge.popup.root),{zIndex:Ne})},allowClear:Se,removeIcon:oe}))))})},n=t(),r=t(VR,WR),o=t(qR,UR),a=t(YR,XR),i=t(GR,KR),s=t(vf,zv);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:s,QuarterPicker:i}},Dw=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=oT(e),s=nT(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=i,l},li=Dw(Q6),aT=dm(li,"popupAlign",void 0,"picker");li._InternalPanelDoNotUseOrYouWillBeFired=aT;const iT=dm(li.RangePicker,"popupAlign",void 0,"picker");li._InternalRangePanelDoNotUseOrYouWillBeFired=iT;li.generatePicker=Dw;function sT(e){return e==null?null:typeof e=="object"&&!yp(e)?e:{title:e}}function Ll(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 lT=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},
378
- opacity ${e.motionDurationFast} ${e.motionEaseInOut},
379
- 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)"}}}}},cT=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${we(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 ${we(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Hv=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},uT=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},pn(e)),cT(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Hv(e,e.controlHeightSM)),"&-large":Object.assign({},Hv(e,e.controlHeightLG))})}},dT=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
380
- &-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":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[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:om,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ho=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),fT=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-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"}},[`${t}-col-24${n}-label,
381
- ${t}-col-xl-24${n}-label`]:Ho(e)}}},pT=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
382
- > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},mT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ho(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gT=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
383
- ${r}-col-24${n}-label,
384
- ${r}-col-xl-24${n}-label`]:Ho(e)},[`@media (max-width: ${we(e.screenXSMax)})`]:[mT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ho(e)}}}],[`@media (max-width: ${we(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ho(e)}}},[`@media (max-width: ${we(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ho(e)}}},[`@media (max-width: ${we(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ho(e)}}}}},hT=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}),_w=(e,t)=>Qt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Rm=En("Form",(e,{rootPrefixCls:t})=>{const n=_w(e,t);return[uT(n),dT(n),lT(n),fT(n),pT(n),gT(n),aM(n),om]},hT,{order:-1e3}),Lv=[];function Iu(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Bw=({help:e,helpStatus:t,errors:n=Lv,warnings:r=Lv,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=d.useContext(um),l=`${s}-item-explain`,c=dr(s),[u,f,p]=Rm(s,c),v=d.useMemo(()=>hh(s),[s]),h=Ll(n),g=Ll(r),m=d.useMemo(()=>e!=null?[Iu(e,"help",t)]:[].concat(Re(h.map((x,C)=>Iu(x,"error","error",C))),Re(g.map((x,C)=>Iu(x,"warning","warning",C)))),[e,t,h,g]),b=d.useMemo(()=>{const x={};return m.forEach(({key:C})=>{x[C]=(x[C]||0)+1}),m.map((C,w)=>Object.assign(Object.assign({},C),{key:x[C.key]>1?`${C.key}-fallback-${w}`:C.key}))},[m]),y={};return a&&(y.id=`${a}_help`),u(d.createElement(ia,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:i},x=>{const{className:C,style:w}=x;return d.createElement("div",Object.assign({},y,{className:pe(l,C,p,c,o,f),style:w}),d.createElement(c1,Object.assign({keys:b},hh(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:S,error:$,errorStatus:O,className:k,style:M}=E;return d.createElement("div",{key:S,className:pe(k,{[`${l}-${O}`]:O}),style:M},$)}))}))};var vT=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 bT=(e,t)=>{const n=d.useContext(Yn),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=lo("form"),{prefixCls:u,className:f,rootClassName:p,size:v,disabled:h=n,form:g,colon:m,labelAlign:b,labelWrap:y,labelCol:x,wrapperCol:C,hideRequiredMark:w,layout:E="horizontal",scrollToFirstError:S,requiredMark:$,onFinishFailed:O,name:k,style:M,feedbackIcons:j,variant:R}=e,I=vT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=Or(v),F=d.useContext(Dy),A=d.useMemo(()=>$!==void 0?$:w?!1:a!==void 0?a:!0,[w,$,a]),P=m??i,z=r("form",u),H=dr(z),[V,T,_]=Rm(z,H),D=pe(z,`${z}-${E}`,{[`${z}-hide-required-mark`]:A===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${N}`]:N},_,H,T,l,f,p),[B]=dw(g),{__INTERNAL__:L}=B;L.name=k;const W=d.useMemo(()=>({name:k,labelAlign:b,labelCol:x,labelWrap:y,wrapperCol:C,layout:E,colon:P,requiredMark:A,itemRef:L.itemRef,form:B,feedbackIcons:j}),[k,b,x,C,E,P,A,B,j]),U=d.useRef(null);d.useImperativeHandle(t,()=>{var ee;return Object.assign(Object.assign({},B),{nativeElement:(ee=U.current)===null||ee===void 0?void 0:ee.nativeElement})});const J=(ee,G)=>{if(ee){let X={block:"nearest"};typeof ee=="object"&&(X=Object.assign(Object.assign({},X),ee)),B.scrollToField(G,X)}},q=ee=>{if(O==null||O(ee),ee.errorFields.length){const G=ee.errorFields[0].name;if(S!==void 0){J(S,G);return}s!==void 0&&J(s,G)}};return V(d.createElement(G1.Provider,{value:R},d.createElement(Wy,{disabled:h},d.createElement(ea.Provider,{value:N},d.createElement(Y1,{validateMessages:F},d.createElement(oo.Provider,{value:W},d.createElement(X1,{status:!0},d.createElement(ti,Object.assign({id:k},I,{name:k,onFinishFailed:q,form:B,ref:U,style:Object.assign(Object.assign({},c),M),className:D})))))))))},yT=d.forwardRef(bT);function xT(e){if(typeof e=="function")return e;const t=Ha(e);return t.length<=1?t[0]:t}const zw=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Rn);return{status:e,errors:t,warnings:n}};zw.Context=Rn;function wT(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,Pt.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=Pt(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,i]}function CT(){const{itemRef:e}=d.useContext(oo),t=d.useRef({});function n(r,o){const a=o&&typeof o=="object"&&cs(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=$r(e(r),a)),t.current.ref}return n}const ST=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ET=lc(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=_w(e,t);return ST(n)});var $T=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 kT=24,OT=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:v,label:h}=e,g=`${t}-item`,m=d.useContext(oo),b=d.useMemo(()=>{let I=Object.assign({},o||m.wrapperCol||{});return h===null&&!r&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(N=>{const F=N?[N]:[],A=Cr(m.labelCol,F),P=typeof A=="object"?A:{},z=Cr(I,F),H=typeof z=="object"?z:{};"span"in P&&!("offset"in H)&&P.span<kT&&(I=wr(I,[].concat(F,["offset"]),P.span))}),I},[o,m.wrapperCol,m.labelCol,h,r]),y=pe(`${g}-control`,b.className),x=d.useMemo(()=>$T(m,["labelCol","wrapperCol"]),[m]),C=d.useRef(null),[w,E]=d.useState(0);Ht(()=>{c&&C.current?E(C.current.clientHeight):E(0)},[c]);const S=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),$=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=p!==null||i.length||s.length?d.createElement(um.Provider,{value:$},d.createElement(Bw,{fieldId:f,errors:i,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:v})):null,k={};f&&(k.id=`${f}_extra`);const M=c?d.createElement("div",Object.assign({},k,{className:`${g}-extra`,ref:C}),c):null,j=O||M?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+w}:{}},O,M):null,R=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:S,errorList:O,extra:M}):d.createElement(d.Fragment,null,S,j);return d.createElement(oo.Provider,{value:x},d.createElement(zl,Object.assign({},b,{className:y}),R),d.createElement(ET,{prefixCls:t}))};var IT={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"},MT=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:IT}))},FT=d.forwardRef(MT),NT=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 jT=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[f]=aa("Form"),{labelAlign:p,labelCol:v,labelWrap:h,colon:g}=d.useContext(oo);if(!t)return null;const m=r||v||{},b=o||p,y=`${e}-item-label`,x=pe(y,b==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!h});let C=t;const w=a===!0||g!==!1&&a!==!1;w&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const E=sT(l);if(E){const{icon:j=d.createElement(FT,null)}=E,R=NT(E,["icon"]),I=d.createElement(Ec,Object.assign({},R),d.cloneElement(j,{className:`${e}-item-tooltip`,title:"",onClick:N=>{N.preventDefault()},tabIndex:null}));C=d.createElement(d.Fragment,null,C,I)}const S=s==="optional",$=typeof s=="function",O=s===!1;$?C=s(C,{required:!!i}):S&&!i&&(C=d.createElement(d.Fragment,null,C,d.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((u=Io.Form)===null||u===void 0?void 0:u.optional))));let k;O?k="hidden":(S||$)&&(k="optional");const M=pe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!w});return d.createElement(zl,Object.assign({},m,{className:x}),d.createElement("label",{htmlFor:n,className:M,title:typeof t=="string"?t:""},C))},PT={success:v1,warning:b1,error:uc,validating:fs};function Hw({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:u}=d.useContext(oo),f=uw(t,n,i,null,!!r,o),{isFormItemInput:p,status:v,hasFeedback:h,feedbackIcon:g,name:m}=d.useContext(Rn),b=d.useMemo(()=>{var y;let x;if(r){const w=r!==!0&&r.icons||u,E=f&&((y=w==null?void 0:w({status:f,errors:t,warnings:n}))===null||y===void 0?void 0:y[f]),S=f?PT[f]:null;x=E!==!1&&S?d.createElement("span",{className:pe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(S,null)):null}const C={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:l};return s&&(C.status=(f??v)||"",C.isFormItemInput=p,C.hasFeedback=!!(r??h),C.feedbackIcon=r!==void 0?C.feedbackIcon:g,C.name=l??m),C},[f,r,s,p,v]);return d.createElement(Rn.Provider,{value:b},e)}var AT=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 RT(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:p,fieldId:v,required:h,isRequired:g,onSubItemMetaChange:m,layout:b,name:y}=e,x=AT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:w,layout:E}=d.useContext(oo),S=b||E,$=S==="vertical",O=d.useRef(null),k=Ll(i),M=Ll(s),j=a!=null,R=!!(j||i.length||s.length),I=!!O.current&&pc(O.current),[N,F]=d.useState(null);Ht(()=>{if(R&&O.current){const H=getComputedStyle(O.current);F(Number.parseInt(H.marginBottom,10))}},[R,I]);const A=H=>{H||F(null)},P=((H=!1)=>{const V=H?k:c.errors,T=H?M:c.warnings;return uw(V,T,c,"",!!u,l)})(),z=pe(C,n,r,{[`${C}-with-help`]:j||k.length||M.length,[`${C}-has-feedback`]:P&&u,[`${C}-has-success`]:P==="success",[`${C}-has-warning`]:P==="warning",[`${C}-has-error`]:P==="error",[`${C}-is-validating`]:P==="validating",[`${C}-hidden`]:f,[`${C}-${S}`]:S});return d.createElement("div",{className:z,style:o,ref:O},d.createElement(Ew,Object.assign({className:`${C}-row`},to(x,["_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(jT,Object.assign({htmlFor:v},e,{requiredMark:w,required:h??g,prefixCls:t,vertical:$})),d.createElement(OT,Object.assign({},e,c,{errors:k,warnings:M,prefixCls:t,status:P,help:a,marginBottom:N,onErrorVisibleChanged:A}),d.createElement(U1.Provider,{value:m},d.createElement(Hw,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P,name:y},p)))),!!N&&d.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-N}}))}const TT="__SPLIT__";function DT(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const _T=d.memo(({children:e})=>e,(e,t)=>DT(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Vv(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function BT(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:v,hidden:h,help:g,layout:m}=e,{getPrefixCls:b}=d.useContext(Bt),{name:y}=d.useContext(oo),x=xT(l),C=typeof x=="function",w=d.useContext(U1),{validateTrigger:E}=d.useContext(na),S=v!==void 0?v:E,$=t!=null,O=b("form",a),k=dr(O),[M,j,R]=Rm(O,k);ic();const I=d.useContext(Gi),N=d.useRef(null),[F,A]=wT({}),[P,z]=qa(()=>Vv()),H=W=>{const U=I==null?void 0:I.getKey(W.name);if(z(W.destroy?Vv():W,!0),n&&g!==!1&&w){let J=W.name;if(W.destroy)J=N.current||J;else if(U!==void 0){const[q,ee]=U;J=[q].concat(Re(ee)),N.current=J}w(W,J)}},V=(W,U)=>{A(J=>{const q=Object.assign({},J),ee=[].concat(Re(W.name.slice(0,-1)),Re(U)).join(TT);return W.destroy?delete q[ee]:q[ee]=W,q})},[T,_]=d.useMemo(()=>{const W=Re(P.errors),U=Re(P.warnings);return Object.values(F).forEach(J=>{W.push.apply(W,Re(J.errors||[])),U.push.apply(U,Re(J.warnings||[]))}),[W,U]},[F,P.errors,P.warnings]),D=CT();function B(W,U,J){return n&&!h?d.createElement(Hw,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:T,warnings:_,noStyle:!0,name:t},W):d.createElement(RT,Object.assign({key:"row"},e,{className:pe(r,R,k,j),prefixCls:O,fieldId:U,isRequired:J,errors:T,warnings:_,meta:P,onSubItemMetaChange:V,layout:m,name:t}),W)}if(!$&&!C&&!o)return M(B(x));let L={};return typeof u=="string"?L.label=u:t&&(L.label=String(t)),f&&(L=Object.assign(Object.assign({},L),f)),M(d.createElement(lm,Object.assign({},e,{messageVariables:L,trigger:p,validateTrigger:S,onMetaChange:H}),(W,U,J)=>{const q=Ri(t).length&&U?U.name:[],ee=cw(q,y),G=c!==void 0?c:!!(s!=null&&s.some(ae=>{if(ae&&typeof ae=="object"&&ae.required&&!ae.warningOnly)return!0;if(typeof ae=="function"){const ne=ae(J);return(ne==null?void 0:ne.required)&&!(ne!=null&&ne.warningOnly)}return!1})),X=Object.assign({},W);let ie=null;if(Array.isArray(x)&&$)ie=x;else if(!(C&&(!(i||o)||$))){if(!(o&&!C&&!$))if(d.isValidElement(x)){const ae=Object.assign(Object.assign({},x.props),X);if(ae.id||(ae.id=ee),g||T.length>0||_.length>0||e.extra){const ce=[];(g||T.length>0)&&ce.push(`${ee}_help`),e.extra&&ce.push(`${ee}_extra`),ae["aria-describedby"]=ce.join(" ")}T.length>0&&(ae["aria-invalid"]="true"),G&&(ae["aria-required"]="true"),Za(x)&&(ae.ref=D(q,x)),new Set([].concat(Re(Ri(p)),Re(Ri(S)))).forEach(ce=>{ae[ce]=(...de)=>{var ye,Ee,ge,Se,oe;(ge=X[ce])===null||ge===void 0||(ye=ge).call.apply(ye,[X].concat(de)),(oe=(Se=x.props)[ce])===null||oe===void 0||(Ee=oe).call.apply(Ee,[Se].concat(de))}});const ne=[ae["aria-required"],ae["aria-invalid"],ae["aria-describedby"]];ie=d.createElement(_T,{control:X,update:x,childProps:ne},Mo(x,ae))}else C&&(i||o)&&!$?ie=x(J):ie=x}return B(ie,ee,G)}))}const Lw=BT;Lw.useStatus=zw;var zT=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 HT=e=>{var{prefixCls:t,children:n}=e,r=zT(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(Bt),a=o("form",t),i=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(L1,Object.assign({},r),(s,l,c)=>d.createElement(um.Provider,{value:i},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function LT(){const{form:e}=d.useContext(oo);return e}const wn=yT;wn.Item=Lw;wn.List=HT;wn.ErrorList=Bw;wn.useForm=dw;wn.useFormInstance=LT;wn.useWatch=q1;wn.Provider=Y1;wn.create=()=>{};var VT={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"},WT=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:VT}))},qT=d.forwardRef(WT);const UT=e=>{const{getPrefixCls:t,direction:n}=Kt(Bt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l,c]=ww(i),u=pe(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),f=Kt(Rn),p=Gt(()=>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(Rn.Provider,{value:p},e.children)))},YT=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},XT=En(["Input","OTP"],e=>{const t=Qt(e,ii(e));return YT(t)},si);var GT=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 KT=d.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=GT(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=d.useContext(Bt),u=c("otp"),f=typeof s=="string"?s:r,p=d.useRef(null);d.useImperativeHandle(t,()=>p.current);const v=m=>{o(i,m.target.value)},h=()=>{Pt(()=>{var m;const b=(m=p.current)===null||m===void 0?void 0:m.input;document.activeElement===b&&b&&b.select()})},g=m=>{const{key:b,ctrlKey:y,metaKey:x}=m;b==="ArrowLeft"?a(i-1):b==="ArrowRight"?a(i+1):b==="z"&&(y||x)?m.preventDefault():b==="Backspace"&&!r&&a(i-1),h()};return d.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&d.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),d.createElement(Pc,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:p,value:r,onInput:v,onFocus:h,onKeyDown:g,onMouseDown:h,onMouseUp:h,className:pe(n,{[`${u}-mask-input`]:s})})))});var QT=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 Ls(e){return(e||"").split("")}const ZT=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},JT=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:p,autoFocus:v,mask:h,type:g,onInput:m,inputMode:b}=e,y=QT(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:C}=d.useContext(Bt),w=x("otp",n),E=Br(y,{aria:!0,data:!0,attr:!0}),[S,$,O]=XT(w),k=Or(D=>o??D),M=d.useContext(Rn),j=la(M.status,p),R=d.useMemo(()=>Object.assign(Object.assign({},M),{status:j,hasFeedback:!1,feedbackIcon:null}),[M,j]),I=d.useRef(null),N=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var D;(D=N.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let B=0;B<r;B+=1)(D=N.current[B])===null||D===void 0||D.blur()},nativeElement:I.current}));const F=D=>l?l(D):D,[A,P]=d.useState(()=>Ls(F(a||"")));d.useEffect(()=>{i!==void 0&&P(Ls(i))},[i]);const z=Dt(D=>{P(D),m&&m(D),s&&D.length===r&&D.every(B=>B)&&D.some((B,L)=>A[L]!==B)&&s(D.join(""))}),H=Dt((D,B)=>{let L=Re(A);for(let U=0;U<D;U+=1)L[U]||(L[U]="");B.length<=1?L[D]=B:L=L.slice(0,D).concat(Ls(B)),L=L.slice(0,r);for(let U=L.length-1;U>=0&&!L[U];U-=1)L.pop();const W=F(L.map(U=>U||" ").join(""));return L=Ls(W).map((U,J)=>U===" "&&!L[J]?L[J]:U),L}),V=(D,B)=>{var L;const W=H(D,B),U=Math.min(D+B.length,r-1);U!==D&&W[D]!==void 0&&((L=N.current[U])===null||L===void 0||L.focus()),z(W)},T=D=>{var B;(B=N.current[D])===null||B===void 0||B.focus()},_={variant:u,disabled:f,status:j,mask:h,type:g,inputMode:b};return S(d.createElement("div",Object.assign({},E,{ref:I,className:pe(w,{[`${w}-sm`]:k==="small",[`${w}-lg`]:k==="large",[`${w}-rtl`]:C==="rtl"},O,$),role:"group"}),d.createElement(Rn.Provider,{value:R},Array.from({length:r}).map((D,B)=>{const L=`otp-${B}`,W=A[B]||"";return d.createElement(d.Fragment,{key:L},d.createElement(KT,Object.assign({ref:U=>{N.current[B]=U},index:B,size:k,htmlSize:1,className:`${w}-input`,onChange:V,value:W,onActiveChange:T,autoFocus:B===0&&v},_)),B<r-1&&d.createElement(ZT,{separator:c,index:B,prefixCls:w}))}))))});var e3={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"},t3=function(e,t){return d.createElement(Fn,Ke({},e,{ref:t,icon:e3}))},n3=d.forwardRef(t3),r3=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 o3=e=>e?d.createElement(qT,null):d.createElement(n3,null),a3={click:"onClick",hover:"onMouseOver"},i3=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=o3,suffix:i}=e,s=d.useContext(Yn),l=n??s,c=typeof o=="object"&&o.visible!==void 0,[u,f]=ht(()=>c?o.visible:!1),p=Ze(null);d.useEffect(()=>{c&&f(o.visible)},[c,o]);const v=Mw(p),h=()=>{var M;if(l)return;u&&v();const j=!u;f(j),typeof o=="object"&&((M=o.onVisibleChange)===null||M===void 0||M.call(o,j))},g=M=>{const j=a3[r]||"",R=a(u),I={[j]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return d.cloneElement(d.isValidElement(R)?R:d.createElement("span",null,R),I)},{className:m,prefixCls:b,inputPrefixCls:y,size:x}=e,C=r3(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(Bt),E=w("input",y),S=w("input-password",b),$=o&&g(S),O=pe(S,m,{[`${S}-${x}`]:!!x}),k=Object.assign(Object.assign({},to(C,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:O,prefixCls:E,suffix:d.createElement(d.Fragment,null,$,i)});return x&&(k.size=x),d.createElement(Pc,Object.assign({ref:$r(t,p)},k))});var s3=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 l3=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:v,onCompositionEnd:h,variant:g,onPressEnter:m}=e,b=s3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:x}=d.useContext(Bt),C=d.useRef(!1),w=y("input-search",n),E=y("input",r),{compactSize:S}=Ro(w,x),$=Or(_=>{var D;return(D=a??S)!==null&&D!==void 0?D:_}),O=d.useRef(null),k=_=>{_!=null&&_.target&&_.type==="click"&&f&&f(_.target.value,_,{source:"clear"}),p==null||p(_)},M=_=>{var D;document.activeElement===((D=O.current)===null||D===void 0?void 0:D.input)&&_.preventDefault()},j=_=>{var D,B;f&&f((B=(D=O.current)===null||D===void 0?void 0:D.input)===null||B===void 0?void 0:B.value,_,{source:"input"})},R=_=>{C.current||c||(m==null||m(_),j(_))},I=typeof s=="boolean"?d.createElement(vx,null):null,N=`${w}-button`;let F;const A=s||{},P=A.type&&A.type.__ANT_BUTTON===!0;P||A.type==="button"?F=Mo(A,Object.assign({onMouseDown:M,onClick:_=>{var D,B;(B=(D=A==null?void 0:A.props)===null||D===void 0?void 0:D.onClick)===null||B===void 0||B.call(D,_),j(_)},key:"enterButton"},P?{className:N,size:$}:{})):F=d.createElement(wc,{className:N,color:s?"primary":"default",size:$,disabled:u,key:"enterButton",onMouseDown:M,onClick:j,loading:c,icon:I,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(F=[F,Mo(l,{key:"addonAfter"})]);const z=pe(w,{[`${w}-rtl`]:x==="rtl",[`${w}-${$}`]:!!$,[`${w}-with-button`]:!!s},o),H=_=>{C.current=!0,v==null||v(_)},V=_=>{C.current=!1,h==null||h(_)},T=Object.assign(Object.assign({},b),{className:z,prefixCls:E,type:"search",size:$,variant:g,onPressEnter:R,onCompositionStart:H,onCompositionEnd:V,addonAfter:F,suffix:i,onChange:k,disabled:u});return d.createElement(Pc,Object.assign({ref:$r(O,t)},T))});var c3=`
385
- min-height:0 !important;
386
- max-height:none !important;
387
- height:0 !important;
388
- visibility:hidden !important;
389
- overflow:hidden !important;
390
- position:absolute !important;
391
- z-index:-1000 !important;
392
- top:0 !important;
393
- right:0 !important;
394
- pointer-events: none !important;
395
- `,u3=["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"],Mu={},ar;function d3(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&&Mu[n])return Mu[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=u3.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Mu[n]=l),l}function f3(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=d3(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(c3)),ar.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=ar.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=a),n!==null||r!==null){ar.value=" ";var v=ar.scrollHeight-a;n!==null&&(c=v*n,s==="border-box"&&(c=c+a+i),p=Math.max(c,p)),r!==null&&(u=v*r,s==="border-box"&&(u=u+a+i),f=p>u?"":"hidden",p=Math.min(u,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var p3=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fu=0,Nu=1,ju=2,m3=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=At(n,p3),v=fn(o,{value:a,postState:function(T){return T??""}}),h=te(v,2),g=h[0],m=h[1],b=function(T){m(T.target.value),f==null||f(T)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var x=d.useMemo(function(){return i&&pt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=te(x,2),w=C[0],E=C[1],S=!!i,$=d.useState(ju),O=te($,2),k=O[0],M=O[1],j=d.useState(),R=te(j,2),I=R[0],N=R[1],F=function(){M(Fu)};Ht(function(){S&&F()},[a,w,E,S]),Ht(function(){if(k===Fu)M(Nu);else if(k===Nu){var T=f3(y.current,!1,w,E);M(ju),N(T)}},[k]);var A=d.useRef(),P=function(){Pt.cancel(A.current)},z=function(T){k===ju&&(s==null||s(T),i&&(P(),A.current=Pt(function(){F()})))};d.useEffect(function(){return P},[]);var H=S?I:null,V=Z(Z({},c),H);return(k===Fu||k===Nu)&&(V.overflowY="hidden",V.overflowX="hidden"),d.createElement(eo,{onResize:z,disabled:!(i||s)},d.createElement("textarea",Ke({},p,{ref:y,style:V,className:pe(r,l,Q({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),g3=["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"],h3=fe.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,g=e.showCount,m=e.count,b=e.className,y=e.style,x=e.disabled,C=e.hidden,w=e.classNames,E=e.styles,S=e.onResize,$=e.onClear,O=e.onPressEnter,k=e.readOnly,M=e.autoSize,j=e.onKeyDown,R=At(e,g3),I=fn(r,{value:o,defaultValue:r}),N=te(I,2),F=N[0],A=N[1],P=F==null?"":String(F),z=fe.useState(!1),H=te(z,2),V=H[0],T=H[1],_=fe.useRef(!1),D=fe.useState(null),B=te(D,2),L=B[0],W=B[1],U=Ze(null),J=Ze(null),q=function(){var Ie;return(Ie=J.current)===null||Ie===void 0?void 0:Ie.textArea},ee=function(){q().focus()};Qa(t,function(){var Ie;return{resizableTextArea:J.current,focus:ee,blur:function(){q().blur()},nativeElement:((Ie=U.current)===null||Ie===void 0?void 0:Ie.nativeElement)||q()}}),vt(function(){T(function(Ie){return!x&&Ie})},[x]);var G=fe.useState(null),X=te(G,2),ie=X[0],ae=X[1];fe.useEffect(function(){if(ie){var Ie;(Ie=q()).setSelectionRange.apply(Ie,Re(ie))}},[ie]);var ne=kw(m,g),ce=(n=ne.max)!==null&&n!==void 0?n:c,de=Number(ce)>0,ye=ne.strategy(P),Ee=!!ce&&ye>ce,ge=function(Ie,ke){var Ne=ke;!_.current&&ne.exceedFormatter&&ne.max&&ne.strategy(ke)>ne.max&&(Ne=ne.exceedFormatter(ke,{max:ne.max}),ke!==Ne&&ae([q().selectionStart||0,q().selectionEnd||0])),A(Ne),Hl(Ie.currentTarget,Ie,s,Ne)},Se=function(Ie){_.current=!0,u==null||u(Ie)},oe=function(Ie){_.current=!1,ge(Ie,Ie.currentTarget.value),f==null||f(Ie)},ve=function(Ie){ge(Ie,Ie.target.value)},je=function(Ie){Ie.key==="Enter"&&O&&O(Ie),j==null||j(Ie)},se=function(Ie){T(!0),a==null||a(Ie)},He=function(Ie){T(!1),i==null||i(Ie)},De=function(Ie){A(""),ee(),Hl(q(),Ie,s)},qe=p,Ue;ne.show&&(ne.showFormatter?Ue=ne.showFormatter({value:P,count:ye,maxLength:ce}):Ue="".concat(ye).concat(de?" / ".concat(ce):""),qe=fe.createElement(fe.Fragment,null,qe,fe.createElement("span",{className:pe("".concat(h,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},Ue)));var _e=function(Ie){var ke;S==null||S(Ie),(ke=q())!==null&&ke!==void 0&&ke.style.height&&W(!0)},Oe=!M&&!g&&!l;return fe.createElement(Pm,{ref:U,value:P,allowClear:l,handleReset:De,suffix:qe,prefixCls:h,classNames:Z(Z({},w),{},{affixWrapper:pe(w==null?void 0:w.affixWrapper,Q(Q({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:V,className:pe(b,Ee&&"".concat(h,"-out-of-range")),style:Z(Z({},y),L&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:C,readOnly:k,onClear:$},fe.createElement(m3,Ke({},R,{autoSize:M,maxLength:c,onKeyDown:je,onChange:ve,onFocus:se,onBlur:He,onCompositionStart:Se,onCompositionEnd:oe,className:pe(w==null?void 0:w.textarea),style:Z(Z({},E==null?void 0:E.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:h,onResize:_e,ref:J,readOnly:k})))});const v3=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}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
396
- &-allow-clear > ${t},
397
- &-affix-wrapper${r}-has-feedback ${t}
398
- `]:{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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},b3=En(["Input","TextArea"],e=>{const t=Qt(e,ii(e));return v3(t)},si,{resetFont:!1});var y3=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 x3=zr((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:p,styles:v,variant:h,showCount:g,onMouseDown:m,onResize:b}=e,y=y3(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:C,allowClear:w,autoComplete:E,className:S,style:$,classNames:O,styles:k}=lo("textArea"),M=d.useContext(Yn),j=i??M,{status:R,hasFeedback:I,feedbackIcon:N}=d.useContext(Rn),F=la(R,s),A=d.useRef(null);d.useImperativeHandle(t,()=>{var ne;return{resizableTextArea:(ne=A.current)===null||ne===void 0?void 0:ne.resizableTextArea,focus:ce=>{var de,ye;jm((ye=(de=A.current)===null||de===void 0?void 0:de.resizableTextArea)===null||ye===void 0?void 0:ye.textArea,ce)},blur:()=>{var ce;return(ce=A.current)===null||ce===void 0?void 0:ce.blur()}}});const P=x("input",r),z=dr(P),[H,V,T]=xw(P,u),[_]=b3(P,z),{compactSize:D,compactItemClassnames:B}=Ro(P,C),L=Or(ne=>{var ce;return(ce=a??D)!==null&&ce!==void 0?ce:ne}),[W,U]=ri("textArea",h,o),J=Iw(l??w),[q,ee]=d.useState(!1),[G,X]=d.useState(!1),ie=ne=>{ee(!0),m==null||m(ne);const ce=()=>{ee(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},ae=ne=>{var ce,de;if(b==null||b(ne),q&&typeof getComputedStyle=="function"){const ye=(de=(ce=A.current)===null||ce===void 0?void 0:ce.nativeElement)===null||de===void 0?void 0:de.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&X(!0)}};return H(_(d.createElement(h3,Object.assign({autoComplete:E},y,{style:Object.assign(Object.assign({},$),p),styles:Object.assign(Object.assign({},k),v),disabled:j,allowClear:J,className:pe(T,z,f,u,B,S,G&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:pe({[`${P}-sm`]:L==="small",[`${P}-lg`]:L==="large"},V,c==null?void 0:c.textarea,O.textarea,q&&`${P}-mouse-active`),variant:pe({[`${P}-${W}`]:U},No(P,F)),affixWrapper:pe(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:C==="rtl",[`${P}-affix-wrapper-sm`]:L==="small",[`${P}-affix-wrapper-lg`]:L==="large",[`${P}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:P,suffix:I&&d.createElement("span",{className:`${P}-textarea-suffix`},N),showCount:g,ref:A,onResize:ae,onMouseDown:ie}))))}),oa=Pc;oa.Group=UT;oa.Search=l3;oa.TextArea=x3;oa.Password=i3;oa.OTP=JT;let yr=null,qo=e=>e(),Zi=[],Ji={};function Wv(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ji,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const w3=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=Kt(Bt),a=Ji.prefixCls||o("message"),i=Kt(xN),[s,l]=O1(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.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}),C3=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(Wv),o=()=>{r(Wv)};fe.useEffect(o,[]);const a=wO(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(w3,{ref:t,sync:o,messageConfig:n});return fe.createElement(Ao,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Ac=()=>{if(!yr){const e=document.createDocumentFragment(),t={fragment:e};yr=t,qo(()=>{F1()(fe.createElement(C3,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Ac())})}}),e)});return}yr.instance&&(Zi.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{qo(()=>{const r=yr.instance.open(Object.assign(Object.assign({},Ji),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":qo(()=>{yr==null||yr.instance.destroy(e.key)});break;default:qo(()=>{var r;const o=(r=yr.instance)[t].apply(r,Re(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Zi=[])};function S3(e){Ji=Object.assign(Object.assign({},Ji),e),qo(()=>{var t;(t=yr==null?void 0:yr.sync)===null||t===void 0||t.call(yr)})}function E3(e){const t=Kp(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Zi.push(o),()=>{r?qo(()=>{r()}):o.skipped=!0}});return Ac(),t}function $3(e,t){const n=Kp(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Zi.push(a),()=>{o?qo(()=>{o()}):a.skipped=!0}});return Ac(),n}const k3=e=>{Zi.push({type:"destroy",key:e}),Ac()},O3=["success","info","warning","error","loading"],I3={open:E3,destroy:k3,config:S3,useMessage:$I,_InternalPanelDoNotUseOrYouWillBeFired:vI},dl=I3;O3.forEach(e=>{dl[e]=(...t)=>$3(e,t)});var M3=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Vw=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,v=e.onChange,h=e.onKeyDown,g=At(e,M3),m=fn(!1,{value:i,defaultValue:s}),b=te(m,2),y=b[0],x=b[1];function C($,O){var k=y;return l||(k=$,x(k),v==null||v(k,O)),k}function w($){$.which===ft.LEFT?C(!1,$):$.which===ft.RIGHT&&C(!0,$),h==null||h($)}function E($){var O=C(!y,$);p==null||p(O,$)}var S=pe(o,a,(n={},Q(n,"".concat(o,"-checked"),y),Q(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Ke({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:w,onClick:E}),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)))});Vw.displayName="Switch";const F3=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=we(l(s).add(l(r).mul(2)).equal()),f=we(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:we(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${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:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${we(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()}}}}}}},N3=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}}}},j3=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${we(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},P3=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=we(s(i).add(s(r).mul(2)).equal()),u=we(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,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:a,[`${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()}}}}}},A3=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:we(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}}),Qy(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"}})}},R3=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Ut("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},T3=En("Switch",e=>{const t=Qt(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[A3(t),P3(t),j3(t),N3(t),F3(t)]},R3);var D3=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 _3=d.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:v}=e,h=D3(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,m]=fn(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:b,direction:y,switch:x}=d.useContext(Bt),C=d.useContext(Yn),w=(o??C)||a,E=b("switch",n),S=d.createElement("div",{className:`${E}-handle`},a&&d.createElement(fs,{className:`${E}-loading-icon`})),[$,O,k]=T3(E),M=Or(r),j=pe(x==null?void 0:x.className,{[`${E}-small`]:M==="small",[`${E}-loading`]:a,[`${E}-rtl`]:y==="rtl"},i,s,O,k),R=Object.assign(Object.assign({},x==null?void 0:x.style),l),I=(...N)=>{m(N[0]),v==null||v.apply(void 0,N)};return $(d.createElement(mc,{component:"Switch",disabled:w},d.createElement(Vw,Object.assign({},h,{checked:g,onChange:I,prefixCls:E,className:j,style:R,disabled:w,ref:t,loadingIcon:S}))))}),Ww=_3;Ww.__ANT_SWITCH=!0;const B3=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},pn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${we(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.colorIcon,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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Tm=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Qt(e,{tagFontSize:o,tagLineHeight:we(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Dm=e=>({defaultBg:new Ut(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),qw=En("Tag",e=>{const t=Tm(e);return B3(t)},Dm);var z3=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 H3=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:s,onChange:l,onClick:c}=e,u=z3(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:p}=d.useContext(Bt),v=x=>{l==null||l(!a),c==null||c(x)},h=f("tag",n),[g,m,b]=qw(h),y=pe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},p==null?void 0:p.className,o,m,b);return g(d.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:y,onClick:v}),s,d.createElement("span",null,i)))}),L3=e=>cc(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),V3=lc(["Tag","preset"],e=>{const t=Tm(e);return L3(t)},Dm);function W3(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Vs=(e,t,n)=>{const r=W3(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"}}}},q3=lc(["Tag","status"],e=>{const t=Tm(e);return[Vs(t,"success","Success"),Vs(t,"processing","Info"),Vs(t,"error","Error"),Vs(t,"warning","Warning")]},Dm);var U3=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 Y3=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=U3(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:g}=d.useContext(Bt),[m,b]=d.useState(!0),y=to(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const x=Sc(l),C=n6(l),w=x||C,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},g==null?void 0:g.style),a),S=v("tag",n),[$,O,k]=qw(S),M=pe(S,g==null?void 0:g.className,{[`${S}-${l}`]:w,[`${S}-has-color`]:l&&!w,[`${S}-hidden`]:!m,[`${S}-rtl`]:h==="rtl",[`${S}-borderless`]:!u},r,o,O,k),j=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&b(!1)},[,R]=uN(Bh(e),Bh(g),{closable:!1,closeIconRender:P=>{const z=d.createElement("span",{className:`${S}-close-icon`,onClick:j},P);return x1(P,z,H=>({onClick:V=>{var T;(T=H==null?void 0:H.onClick)===null||T===void 0||T.call(H,V),j(V)},className:pe(H==null?void 0:H.className,`${S}-close-icon`)}))}}),I=typeof p.onClick=="function"||i&&i.type==="a",N=s||null,F=N?d.createElement(d.Fragment,null,N,i&&d.createElement("span",null,i)):i,A=d.createElement("span",Object.assign({},y,{ref:t,className:M,style:E}),F,R,x&&d.createElement(V3,{key:"preset",prefixCls:S}),C&&d.createElement(q3,{key:"status",prefixCls:S}));return $(I?d.createElement(mc,{component:"Tag"},A):A)}),Uw=Y3;Uw.CheckableTag=H3;function X3(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?le.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):le.jsx(un,{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?le.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):le.jsx(un,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?le.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):le.jsx(un,{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?le.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):le.jsx(un,{type:"rag/excel",size:18});case"pdf":return n.pdf?le.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):le.jsx(un,{type:"rag/pdf",size:18});case"txt":return n.txt?le.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):le.jsx(un,{type:"rag/txt",size:18});case"md":return n.md?le.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):le.jsx(un,{type:"rag/document",size:18});case"json":return n.json?le.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):le.jsx(un,{type:"rag/json",size:18});case"html":case"htm":return n.html?le.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):le.jsx(un,{type:"rag/url",size:18});case"xml":default:return le.jsx(un,{type:"rag/file",size:18})}}const G3=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",K3=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:p,style:v})=>le.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:[le.jsx("div",{className:"pt-1",children:n}),le.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[le.jsxs("div",{className:"flex items-center justify-between gap-1",children:[le.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),le.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:G3(t)})]}),le.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,le.jsx("span",{children:r})]})]}),p,c&&!u&&le.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):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:le.jsx(Bb,{className:"w-3.5 h-3.5"})})]});function Q3({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return vt(()=>{e.forEach((o,a)=>{o&&console.log("FilesDisplay currentStatus",o.status)})},[e]),vt(()=>{e.length>0&&e.every(o=>o.status==="finished")&&nn({targets:".file-display-card",opacity:0,scale:.8,delay:nn.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),le.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((o,a)=>{var p,v;if(!o||!o.file)return null;const i=o.name||o.file.name,s=(p=o.file)==null?void 0:p.size;let{status:l}=o;l==="finished"&&(l="done");const c={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:le.jsx(lg,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:le.jsx(lg,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:le.jsx(pE,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:le.jsx(fE,{className:"w-3 h-3"}),color:"text-red-500"}}[l||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},u=i.split(".").pop()||"",f=X3(u,r);return le.jsx(K3,{cardId:`file-card-${a}`,fileName:i,fileSize:s,icon:f,statusText:c.text||"\u672A\u77E5",statusColor:c.color||"text-gray-400",statusIcon:c.icon||null,showRemove:l!=="parsing"&&l!=="uploading",onRemoveWithAnim:h=>{nn({targets:`#${h}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(a)}})},themeColors:(v=r==null?void 0:r.theme)==null?void 0:v.colors},i+a)})})}function Z3({checked:e,onChange:t,icon:n,children:r,styles:o,disabled:a}){var v,h,g,m,b,y,x,C,w,E,S,$,O,k;const i=((h=(v=o==null?void 0:o.theme)==null?void 0:v.colors)==null?void 0:h.primary)||"#00C26A",s=((m=(g=o==null?void 0:o.theme)==null?void 0:g.colors)==null?void 0:m.text)||"#343a40",l=((y=(b=o==null?void 0:o.theme)==null?void 0:b.colors)==null?void 0:y.background)||"#fff",c=((C=(x=o==null?void 0:o.theme)==null?void 0:x.colors)==null?void 0:C.border)||"#dee2e6",u=((E=(w=o==null?void 0:o.theme)==null?void 0:w.colors)==null?void 0:E.disabledBackground)||"#F5F5F5",f=(($=(S=o==null?void 0:o.theme)==null?void 0:S.colors)==null?void 0:$.disabledText)||"#808080",p=((k=(O=o==null?void 0:o.theme)==null?void 0:O.colors)==null?void 0:k.disabled)||"#808080";return le.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:a,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:a?"not-allowed":"pointer",minWidth:0,background:a?u:e?i:"transparent",color:a?f:e?l:s,borderColor:a?p:e?i:c},children:[n,le.jsx("span",{children:r})]})}function J3({value:e,onChange:t,options:n,styles:r,disabled:o,placeholder:a="\u8BF7\u9009\u62E9"}){var f,p,v,h,g,m,b,y,x,C;const i=((p=(f=r==null?void 0:r.theme)==null?void 0:f.colors)==null?void 0:p.text)||"#343a40",s=((h=(v=r==null?void 0:r.theme)==null?void 0:v.colors)==null?void 0:h.border)||"#dee2e6",l=((m=(g=r==null?void 0:r.theme)==null?void 0:g.colors)==null?void 0:m.disabledBackground)||"#F5F5F5",c=((y=(b=r==null?void 0:r.theme)==null?void 0:b.colors)==null?void 0:y.disabledText)||"#808080",u=((C=(x=r==null?void 0:r.theme)==null?void 0:x.colors)==null?void 0:C.disabled)||"#808080";return le.jsx("div",{style:{display:"inline-block"},children:le.jsx(ca,{value:e,onChange:t,disabled:o,placeholder:a,size:"small",style:{minWidth:120,fontSize:"12px !important",height:"28px",borderRadius:"14px",border:`1.5px solid ${o?u:s}`,backgroundColor:o?l:"white",color:o?c:i,fontWeight:"500",transition:"all 0.2s ease"},className:"yuanbao-select",styles:{popup:{root:{fontSize:"12px",borderRadius:"8px"}}},options:n})})}function eD({value:e,eventsEmit:t,styles:n,status:r,onUpload:o,onVoice:a,uploadedFiles:i,onRemoveFile:s,senderConfig:l={},recommandQuestions:c=[],fileUploadStatus:u=[]}={}){var B;const{badgeCounts:f}=KE(),p=Ze(null),v=l.switchs||[],[h,g]=ht(()=>{const L={};return v.forEach(W=>{var U,J;W.type==="switch"?L[W.name]=W.defaultValue??!1:W.type==="select"&&(L[W.name]=W.defaultValue??((J=(U=W.options)==null?void 0:U[0])==null?void 0:J.value)??"")}),L});vt(()=>{t&&t("sender:configChange",{all:h})},[h]);const[m,b]=ht(e||"");vt(()=>{b(e||"")},[e]);const y=()=>{const L=p.current;if(L){L.style.height="auto";const W=144,U=L.scrollHeight;U<=W?(L.style.height=`${U}px`,L.style.overflowY="hidden"):(L.style.height=`${W}px`,L.style.overflowY="auto")}},x=L=>{b(L.target.value),t&&t("sender:change",L.target.value),y()},C=L=>{L.key==="Enter"&&!L.shiftKey&&(console.log("enter"),L.preventDefault(),t&&t("sender:send"))};vt(()=>{y()},[m]),vt(()=>{let L;try{L=typeof c=="string"?JSON.parse(c):c}catch{L=[]}},[c]);const w=Gt(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const L=JSON.parse(c);return Array.isArray(L)?L:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[E,S]=ht(!1);vt(()=>{if(!w||w.length===0){S(!1);return}S(!1),setTimeout(()=>{S(!0)},0)},[w]),vt(()=>{if(!E)return;const L=document.querySelectorAll(".recommand-question-btn");L.forEach(W=>{const U=W;U.style.visibility="visible",U.style.opacity="0",U.style.transform="translateY(20px)"}),nn.remove(L),nn({targets:L,opacity:[0,1],translateY:[20,0],delay:nn.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{L.forEach(W=>{const U=W;U.removeAttribute("style"),U.style.color=V})}})},[E,w]);const $=Gt(()=>u&&u.length>0?u:i||[],[u,i]),O=Gt(()=>m&&m.trim().length>0,[m]),k=Gt(()=>{const L=m&&m.trim().length>0,W=$&&$.length>0;return L||W},[m,$]),M=Gt(()=>{const L=k?[{icon:le.jsx(Bb,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],W=(l.actions||[]).map(U=>({...U,badgeCount:f[U.name]??U.badgeCount??0}));return[...L,...W]},[k,l.actions,f]),j=(B=n==null?void 0:n.theme)==null?void 0:B.colors,R=(j==null?void 0:j.primary)||"#007bff",I=(j==null?void 0:j.text)||"#343a40",N=(j==null?void 0:j.background)||"#ffffff",F=(j==null?void 0:j.border)||"#dee2e6",A=(j==null?void 0:j.background)||"#ffffff",P=(j==null?void 0:j.disabled)||"#808080",z=(j==null?void 0:j.disabledBackground)||"#F5F5F5",H=(j==null?void 0:j.error)||"#FF0000",V=(j==null?void 0:j.disabledText)||"#808080",T="rgba(255, 255, 255, 0.9)",_=(j==null?void 0:j.text)||"#000",D="dynamic-placeholder-style";return vt(()=>{const L=document.getElementById(D)||document.createElement("style");L.id=D,L.innerHTML=`
399
- .dynamic-placeholder::placeholder {
400
- color: ${P};
401
- opacity: 1; /* Firefox */
402
- }
403
- .dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
404
- color: ${P};
405
- }
406
- .dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
407
- color: ${P};
408
- }
409
- .yuanbao-select .ant-select-selection-item {
410
- font-size: 12px !important;
411
- }
412
- .yuanbao-select .ant-select-selection-placeholder {
413
- font-size: 12px !important;
414
- }
415
- `,document.head.appendChild(L)},[P]),le.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[le.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),le.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),le.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[le.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:E&&w.map((L,W)=>le.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:L,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:T,color:V,border:"none"},onMouseEnter:U=>{U.currentTarget.style.color=_},onMouseOut:U=>{U.currentTarget.style.color=V},children:L},W))}),$.length>0&&le.jsx(Q3,{styles:n,uploadedFiles:$,onRemoveFile:s||(()=>{}),eventsEmit:t}),le.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:A,border:`1px solid ${F}`,padding:"0 12px 8px 12px"},children:[le.jsx("textarea",{ref:p,value:m,onChange:x,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]\r
416
- max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:I}}),le.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[M.filter(L=>L.enabled!==!1).map((L,W)=>le.jsx(Mx,{count:L.badgeCount,size:"small",style:{backgroundColor:R,color:N,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:le.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:I,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:L.tip||L.name,onClick:()=>{L.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${L.name}`)},children:L.icon})},L.name||W)),le.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:F}}),le.jsx("div",{className:`
417
- relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
418
- transition-all duration-200
419
- ${r==="processing"?"animate-pulse":""}
420
- `,style:{cursor:r==="processing"||O?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${H}, ${(j==null?void 0:j.error)||"#d9534f"})`:O?`linear-gradient(to bottom right, ${R}, ${(j==null?void 0:j.primary)||"#0275d8"})`:z},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):O&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:le.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!O&&r!=="processing"?V:N},children:r==="processing"?le.jsxs(le.Fragment,{children:[le.jsx(gE,{className:"w-[18px] h-[18px]"}),le.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):le.jsxs(le.Fragment,{children:[le.jsx(bE,{size:12}),le.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),le.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[le.jsx("span",{className:"text-[10px]",style:{color:P}}),le.jsx("div",{className:"flex items-center gap-4",children:v.filter(L=>L.enabled!==!1).map(L=>L.type==="select"?le.jsxs("div",{className:"flex items-center gap-2",children:[le.jsxs("span",{className:"text-xs",style:{color:P},children:[L.label,":"]}),le.jsx(J3,{value:h[L.name],onChange:W=>{g(U=>({...U,[L.name]:W}))},options:L.options||[],styles:n,disabled:!L.enabled,placeholder:L.label})]},L.name):le.jsx(Z3,{styles:n,checked:h[L.name],disabled:!L.enabled,onChange:W=>{g(U=>({...U,[L.name]:W}))},icon:L.icon,children:L.label},L.name))})]})]})]})}function tD({content:e,time:t,sessionContext:n,eventsEmit:r}){const o=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return le.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[le.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:le.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),le.jsx("div",{className:"flex-1",children:le.jsxs("div",{className:"flex-col",children:[le.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Ln(t).format("YYYY-MM-DD HH:mm:ss")}),le.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:le.jsx("span",{className:"text-gray-700 break-words",children:e})}),le.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:le.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u91CD\u53D1",children:[le.jsx(vE,{className:"w-4 h-4"}),le.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function nD({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:o}){const a=l=>{r==null||r("action_copy:click",{content:e,event:l})},i=()=>{r==null||r("action_thumbsup",{result:o,sessionContext:n})},s=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return le.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[le.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:le.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),le.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:le.jsxs("div",{className:"flex flex-col w-full relative",children:[le.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Ln(t).format("YYYY-MM-DD HH:mm:ss")}),le.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:le.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),le.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[le.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:a,title:"\u590D\u5236",children:[le.jsx(hE,{className:"w-4 h-4"}),le.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),le.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===1?"text-blue-700":""}`,onClick:i,title:"\u70B9\u8D5E",children:[le.jsx(xE,{className:"w-4 h-4"}),le.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),le.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:[le.jsx(yE,{className:"w-4 h-4"}),le.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function rD({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:o,eventsEmit:a,scrollOld:i}){const s=Ze(null);return le.jsxs("div",{style:{direction:i?"ltr":"rtl",transform:i?"":"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((l,c)=>le.jsx("div",{className:"mb-6",children:l.istype==="user"?n?le.jsx("div",{style:{direction:"ltr"},children:n(l,c)}):le.jsx("div",{style:{direction:"ltr"},children:le.jsx(tD,{...l,sessionContext:r,eventsEmit:a})}):t?le.jsx("div",{style:{direction:"ltr"},children:t(l,c)}):le.jsx("div",{style:{direction:"ltr"},children:le.jsx(nD,{...l,sessionContext:r,eventsEmit:a})})},l.istype==="user"?l.queryId:"relatedTo-"+l.queryId)),le.jsx("div",{ref:s})]})}var Uo=256,Yw=[],qv=256,Ws;for(;Uo--;)Yw[Uo]=(Uo+256).toString(16).substring(1);function oD(e){var t=0,n=e;if(!Ws||Uo+n>qv*2)for(Ws="",Uo=0;t<qv;t++)Ws+=Yw[Math.random()*256|0];return Ws.substring(Uo,Uo+++n)}var yf={exports:{}};/*!
421
- * clipboard.js v2.0.11
422
- * https://clipboardjs.com/
423
- *
424
- * Licensed MIT © Zeno Rocha
425
- */var aD=yf.exports,Uv;function iD(){return Uv||(Uv=1,(function(e,t){(function(n,r){e.exports=r()})(aD,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return V}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),p=s(817),v=s.n(p);function h(T){try{return document.execCommand(T)}catch{return!1}}var g=function(T){var _=v()(T);return h("cut"),_},m=g;function b(T){var _=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[_?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(B,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(T,_){var D=b(T);_.container.appendChild(D);var B=v()(D);return h("copy"),D.remove(),B},x=function(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof T=="string"?D=y(T,_):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?D=y(T.value,_):(D=v()(T),h("copy")),D},C=x;function w(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(_){return typeof _}:w=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},w(T)}var E=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=T.action,D=_===void 0?"copy":_,B=T.container,L=T.target,W=T.text;if(D!=="copy"&&D!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(L!==void 0)if(L&&w(L)==="object"&&L.nodeType===1){if(D==="copy"&&L.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(D==="cut"&&(L.hasAttribute("readonly")||L.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(W)return C(W,{container:B});if(L)return D==="cut"?m(L):C(L,{container:B})},S=E;function $(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(_){return typeof _}:$=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},$(T)}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function k(T,_){for(var D=0;D<_.length;D++){var B=_[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,B.key,B)}}function M(T,_,D){return _&&k(T.prototype,_),D&&k(T,D),T}function j(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),_&&R(T,_)}function R(T,_){return R=Object.setPrototypeOf||function(D,B){return D.__proto__=B,D},R(T,_)}function I(T){var _=A();return function(){var D=P(T),B;if(_){var L=P(this).constructor;B=Reflect.construct(D,arguments,L)}else B=D.apply(this,arguments);return N(this,B)}}function N(T,_){return _&&($(_)==="object"||typeof _=="function")?_:F(T)}function F(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function A(){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 P(T){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},P(T)}function z(T,_){var D="data-clipboard-".concat(T);if(_.hasAttribute(D))return _.getAttribute(D)}var H=(function(T){j(D,T);var _=I(D);function D(B,L){var W;return O(this,D),W=_.call(this),W.resolveOptions(L),W.listenClick(B),W}return M(D,[{key:"resolveOptions",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof B.action=="function"?B.action:this.defaultAction,this.target=typeof B.target=="function"?B.target:this.defaultTarget,this.text=typeof B.text=="function"?B.text:this.defaultText,this.container=$(B.container)==="object"?B.container:document.body}},{key:"listenClick",value:function(B){var L=this;this.listener=f()(B,"click",function(W){return L.onClick(W)})}},{key:"onClick",value:function(B){var L=B.delegateTarget||B.currentTarget,W=this.action(L)||"copy",U=S({action:W,container:this.container,target:this.target(L),text:this.text(L)});this.emit(U?"success":"error",{action:W,text:U,trigger:L,clearSelection:function(){L&&L.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(B){return z("action",B)}},{key:"defaultTarget",value:function(B){var L=z("target",B);if(L)return document.querySelector(L)}},{key:"defaultText",value:function(B){return z("text",B)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(B){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(B,L)}},{key:"cut",value:function(B){return m(B)}},{key:"isSupported",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],L=typeof B=="string"?[B]:B,W=!!document.queryCommandSupported;return L.forEach(function(U){W=W&&!!document.queryCommandSupported(U)}),W}}]),D})(c()),V=H}),828:(function(a){var i=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!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function u(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=l(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.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||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,g,m);if(l.nodeList(h))return p(h,g,m);if(l.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=u}),817:(function(a){function i(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}a.exports=i}),279:(function(a){function i(){}i.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 p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(yf)),yf.exports}var sD=iD();const lD=so(sD),cD=(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 lD(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{dl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{dl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),dl.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function ho(e){return le.jsxs("span",{className:"flex items-center gap-1",children:[le.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&le.jsx(Ec,{title:e.description,className:" cursor-help",children:le.jsx(mE,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&le.jsx(Uw,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function uD(e=[],t,n={}){const[r,o]=fe.useState(()=>{const c={};return e.forEach(u=>{u.type==="switch"&&(c[u.name]=n[u.name]??u.defaultValue??!1)}),c}),a=fe.useRef(),i=(c,u,f)=>{o(p=>({...p,[c]:u})),a.current&&f&&(u||f.forEach(p=>{a.current.setFieldsValue({[p]: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,p,v,h,g;return s.has(c.name)?null:c.type==="divider"?le.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?le.jsx(wn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:le.jsx(oa,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?le.jsx(wn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:le.jsx(ca,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?le.jsx(wn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:le.jsx(gf,{addonAfter:c.unit?le.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"?le.jsxs("div",{className:"mb-6",children:[le.jsxs("div",{className:"flex items-center justify-between mb-3",children:[le.jsx("div",{className:"flex items-center text-sm",children:ho(c)}),le.jsx(wn.Item,{name:c.name,noStyle:!0,children:le.jsx(gf,{min:(p=c.range)==null?void 0:p.min,max:(v=c.range)==null?void 0:v.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&le.jsx("span",{className:"ml-2",children:c.unit})]}),le.jsx(wn.Item,{name:c.name,noStyle:!0,children:le.jsx(PR,{min:(h=c.range)==null?void 0:h.min,max:(g=c.range)==null?void 0:g.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?le.jsx(wn.Item,{label:null,colon:!1,style:{marginBottom:16},children:le.jsxs(Ew,{align:"middle",justify:"space-between",children:[le.jsx(zl,{children:ho(c)}),le.jsx(zl,{children:le.jsx(wn.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:le.jsx(Ww,{disabled:c.disabled,checked:r[c.name],onChange:m=>i(c.name,m,c.controlledItems)})})})]})},c.name):c.type==="textarea"?le.jsx(wn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:le.jsx(oa.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?le.jsx(wn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:le.jsx(li,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?le.jsx(wn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:le.jsx(Fc.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return fe.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(a)},[t]),l}function dD({config:e=[],initialValues:t={},onChange:n,styles:r}){const o=uD(e,r,t),[a]=wn.useForm();return le.jsx(wn,{form:a,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(i,s)=>n==null?void 0:n(s),requiredMark:!1,style:{padding:16},children:o})}function fD(){return le.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:le.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function pD(){return le.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:le.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function mD(){return le.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:le.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function gD(){return le.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:le.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function hD(){return le.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[le.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"}),le.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 vD(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 bD(e){return{...e,size:td[e.size]||e.size,radius:Db[e.radius]||e.radius,padding:aE[e.padding]||e.padding,margin:iE[e.margin]||e.margin,shadow:sE[e.shadow]||e.shadow,lineHeight:lE[e.lineHeight]||e.lineHeight,sidebar:oE[e.sidebar]||e.sidebar}}function yD({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:o,recommandQuestions:a=[],styles:i,senderConfig:s,fileUploadStatus:l,onSenderConfigChange:c,activeSessionId:u,scrollOld:f}){const p=Ze(null),[v,h]=ht(""),[g,m]=ht([]),[b,y]=ht(!1),x=(t&&t.length>0?t:[]).filter(G=>G.enabled!==!1),[C,w]=ht(()=>{var G;return(G=x[0])==null?void 0:G.key}),E=Ze({}),[S]=ht(0),$=(e==null?void 0:e.messages)||[],[O,k]=ht({});vt(()=>{n==null||n("fileManager:change",{uploadedFiles:g,removeFile:(G,X,ie)=>{m(ae=>ae.filter((ne,ce)=>ce!==X))},setUploadedFiles:G=>{m(X=>typeof G=="function"?G(X):[...X,...G])}})},[g]);const M=()=>{h(""),m([])},j=(G,X)=>{if(n)switch(console.log(G,X,"core\u5185\u90E8\u8F6C\u53D1"),G){case"action_copy:click":X&&cD(X.content,X.event);break;case"sender:configChange":k(X.all),c==null||c(X),n(G,X);break;case"conversation:create":const ie=oD(3);n==null||n("conversation:create",{id:ie});break;case"sender:change":X&&h(X);break;case"sender:clear":M();break;case"sender:send_recommandQuestion":{const ae={};x.forEach(ne=>{ne.type==="form"&&(ae[ne.key]=E.current[ne.key]??ne.initialValues??{})}),n==null||n("sender:send",{content:X.content,files:g,status:r,currentData:e,senderConfig:O,formData:ae,clearFn:M}),setTimeout(()=>{p.current&&p.current.scrollTo&&p.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const ae={};x.forEach(ne=>{ne.type==="form"&&(ae[ne.key]=E.current[ne.key]??ne.initialValues??{})}),n==null||n("sender:send",{content:v,files:g,status:r,currentData:e,senderConfig:O,formData:ae,clearFn:M});break}default:n(G,X)}},R=G=>{G.preventDefault(),y(!1);const X=Array.from(G.dataTransfer.files||[]);if(X.length>0){const ie=X.filter(ae=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(ae.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(ae.name));ie.length>0&&m(ae=>[...ae,...ie.map(ne=>({file:ne,type:F(ne)}))])}},I=G=>{G.preventDefault(),b||y(!0)},N=G=>{G.preventDefault(),y(!1)};function F(G){return G.type.startsWith("image")?"image":"document"}const A=G=>{k(G.all),c==null||c(G)},P=()=>{p.current.addEventListener("wheel",G=>{G.preventDefault();const{deltaY:X}=G;p.current.scrollTop-=X})},z=Ze(null);vt(()=>{if(!f&&!z.current)return z.current=setInterval(()=>{var G;(G=p==null?void 0:p.current)!=null&&G.scrollTo&&(P(),clearInterval(z.current),z.current=null)},100),()=>{var G;clearInterval(z.current),z.current=null,(G=p==null?void 0:p.current)!=null&&G.removeEventListener&&p.current.removeEventListener("wheel",P)}},[u]),vt(()=>{var G;!f||!((G=p==null?void 0:p.current)!=null&&G.scrollTo)||!p.current.scrollHeight||p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[$]);const H=vD(rE,i==null?void 0:i.theme),V=bD(H.space),T={...H,space:V,colors:{...H.colors,info:H.colors.info||"#0000FF",background:H.colors.background||"#ffffff",text:H.colors.text||"#343a40",border:H.colors.border||"#dee2e6",disabled:H.colors.disabled||"#808080",disabledBackground:H.colors.disabledBackground||"#F5F5F5",disabledText:H.colors.disabledText||"#808080"}},_={...i,theme:T},D=T.space.radius,B=T.colors.appBackground,L="",W=T.space.shadow,U=x.length===0?0:T.space.sidebar,J=T.space.size,q=T.space.padding,ee=T.colors.text;return le.jsxs(le.Fragment,{children:[r.app==="initializing"&&(o!=null&&o.AppLoading?le.jsx(o.AppLoading,{}):le.jsx(fD,{})),r.app==="error"&&(o!=null&&o.AppError?le.jsx(o.AppError,{}):le.jsx(mD,{})),r.app==="ready"&&le.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex"},children:[x.length===0?null:le.jsxs("div",{style:{width:U,borderRadius:D,boxShadow:W,background:L,display:"flex",flexDirection:"column",height:"100%"},children:[(o==null?void 0:o.LogoBox)&&le.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${H.colors.border}`,padding:q,fontSize:td.lg,fontWeight:700,color:H.colors.primary,background:L,borderTopLeftRadius:D,borderTopRightRadius:D},children:le.jsx(o.LogoBox,{})}),le.jsxs("div",{style:{width:U,borderRadius:D,background:L,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:x.length>1?55:0,borderBottomRightRadius:D},children:[(()=>{const G=x.find(X=>X.key===C);if(!G)return null;if(G.type==="custom")return G.component;if(G.type==="form"){const X=E.current[G.key]||G.initialValues||{};return le.jsx(dD,{config:G.formConfig,initialValues:X,onChange:ie=>{var ae;E.current[G.key]=ie,(ae=G.onChange)==null||ae.call(G,ie),typeof n=="function"&&n("form:change",{...E.current})},styles:i},G.key+"_"+S)}return null})(),x.length>1&&le.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 ${H.colors.border}`,borderTop:`1px solid ${H.colors.border}`,borderBottomRightRadius:D,background:L},children:x.map(G=>{const X=G.icon,ie=C===G.key;return le.jsx("button",{onClick:()=>w(G.key),style:{padding:8,borderRadius:Db.md,background:ie?H.colors.primary+"22":"transparent",color:ie?H.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:ie?600:400,transition:"all 0.2s"},title:G.label,children:X},G.key)})})]})]}),le.jsxs("div",{className:"relative ",style:{width:U===0?"100%":`calc(100% - ${U})`,borderRadius:D,background:B,fontSize:J,color:ee,position:"relative",height:"100%",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},onDrop:R,onDragOver:I,onDragLeave:N,children:[b&&le.jsx("div",{style:{position:"absolute",inset:0,background:H.colors.primary+"14",border:`4px dashed ${H.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:D},children:le.jsx("div",{style:{color:H.colors.primary,fontSize:td.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),le.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},children:le.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?le.jsx(o.WelcomeComponent,{}):le.jsx(hD,{}):r.display==="loading"?o!=null&&o.DisplayLoading?le.jsx(o.DisplayLoading,{}):le.jsx(pD,{}):r.display==="error"?o!=null&&o.DisplayError?le.jsx(o.DisplayError,{}):le.jsx(gD,{}):le.jsxs("div",{ref:p,className:"relative px-8",style:{direction:f?"ltr":"rtl",transform:f?"":"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[le.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),le.jsx("div",{style:{width:"100%",maxWidth:1200},children:le.jsx(rD,{status:r.display,messages:$,eventsEmit:n,renderAiChatBox:o==null?void 0:o.AiChatBox,renderUserChatBox:o==null?void 0:o.UserChatBox,scrollOld:f})})]})})}),le.jsx(eD,{value:v,status:r.sender,styles:_,recommandQuestions:a,eventsEmit:(G,X)=>{j(G,X)},uploadedFiles:g,fileUploadStatus:l,onUpload:G=>{G&&G.length>0&&m(X=>[...X,...Array.from(G).map(ie=>({file:ie,type:F(ie)}))])},onRemoveFile:G=>{m(X=>X.filter((ie,ae)=>ae!==G))},senderConfig:s,onSenderConfigChange:A})]})]})]})}const Yv={actions:[{icon:re(un,{type:"rag/folder",size:18}),name:"history",badgeCount:0}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"checkbox",defaultValue:!1,enabled:!0,icon:re(un,{type:"rag/url",size:12})},{label:"\u63A8\u7406\u601D\u8003",name:"reasoning",type:"checkbox",defaultValue:!1,enabled:!0,icon:re(un,{type:"rag/think",size:12})}]};function Tn(){return Tn=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},Tn.apply(null,arguments)}function Tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ua(e,t)}function xD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ua(e,t)}var Xv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function wD(e,t){return!!(e===t||Xv(e)&&Xv(t))}function CD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!wD(e[n],t[n]))return!1;return!0}function Pu(e,t){t===void 0&&(t=CD);var n,r=[],o,a=!1;function i(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return a&&n===this&&t(s,r)||(o=e.apply(this,s),a=!0,n=this,r=s),o}return i}function SD(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 ED=typeof performance=="object"&&typeof performance.now=="function",Gv=ED?function(){return performance.now()}:function(){return Date.now()};function Kv(e){cancelAnimationFrame(e.id)}function $D(e,t){var n=Gv();function r(){Gv()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Au=-1;function Qv(e){if(e===void 0&&(e=!1),Au===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Au=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Au}var Ca=null;function Zv(e){if(e===void 0&&(e=!1),Ca===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?Ca="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ca="negative":Ca="positive-ascending"),document.body.removeChild(t),Ca}return Ca}var kD=150,OD=function(t,n){return t};function ID(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=(function(f){xD(p,f);function p(h){var g;return g=f.call(this,h)||this,g._instanceProps=l(g.props,Tt(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Tt(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Pu(function(m,b,y,x){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:b,visibleStartIndex:y,visibleStopIndex:x})}),g._callOnScroll=void 0,g._callOnScroll=Pu(function(m,b,y){return g.props.onScroll({scrollDirection:m,scrollOffset:b,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var b=g.props,y=b.direction,x=b.itemSize,C=b.layout,w=g._getItemStyleCache(c&&x,c&&C,c&&y),E;if(w.hasOwnProperty(m))E=w[m];else{var S=n(g.props,m,g._instanceProps),$=o(g.props,m,g._instanceProps),O=y==="horizontal"||C==="horizontal",k=y==="rtl",M=O?S:0;w[m]=E={position:"absolute",left:k?void 0:M,right:k?M:void 0,top:O?0:S,height:O?"100%":$,width:O?$:"100%"}}return E},g._getItemStyleCache=void 0,g._getItemStyleCache=Pu(function(m,b,y){return{}}),g._onScrollHorizontal=function(m){var b=m.currentTarget,y=b.clientWidth,x=b.scrollLeft,C=b.scrollWidth;g.setState(function(w){if(w.scrollOffset===x)return null;var E=g.props.direction,S=x;if(E==="rtl")switch(Zv()){case"negative":S=-x;break;case"positive-descending":S=C-y-x;break}return S=Math.max(0,Math.min(S,C-y)),{isScrolling:!0,scrollDirection:w.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(m){var b=m.currentTarget,y=b.clientHeight,x=b.scrollHeight,C=b.scrollTop;g.setState(function(w){if(w.scrollOffset===C)return null;var E=Math.max(0,Math.min(C,x-y));return{isScrolling:!0,scrollDirection:w.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(m){var b=g.props.outerRef;g._outerRef=m,typeof b=="function"?b(m):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=m)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Kv(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=$D(g._resetIsScrolling,kD)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}p.getDerivedStateFromProps=function(g,m){return MD(g,m),u(g),null};var v=p.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(m){return m.scrollOffset===g?null:{scrollDirection:m.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,m){m===void 0&&(m="auto");var b=this.props,y=b.itemCount,x=b.layout,C=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var w=0;if(this._outerRef){var E=this._outerRef;x==="vertical"?w=E.scrollWidth>E.clientWidth?Qv():0:w=E.scrollHeight>E.clientHeight?Qv():0}this.scrollTo(a(this.props,g,m,C,this._instanceProps,w))},v.componentDidMount=function(){var g=this.props,m=g.direction,b=g.initialScrollOffset,y=g.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;m==="horizontal"||y==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,m=g.direction,b=g.layout,y=this.state,x=y.scrollOffset,C=y.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var w=this._outerRef;if(m==="horizontal"||b==="horizontal")if(m==="rtl")switch(Zv()){case"negative":w.scrollLeft=-x;break;case"positive-ascending":w.scrollLeft=x;break;default:var E=w.clientWidth,S=w.scrollWidth;w.scrollLeft=S-E-x;break}else w.scrollLeft=x;else w.scrollTop=x}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kv(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,m=g.children,b=g.className,y=g.direction,x=g.height,C=g.innerRef,w=g.innerElementType,E=g.innerTagName,S=g.itemCount,$=g.itemData,O=g.itemKey,k=O===void 0?OD:O,M=g.layout,j=g.outerElementType,R=g.outerTagName,I=g.style,N=g.useIsScrolling,F=g.width,A=this.state.isScrolling,P=y==="horizontal"||M==="horizontal",z=P?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),V=H[0],T=H[1],_=[];if(S>0)for(var D=V;D<=T;D++)_.push(Aa(m,{data:$,key:k(D,$),index:D,isScrolling:N?A:void 0,style:this._getItemStyle(D)}));var B=r(this.props,this._instanceProps);return Aa(j||R||"div",{className:b,onScroll:z,ref:this._outerRefSetter,style:Tn({position:"relative",height:x,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},I)},Aa(w||E||"div",{children:_,ref:C,style:{height:P?"100%":B,pointerEvents:A?"none":void 0,width:P?B:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),b=m[0],y=m[1],x=m[2],C=m[3];this._callOnItemsRendered(b,y,x,C)}}if(typeof this.props.onScroll=="function"){var w=this.state,E=w.scrollDirection,S=w.scrollOffset,$=w.scrollUpdateWasRequested;this._callOnScroll(E,S,$)}},v._getRangeToRender=function(){var g=this.props,m=g.itemCount,b=g.overscanCount,y=this.state,x=y.isScrolling,C=y.scrollDirection,w=y.scrollOffset;if(m===0)return[0,0,0,0];var E=i(this.props,w,this._instanceProps),S=s(this.props,E,w,this._instanceProps),$=!x||C==="backward"?Math.max(1,b):1,O=!x||C==="forward"?Math.max(1,b):1;return[Math.max(0,E-$),Math.max(0,Math.min(m-1,S+O)),E,S]},p})(TS),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var MD=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},FD=50,Fa=function(t,n,r){var o=t,a=o.itemSize,i=r.itemMetadataMap,s=r.lastMeasuredIndex;if(n>s){var l=0;if(s>=0){var c=i[s];l=c.offset+c.size}for(var u=s+1;u<=n;u++){var f=a(u);i[u]={offset:l,size:f},l+=f}r.lastMeasuredIndex=n}return i[n]},ND=function(t,n,r){var o=n.itemMetadataMap,a=n.lastMeasuredIndex,i=a>0?o[a].offset:0;return i>=r?Xw(t,n,a,0,r):jD(t,n,Math.max(0,a),r)},Xw=function(t,n,r,o,a){for(;o<=r;){var i=o+Math.floor((r-o)/2),s=Fa(t,i,n).offset;if(s===a)return i;s<a?o=i+1:s>a&&(r=i-1)}return o>0?o-1:0},jD=function(t,n,r,o){for(var a=t.itemCount,i=1;r<a&&Fa(t,r,n).offset<o;)r+=i,i*=2;return Xw(t,n,Math.min(r,a-1),Math.floor(r/2),o)},Jv=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,a=n.estimatedItemSize,i=n.lastMeasuredIndex,s=0;if(i>=r&&(i=r-1),i>=0){var l=o[i];s=l.offset+l.size}var c=r-i-1,u=c*a;return s+u},PD=ID({getItemOffset:function(t,n,r){return Fa(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Jv,getOffsetForIndexAndAlignment:function(t,n,r,o,a,i){var s=t.direction,l=t.height,c=t.layout,u=t.width,f=s==="horizontal"||c==="horizontal",p=f?u:l,v=Fa(t,n,a),h=Jv(t,a),g=Math.max(0,Math.min(h-p,v.offset)),m=Math.max(0,v.offset-p+v.size+i);switch(r==="smart"&&(o>=m-p&&o<=g+p?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return o>=m&&o<=g?o:o<m?m:g}},getStartIndexForOffset:function(t,n,r){return ND(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var a=t.direction,i=t.height,s=t.itemCount,l=t.layout,c=t.width,u=a==="horizontal"||l==="horizontal",f=u?c:i,p=Fa(t,n,o),v=r+f,h=p.offset+p.size,g=n;g<s-1&&h<v;)g++,h+=Fa(t,g,o).size;return g},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:o||FD,lastMeasuredIndex:-1};return n.resetAfterIndex=function(i,s){s===void 0&&(s=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,i-1),n._getItemStyleCache(-1),s&&n.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),fl={exports:{}},AD=fl.exports,e0;function RD(){return e0||(e0=1,(function(e,t){(function(n,r){e.exports=r()})(AD,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\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(I){var N=["th","st","nd","rd"],F=I%100;return"["+I+(N[(F-20)%10]||N[F]||N[0])+"]"}},x=function(I,N,F){var A=String(I);return!A||A.length>=N?I:""+Array(N+1-A.length).join(F)+I},C={s:x,z:function(I){var N=-I.utcOffset(),F=Math.abs(N),A=Math.floor(F/60),P=F%60;return(N<=0?"+":"-")+x(A,2,"0")+":"+x(P,2,"0")},m:function I(N,F){if(N.date()<F.date())return-I(F,N);var A=12*(F.year()-N.year())+(F.month()-N.month()),P=N.clone().add(A,f),z=F-P<0,H=N.clone().add(A+(z?-1:1),f);return+(-(A+(F-P)/(z?P-H:H-P))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",E={};E[w]=y;var S="$isDayjsObject",$=function(I){return I instanceof j||!(!I||!I[S])},O=function I(N,F,A){var P;if(!N)return w;if(typeof N=="string"){var z=N.toLowerCase();E[z]&&(P=z),F&&(E[z]=F,P=z);var H=N.split("-");if(!P&&H.length>1)return I(H[0])}else{var V=N.name;E[V]=N,P=V}return!A&&P&&(w=P),P||!A&&w},k=function(I,N){if($(I))return I.clone();var F=typeof N=="object"?N:{};return F.date=I,F.args=arguments,new j(F)},M=C;M.l=O,M.i=$,M.w=function(I,N){return k(I,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var j=(function(){function I(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[S]=!0}var N=I.prototype;return N.parse=function(F){this.$d=(function(A){var P=A.date,z=A.utc;if(P===null)return new Date(NaN);if(M.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var H=P.match(m);if(H){var V=H[2]-1||0,T=(H[7]||"0").substring(0,3);return z?new Date(Date.UTC(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)):new Date(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,T)}}return new Date(P)})(F),this.init()},N.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},N.$utils=function(){return M},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(F,A){var P=k(F);return this.startOf(A)<=P&&P<=this.endOf(A)},N.isAfter=function(F,A){return k(F)<this.startOf(A)},N.isBefore=function(F,A){return this.endOf(A)<k(F)},N.$g=function(F,A,P){return M.u(F)?this[A]:this.set(P,F)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(F,A){var P=this,z=!!M.u(A)||A,H=M.p(F),V=function(J,q){var ee=M.w(P.$u?Date.UTC(P.$y,q,J):new Date(P.$y,q,J),P);return z?ee:ee.endOf(c)},T=function(J,q){return M.w(P.toDate()[J].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(q)),P)},_=this.$W,D=this.$M,B=this.$D,L="set"+(this.$u?"UTC":"");switch(H){case v:return z?V(1,0):V(31,11);case f:return z?V(1,D):V(0,D+1);case u:var W=this.$locale().weekStart||0,U=(_<W?_+7:_)-W;return V(z?B-U:B+(6-U),D);case c:case h:return T(L+"Hours",0);case l:return T(L+"Minutes",1);case s:return T(L+"Seconds",2);case i:return T(L+"Milliseconds",3);default:return this.clone()}},N.endOf=function(F){return this.startOf(F,!1)},N.$set=function(F,A){var P,z=M.p(F),H="set"+(this.$u?"UTC":""),V=(P={},P[c]=H+"Date",P[h]=H+"Date",P[f]=H+"Month",P[v]=H+"FullYear",P[l]=H+"Hours",P[s]=H+"Minutes",P[i]=H+"Seconds",P[a]=H+"Milliseconds",P)[z],T=z===c?this.$D+(A-this.$W):A;if(z===f||z===v){var _=this.clone().set(h,1);_.$d[V](T),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else V&&this.$d[V](T);return this.init(),this},N.set=function(F,A){return this.clone().$set(F,A)},N.get=function(F){return this[M.p(F)]()},N.add=function(F,A){var P,z=this;F=Number(F);var H=M.p(A),V=function(D){var B=k(z);return M.w(B.date(B.date()+Math.round(D*F)),z)};if(H===f)return this.set(f,this.$M+F);if(H===v)return this.set(v,this.$y+F);if(H===c)return V(1);if(H===u)return V(7);var T=(P={},P[s]=r,P[l]=o,P[i]=n,P)[H]||1,_=this.$d.getTime()+F*T;return M.w(_,this)},N.subtract=function(F,A){return this.add(-1*F,A)},N.format=function(F){var A=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var z=F||"YYYY-MM-DDTHH:mm:ssZ",H=M.z(this),V=this.$H,T=this.$m,_=this.$M,D=P.weekdays,B=P.months,L=P.meridiem,W=function(q,ee,G,X){return q&&(q[ee]||q(A,z))||G[ee].slice(0,X)},U=function(q){return M.s(V%12||12,q,"0")},J=L||function(q,ee,G){var X=q<12?"AM":"PM";return G?X.toLowerCase():X};return z.replace(b,(function(q,ee){return ee||(function(G){switch(G){case"YY":return String(A.$y).slice(-2);case"YYYY":return M.s(A.$y,4,"0");case"M":return _+1;case"MM":return M.s(_+1,2,"0");case"MMM":return W(P.monthsShort,_,B,3);case"MMMM":return W(B,_);case"D":return A.$D;case"DD":return M.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return W(P.weekdaysMin,A.$W,D,2);case"ddd":return W(P.weekdaysShort,A.$W,D,3);case"dddd":return D[A.$W];case"H":return String(V);case"HH":return M.s(V,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return J(V,T,!0);case"A":return J(V,T,!1);case"m":return String(T);case"mm":return M.s(T,2,"0");case"s":return String(A.$s);case"ss":return M.s(A.$s,2,"0");case"SSS":return M.s(A.$ms,3,"0");case"Z":return H}return null})(q)||H.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(F,A,P){var z,H=this,V=M.p(A),T=k(F),_=(T.utcOffset()-this.utcOffset())*r,D=this-T,B=function(){return M.m(H,T)};switch(V){case v:z=B()/12;break;case f:z=B();break;case p:z=B()/3;break;case u:z=(D-_)/6048e5;break;case c:z=(D-_)/864e5;break;case l:z=D/o;break;case s:z=D/r;break;case i:z=D/n;break;default:z=D}return P?z:M.a(z)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return E[this.$L]},N.locale=function(F,A){if(!F)return this.$L;var P=this.clone(),z=O(F,A,!0);return z&&(P.$L=z),P},N.clone=function(){return M.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},I})(),R=j.prototype;return k.prototype=R,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(I){R[I[1]]=function(N){return this.$g(N,I[0],I[1])}})),k.extend=function(I,N){return I.$i||(I(N,j,k),I.$i=!0),k},k.locale=O,k.isDayjs=$,k.unix=function(I){return k(1e3*I)},k.en=E[w],k.Ls=E,k.p={},k}))})(fl)),fl.exports}var TD=RD();const t0=Sp(TD);function DD({isActive:e,isNew:t,isDisabled:n,data:r,eventsEmit:o,styles:a={},assistantList:i=[]}){const[s,l]=ht(!1),c=(a==null?void 0:a.colors)||{},u=Gt(()=>{const m=r==null?void 0:r.configId;if(!m||!i||i.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const b=i.find(y=>String(y==null?void 0:y.id)===String(m));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"}},[i,r==null?void 0:r.configId]),f=[{key:"rename",icon:re(ZS,{size:12}),label:"\u91CD\u547D\u540D",onClick:m=>{m.domEvent.stopPropagation(),o&&o("conversations:rename_icon_clicked",r)}},{key:"delete",icon:re(eE,{size:12}),label:"\u5220\u9664",danger:!0,onClick:m=>{m.domEvent.stopPropagation(),o&&o("conversations:delete_icon_clicked",r)}}],p=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",g=m=>{const b=t0(),y=t0(m);return b.isSame(y,"day")?y.format("HH:mm"):y.format("MM-DD HH:mm")};return rt("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:p,color:v,border:`1px solid ${h}`,...a.item,opacity:n?.5:1},children:[rt("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[re("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"}),rt("div",{className:"flex items-center justify-between gap-2",children:[re("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&&re("span",{className:"text-xs flex-shrink-0",style:{color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:g(r.gmtModified)})]})]}),!n&&s&&!t&&re("div",{className:"absolute top-2 right-3",children:re(HS,{menu:{items:f},trigger:["click"],placement:"bottomRight",children:re(XS,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999"},onClick:m=>m.stopPropagation()})})})]})}function _D(e,t=[{label:"\u5F53\u5929",dayPeriod:1}]){const n=new Date,r={other:[]};return e.forEach(o=>{const a=new Date(o.gmtModified),i=Math.floor((+n-+a)/(1e3*60*60*24));let s=!1;for(const l of t)if(i<=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
426
-
427
- Copyright 2018 Fisssion LLC.
428
-
429
- Permission is hereby granted, free of charge, to any person obtaining a copy
430
- of this software and associated documentation files (the "Software"), to deal
431
- in the Software without restriction, including without limitation the rights
432
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
433
- copies of the Software, and to permit persons to whom the Software is
434
- furnished to do so, subject to the following conditions:
435
-
436
- The above copyright notice and this permission notice shall be included in
437
- all copies or substantial portions of the Software.
438
-
439
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
440
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
441
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
442
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
443
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
444
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
445
- THE SOFTWARE.
446
- */function xf(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(e.length===16)return e;if(e.length===6){var t=ci();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 ci(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function BD(e,t){for(var n=xf(e),r=xf(t),o=[],a=0;a<4;a++)for(var i=[n[a],n[a+4],n[a+8],n[a+12]],s=0;s<4;s++){var l=s*4,c=[r[l],r[l+1],r[l+2],r[l+3]],u=i[0]*c[0]+i[1]*c[1]+i[2]*c[2]+i[3]*c[3];o[a+l]=u}return o}function zD(e){if(typeof e=="string"){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t){var n=t[2].split(", ").map(parseFloat);return xf(n)}}return ci()}function HD(e){var t=ci();return t[0]=e,t}function LD(e){var t=ci();return t[5]=e,t}function VD(e){var t=ci();return t[12]=e,t}function WD(e){var t=ci();return t[13]=e,t}var pl=function(e){return typeof e=="number"},Gw=function(e){return typeof e=="function"},Kw=function(e){return Object.prototype.toString.call(e)==="[object Object]"},_a=function(e){return Array.prototype.slice.apply(e)},Qw=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 wo(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 wf,Cf=function(e,t,n){return e+(t-e)*n},Zw={__proto__:null,isNumber:pl,isFunction:Gw,isObject:Kw,toArray:_a,getDuplicateValsAsStrings:Qw,assign:wo,tweenProp:Cf},_m="data-flip-id",Bm="data-inverse-flip-id",zm="data-portal-key",qD="data-exit-container",qs={__proto__:null,DATA_FLIP_ID:_m,DATA_INVERSE_FLIP_ID:Bm,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:zm},Sf={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}},n0=function(e){return Kw(e)?e:Object.keys(Sf).indexOf(e)>-1?Sf[e]:{}};typeof window<"u"&&(wf=window.requestAnimationFrame);var UD=wf=wf||function(e){window.setTimeout(e,1e3/60)},YD=Date.now(),XD=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-YD};function Jw(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var GD=(function(){function e(){}return e.prototype.run=function(){var t=this;UD(function(){t.springSystem.loop(XD())})},e})(),Ru=function(){this.position=0,this.velocity=0},KD=0,hr=.001,QD=(function(){function e(n){this._id="s"+KD++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new Ru,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Ru,this._restSpeedThreshold=.001,this._tempState=new Ru,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 a=this.listeners[r].onSpringEndStateChange;a&&a(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 a=this.listeners[r];a.onSpringUpdate&&a.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 a=r;r>.064&&(a=.064),this._timeAccumulator+=a;for(var i,s,l,c,u,f,p=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,g=this._currentState.velocity,m=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=hr;)this._timeAccumulator-=hr,this._timeAccumulator<hr&&(this._previousState.position=h,this._previousState.velocity=g),s=p*(this._endValue-m)-v*g,c=p*(this._endValue-(m=h+(i=g)*hr*.5))-v*(b=g+s*hr*.5),f=p*(this._endValue-(m=h+(l=b)*hr*.5))-v*(b=g+c*hr*.5),m=h+(u=b)*hr,h+=1/6*(i+2*(l+u)+(b=g+f*hr))*hr,g+=1/6*(s+2*(c+f)+(p*(this._endValue-m)-v*b))*hr;this._tempState.position=m,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=g,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/hr),(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(a){n&&a.onSpringActivate&&!o._onActivateCalled&&(a.onSpringActivate(o),o._onActivateCalled=!0),a.onSpringUpdate&&a.onSpringUpdate(o),r&&a.onSpringAtRest&&a.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 a;n[o]=(a=n[o],function(){a.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return Jw(this.listeners,n),this},e})(),eC=(function(){function e(n){this.looper=n||new GD,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 QD(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){Jw(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(i){i.systemShouldAdvance()?i.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(i))});this._idleSpringIndices.length>0;){var a=this._idleSpringIndices.pop();a>=0&&this._activeSprings.splice(a,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var a=0,i=this.listeners.length;for(a=0;a<i;a++)(r=this.listeners[a]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),a=0;a<i;a++)(r=this.listeners[a]).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})(),ZD=new eC,tC=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,a=e.onSpringActivate,i=ZD.createSpring(t.stiffness,t.damping);i.setOvershootClampingEnabled(!!n);var s={onSpringActivate:a,onSpringAtRest:function(){i.destroy(),o()},onSpringUpdate:r({spring:i,onAnimationEnd:o})};return i.addListener(s),i},r0=function(e){var t=tC(e);return t.setEndValue(1),t},o0=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),a=e.map(function(i,s){var l=i.getOnUpdateFunc;return i.getOnUpdateFunc=function(c){var u=l(c);return function(f){var p=f.getCurrentValue();(p=p<.01?0:p>.99?1:p)>=o&&a[s+1]&&a[s+1](Math.max(Math.min(p*r,1),0)),u(f)}},i}).map(function(i){var s=tC(i);if(s)return s.setEndValue.bind(s)}).filter(Boolean);a[0]&&a[0](1)}},a0=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},i0=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function s0(e){return JSON.parse(e.dataset.flipConfig||"{}")}var nC=function(e,t){var n;return wo(e,((n={})[t[0]]=t[1],n))},rC=function(e,t){return _a(t?document.querySelectorAll("["+zm+'="'+t+'"]'):e.querySelectorAll("["+_m+"]"))},oC=function(e){return e.map(function(t){return[t,t.getBoundingClientRect()]})},JD=function(e){var t=e.cachedOrderedFlipIds,n=t===void 0?[]:t,r=e.inProgressAnimations,o=r===void 0?{}:r,a=e.flippedElementPositionsBeforeUpdate,i=a===void 0?{}:a,s=e.flipCallbacks,l=s===void 0?{}:s,c=e.containerEl,u=e.applyTransformOrigin,f=e.spring,p=e.debug,v=e.portalKey,h=e.staggerConfig,g=h===void 0?{}:h,m=e.decisionData,b=m===void 0?{}:m,y=e.handleEnterUpdateDelete,x=e.onComplete,C=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var w,E=oC(rC((w={element:c,portalKey:v}).element,w.portalKey)).map(function(P){var z=P[0],H=P[1],V=window.getComputedStyle(z);return[z.dataset.flipId,{element:z,rect:H,opacity:parseFloat(V.opacity),transform:V.transform}]}).reduce(nC,{}),S=(function(P){var z=P.containerEl,H=P.portalKey;return H?(function(V){return function(T){return _a(document.querySelectorAll("["+zm+'="'+V+'"]'+T))}})(H):z?(function(V){var T=Math.random().toFixed(5);return V.dataset.flipperId=T,function(_){return _a(V.querySelectorAll('[data-flipper-id="'+T+'"] '+_))}})(z):function(){return[]}})({containerEl:c,portalKey:v}),$=(function(P){return function(z){return P("["+_m+'="'+z+'"]')[0]}})(S),O=function(P){return i[P]&&E[P]},k=Object.keys(i).concat(Object.keys(E)).filter(function(P){return!O(P)}),M={flipCallbacks:l,getElement:$,flippedElementPositionsBeforeUpdate:i,flippedElementPositionsAfterUpdate:E,inProgressAnimations:o,decisionData:b},j=(function(P){var z,H=P.unflippedIds,V=P.flipCallbacks,T=P.getElement,_=P.flippedElementPositionsBeforeUpdate,D=P.flippedElementPositionsAfterUpdate,B=P.inProgressAnimations,L=P.decisionData,W=H.filter(function(X){return D[X]}).filter(function(X){return V[X]&&V[X].onAppear}),U=H.filter(function(X){return _[X]&&V[X]&&V[X].onExit}),J=new Promise(function(X){z=X}),q=[],ee=0,G=U.map(function(X,ie){var ae=_[X].domDataForExitAnimations,ne=ae.element,ce=ae.parent,de=ae.childPosition,ye=de.top,Ee=de.left,ge=de.width,Se=de.height;getComputedStyle(ce).position==="static"&&(ce.style.position="relative"),ne.style.transform="matrix(1, 0, 0, 1, 0, 0)",ne.style.position="absolute",ne.style.top=ye+"px",ne.style.left=Ee+"px",ne.style.height=Se+"px",ne.style.width=ge+"px";var oe=q.filter(function(je){return je[0]===ce})[0];oe||(oe=[ce,document.createDocumentFragment()],q.push(oe)),oe[1].appendChild(ne),ee+=1;var ve=function(){try{ce.removeChild(ne)}catch{}finally{(ee-=1)==0&&z()}};return B[X]={stop:ve},function(){return V[X].onExit(ne,ie,ve,L)}});return q.forEach(function(X){X[0].appendChild(X[1])}),G.length||z(),{hideEnteringElements:function(){W.forEach(function(X){var ie=T(X);ie&&(ie.style.opacity="0")})},animateEnteringElements:function(){W.forEach(function(X,ie){var ae=T(X);ae&&V[X].onAppear(ae,ie,L)})},animateExitingElements:function(){return G.forEach(function(X){return X()}),J}}})(wo({},M,{unflippedIds:k})),R=j.hideEnteringElements,I=j.animateEnteringElements,N=j.animateExitingElements,F=wo({},M,{containerEl:c,flippedIds:n.filter(O),applyTransformOrigin:u,spring:f,debug:p,staggerConfig:g,scopedSelector:S,onComplete:x});C&&C(c,b);var A=(function(P){var z,H=P.flippedIds,V=P.flipCallbacks,T=P.inProgressAnimations,_=P.flippedElementPositionsBeforeUpdate,D=P.flippedElementPositionsAfterUpdate,B=P.applyTransformOrigin,L=P.spring,W=P.getElement,U=P.debug,J=P.staggerConfig,q=J===void 0?{}:J,ee=P.decisionData,G=ee===void 0?{}:ee,X=P.onComplete,ie=P.containerEl,ae=new Promise(function(se){z=se});if(X&&ae.then(function(){return X(ie,G)}),!H.length)return function(){return z([]),ae};var ne=[],ce=W(H[0]),de=ce?ce.ownerDocument.querySelector("body"):document.querySelector("body");Qw(H);var ye=H.map(function(se){var He=_[se].rect,De=D[se].rect,qe=_[se].opacity,Ue=D[se].opacity,_e=De.width<1||De.height<1,Oe=D[se].element;if(!i0(He)&&!i0(De)||!Oe)return!1;var Ie,ke,Ne,Xe=s0(Oe),he=(Ne=(ke=(Ie={flipperSpring:L,flippedSpring:Xe.spring})===void 0?{}:Ie).flippedSpring,wo({},Sf.noWobble,n0(ke.flipperSpring),n0(Ne))),st=Xe.stagger===!0?"default":Xe.stagger,yt={element:Oe,id:se,stagger:st,springConfig:he};if(V[se]&&V[se].shouldFlip&&!V[se].shouldFlip(G.previous,G.current))return!1;var St=Math.abs(He.left-De.left)+Math.abs(He.top-De.top),Nt=Math.abs(He.width-De.width)+Math.abs(He.height-De.height),Ve=Math.abs(Ue-qe);if(He.height===0&&De.height===0||He.width===0&&De.width===0||St<.5&&Nt<.5&&Ve<.01)return!1;var Qe=zD(D[se].transform),Ge={matrix:Qe},ot={matrix:[]},nt=[Qe];Xe.translate&&(nt.push(VD(He.left-De.left)),nt.push(WD(He.top-De.top))),Xe.scale&&(nt.push(HD(Math.max(He.width,1)/Math.max(De.width,1))),nt.push(LD(Math.max(He.height,1)/Math.max(De.height,1)))),Xe.opacity&&(ot.opacity=qe,Ge.opacity=Ue);var $t=[];if(!V[se]||!V[se].shouldInvert||V[se].shouldInvert(G.previous,G.current)){var Ot=(function(xe,Ae){return _a(xe.querySelectorAll("["+Bm+'="'+Ae+'"]'))})(Oe,se);$t=Ot.map(function(xe){return[xe,s0(xe)]})}ot.matrix=a0(nt.reduce(BD)),Ge.matrix=a0(Ge.matrix);var et,lt=(function(xe){var Ae=xe.element,K=xe.invertedChildren,Y=xe.body;return function(ue){var be=ue.matrix,Me=ue.opacity,Be=ue.forceMinVals;if(pl(Me)&&(Ae.style.opacity=Me+""),Be&&(Ae.style.minHeight="1px",Ae.style.minWidth="1px"),be){var ut=(function(tt){return"matrix("+tt.join(", ")+")"})(be);Ae.style.transform=ut,K&&(function(tt){var at=tt.matrix,xt=tt.body;tt.invertedChildren.forEach(function(ze){var Et=ze[0],Ce=ze[1];if(xt.contains(Et)){var Ye=at[0],$e=at[3],We=at[5],Pe={translateX:0,translateY:0,scaleX:1,scaleY:1},ct="";Ce.translate&&(Pe.translateX=-at[4]/Ye,Pe.translateY=-We/$e,ct+="translate("+Pe.translateX+"px, "+Pe.translateY+"px)"),Ce.scale&&(Pe.scaleX=1/Ye,Pe.scaleY=1/$e,ct+=" scale("+Pe.scaleX+", "+Pe.scaleY+")"),Et.style.transform=ct}})})({invertedChildren:K,matrix:be,body:Y})}}})({element:Oe,invertedChildren:$t,body:de});if(V[se]&&V[se].onComplete){var bt=V[se].onComplete;et=function(){return bt(Oe,G)}}var Le=pl(ot.opacity)&&pl(Ge.opacity)&&ot.opacity!==Ge.opacity,Fe=!1;return wo({},yt,{stagger:st,springConfig:he,getOnUpdateFunc:function(xe){var Ae=xe.spring,K=xe.onAnimationEnd;return T[se]={destroy:Ae.destroy.bind(Ae),onAnimationEnd:K},function(Y){V[se]&&V[se].onSpringUpdate&&V[se].onSpringUpdate(Y.getCurrentValue()),Fe||(Fe=!0,V[se]&&V[se].onStart&&V[se].onStart(Oe,G));var ue=Y.getCurrentValue();if(de.contains(Oe)){var be={matrix:[]};be.matrix=ot.matrix.map(function(Me,Be){return Cf(Me,Ge.matrix[Be],ue)}),Le&&(be.opacity=Cf(ot.opacity,Ge.opacity,ue)),lt(be)}else Y.destroy()}},initializeFlip:function(){lt({matrix:ot.matrix,opacity:Le?ot.opacity:void 0,forceMinVals:_e}),V[se]&&V[se].onStartImmediate&&V[se].onStartImmediate(Oe,G),Xe.transformOrigin?Oe.style.transformOrigin=Xe.transformOrigin:B&&(Oe.style.transformOrigin="0 0"),$t.forEach(function(xe){var Ae=xe[0],K=xe[1];K.transformOrigin?Ae.style.transformOrigin=K.transformOrigin:B&&(Ae.style.transformOrigin="0 0")})},onAnimationEnd:function(xe){delete T[se],Gw(et)&&et(),Oe.style.transform="",$t.forEach(function(Ae){Ae[0].style.transform=""}),_e&&Oe&&(Oe.style.minHeight="",Oe.style.minWidth=""),xe||(ne.push(se),ne.length>=ye.length&&z(ne))},delayUntil:Xe.delayUntil})}).filter(Boolean);if(ye.forEach(function(se){return(0,se.initializeFlip)()}),U)return function(){};var Ee=ye.filter(function(se){return se.delayUntil&&(He=se.delayUntil,ye.filter(function(De){return De.id===He}).length);var He}),ge={},Se={},oe={};Ee.forEach(function(se){se.stagger?(oe[se.stagger]=!0,Se[se.delayUntil]?Se[se.delayUntil].push(se.stagger):Se[se.delayUntil]=[se.stagger]):ge[se.delayUntil]?ge[se.delayUntil].push(se):ge[se.delayUntil]=[se]});var ve=ye.filter(function(se){return se.stagger}).reduce(function(se,He){return se[He.stagger]?se[He.stagger].push(He):se[He.stagger]=[He],se},{}),je=ye.filter(function(se){return Ee.indexOf(se)===-1});return je.forEach(function(se){se.onSpringActivate=function(){ge[se.id]&&ge[se.id].forEach(r0),Se[se.id]&&Object.keys(Se[se.id].reduce(function(He,De){var qe;return wo(He,((qe={})[De]=!0,qe))},{})).forEach(function(He){o0(ve[He],q[He])})}}),function(){return ye.length||z([]),je.filter(function(se){return!se.stagger}).forEach(r0),Object.keys(ve).forEach(function(se){oe[se]||o0(ve[se],q[se])}),ae}})(F);y?y({hideEnteringElements:R,animateEnteringElements:I,animateExitingElements:N,animateFlippedElements:A}):(R(),N().then(I),A())}},e8=function(e){var t=e.element,n=e.flipCallbacks,r=n===void 0?{}:n,o=e.inProgressAnimations,a=o===void 0?{}:o,i=rC(t,e.portalKey),s=_a(t.querySelectorAll("["+Bm+"]")),l={},c=[],u={};i.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 g=v.closest("["+qD+"]");g&&(h=g)}var m=c.findIndex(function(b){return b[0]===h});m===-1&&(c.push([h,h.getBoundingClientRect()]),m=c.length-1),l[v.dataset.flipId]=c[m][1],u[v.dataset.flipId]=h});var f=oC(i),p=f.map(function(v){var h=v[0],g=v[1],m={};if(r&&r[h.dataset.flipId]&&r[h.dataset.flipId].onExit){var b=l[h.dataset.flipId];wo(m,{element:h,parent:u[h.dataset.flipId],childPosition:{top:g.top-b.top,left:g.left-b.left,width:g.width,height:g.height}})}return[h.dataset.flipId,{rect:g,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:m}]}).reduce(nC,{});return(function(v,h){Object.keys(v).forEach(function(g){v[g].destroy&&v[g].destroy(),v[g].onAnimationEnd&&v[g].onAnimationEnd(!0),delete v[g]}),h.forEach(function(g){g.style.transform="",g.style.opacity=""})})(a,i.concat(s)),{flippedElementPositions:p,cachedOrderedFlipIds:f.map(function(v){return v[0].dataset.flipId})}};new eC;function Vl(){return Vl=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},Vl.apply(this,arguments)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ef(e,t)}function aC(e,t){if(e==null)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var iC=Hr({}),sC=Hr("portal"),lC=(function(e){var t,n;function r(){for(var a,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return(a=e.call.apply(e,[this].concat(s))||this).inProgressAnimations={},a.flipCallbacks={},a.el=void 0,a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ef(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(a){return a.flipKey!==this.props.flipKey&&this.el?e8({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(a,i,s){this.props.flipKey!==a.flipKey&&this.el&&JD({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:a.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var a=this,i=this.props,s=i.portalKey,l=fe.createElement(iC.Provider,{value:this.flipCallbacks},fe.createElement(i.element,{className:i.className,ref:function(c){return a.el=c}},this.props.children));return s&&(l=fe.createElement(sC.Provider,{value:s},l)),l},r})(DS);lC.defaultProps={applyTransformOrigin:!0,element:"div"};var t8=["children","flipId","inverseFlipId","portalKey"],n8=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],l0=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,a=e.portalKey,i=aC(e,t8),s=n,l=(function(u){return typeof u=="function"})(s);if(!l)try{s=Nb.only(n)}catch{throw new Error("Each Flipped component must wrap a single child")}i.scale||i.translate||i.opacity||Zw.assign(i,{translate:!0,scale:!0,opacity:!0});var c=((t={})[qs.DATA_FLIP_CONFIG]=JSON.stringify(i),t);return r!==void 0?c[qs.DATA_FLIP_ID]=String(r):o&&(c[qs.DATA_INVERSE_FLIP_ID]=String(o)),a!==void 0&&(c[qs.DATA_PORTAL_KEY]=a),l?s(c):Pb(s,c)},cC=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,a=e.onAppear,i=e.onStart,s=e.onStartImmediate,l=e.onComplete,c=e.onExit,u=e.onSpringUpdate,f=aC(e,n8);return t?f.inverseFlipId?fe.createElement(l0,Vl({},f),t):fe.createElement(sC.Consumer,null,function(p){return fe.createElement(iC.Consumer,null,function(v){return Zw.isObject(v)&&n&&(v[n]={shouldFlip:r,shouldInvert:o,onAppear:a,onStart:i,onStartImmediate:s,onComplete:l,onExit:c,onSpringUpdate:u}),fe.createElement(l0,Vl({flipId:n},f,{portalKey:p}),t)})}):null};cC.displayName="Flipped";function r8(e){const{data:t,activedItem:n,onChange:r,onDelete:o,sortRules:a=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:i,assistantList:s,height:l=400,styles:c={}}=e,u=t.map(x=>x.sessionId+"-"+x.gmtModified).join(","),f=Gt(()=>{const x=a.length>0?a:[{label:"\u5F53\u5929",dayPeriod:1}],C=_D(t,x),w=x.every(S=>!C[S.label]||C[S.label].length===0),E=[];return x.forEach(S=>{C[S.label]&&C[S.label].length>0&&(E.push({type:"group",label:S.label}),C[S.label].forEach($=>E.push({type:"item",data:$})))}),C.other.length>0&&!w&&(E.push({type:"group",label:"\u5176\u4ED6"}),C.other.forEach(S=>E.push({type:"item",data:S}))),w&&C.other.length>0&&C.other.forEach(S=>E.push({type:"item",data:S})),E},[t,a,u]),p=56,v=14,h=x=>f[x].type==="group"?32:p+v,g=Ze(null),m=Gt(()=>f.findIndex(x=>{var C;return x.type==="item"&&((C=x.data)==null?void 0:C.sessionId)===n}),[f,n]),b=Gt(()=>f.findIndex(x=>x.type==="item"),[f]);if(vt(()=>{m>-1&&m===b&&g.current&&g.current.scrollToItem(m,"start")},[m,b,f.length]),vt(()=>{g.current&&g.current.resetAfterIndex(0,!0)},[u]),f.length===0)return re("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const y=(c==null?void 0:c.colors)||{};return re(lC,{flipKey:u,spring:{stiffness:180,damping:18},children:re(PD,{ref:g,height:l,width:"100%",itemCount:f.length,itemSize:h,itemKey:x=>{const C=f[x];return C.type==="item"?C.data.sessionId:`group-${C.label}`},style:{overflowX:"hidden"},children:({index:x,style:C})=>{const w=f[x];return w.type==="group"?re("div",{style:{...C,background:y.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:w.label}):re(cC,{flipId:w.data.sessionId,children:re("div",{style:C,className:"px-[12px] py-[2px]",children:re(DD,{isActive:n===w.data.sessionId,isDisabled:!1,isNew:w.data.isNew,data:w.data,eventsEmit:i,assistantList:s,styles:c})})},w.data.sessionId)}})})}const o8=({value:e,eventsEmit:t,setSearch:n,style:r,styles:o={}})=>{const a=o.colors||{},i=o.radius||"12px",s=a.border||"#e5e7eb",l=a.primary||"#2563eb",c=o.headerBg||a.sidebarBg||a.background||"#fff",[u,f]=fe.useState(!1);return rt("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...r,background:c,borderTopLeftRadius:i,borderTopRightRadius:i},children:[re("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:a.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:rt("div",{className:"flex items-center gap-2",children:[re(Rb,{size:18}),re("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),u?rt("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[re("input",{className:"flex-1 px-3 py-2 text-sm transition-all",placeholder:"\u641C\u7D22\u4F1A\u8BDD...",value:e,onChange:p=>n(p.target.value),onBlur:()=>f(!1),onKeyDown:p=>{p.key==="Enter"&&f(!1)},style:{minWidth:0,width:"100%",maxWidth:"100%",borderRadius:i,background:a.inputBg||"#f4f4f5",border:`1px solid ${s}`,color:a.text||"#222",outline:"none"}}),re("button",{className:"flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:a.text||"#222",flexShrink:0},onClick:()=>f(!1),title:"\u6536\u8D77\u641C\u7D22",children:re(Ep,{size:16})})]}):re("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:re(JS,{size:18})})]})};function a8(e){const{data:t,sortRules:n,activedItem:r,eventsEmit:o,assistantList:a,styles:i={}}=e,[s,l]=ht(""),c=Gt(()=>s?t.filter(x=>(x.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(s.toLowerCase())):t,[t,s]),u=Gt(()=>[...c].sort((x,C)=>new Date(C.gmtModified).getTime()-new Date(x.gmtModified).getTime()),[c]),f=Ze(null),[p,v]=ht(400);vt(()=>{function x(){f.current&&v(f.current.clientHeight)}return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const h=(i==null?void 0:i.colors)||{};i!=null&&i.radius;const g=(i==null?void 0:i.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",m=h.border||"#e5e7eb",b=h.sidebarBg||h.background||"#EAEEFF",y=h.text||"#222";return rt("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:b,color:y,boxShadow:g,border:`1px solid ${m}`,...i.container},children:[re(o8,{value:s,setSearch:l,eventsEmit:o,style:i.header,styles:i}),rt("div",{className:"flex-1 min-h-0 relative",ref:f,style:i.list,children:[re(r8,{eventsEmit:o,data:u,assistantList:a,activedItem:r,sortRules:n,height:p,styles:i}),re("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 $f(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 i8(e){if(Array.isArray(e))return $f(e)}function uC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hm(e,t){if(e){if(typeof e=="string")return $f(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)?$f(e,t):void 0}}function s8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
447
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kt(e){return i8(e)||uC(e)||Hm(e)||s8()}const l8=fe.createContext({});function dC(e){if(Array.isArray(e))return e}function c8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.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&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function fC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
448
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ct(e,t){return dC(e)||c8(e,t)||Hm(e,t)||fC()}function jt(e){"@babel/helpers - typeof";return jt=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},jt(e)}function u8(e,t){if(jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pC(e){var t=u8(e,"string");return jt(t)=="symbol"?t:t+""}function me(e,t,n){return(t=pC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c0(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 Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function es(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 co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function d8(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 u0="data-rc-order",d0="data-rc-priority",f8="rc-util-key",kf=new Map;function mC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):f8}function Rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function p8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lm(e){return Array.from((kf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!co())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=p8(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(u0,i),s&&a&&l.setAttribute(d0,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Rc(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Lm(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(u0)))return!1;var v=Number(p.getAttribute(d0)||0);return a>=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 hC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rc(t);return(t.styles||Lm(n)).find(function(r){return r.getAttribute(mC(t))===e})}function vC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hC(e,t);if(n){var r=Rc(t);r.removeChild(n)}}function m8(e,t){var n=kf.get(e);if(!n||!d8(document,n)){var r=gC("",t),o=r.parentNode;kf.set(e,o),e.removeChild(r)}}function Qo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rc(n),o=Lm(r),a=Te(Te({},n),{},{styles:o});m8(r,a);var i=hC(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=gC(e,a);return u.setAttribute(mC(a),t),u}function Jr(e,t){if(e==null)return{};var n,r,o=SD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bC(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 Of={},g8=function(t){};function h8(e,t){}function v8(e,t){}function b8(){Of={}}function yC(e,t,n){!t&&!Of[n]&&(e(!1,n),Of[n]=!0)}function ur(e,t){yC(h8,e,t)}function y8(e,t){yC(v8,e,t)}ur.preMessage=g8;ur.resetWarned=b8;ur.noteOnce=y8;function If(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(ur(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&jt(a)==="object"&&jt(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f0(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,pC(r.key),r)}}function Gn(e,t,n){return t&&f0(e.prototype,t),n&&f0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var x8="%";function Mf(e){return e.join(x8)}var w8=(function(){function e(t){Xn(this,e),me(this,"instanceId",void 0),me(this,"cache",new Map),me(this,"extracted",new Set),this.instanceId=t}return Gn(e,[{key:"get",value:function(n){return this.opGet(Mf(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Mf(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e})(),Ya="data-token-hash",Rr="data-css-hash",$o="__cssinjs_instance__";function C8(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Rr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[$o]=o[$o]||e,o[$o]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Rr,"]"))).forEach(function(o){var a=o.getAttribute(Rr);if(r[a]){if(o[$o]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new w8(e)}var bs=d.createContext({hashPriority:"low",cache:C8(),defaultCache:!0});function ui(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&&Ua(e,t)}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ts(e)}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vm=function(){return!!e})()}function S8(e,t){if(t&&(jt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tt(e)}function di(e){var t=Vm();return function(){var n,r=ts(e);if(t){var o=ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S8(this,n)}}function E8(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 Wm=(function(){function e(){Xn(this,e),me(this,"cache",void 0),me(this,"keys",void 0),me(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Gn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(c,u){var f=Ct(c,2),p=f[1];return o.internalGet(u)[1]<p?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Ct(a,1),s=i[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 a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!E8(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();me(Wm,"MAX_CACHE_SIZE",20);me(Wm,"MAX_CACHE_OFFSET",5);var p0=0,xC=(function(){function e(t){Xn(this,e),me(this,"derivatives",void 0),me(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=p0,t.length===0&&(t.length>0,void 0),p0+=1}return Gn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Tu=new Wm;function Ff(e){var t=Array.isArray(e)?e:[e];return Tu.has(t)||Tu.set(t,new xC(t)),Tu.get(t)}var $8=new WeakMap,Du={};function k8(e,t){for(var n=$8,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(Du)||n.set(Du,e()),n.get(Du)}var m0=new WeakMap;function Ti(e){var t=m0.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof xC?t+=r.id:r&&jt(r)==="object"?t+=Ti(r):t+=r}),t=es(t),m0.set(e,t)),t}function g0(e,t){return es("".concat(t,"_").concat(Ti(e)))}var Nf=co();function h0(e){return typeof e=="number"?"".concat(e,"px"):e}function Wl(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 a=Te(Te({},r),{},me(me({},Ya,t),Rr,n)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var ml=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()},O8=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 a=Ct(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},wC=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=Ct(i,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,v=ml(u,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(v,")")}}),[a,O8(o,n,{scope:r==null?void 0:r.scope})]},v0=co()?d.useLayoutEffect:d.useEffect,I8=function(t,n){var r=d.useRef(!0);v0(function(){return t(r.current)},n),v0(function(){return r.current=!1,function(){r.current=!0}},[])},M8=Te({},d),b0=M8.useInsertionEffect,F8=function(t,n,r){d.useMemo(t,r),I8(function(){return n(!0)},r)},N8=b0?function(e,t,n){return b0(function(){return e(),t()},n)}:F8,j8=Te({},d),P8=j8.useInsertionEffect,A8=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},R8=function(){return function(t){t()}},T8=typeof P8<"u"?A8:R8;function qm(e,t,n,r,o){var a=d.useContext(bs),i=a.cache,s=[e].concat(kt(t)),l=Mf(s),c=T8([l]),u=function(h){i.opUpdate(l,function(g){var m=g||[void 0,void 0],b=Ct(m,2),y=b[0],x=y===void 0?0:y,C=b[1],w=C,E=w||n(),S=[x,E];return h?h(S):S})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),p=f[1];return N8(function(){o==null||o(p)},function(v){return u(function(h){var g=Ct(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(l,function(h){var g=h||[],m=Ct(g,2),b=m[0],y=b===void 0?0:b,x=m[1],C=y-1;return C===0?(c(function(){(v||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),p}var D8={},_8="css",Lo=new Map;function B8(e){Lo.set(e,(Lo.get(e)||0)+1)}function z8(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[$o]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var H8=0;function L8(e,t){Lo.set(e,(Lo.get(e)||0)-1);var n=new Set;Lo.forEach(function(r,o){r<=0&&n.add(o)}),Lo.size-n.size>H8&&n.forEach(function(r){z8(r,t),Lo.delete(r)})}var V8=function(t,n,r,o){var a=r.getDerivativeToken(t),i=Te(Te({},a),n);return o&&(i=o(i)),i},CC="token";function W8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kt(bs),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?D8:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=k8(function(){return Object.assign.apply(Object,[{}].concat(kt(t)))},t),h=Ti(v),g=Ti(c),m=p?Ti(p):"",b=qm(CC,[s,e.id,h,g,m],function(){var y,x=f?f(v,c,e):V8(v,c,e,u),C=Te({},x),w="";if(p){var E=wC(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=Ct(E,2);x=S[0],w=S[1]}var $=g0(x,s);x._tokenKey=$,C._tokenKey=g0(C,s);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:$;x._themeKey=O,B8(O);var k="".concat(_8,"-").concat(es($));return x._hashId=k,[x,k,C,w,(p==null?void 0:p.key)||""]},function(y){L8(y[0]._themeKey,o)},function(y){var x=Ct(y,4),C=x[0],w=x[3];if(p&&w){var E=Qo(w,es("css-variables-".concat(C._themeKey)),{mark:Rr,prepend:"queue",attachTo:a,priority:-999});E[$o]=o,E.setAttribute(Ya,C._themeKey)}});return b}var q8=function(t,n,r){var o=Ct(t,5),a=o[2],i=o[3],s=o[4],l=r||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=Wl(i,s,u,p,c);return[f,u,v]},U8={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},SC="comm",EC="rule",$C="decl",Y8="@import",X8="@namespace",G8="@keyframes",K8="@layer",kC=Math.abs,Um=String.fromCharCode;function OC(e){return e.trim()}function gl(e,t,n){return e.replace(t,n)}function Q8(e,t,n){return e.indexOf(t,n)}function Ba(e,t){return e.charCodeAt(t)|0}function Xa(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function Z8(e){return e.length}function Us(e,t){return t.push(e),e}var Tc=1,Ga=1,IC=0,Er=0,Sn=0,fi="";function Ym(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Tc,column:Ga,length:i,return:"",siblings:s}}function J8(){return Sn}function e_(){return Sn=Er>0?Ba(fi,--Er):0,Ga--,Sn===10&&(Ga=1,Tc--),Sn}function Tr(){return Sn=Er<IC?Ba(fi,Er++):0,Ga++,Sn===10&&(Ga=1,Tc++),Sn}function ko(){return Ba(fi,Er)}function hl(){return Er}function Dc(e,t){return Xa(fi,e,t)}function ns(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 t_(e){return Tc=Ga=1,IC=Yr(fi=e),Er=0,[]}function n_(e){return fi="",e}function _u(e){return OC(Dc(Er-1,jf(e===91?e+2:e===40?e+1:e)))}function r_(e){for(;(Sn=ko())&&Sn<33;)Tr();return ns(e)>2||ns(Sn)>3?"":" "}function o_(e,t){for(;--t&&Tr()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return Dc(e,hl()+(t<6&&ko()==32&&Tr()==32))}function jf(e){for(;Tr();)switch(Sn){case e:return Er;case 34:case 39:e!==34&&e!==39&&jf(Sn);break;case 40:e===41&&jf(e);break;case 92:Tr();break}return Er}function a_(e,t){for(;Tr()&&e+Sn!==57;)if(e+Sn===84&&ko()===47)break;return"/*"+Dc(t,Er-1)+"*"+Um(e===47?e:Tr())}function i_(e){for(;!ns(ko());)Tr();return Dc(e,Er)}function s_(e){return n_(vl("",null,null,null,[""],e=t_(e),0,[0],e))}function vl(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,y=0,x="",C=o,w=a,E=r,S=x;m;)switch(h=y,y=Tr()){case 40:if(h!=108&&Ba(S,f-1)==58){Q8(S+=gl(_u(y),"&","&\f"),"&\f",kC(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:S+=_u(y);break;case 9:case 10:case 13:case 32:S+=r_(h);break;case 92:S+=o_(hl()-1,7);continue;case 47:switch(ko()){case 42:case 47:Us(l_(a_(Tr(),hl()),t,n,l),l),(ns(h||1)==5||ns(ko()||1)==5)&&Yr(S)&&Xa(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Yr(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(S=gl(S,/\f/g,"")),v>0&&(Yr(S)-f||g===0&&h===47)&&Us(v>32?x0(S+";",r,n,f-1,l):x0(gl(S," ","")+";",r,n,f-2,l),l);break;case 59:S+=";";default:if(Us(E=y0(S,t,n,c,u,o,s,x,C=[],w=[],f,a),a),y===123)if(u===0)vl(S,t,E,E,C,a,f,s,w);else{switch(p){case 99:if(Ba(S,3)===110)break;case 108:if(Ba(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vl(e,E,E,r&&Us(y0(e,E,E,0,0,o,s,x,o,C=[],f,w),w),o,w,f,s,r?C:w):vl(S,E,E,E,[""],w,0,s,w)}}c=u=v=0,g=b=1,x=S="",f=i;break;case 58:f=1+Yr(S),v=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&e_()==125)continue}switch(S+=Um(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Yr(S)-1)*b,b=1;break;case 64:ko()===45&&(S+=_u(Tr())),p=ko(),u=f=Yr(x=S+=i_(hl())),y++;break;case 45:h===45&&Yr(S)==2&&(g=0)}}return a}function y0(e,t,n,r,o,a,i,s,l,c,u,f){for(var p=o-1,v=o===0?a:[""],h=Z8(v),g=0,m=0,b=0;g<r;++g)for(var y=0,x=Xa(e,p+1,p=kC(m=i[g])),C=e;y<h;++y)(C=OC(m>0?v[y]+" "+x:gl(x,/&\f/g,v[y])))&&(l[b++]=C);return Ym(e,t,n,o===0?EC:s,l,c,u,f)}function l_(e,t,n,r){return Ym(e,t,n,SC,Um(J8()),Xa(e,2,-2),0,r)}function x0(e,t,n,r,o){return Ym(e,t,n,$C,Xa(e,0,r),Xa(e,r+1,-1),r,o)}function Pf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function c_(e,t,n,r){switch(e.type){case K8:if(e.children.length)break;case Y8:case X8:case $C:return e.return=e.return||e.value;case SC:return"";case G8:return e.return=e.value+"{"+Pf(e.children,r)+"}";case EC:if(!Yr(e.value=e.props.join(",")))return""}return Yr(n=Pf(e.children,r))?e.return=e.value+"{"+n+"}":""}var w0="data-ant-cssinjs-cache-path",MC="_FILE_STYLE__",Zo,FC=!0;function u_(){if(!Zo&&(Zo={},co())){var e=document.createElement("div");e.className=w0,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 a=o.split(":"),i=Ct(a,2),s=i[0],l=i[1];Zo[s]=l});var n=document.querySelector("style[".concat(w0,"]"));if(n){var r;FC=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function d_(e){return u_(),!!Zo[e]}function f_(e){var t=Zo[e],n=null;if(t&&co())if(FC)n=MC;else{var r=document.querySelector("style[".concat(Rr,'="').concat(Zo[e],'"]'));r?n=r.innerHTML:delete Zo[e]}return[n,t]}var p_="_skip_check_",NC="_multi_value_";function bl(e){var t=Pf(s_(e),c_);return t.replace(/\{%%%\:[^;];}/g,";")}function m_(e){return jt(e)==="object"&&e&&(p_ in e||NC in e)}function C0(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.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(kt(l.slice(1))).join(" ")});return a.join(",")}var g_=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,a=r.injectHash,i=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 p="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),C=Ct(x,1),w=C[0];v[y]="@keyframes ".concat(b.getName(s)).concat(w)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
449
- `);else if(y._keyframe)h(y);else{var x=f.reduce(function(C,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,C))||C},y);Object.keys(x).forEach(function(C){var w=x[C];if(jt(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!m_(w)){var E=!1,S=C.trim(),$=!1;(o||a)&&s?S.startsWith("@")?E=!0:S==="&"?S=C0("",s,c):S=C0(C,s,c):o&&!s&&(S==="&"||S==="")&&(S="",$=!0);var O=e(w,n,{root:$,injectHash:E,parentSelectors:[].concat(kt(i),[S])}),k=Ct(O,2),M=k[0],j=k[1];v=Te(Te({},v),j),p+="".concat(S).concat(M)}else{let N=function(F,A){var P=F.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),z=A;!U8[F]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),F==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(h(A),z=A.getName(s)),p+="".concat(P,":").concat(z,";")};var R,I=(R=w==null?void 0:w.value)!==null&&R!==void 0?R:w;jt(w)==="object"&&w!==null&&w!==void 0&&w[NC]&&Array.isArray(I)?I.forEach(function(F){N(C,F)}):N(C,I)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
450
- `))):p="{".concat(p,"}"),[p,v]};function jC(e,t){return es("".concat(e.join("%")).concat(t))}function h_(){return null}var PC="style";function Af(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(bs),f=u.autoClear;u.mock;var p=u.defaultCache,v=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,y=u.cache,x=u.layer,C=n._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,kt(r));var E=Nf,S=qm(PC,w,function(){var j=w.join("|");if(d_(j)){var R=f_(j),I=Ct(R,2),N=I[0],F=I[1];if(N)return[N,C,F,{},s,c]}var A=t(),P=g_(A,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:m,linters:b}),z=Ct(P,2),H=z[0],V=z[1],T=bl(H),_=jC(w,T);return[T,C,_,V,s,c]},function(j,R){var I=Ct(j,3),N=I[2];(R||f)&&Nf&&vC(N,{mark:Rr,attachTo:h})},function(j){var R=Ct(j,4),I=R[0];R[1];var N=R[2],F=R[3];if(E&&I!==MC){var A={mark:Rr,prepend:x?!1:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(A.csp={nonce:P});var z=[],H=[];Object.keys(F).forEach(function(T){T.startsWith("@layer")?z.push(T):H.push(T)}),z.forEach(function(T){Qo(bl(F[T]),"_layer-".concat(T),Te(Te({},A),{},{prepend:!0}))});var V=Qo(I,N,A);V[$o]=y.instanceId,V.setAttribute(Ya,C),H.forEach(function(T){Qo(bl(F[T]),"_effect-".concat(T),A)})}}),$=Ct(S,3),O=$[0],k=$[1],M=$[2];return function(j){var R;return!g||E||!p?R=d.createElement(h_,null):R=d.createElement("style",Tn({},me(me({},Ya,k),Rr,M),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,R,j)}}var v_=function(t,n,r){var o=Ct(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},p=f.plain;if(c)return null;var v=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return v=Wl(a,i,s,h,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var m=bl(l[g]),b=Wl(m,i,"_effect-".concat(g),h,p);g.startsWith("@layer")?v=b+v:v+=b}}),[u,s,v]},AC="cssVar",b_=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=Kt(bs),f=u.cache.instanceId,p=u.container,v=s._tokenKey,h=[].concat(kt(t.path),[r,c,v]),g=qm(AC,h,function(){var m=n(),b=wC(m,r,{prefix:o,unitless:a,ignore:i,scope:c}),y=Ct(b,2),x=y[0],C=y[1],w=jC(h,C);return[x,C,w,r]},function(m){var b=Ct(m,3),y=b[2];Nf&&vC(y,{mark:Rr,attachTo:p})},function(m){var b=Ct(m,3),y=b[1],x=b[2];if(y){var C=Qo(y,x,{mark:Rr,prepend:"queue",attachTo:p,priority:-999});C[$o]=f,C.setAttribute(Ya,r)}});return g},y_=function(t,n,r){var o=Ct(t,4),a=o[1],i=o[2],s=o[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Wl(a,s,i,f,c);return[u,i,p]};me(me(me({},PC,v_),CC,q8),AC,y_);var S0=(function(){function e(t,n){Xn(this,e),me(this,"name",void 0),me(this,"style",void 0),me(this,"_keyframe",!0),this.name=t,this.style=n}return Gn(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 Sa(e){return e.notSplit=!0,e}Sa(["borderTop","borderBottom"]),Sa(["borderTop"]),Sa(["borderBottom"]),Sa(["borderLeft","borderRight"]),Sa(["borderLeft"]),Sa(["borderRight"]);var Xm=Hr({});function x_(e){return dC(e)||uC(e)||Hm(e)||fC()}function Kr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function RC(e,t,n,r){if(!t.length)return n;var o=x_(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=kt(e):s=Te({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=RC(s[a],i,n,r),s}function Nr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Kr(e,t.slice(0,-1))?e:RC(e,t,n,r)}function w_(e){return jt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function E0(e){return Array.isArray(e)?[]:{}}var C_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Na(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=E0(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Kr(o,i),u=Array.isArray(c);if(u||w_(c)){if(!l.has(c)){l.add(c);var f=Kr(r,i);u?r=Nr(r,i,[]):(!f||jt(f)!=="object")&&(r=Nr(r,i,E0(c))),C_(c).forEach(function(p){a([].concat(kt(i),[p]),l)})}}else r=Nr(r,i,c)}a([])}),r}const S_=d.createContext({}),E_=Hr(void 0),ir="${label} is not a valid ${type}",_c={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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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({},_c.Modal);let yl=[];const $0=()=>yl.reduce((e,t)=>Object.assign(Object.assign({},e),t),_c.Modal);function $_(e){if(e){const t=Object.assign({},e);return yl.push(t),$0(),()=>{yl=yl.filter(n=>n!==t),$0()}}Object.assign({},_c.Modal)}const TC=Hr(void 0),k_="internalMark",O_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>$_(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(TC.Provider,{value:o},n)},DC={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"},rs=Object.assign(Object.assign({},DC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
451
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
452
- '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}),Pn=Math.round;function Bu(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 k0=(e,t,n)=>n===0?e:e/100;function Si(e,t){const n=t||255;return e>n?n:e<0?0:e}class yn{constructor(t){me(this,"isValid",!0),me(this,"r",0),me(this,"g",0),me(this,"b",0),me(this,"a",1),me(this,"_h",void 0),me(this,"_s",void 0),me(this,"_l",void 0),me(this,"_v",void 0),me(this,"_max",void 0),me(this,"_min",void 0),me(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(a){return r.startsWith(a)};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 yn)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=Si(t.r),this.g=Si(t.g),this.b=Si(t.b),this.a=typeof t.a=="number"?Si(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(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.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=Pn(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,a=s=>(r[s]-this[s])*o+this[s],i={r:Pn(a("r")),g:Pn(a("g")),b:Pn(a("b")),a:Pn(a("a")*100)/100};return this._c(i)}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=a=>Pn((this[a]*this.a+n[a]*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 a=Pn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Pn(this.getSaturation()*100),r=Pn(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]=Si(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,a){return parseInt(n[o]+n[a||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 p=Pn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=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?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Pn((a+f)*255),this.g=Pn((i+f)*255),this.b=Pn((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 a=Pn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=Pn(r*(1-n)*255),u=Pn(r*(1-n*l)*255),f=Pn(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=Bu(t,k0);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Bu(t,k0);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Bu(t,(r,o)=>o.includes("%")?Pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Ys=2,O0=.16,I_=.05,M_=.05,F_=.15,_C=5,BC=4,N_=[{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 I0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ys*t:Math.round(e.h)+Ys*t:r=n?Math.round(e.h)+Ys*t:Math.round(e.h)-Ys*t,r<0?r+=360:r>=360&&(r-=360),r}function M0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-O0*t:t===BC?r=e.s+O0:r=e.s+I_*t,r>1&&(r=1),n&&t===_C&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function F0(e,t,n){var r;return n?r=e.v+M_*t:r=e.v-F_*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function os(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new yn(e),o=r.toHsv(),a=_C;a>0;a-=1){var i=new yn({h:I0(o,a,!0),s:M0(o,a,!0),v:F0(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=BC;s+=1){var l=new yn({h:I0(o,s),s:M0(o,s),v:F0(o,s)});n.push(l)}return t.theme==="dark"?N_.map(function(c){var u=c.index,f=c.amount;return new yn(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var zu={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"},Rf=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Rf.primary=Rf[5];var Tf=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tf.primary=Tf[5];var Df=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Df.primary=Df[5];var _f=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_f.primary=_f[5];var Bf=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Bf.primary=Bf[5];var zf=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];zf.primary=zf[5];var Hf=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Hf.primary=Hf[5];var Lf=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Lf.primary=Lf[5];var ql=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ql.primary=ql[5];var Vf=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vf.primary=Vf[5];var Wf=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Wf.primary=Wf[5];var qf=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qf.primary=qf[5];var Uf=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Uf.primary=Uf[5];var Hu={red:Rf,volcano:Tf,orange:Df,gold:_f,yellow:Bf,lime:zf,green:Hf,cyan:Lf,blue:ql,geekblue:Vf,purple:Wf,magenta:qf,grey:Uf};function j_(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),p=t(o),v=t(a),h=t(i),g=n(l,c),m=e.colorLink||e.colorInfo,b=t(m),y=new yn(v[1]).mix(new yn(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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 yn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const P_=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 A_(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},P_(r))}const R_=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function T_(e){return(e+8)/e}function D_(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:T_(n)}))}const __=e=>{const t=D_(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,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*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function B_(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 vr=(e,t)=>new yn(e).setA(t).toRgbString(),Ei=(e,t)=>new yn(e).darken(t).toHexString(),z_=e=>{const t=os(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]}},H_=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:vr(r,.88),colorTextSecondary:vr(r,.65),colorTextTertiary:vr(r,.45),colorTextQuaternary:vr(r,.25),colorFill:vr(r,.15),colorFillSecondary:vr(r,.06),colorFillTertiary:vr(r,.04),colorFillQuaternary:vr(r,.02),colorBgSolid:vr(r,1),colorBgSolidHover:vr(r,.75),colorBgSolidActive:vr(r,.95),colorBgLayout:Ei(n,4),colorBgContainer:Ei(n,0),colorBgElevated:Ei(n,0),colorBgSpotlight:vr(r,.85),colorBgBlur:"transparent",colorBorder:Ei(n,15),colorBorderSecondary:Ei(n,6)}};function L_(e){zu.pink=zu.magenta,Hu.pink=Hu.magenta;const t=Object.keys(DC).map(n=>{const r=e[n]===zu[n]?Hu[n]:os(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),j_(e,{generateColorPalettes:z_,generateNeutralColorPalettes:H_})),__(e.fontSize)),B_(e)),R_(e)),A_(e))}const zC=Ff(L_),Yf={token:rs,override:{override:rs},hashed:!0},HC=fe.createContext(Yf),Xf="ant",Bc="anticon",V_=(e,t)=>t||(e?`${Xf}-${e}`:Xf),ao=d.createContext({getPrefixCls:V_,iconPrefixCls:Bc}),{Consumer:qL}=ao,W_=`-ant-${Date.now()}-${Math.random()}`;function q_(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new yn(i),c=os(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 i=new yn(t.primaryColor),s=os(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setA(c.a*.12));const l=new yn(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"),`
453
- :root {
454
- ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
455
- `)}
456
- }
457
- `.trim()}function U_(e,t){const n=q_(e,t);co()&&Qo(n,`${W_}-dynamic-theme`)}const Gf=d.createContext(!1),Y_=({children:e,disabled:t})=>{const n=d.useContext(Gf);return d.createElement(Gf.Provider,{value:t??n},e)},as=d.createContext(void 0),X_=({children:e,size:t})=>{const n=d.useContext(as);return d.createElement(as.Provider,{value:t||n},e)};function G_(){const e=Kt(Gf),t=Kt(as);return{componentDisabled:e,componentSize:t}}var LC=Gn(function e(){Xn(this,e)}),VC="CALC_UNIT",K_=new RegExp(VC,"g");function Lu(e){return typeof e=="number"?"".concat(e).concat(VC):e}var Q_=(function(e){ui(n,e);var t=di(n);function n(r,o){var a;Xn(this,n),a=t.call(this),me(Tt(a),"result",""),me(Tt(a),"unitlessCssVar",void 0),me(Tt(a),"lowPriority",void 0);var i=jt(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Lu(r):i==="string"&&(a.result=r),a}return Gn(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(Lu(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(Lu(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 a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(K_,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(LC),Z_=(function(e){ui(n,e);var t=di(n);function n(r){var o;return Xn(this,n),o=t.call(this),me(Tt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Gn(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})(LC),J_=function(t,n){var r=t==="css"?Q_:Z_;return function(o){return new r(o,n)}},N0=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 Ul(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Kf(e){var t=d.useRef(!1),n=d.useState(e),r=Ct(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}var Vu={exports:{}},Jt={};/**
458
- * @license React
459
- * react-is.production.min.js
460
- *
461
- * Copyright (c) Facebook, Inc. and its affiliates.
462
- *
463
- * This source code is licensed under the MIT license found in the
464
- * LICENSE file in the root directory of this source tree.
465
- */var j0;function eB(){if(j0)return Jt;j0=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"),a=Symbol.for("react.provider"),i=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"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case p:case f:case a:return m;default:return b}}case t:return b}}}return Jt.ContextConsumer=i,Jt.ContextProvider=a,Jt.Element=e,Jt.ForwardRef=l,Jt.Fragment=n,Jt.Lazy=p,Jt.Memo=f,Jt.Portal=t,Jt.Profiler=o,Jt.StrictMode=r,Jt.Suspense=c,Jt.SuspenseList=u,Jt.isAsyncMode=function(){return!1},Jt.isConcurrentMode=function(){return!1},Jt.isContextConsumer=function(m){return g(m)===i},Jt.isContextProvider=function(m){return g(m)===a},Jt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Jt.isForwardRef=function(m){return g(m)===l},Jt.isFragment=function(m){return g(m)===n},Jt.isLazy=function(m){return g(m)===p},Jt.isMemo=function(m){return g(m)===f},Jt.isPortal=function(m){return g(m)===t},Jt.isProfiler=function(m){return g(m)===o},Jt.isStrictMode=function(m){return g(m)===r},Jt.isSuspense=function(m){return g(m)===c},Jt.isSuspenseList=function(m){return g(m)===u},Jt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},Jt.typeOf=g,Jt}var P0;function tB(){return P0||(P0=1,Vu.exports=eB()),Vu.exports}var Wu=tB(),nB=Symbol.for("react.element"),rB=Symbol.for("react.transitional.element"),oB=Symbol.for("react.fragment");function WC(e){return e&&jt(e)==="object"&&(e.$$typeof===nB||e.$$typeof===rB)&&e.type===oB}var aB=Number(Fb.split(".")[0]),iB=function(t,n){typeof t=="function"?t(n):jt(t)==="object"&&t&&"current"in t&&(t.current=n)},sB=function(t){var n,r;if(!t)return!1;if(qC(t)&&aB>=19)return!0;var o=Wu.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Wu.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Wu.ForwardRef)};function qC(e){return yp(e)&&!WC(e)}var lB=function(t){if(t&&qC(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function A0(e,t,n,r){var o=Te({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=Ct(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 i=Te(Te({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var UC=typeof CSSINJS_STATISTIC<"u",Qf=!0;function Gm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!UC)return Object.assign.apply(Object,[{}].concat(t));Qf=!1;var r={};return t.forEach(function(o){if(jt(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Qf=!0,r}var R0={};function cB(){}var uB=function(t){var n,r=t,o=cB;return UC&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(Qf){var l;(l=n)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;R0[i]={global:Array.from(n),component:Te(Te({},(l=R0[i])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function T0(e,t,n){if(typeof n=="function"){var r;return n(Gm(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function dB(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(a){return h0(a)}).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(a){return h0(a)}).join(","),")")}}}var fB=1e3*60*10,pB=(function(){function e(){Xn(this,e),me(this,"map",new Map),me(this,"objectIDMap",new WeakMap),me(this,"nextID",0),me(this,"lastAccessBeat",new Map),me(this,"accessBeat",0)}return Gn(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(a){return a&&jt(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(jt(a),"_").concat(a)});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,a){r-o>fB&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),D0=new pB;function mB(e,t){return fe.useMemo(function(){var n=D0.get(t);if(n)return n;var r=e();return D0.set(t,r),r},t)}var gB=function(){return{}};function hB(e){var t=e.useCSP,n=t===void 0?gB:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b($){return"".concat(String(m)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(p):{},C=Te(Te({},x),{},me({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){C[b($)]=y[$]});var w=Te(Te({},g),{},{unitless:C,prefixToken:b}),E=u(p,v,h,w),S=c(m,h,w);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,k=E($,O),M=Ct(k,2),j=M[1],R=S(O),I=Ct(R,2),N=I[0],F=I[1];return[N,j,F]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,x=h.ignore,C=function(S){var $=S.rootCls,O=S.cssVar,k=O===void 0?{}:O,M=r(),j=M.realToken;return b_({path:[p],prefix:k.prefix,key:k.key,unitless:g,ignore:x,token:j,scope:$},function(){var R=T0(p,j,v),I=A0(p,j,R,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(R).forEach(function(N){I[y(N)]=I[N],delete I[N]}),I}),null},w=function(S){var $=r(),O=$.cssVar;return[function(k){return b&&O?fe.createElement(fe.Fragment,null,fe.createElement(C,{rootCls:S,cssVar:O,component:p}),k):k},O==null?void 0:O.key]};return w}function u(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=Ct(m,1),y=b[0],x=m.join("-"),C=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),$=S.theme,O=S.realToken,k=S.hashId,M=S.token,j=S.cssVar,R=o(),I=R.rootPrefixCls,N=R.iconPrefixCls,F=n(),A=j?"css":"js",P=mB(function(){var D=new Set;return j&&Object.keys(g.unitless||{}).forEach(function(B){D.add(ml(B,j.prefix)),D.add(ml(B,N0(y,j.prefix)))}),J_(A,D)},[A,y,j==null?void 0:j.prefix]),z=dB(A),H=z.max,V=z.min,T={theme:$,token:M,hashId:k,nonce:function(){return F.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&Af(Te(Te({},T),{},{clientOnly:!1,path:["Shared",I]}),function(){return a(M,{prefix:{rootPrefixCls:I,iconPrefixCls:N},csp:F})});var _=Af(Te(Te({},T),{},{path:[x,w,N]}),function(){if(g.injectStyle===!1)return[];var D=uB(M),B=D.token,L=D.flush,W=T0(y,O,h),U=".".concat(w),J=A0(y,O,W,{deprecatedTokens:g.deprecatedTokens});j&&W&&jt(W)==="object"&&Object.keys(W).forEach(function(X){W[X]="var(".concat(ml(X,N0(y,j.prefix)),")")});var q=Gm(B,{componentCls:U,prefixCls:w,iconCls:".".concat(N),antCls:".".concat(I),calc:P,max:H,min:V},j?W:J),ee=v(q,{hashId:k,prefixCls:w,rootPrefixCls:I,iconPrefixCls:N});L(y,J);var G=typeof i=="function"?i(q,w,E,g.resetFont):null;return[g.resetStyle===!1?null:G,ee]});return[_,k]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(p,v,h,Te({resetStyle:!1,order:-998},g)),b=function(x){var C=x.prefixCls,w=x.rootCls,E=w===void 0?C:w;return m(C,E),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const vB="5.27.6";function qu(e){return e>=0&&e<=255}function Xs(e,t){const{r:n,g:r,b:o,a}=new yn(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new yn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(qu(u)&&qu(f)&&qu(p))return new yn({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new yn({r:n,g:r,b:o,a:1}).toRgbString()}var bB=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 YC(e){const{override:t}=e,n=bB(e,["override"]),r=Object.assign({},t);Object.keys(rs).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),a=480,i=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:Xs(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:Xs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xs(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:Xs(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:`
466
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
467
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
468
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
469
- `,boxShadowSecondary:`
470
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
471
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
472
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
473
- `,boxShadowTertiary:`
474
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
475
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
476
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
477
- `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,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:`
478
- 0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()},
479
- 0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()},
480
- 0 5px 12px 4px ${new yn("rgba(0, 0, 0, 0.09)").toRgbString()}
481
- `,boxShadowDrawerRight:`
482
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
483
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
484
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
485
- `,boxShadowDrawerLeft:`
486
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
487
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
488
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
489
- `,boxShadowDrawerUp:`
490
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
491
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
492
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
493
- `,boxShadowDrawerDown:`
494
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
495
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
496
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
497
- `,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 _0=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 XC={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},yB={motionBase:!0,motionUnit:!0},xB={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},GC=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=_0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=YC(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=_0(l,["theme"]);let f=u;c&&(f=GC(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function zc(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(HC),a=`${vB}-${t||""}`,i=n||zC,[s,l,c]=W8(i,[rs,e],{salt:a,override:r,getComputedToken:GC,formatToken:YC,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:XC,ignore:yB,preserve:xB}});return[i,c,t?l:"",s,o]}const wB=(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}),CB=()=>({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"}}),SB=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"}}}),EB=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},KC=e=>({[`.${e}`]:Object.assign(Object.assign({},CB()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:$B}=hB({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Kt(ao);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=zc();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=Kt(ao);return e??{}},getResetStyles:(e,t)=>{var n;const r=SB(e);return[r,{"&":r},KC((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Bc)]},getCommonStyle:EB,getCompUnitless:()=>XC}),kB=(e,t)=>{const[n,r]=zc();return Af({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>KC(e))},OB=Object.assign({},d),{useId:B0}=OB,IB=()=>"",MB=typeof B0>"u"?IB:B0;function FB(e,t,n){var r;const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Yf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Yf.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=MB();return bC(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.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({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!If(c,f,!0)}))}var Uu={exports:{}};/*!
498
- Copyright (c) 2018 Jed Watson.
499
- Licensed under the MIT License (MIT), see
500
- http://jedwatson.github.io/classnames
501
- */var z0;function NB(){return z0||(z0=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Uu)),Uu.exports}var jB=NB();const Dr=Sp(jB);function H0(e){return e instanceof HTMLElement||e instanceof SVGElement}function QC(e){return e&&jt(e)==="object"&&H0(e.nativeElement)?e.nativeElement:H0(e)?e:null}function PB(e){var t=QC(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Sl.findDOMNode)===null||n===void 0?void 0:n.call(Sl,e)}return null}var AB=["children"],ZC=d.createContext({});function RB(e){var t=e.children,n=Jr(e,AB);return d.createElement(ZC.Provider,{value:n},t)}var TB=(function(e){ui(n,e);var t=di(n);function n(){return Xn(this,n),t.apply(this,arguments)}return Gn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function DB(e){var t=d.useReducer(function(s){return s+1},0),n=Ct(t,2),r=n[1],o=d.useRef(e),a=Ul(function(){return o.current}),i=Ul(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var yo="none",Gs="appear",Ks="enter",Qs="leave",L0="none",jr="prepare",ja="start",Pa="active",Km="end",JC="prepared";function V0(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 _B(e,t){var n={animationend:V0("Animation","AnimationEnd"),transitionend:V0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var BB=_B(co(),typeof window<"u"?window:{}),eS={};if(co()){var zB=document.createElement("div");eS=zB.style}var Zs={};function tS(e){if(Zs[e])return Zs[e];var t=BB[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in eS)return Zs[e]=t[a],Zs[e]}return""}var nS=tS("animationend"),rS=tS("transitionend"),oS=!!(nS&&rS),W0=nS||"animationend",q0=rS||"transitionend";function U0(e,t){if(!e)return null;if(jt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const HB=(function(e){var t=Ze();function n(o){o&&(o.removeEventListener(q0,e),o.removeEventListener(W0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(q0,e),o.addEventListener(W0,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var aS=co()?jb:vt,iS=function(t){return+setTimeout(t,16)},sS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(iS=function(t){return window.requestAnimationFrame(t)},sS=function(t){return window.cancelAnimationFrame(t)});var Y0=0,Qm=new Map;function lS(e){Qm.delete(e)}var Zf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Y0+=1;var r=Y0;function o(a){if(a===0)lS(r),t();else{var i=iS(function(){o(a-1)});Qm.set(r,i)}}return o(n),r};Zf.cancel=function(e){var t=Qm.get(e);return lS(e),sS(t)};const LB=(function(){var e=d.useRef(null);function t(){Zf.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Zf(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var VB=[jr,ja,Pa,Km],WB=[jr,JC],cS=!1,qB=!0;function uS(e){return e===Pa||e===Km}const UB=(function(e,t,n){var r=Kf(L0),o=Ct(r,2),a=o[0],i=o[1],s=LB(),l=Ct(s,2),c=l[0],u=l[1];function f(){i(jr,!0)}var p=t?WB:VB;return aS(function(){if(a!==L0&&a!==Km){var v=p.indexOf(a),h=p[v+1],g=n(a);g===cS?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function YB(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,$=r.onVisibleChanged,O=Kf(),k=Ct(O,2),M=k[0],j=k[1],R=DB(yo),I=Ct(R,2),N=I[0],F=I[1],A=Kf(null),P=Ct(A,2),z=P[0],H=P[1],V=N(),T=Ze(!1),_=Ze(null);function D(){return n()}var B=Ze(!1);function L(){F(yo),H(null,!0)}var W=Ul(function(ge){var Se=N();if(Se!==yo){var oe=D();if(!(ge&&!ge.deadline&&ge.target!==oe)){var ve=B.current,je;Se===Gs&&ve?je=w==null?void 0:w(oe,ge):Se===Ks&&ve?je=E==null?void 0:E(oe,ge):Se===Qs&&ve&&(je=S==null?void 0:S(oe,ge)),ve&&je!==!1&&L()}}}),U=HB(W),J=Ct(U,1),q=J[0],ee=function(Se){switch(Se){case Gs:return me(me(me({},jr,p),ja,g),Pa,y);case Ks:return me(me(me({},jr,v),ja,m),Pa,x);case Qs:return me(me(me({},jr,h),ja,b),Pa,C);default:return{}}},G=d.useMemo(function(){return ee(V)},[V]),X=UB(V,!e,function(ge){if(ge===jr){var Se=G[jr];return Se?Se(D()):cS}if(ne in G){var oe;H(((oe=G[ne])===null||oe===void 0?void 0:oe.call(G,D(),null))||null)}return ne===Pa&&V!==yo&&(q(D()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){W({deadline:!0})},u))),ne===JC&&L(),qB}),ie=Ct(X,2),ae=ie[0],ne=ie[1],ce=uS(ne);B.current=ce;var de=Ze(null);aS(function(){if(!(T.current&&de.current===t)){j(t);var ge=T.current;T.current=!0;var Se;!ge&&t&&s&&(Se=Gs),ge&&t&&a&&(Se=Ks),(ge&&!t&&c||!ge&&f&&!t&&c)&&(Se=Qs);var oe=ee(Se);Se&&(e||oe[jr])?(F(Se),ae()):F(yo),de.current=t}},[t]),vt(function(){(V===Gs&&!s||V===Ks&&!a||V===Qs&&!c)&&F(yo)},[s,a,c]),vt(function(){return function(){T.current=!1,clearTimeout(_.current)}},[]);var ye=d.useRef(!1);vt(function(){M&&(ye.current=!0),M!==void 0&&V===yo&&((ye.current||M)&&($==null||$(M)),ye.current=!0)},[M,V]);var Ee=z;return G[jr]&&ne===ja&&(Ee=Te({transition:"none"},Ee)),[V,ne,Ee,M??t]}function XB(e){var t=e;jt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=d.useContext(ZC),m=g.motion,b=n(o,m),y=Ze(),x=Ze();function C(){try{return y.current instanceof HTMLElement?y.current:PB(x.current)}catch{return null}}var w=YB(b,s,C,o),E=Ct(w,4),S=E[0],$=E[1],O=E[2],k=E[3],M=d.useRef(k);k&&(M.current=!0);var j=d.useCallback(function(P){y.current=P,iB(a,P)},[a]),R,I=Te(Te({},h),{},{visible:s});if(!f)R=null;else if(S===yo)k?R=f(Te({},I),j):!c&&M.current&&v?R=f(Te(Te({},I),{},{className:v}),j):u||!c&&!v?R=f(Te(Te({},I),{},{style:{display:"none"}}),j):R=null;else{var N;$===jr?N="prepare":uS($)?N="active":$===ja&&(N="start");var F=U0(p,"".concat(S,"-").concat(N));R=f(Te(Te({},I),{},{className:Dr(U0(p,S),me(me({},F,F&&N),p,typeof p=="string")),style:O}),j)}if(d.isValidElement(R)&&sB(R)){var A=lB(R);A||(R=d.cloneElement(R,{ref:j}))}return d.createElement(TB,{ref:x},R)});return r.displayName="CSSMotion",r}const GB=XB(oS);var Jf="add",ep="keep",tp="remove",Yu="removed";function KB(e){var t;return e&&jt(e)==="object"&&"key"in e?t=e:t={key:e},Te(Te({},t),{},{key:String(t.key)})}function np(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(KB)}function QB(){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,a=np(e),i=np(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return Te(Te({},v),{},{status:Jf})})),r=f),n.push(Te(Te({},p),{},{status:ep})),r+=1,u=!0;break}}u||n.push(Te(Te({},c),{},{status:tp}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Te(Te({},c),{},{status:Jf})})));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,p=u.status;return f!==c||p!==tp}),n.forEach(function(u){u.key===c&&(u.status=ep)})}),n}var ZB=["component","children","onVisibleChanged","onAllRemoved"],JB=["status"],ez=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:GB,n=(function(r){ui(a,r);var o=di(a);function a(){var i;Xn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),me(Tt(i),"state",{keyEntities:[]}),me(Tt(i),"removeKey",function(u){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==u?v:Te(Te({},v),{},{status:Yu})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==Yu}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Gn(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,p=c.onVisibleChanged;c.onAllRemoved;var v=Jr(c,ZB),h=u||d.Fragment,g={};return ez.forEach(function(m){g[m]=v[m],delete v[m]}),delete v.keys,d.createElement(h,v,l.map(function(m,b){var y=m.status,x=Jr(m,JB),C=y===Jf||y===ep;return d.createElement(t,Tn({},g,{key:x.key,visible:C,eventProps:x,onVisibleChanged:function(E){p==null||p(E,{key:x.key}),E||s.removeKey(x.key)}}),function(w,E){return f(Te(Te({},w),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=np(c),p=QB(u,f);return{keyEntities:p.filter(function(v){var h=u.find(function(g){var m=g.key;return v.key===m});return!(h&&h.status===Yu&&v.status===tp)})}}}]),a})(d.Component);return me(n,"defaultProps",{component:"div"}),n}const nz=tz(oS),X0=d.createContext(!0);function rz(e){const t=d.useContext(X0),{children:n}=e,[,r]=zc(),{motion:o}=r,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(X0.Provider,{value:o},d.createElement(RB,{motion:o},n)):n}const oz=()=>null;var az=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 iz=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Yl,dS,fS,pS;function xl(){return Yl||Xf}function sz(){return dS||Bc}function lz(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const cz=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Yl=t),n!==void 0&&(dS=n),"holderRender"in e&&(pS=o),r&&(lz(r)?U_(xl(),r):fS=r)},uz=()=>({getPrefixCls:(e,t)=>t||(e?`${xl()}-${e}`:xl()),getIconPrefixCls:sz,getRootPrefixCls:()=>Yl||xl(),getTheme:()=>fS,holderRender:pS}),dz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:M,typography:j,checkbox:R,descriptions:I,divider:N,drawer:F,skeleton:A,steps:P,image:z,layout:H,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:J,input:q,textArea:ee,empty:G,badge:X,radio:ie,rate:ae,switch:ne,transfer:ce,avatar:de,message:ye,tag:Ee,table:ge,card:Se,tabs:oe,timeline:ve,timePicker:je,upload:se,notification:He,tree:De,colorPicker:qe,datePicker:Ue,rangePicker:_e,flex:Oe,wave:Ie,dropdown:ke,warning:Ne,tour:Xe,tooltip:he,popover:st,popconfirm:yt,floatButton:St,floatButtonGroup:Nt,variant:Ve,inputNumber:Qe,treeSelect:Ge}=e,ot=d.useCallback((Y,ue)=>{const{prefixCls:be}=e;if(ue)return ue;const Me=be||b.getPrefixCls("");return Y?`${Me}-${Y}`:Me},[b.getPrefixCls,e.prefixCls]),nt=y||b.iconPrefixCls||Bc,$t=n||b.csp;kB(nt,$t);const Ot=FB(x,b.theme,{prefixCls:ot("")}),et={csp:$t,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||m,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:ot,iconPrefixCls:nt,theme:Ot,segmented:w,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:M,typography:j,checkbox:R,descriptions:I,divider:N,drawer:F,skeleton:A,steps:P,image:z,input:q,textArea:ee,layout:H,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:J,empty:G,badge:X,radio:ie,rate:ae,switch:ne,transfer:ce,avatar:de,message:ye,tag:Ee,table:ge,card:Se,tabs:oe,timeline:ve,timePicker:je,upload:se,notification:He,tree:De,colorPicker:qe,datePicker:Ue,rangePicker:_e,flex:Oe,wave:Ie,dropdown:ke,warning:Ne,tour:Xe,tooltip:he,popover:st,popconfirm:yt,floatButton:St,floatButtonGroup:Nt,variant:Ve,inputNumber:Qe,treeSelect:Ge},lt=Object.assign({},b);Object.keys(et).forEach(Y=>{et[Y]!==void 0&&(lt[Y]=et[Y])}),iz.forEach(Y=>{const ue=e[Y];ue&&(lt[Y]=ue)}),typeof r<"u"&&(lt.button=Object.assign({autoInsertSpace:r},lt.button));const bt=bC(()=>lt,lt,(Y,ue)=>{const be=Object.keys(Y),Me=Object.keys(ue);return be.length!==Me.length||be.some(Be=>Y[Be]!==ue[Be])}),{layer:Le}=d.useContext(bs),Fe=d.useMemo(()=>({prefixCls:nt,csp:$t,layer:Le?"antd":void 0}),[nt,$t,Le]);let xe=d.createElement(d.Fragment,null,d.createElement(oz,{dropdownMatchSelectWidth:v}),t);const Ae=d.useMemo(()=>{var Y,ue,be,Me;return Na(((Y=_c.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((be=(ue=bt.locale)===null||ue===void 0?void 0:ue.Form)===null||be===void 0?void 0:be.defaultValidateMessages)||{},((Me=bt.form)===null||Me===void 0?void 0:Me.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[bt,i==null?void 0:i.validateMessages]);Object.keys(Ae).length>0&&(xe=d.createElement(E_.Provider,{value:Ae},xe)),s&&(xe=d.createElement(O_,{locale:s,_ANT_MARK__:k_},xe)),xe=d.createElement(Xm.Provider,{value:Fe},xe),l&&(xe=d.createElement(X_,{size:l},xe)),xe=d.createElement(rz,null,xe);const K=d.useMemo(()=>{const Y=Ot||{},{algorithm:ue,token:be,components:Me,cssVar:Be}=Y,ut=az(Y,["algorithm","token","components","cssVar"]),tt=ue&&(!Array.isArray(ue)||ue.length>0)?Ff(ue):zC,at={};Object.entries(Me||{}).forEach(([ze,Et])=>{const Ce=Object.assign({},Et);"algorithm"in Ce&&(Ce.algorithm===!0?Ce.theme=tt:(Array.isArray(Ce.algorithm)||typeof Ce.algorithm=="function")&&(Ce.theme=Ff(Ce.algorithm)),delete Ce.algorithm),at[ze]=Ce});const xt=Object.assign(Object.assign({},rs),be);return Object.assign(Object.assign({},ut),{theme:tt,token:xt,components:at,override:Object.assign({override:xt},at),cssVar:Be})},[Ot]);return x&&(xe=d.createElement(HC.Provider,{value:K},xe)),bt.warning&&(xe=d.createElement(S_.Provider,{value:bt.warning},xe)),C!==void 0&&(xe=d.createElement(Y_,{disabled:C},xe)),d.createElement(ao.Provider,{value:bt},xe)},pi=e=>{const t=d.useContext(ao),n=d.useContext(TC);return d.createElement(dz,Object.assign({parentContext:t,legacyLocale:n},e))};pi.ConfigContext=ao;pi.SizeContext=as;pi.config=cz;pi.useConfig=G_;Object.defineProperty(pi,"SizeContext",{get:()=>as});function mS(e,t){this.v=e,this.k=t}function Hn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Hn=function(i,s,l,c){function u(f,p){Hn(i,f,function(v){return this._invoke(f,p,v)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(u("next",0),u("throw",1),u("return",2))},Hn(e,t,n,r)}function Zm(){/*! 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 a(v,h,g,m){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return Hn(y,"_invoke",(function(x,C,w){var E,S,$,O=0,k=w||[],M=!1,j={p:0,n:0,v:e,a:R,f:R.bind(e,4),d:function(N,F){return E=N,S=0,$=e,j.n=F,i}};function R(I,N){for(S=I,$=N,t=0;!M&&O&&!F&&t<k.length;t++){var F,A=k[t],P=j.p,z=A[2];I>3?(F=z===N)&&($=A[(S=A[4])?5:(S=3,3)],A[4]=A[5]=e):A[0]<=P&&((F=I<2&&P<A[1])?(S=0,j.v=N,j.n=A[1]):P<z&&(F=I<3||A[0]>N||N>z)&&(A[4]=I,A[5]=N,j.n=z,S=0))}if(F||I>1)return i;throw M=!0,N}return function(I,N,F){if(O>1)throw TypeError("Generator is already running");for(M&&N===1&&R(N,F),S=N,$=F;(t=S<2?e:$)||!M;){E||(S?S<3?(S>1&&(j.n=-1),R(S,$)):j.n=$:j.v=$);try{if(O=2,E){if(S||(I="next"),t=E[I]){if(!(t=t.call(E,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,S<2&&(S=0)}else S===1&&(t=E.return)&&t.call(E),S<2&&($=TypeError("The iterator does not provide a '"+I+"' method"),S=1);E=e}else if((t=(M=j.n<0)?$:x.call(C,j))!==i)break}catch(A){E=e,S=1,$=A}finally{O=1}}return{value:t,done:M}}})(v,g,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Hn(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,Hn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,Hn(f,"constructor",c),Hn(c,"constructor",l),l.displayName="GeneratorFunction",Hn(c,o,"GeneratorFunction"),Hn(f),Hn(f,o,"Generator"),Hn(f,r,function(){return this}),Hn(f,"toString",function(){return"[object Generator]"}),(Zm=function(){return{w:a,m:p}})()}function Xl(e,t){function n(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof mS?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(Hn(Xl.prototype),Hn(Xl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Hn(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){n(o,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function gS(e,t,n,r,o){return new Xl(Zm().w(e,t,n,r),o||Promise)}function fz(e,t,n,r,o){var a=gS(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function pz(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 G0(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(jt(e)+" is not iterable")}function qn(){var e=Zm(),t=e.m(qn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,p){return l(c.a,o[f],p)},delegateYield:function(f,p,v){return s.resultName=p,l(c.d,G0(f),v)},finish:function(f){return l(c.f,f)}},l=function(f,p,v){c.p=s.prev,c.n=s.next;try{return f(p,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 i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(qn=function(){return{wrap:function(l,c,u,f){return e.w(a(l),c,u,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new mS(l,c)},AsyncIterator:Xl,async:function(l,c,u,f,p){return(r(c)?gS:fz)(a(l),c,u,f,p)},keys:pz,values:G0}})()}function K0(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){K0(a,r,o,i,s,"next",l)}function s(l){K0(a,r,o,i,s,"throw",l)}i(void 0)})}}var ys=Te({},Ab),mz=ys.version,Xu=ys.render,gz=ys.unmountComponentAtNode,Hc;try{var hz=Number((mz||"").split(".")[0]);hz>=18&&(Hc=ys.createRoot)}catch{}function Q0(e){var t=ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&jt(t)==="object"&&(t.usingClientEntryPoint=e)}var Gl="__rc_react_root__";function vz(e,t){Q0(!0);var n=t[Gl]||Hc(t);Q0(!1),n.render(e),t[Gl]=n}function bz(e,t){Xu==null||Xu(e,t)}function yz(e,t){if(Hc){vz(e,t);return}bz(e,t)}function xz(e){return rp.apply(this,arguments)}function rp(){return rp=pa(qn().mark(function e(t){return qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Gl])===null||o===void 0||o.unmount(),delete t[Gl]}));case 1:case"end":return r.stop()}},e)})),rp.apply(this,arguments)}function wz(e){gz(e)}function Cz(e){return op.apply(this,arguments)}function op(){return op=pa(qn().mark(function e(t){return qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Hc===void 0){r.next=2;break}return r.abrupt("return",xz(t));case 2:wz(t);case 3:case"end":return r.stop()}},e)})),op.apply(this,arguments)}const Sz=(e,t)=>(yz(e,t),()=>Cz(t));let Ez=Sz;function $z(e){return Ez}var kz={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 hS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Oz(e){return hS(e)instanceof ShadowRoot}function Iz(e){return Oz(e)?hS(e):null}function Mz(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Fz(e,t){ur(e,"[@ant-design/icons] ".concat(t))}function Z0(e){return jt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(jt(e.icon)==="object"||typeof e.icon=="function")}function J0(){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[Mz(n)]=r}return t},{})}function ap(e,t,n){return n?fe.createElement(e.tag,Te(Te({key:t},J0(e.attrs)),n),(e.children||[]).map(function(r,o){return ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):fe.createElement(e.tag,Te({key:t},J0(e.attrs)),(e.children||[]).map(function(r,o){return ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function vS(e){return os(e)[0]}function bS(e){return e?Array.isArray(e)?e:[e]:[]}var Nz=`
502
- .anticon {
503
- display: inline-flex;
504
- align-items: center;
505
- color: inherit;
506
- font-style: normal;
507
- line-height: 0;
508
- text-align: center;
509
- text-transform: none;
510
- vertical-align: -0.125em;
511
- text-rendering: optimizeLegibility;
512
- -webkit-font-smoothing: antialiased;
513
- -moz-osx-font-smoothing: grayscale;
514
- }
515
-
516
- .anticon > * {
517
- line-height: 1;
518
- }
519
-
520
- .anticon svg {
521
- display: inline-block;
522
- }
523
-
524
- .anticon::before {
525
- display: none;
526
- }
527
-
528
- .anticon .anticon-icon {
529
- display: block;
530
- }
531
-
532
- .anticon[tabindex] {
533
- cursor: pointer;
534
- }
535
-
536
- .anticon-spin::before,
537
- .anticon-spin {
538
- display: inline-block;
539
- -webkit-animation: loadingCircle 1s infinite linear;
540
- animation: loadingCircle 1s infinite linear;
541
- }
542
-
543
- @-webkit-keyframes loadingCircle {
544
- 100% {
545
- -webkit-transform: rotate(360deg);
546
- transform: rotate(360deg);
547
- }
548
- }
549
-
550
- @keyframes loadingCircle {
551
- 100% {
552
- -webkit-transform: rotate(360deg);
553
- transform: rotate(360deg);
554
- }
555
- }
556
- `,jz=function(t){var n=Kt(Xm),r=n.csp,o=n.prefixCls,a=n.layer,i=Nz;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
557
- `).concat(i,`
558
- }`)),vt(function(){var s=t.current,l=Iz(s);Qo(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},Pz=["icon","className","onClick","style","primaryColor","secondaryColor"],Di={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Az(e){var t=e.primaryColor,n=e.secondaryColor;Di.primaryColor=t,Di.secondaryColor=n||vS(t),Di.calculated=!!n}function Rz(){return Te({},Di)}var mi=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Jr(t,Pz),c=d.useRef(),u=Di;if(i&&(u={primaryColor:i,secondaryColor:s||vS(i)}),jz(c),Fz(Z0(n),"icon should be icon definiton, but got ".concat(n)),!Z0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Te(Te({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),ap(f.icon,"svg-".concat(f.name),Te(Te({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};mi.displayName="IconReact";mi.getTwoToneColors=Rz;mi.setTwoToneColors=Az;function yS(e){var t=bS(e),n=Ct(t,2),r=n[0],o=n[1];return mi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Tz(){var e=mi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Dz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yS(ql.primary);var uo=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Jr(e,Dz),u=d.useContext(Xm),f=u.prefixCls,p=f===void 0?"anticon":f,v=u.rootClassName,h=Dr(v,p,me(me({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=bS(l),y=Ct(b,2),x=y[0],C=y[1];return d.createElement("span",Tn({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),d.createElement(mi,{icon:r,primaryColor:x,secondaryColor:C,style:m}))});uo.displayName="AntdIcon";uo.getTwoToneColor=Tz;uo.setTwoToneColor=yS;var _z=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:kz}))},Bz=d.forwardRef(_z),zz={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"},Hz=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:zz}))},Lz=d.forwardRef(Hz),Vz={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"},Wz=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:Vz}))},qz=d.forwardRef(Wz),Uz={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"},Yz=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:Uz}))},Xz=d.forwardRef(Yz),Gz={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"},Kz=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:Gz}))},Qz=d.forwardRef(Kz),Zz={ENTER:13},Jz=`accept acceptCharset accessKey action allowFullScreen allowTransparency
559
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
560
- charSet checked classID className colSpan cols content contentEditable contextMenu
561
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
562
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
563
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
564
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
565
- mediaGroup method min minLength multiple muted name noValidate nonce open
566
- optimum pattern placeholder poster preload radioGroup readOnly rel required
567
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
568
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
569
- summary tabIndex target title type useMap value width wmode wrap`,eH=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
570
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
571
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
572
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
573
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
574
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
575
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tH="".concat(Jz," ").concat(eH).split(/[\s\n]+/),nH="aria-",rH="data-";function eb(e,t){return e.indexOf(t)===0}function oH(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=Te({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||eb(o,nH))||n.data&&eb(o,rH)||n.attr&&tH.includes(o))&&(r[o]=e[o])}),r}var xS=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,C=d.useState(!1),w=Ct(C,2),E=w[0],S=w[1],$=d.useState(0),O=Ct($,2),k=O[0],M=O[1],j=d.useState(0),R=Ct(j,2),I=R[0],N=R[1],F=x||E,A=i>0&&s,P=function(){b(u)},z=function(B){(B.key==="Enter"||B.code==="Enter"||B.keyCode===Zz.ENTER)&&P()};d.useEffect(function(){if(!F&&i>0){var D=Date.now()-I,B=setTimeout(function(){P()},i*1e3-I);return function(){c&&clearTimeout(B),N(Date.now()-D)}}},[i,F,y]),d.useEffect(function(){if(!F&&A&&(c||I===0)){var D=performance.now(),B,L=function W(){cancelAnimationFrame(B),B=requestAnimationFrame(function(U){var J=U+I-D,q=Math.min(J/(i*1e3),1);M(q*100),q<1&&W()})};return L(),function(){c&&cancelAnimationFrame(B)}}},[i,I,F,A,y]);var H=d.useMemo(function(){return jt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),V=oH(H,!0),T=100-(!k||k<0?0:k>100?100:k),_="".concat(n,"-notice");return d.createElement("div",Tn({},g,{ref:t,className:Dr(_,o,me({},"".concat(_,"-closable"),p)),style:r,onMouseEnter:function(B){var L;S(!0),g==null||(L=g.onMouseEnter)===null||L===void 0||L.call(g,B)},onMouseLeave:function(B){var L;S(!1),g==null||(L=g.onMouseLeave)===null||L===void 0||L.call(g,B)},onClick:m}),d.createElement("div",{className:"".concat(_,"-content")},f),p&&d.createElement("a",Tn({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:z,"aria-label":"Close"},V,{onClick:function(B){B.preventDefault(),B.stopPropagation(),P()}}),H.closeIcon),A&&d.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:T},T+"%"))}),wS=fe.createContext({}),aH=function(t){var n=t.children,r=t.classNames;return fe.createElement(wS.Provider,{value:{classNames:r}},n)},tb=8,nb=3,rb=16,iH=function(t){var n={offset:tb,threshold:nb,gap:rb};if(t&&jt(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:tb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:nb,n.gap=(a=t.gap)!==null&&a!==void 0?a:rb}return[!!t,n]},sH=["className","style","classNames","styles"],lH=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=Kt(wS),p=f.classNames,v=Ze({}),h=ht(null),g=Ct(h,2),m=g[0],b=g[1],y=ht([]),x=Ct(y,2),C=x[0],w=x[1],E=n.map(function(F){return{config:F,key:String(F.key)}}),S=iH(u),$=Ct(S,2),O=$[0],k=$[1],M=k.offset,j=k.threshold,R=k.gap,I=O&&(C.length>0||E.length<=j),N=typeof s=="function"?s(r):s;return vt(function(){O&&C.length>1&&w(function(F){return F.filter(function(A){return E.some(function(P){var z=P.key;return A===z})})})},[C,E,O]),vt(function(){var F;if(O&&v.current[(F=E[E.length-1])===null||F===void 0?void 0:F.key]){var A;b(v.current[(A=E[E.length-1])===null||A===void 0?void 0:A.key])}},[E,O]),fe.createElement(nz,Tn({key:r,className:Dr(o,"".concat(o,"-").concat(r),p==null?void 0:p.list,a,me(me({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),I)),style:i,keys:E,motionAppear:!0},N,{onAllRemoved:function(){l(r)}}),function(F,A){var P=F.config,z=F.className,H=F.style,V=F.index,T=P,_=T.key,D=T.times,B=String(_),L=P,W=L.className,U=L.style,J=L.classNames,q=L.styles,ee=Jr(L,sH),G=E.findIndex(function(ve){return ve.key===B}),X={};if(O){var ie=E.length-1-(G>-1?G:V-1),ae=r==="top"||r==="bottom"?"-50%":"0";if(ie>0){var ne,ce,de;X.height=I?(ne=v.current[B])===null||ne===void 0?void 0:ne.offsetHeight:m==null?void 0:m.offsetHeight;for(var ye=0,Ee=0;Ee<ie;Ee++){var ge;ye+=((ge=v.current[E[E.length-1-Ee].key])===null||ge===void 0?void 0:ge.offsetHeight)+R}var Se=(I?ye:ie*M)*(r.startsWith("top")?1:-1),oe=!I&&m!==null&&m!==void 0&&m.offsetWidth&&(ce=v.current[B])!==null&&ce!==void 0&&ce.offsetWidth?((m==null?void 0:m.offsetWidth)-M*2*(ie<3?ie:3))/((de=v.current[B])===null||de===void 0?void 0:de.offsetWidth):1;X.transform="translate3d(".concat(ae,", ").concat(Se,"px, 0) scaleX(").concat(oe,")")}else X.transform="translate3d(".concat(ae,", 0, 0)")}return fe.createElement("div",{ref:A,className:Dr("".concat(o,"-notice-wrapper"),z,J==null?void 0:J.wrapper),style:Te(Te(Te({},H),X),q==null?void 0:q.wrapper),onMouseEnter:function(){return w(function(je){return je.includes(B)?je:[].concat(kt(je),[B])})},onMouseLeave:function(){return w(function(je){return je.filter(function(se){return se!==B})})}},fe.createElement(xS,Tn({},ee,{ref:function(je){G>-1?v.current[B]=je:delete v.current[B]},prefixCls:o,classNames:J,styles:q,className:Dr(W,p==null?void 0:p.notice),style:U,times:D,key:_,eventKey:_,onNoticeClose:c,hovering:O&&C.length>0})))})},cH=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),v=Ct(p,2),h=v[0],g=v[1],m=function(O){var k,M=h.find(function(j){return j.key===O});M==null||(k=M.onClose)===null||k===void 0||k.call(M),g(function(j){return j.filter(function(R){return R.key!==O})})};d.useImperativeHandle(t,function(){return{open:function(O){g(function(k){var M=kt(k),j=M.findIndex(function(N){return N.key===O.key}),R=Te({},O);if(j>=0){var I;R.times=(((I=k[j])===null||I===void 0?void 0:I.times)||0)+1,M[j]=R}else R.times=0,M.push(R);return i>0&&M.length>i&&(M=M.slice(-i)),M})},close:function(O){m(O)},destroy:function(){g([])}}});var b=d.useState({}),y=Ct(b,2),x=y[0],C=y[1];d.useEffect(function(){var $={};h.forEach(function(O){var k=O.placement,M=k===void 0?"topRight":k;M&&($[M]=$[M]||[],$[M].push(O))}),Object.keys(x).forEach(function(O){$[O]=$[O]||[]}),C($)},[h]);var w=function(O){C(function(k){var M=Te({},k),j=M[O]||[];return j.length||delete M[O],M})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[x]),!o)return null;var S=Object.keys(x);return wp(d.createElement(d.Fragment,null,S.map(function($){var O=x[$],k=d.createElement(lH,{key:$,configList:O,placement:$,prefixCls:r,className:s==null?void 0:s($),style:l==null?void 0:l($),motion:a,onNoticeClose:m,onAllNoticeRemoved:w,stack:u});return f?f(k,{prefixCls:r,key:$}):k})),o)}),uH=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],dH=function(){return document.body},ob=0;function fH(){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(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function pH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?dH:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Jr(e,uH),p=d.useState(),v=Ct(p,2),h=v[0],g=v[1],m=d.useRef(),b=d.createElement(cH,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=Ct(y,2),C=x[0],w=x[1],E=Ul(function($){var O=fH(f,$);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(ob),ob+=1),w(function(k){return[].concat(kt(k),[{type:"open",config:O}])})}),S=d.useMemo(function(){return{open:E,close:function(O){w(function(k){return[].concat(kt(k),[{type:"close",key:O}])})},destroy:function(){w(function(O){return[].concat(kt(O),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){if(m.current&&C.length){C.forEach(function(k){switch(k.type){case"open":m.current.open(k.config);break;case"close":m.current.close(k.key);break;case"destroy":m.current.destroy();break}});var $,O;w(function(k){return($!==k||!O)&&($=k,O=k.filter(function(M){return!C.includes(M)})),O})}},[C]),[S,b]}const CS=e=>{const[,,,,t]=zc();return t?`${e}-css-var`:""},mH=100,gH=10,hH=mH*gH,vH=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,x=new S0("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),C=new S0("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
576
- ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},wB(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
577
- ${t}-move-up-appear,
578
- ${t}-move-up-enter
579
- `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
580
- ${t}-move-up-appear${t}-move-up-appear-active,
581
- ${t}-move-up-enter${t}-move-up-enter-active
582
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,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({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},bH=e=>({zIndexPopup:e.zIndexPopupBase+hH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),SS=$B("Message",e=>{const t=Gm(e,{height:150});return vH(t)},bH);var yH=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 xH={info:d.createElement(Xz,null),success:d.createElement(Bz,null),error:d.createElement(Lz,null),warning:d.createElement(qz,null),loading:d.createElement(Qz,null)},ES=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:Dr(`${e}-custom-content`,`${e}-${t}`)},n||xH[t],d.createElement("span",null,r)),wH=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=yH(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(ao),l=t||s("message"),c=CS(l),[u,f,p]=SS(l,c);return u(d.createElement(xS,Object.assign({},i,{prefixCls:l,className:Dr(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(ES,{prefixCls:l,type:r,icon:o},a)})))};var CH={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"},SH=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:CH}))},EH=d.forwardRef(SH);function $H(e,t){return{motionName:t??`${e}-move-up`}}function Jm(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var kH=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 OH=8,IH=3,MH=({children:e,prefixCls:t})=>{const n=CS(t),[r,o,a]=SS(t,n);return r(d.createElement(aH,{classNames:{list:Dr(o,a,n)}},e))},FH=(e,{prefixCls:t,key:n})=>d.createElement(MH,{prefixCls:t,key:n},e),NH=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=IH,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:v}=d.useContext(ao),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??OH}),m=()=>Dr({[`${h}-rtl`]:s??v==="rtl"}),b=()=>$H(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(EH,{className:`${h}-close-icon`})),[x,C]=pH({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:FH});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),C});let ab=0;function $S(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 E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:v,icon:h,type:g,key:m,className:b,style:y,onClose:x}=l,C=kH(l,["content","icon","type","key","className","style","onClose"]);let w=m;return w==null&&(ab+=1,w=`antd-message-${ab}`),Jm(E=>(c(Object.assign(Object.assign({},C),{key:w,content:d.createElement(ES,{prefixCls:u,type:g,icon:h},v),placement:"top",className:Dr(g&&`${p}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{x==null||x(),E()}})),()=>{r(w)}))},i={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,p)=>{let v;u&&typeof u=="object"&&"content"in u?v=u:v={content:u};let h,g;typeof f=="function"?g=f:(h=f,g=p);const m=Object.assign(Object.assign({onClose:g,duration:h},v),{type:l});return o(m)};i[l]=c}),i},[]),d.createElement(NH,Object.assign({key:"message-holder"},e,{ref:t}))]}function jH(e){return $S(e)}let xr=null,Yo=e=>e(),is=[],ss={};function ib(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=ss,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const PH=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=Kt(ao),a=ss.prefixCls||o("message"),i=Kt(l8),[s,l]=$S(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.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}),AH=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(ib),o=()=>{r(ib)};fe.useEffect(o,[]);const a=uz(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(PH,{ref:t,sync:o,messageConfig:n});return fe.createElement(pi,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Lc=()=>{if(!xr){const e=document.createDocumentFragment(),t={fragment:e};xr=t,Yo(()=>{$z()(fe.createElement(AH,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,Lc())})}}),e)});return}xr.instance&&(is.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Yo(()=>{const r=xr.instance.open(Object.assign(Object.assign({},ss),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Yo(()=>{xr==null||xr.instance.destroy(e.key)});break;default:Yo(()=>{var r;const o=(r=xr.instance)[t].apply(r,kt(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),is=[])};function RH(e){ss=Object.assign(Object.assign({},ss),e),Yo(()=>{var t;(t=xr==null?void 0:xr.sync)===null||t===void 0||t.call(xr)})}function TH(e){const t=Jm(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return is.push(o),()=>{r?Yo(()=>{r()}):o.skipped=!0}});return Lc(),t}function DH(e,t){const n=Jm(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return is.push(a),()=>{o?Yo(()=>{o()}):a.skipped=!0}});return Lc(),n}const _H=e=>{is.push({type:"destroy",key:e}),Lc()},BH=["success","info","warning","error","loading"],zH={open:TH,destroy:_H,config:RH,useMessage:jH,_InternalPanelDoNotUseOrYouWillBeFired:wH},wl=zH;BH.forEach(e=>{wl[e]=(...t)=>DH(e,t)});var Cl={exports:{}};/*!
583
- * clipboard.js v2.0.11
584
- * https://clipboardjs.com/
585
- *
586
- * Licensed MIT © Zeno Rocha
587
- */var HH=Cl.exports,sb;function LH(){return sb||(sb=1,(function(e,t){(function(r,o){e.exports=o()})(HH,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return V}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),p=s(817),v=s.n(p);function h(T){try{return document.execCommand(T)}catch{return!1}}var g=function(_){var D=v()(_);return h("cut"),D},m=g;function b(T){var _=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[_?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(B,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(_,D){var B=b(_);D.container.appendChild(B);var L=v()(B);return h("copy"),B.remove(),L},x=function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},B="";return typeof _=="string"?B=y(_,D):_ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(_==null?void 0:_.type)?B=y(_.value,D):(B=v()(_),h("copy")),B},C=x;function w(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(D){return typeof D}:w=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},w(T)}var E=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=_.action,B=D===void 0?"copy":D,L=_.container,W=_.target,U=_.text;if(B!=="copy"&&B!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(W!==void 0)if(W&&w(W)==="object"&&W.nodeType===1){if(B==="copy"&&W.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(B==="cut"&&(W.hasAttribute("readonly")||W.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(U)return C(U,{container:L});if(W)return B==="cut"?m(W):C(W,{container:L})},S=E;function $(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(D){return typeof D}:$=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},$(T)}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function k(T,_){for(var D=0;D<_.length;D++){var B=_[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,B.key,B)}}function M(T,_,D){return _&&k(T.prototype,_),D&&k(T,D),T}function j(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),_&&R(T,_)}function R(T,_){return R=Object.setPrototypeOf||function(B,L){return B.__proto__=L,B},R(T,_)}function I(T){var _=A();return function(){var B=P(T),L;if(_){var W=P(this).constructor;L=Reflect.construct(B,arguments,W)}else L=B.apply(this,arguments);return N(this,L)}}function N(T,_){return _&&($(_)==="object"||typeof _=="function")?_:F(T)}function F(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function A(){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 P(T){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},P(T)}function z(T,_){var D="data-clipboard-".concat(T);if(_.hasAttribute(D))return _.getAttribute(D)}var H=(function(T){j(D,T);var _=I(D);function D(B,L){var W;return O(this,D),W=_.call(this),W.resolveOptions(L),W.listenClick(B),W}return M(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=$(L.container)==="object"?L.container:document.body}},{key:"listenClick",value:function(L){var W=this;this.listener=f()(L,"click",function(U){return W.onClick(U)})}},{key:"onClick",value:function(L){var W=L.delegateTarget||L.currentTarget,U=this.action(W)||"copy",J=S({action:U,container:this.container,target:this.target(W),text:this.text(W)});this.emit(J?"success":"error",{action:U,text:J,trigger:W,clearSelection:function(){W&&W.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(L){return z("action",L)}},{key:"defaultTarget",value:function(L){var W=z("target",L);if(W)return document.querySelector(W)}},{key:"defaultText",value:function(L){return z("text",L)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(L,W)}},{key:"cut",value:function(L){return m(L)}},{key:"isSupported",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],W=typeof L=="string"?[L]:L,U=!!document.queryCommandSupported;return W.forEach(function(J){U=U&&!!document.queryCommandSupported(J)}),U}}]),D})(c()),V=H}),828:(function(a){var i=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!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function u(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=l(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.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||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,g,m);if(l.nodeList(h))return p(h,g,m);if(l.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=u}),817:(function(a){function i(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}a.exports=i}),279:(function(a){function i(){}i.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 p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(Cl)),Cl.exports}var VH=LH();const WH=Sp(VH),qH=(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 WH(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{wl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{wl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),wl.error("\u590D\u5236\u5931\u8D25: "+o,2)}},lb=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 UH(e){const t=[];for(const n of e){if(n.query){const r=n.query.queryId||n.query.id||n.queryId||n.id||Jo(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||Jo(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 cb=async(e,t,n)=>{try{Un.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)}},Gu=async(e,t,n)=>{try{Un.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)}},YH=(e,t)=>{try{Un.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)}},XH=async(e,t,n)=>{try{Un.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):xn.error("\u7F16\u8F91\u540D\u5B57\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&xn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},GH=async(e,t,n)=>{try{Un.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)}},KH=async(e,t,n)=>{console.log("[DEBUG] handleCreateConversation \u8BF7\u6C42",{url:e.url,token:e.token,data:t});try{Un.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):xn.error(r.data.errorMsg||"\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&xn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},QH=async(e,t,n)=>{try{const{uid:r,queryId:o}=t;let a=`${e.url}/index/knowledgeBase/file/deleteByUid?uid=${r}`;o&&(a+=`&queryId=${o}`),Un.delete(a,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(i=>{i.data.success?n&&n(!0,i):n&&n(!1,i)}).catch(i=>{n&&n(!1,i)})}catch(r){n&&n(!1,r)}},ZH=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,JH="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==",e9=(e,t)=>{const n={...xp.colors,...e};return`
588
- .g-welcome-${t} .g-welcome-title {
589
- background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
590
- -webkit-background-clip: text;
591
- background-clip: text;
592
- color: transparent;
593
- -webkit-text-fill-color: transparent;
594
- }
595
- .g-welcome-${t} .g-welcome-subtitle {
596
- color: ${n.disabled};
597
- }
598
- .g-welcome-${t} .g-welcome-btn {
599
- background-color: #ffffff;
600
- border-color: ${n.border};
601
- color: ${n.text};
602
- height: 36px;
603
- border-width: 1px;
604
- box-shadow: 0 1px 2px rgba(31,35,41,0.04);
605
- }
606
- .g-welcome-${t} .g-welcome-btn:hover {
607
- border-color: ${n.primary};
608
- color: ${n.primary};
609
- background-color: #ffffff;
610
- box-shadow: 0 2px 6px rgba(31,35,41,0.08);
611
- }
612
- .g-welcome-${t} .g-welcome-btn.active {
613
- background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
614
- border-color: ${n.primary};
615
- box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
616
- }
617
- .g-welcome-${t} .g-welcome-btn .icon-badge {
618
- width: 24px;
619
- height: 24px;
620
- border-radius: 9999px;
621
- display: inline-flex;
622
- align-items: center;
623
- justify-content: center;
624
- background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
625
- box-shadow: inset 0 0 0 1px ${n.border};
626
- }
627
- .g-welcome-${t} .g-welcome-pagination-btn {
628
- color: ${n.primary};
629
- }
630
- .g-welcome-${t} .g-welcome-pagination-btn:disabled {
631
- color: ${n.disabled};
632
- cursor: not-allowed;
633
- }
634
- .g-welcome-${t} .g-welcome-pagination-text {
635
- color: ${n.text};
636
- }
637
- `};function t9({config:e,styles:t}){if(!e)return null;const n=JSON.parse(e.configJson),r=Gt(()=>{var o;return{...xp.colors,...(o=t==null?void 0:t.theme)==null?void 0:o.colors}},[t]);return rt("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[rt("div",{className:"flex items-center mb-2",children:[re("span",{className:"text-md font-bold truncate mr-2",style:{color:r.primary},children:n.config_name||"\u52A9\u624B\u914D\u7F6E"}),re("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${r.primary}1A`,color:r.disabled},children:n.model_name})]}),re("div",{className:"border-b my-2",style:{borderColor:r.border}}),rt("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:r.text},children:[rt("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",re("span",{className:"font-semibold",children:n.max_round})]}),rt("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",re("span",{className:"font-semibold",children:n.max_tokens})]}),rt("div",{children:["\u6E29\u5EA6\uFF1A",re("span",{className:"font-semibold",children:n.temperature})]}),rt("div",{children:["\u53EC\u56DE\u6570\uFF1A",re("span",{className:"font-semibold",children:n.top_k})]}),rt("div",{children:["\u591A\u6837\u6027\uFF1A",re("span",{className:"font-semibold",children:n.top_p})]}),rt("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",re("span",{className:"font-semibold",children:n.score_threshold})]})]}),rt("div",{className:"mb-2",children:[re("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),re("div",{className:"flex flex-wrap gap-1",children:n.knowledge_base_name?n.knowledge_base_name.split(";").map((o,a)=>re("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${r.primary}1A`,color:r.primary},children:o},a)):re("span",{className:"text-gray-300",style:{color:r.disabled},children:"\u65E0"})})]}),rt("div",{className:"mb-2",children:[re("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),rt("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!n.enabled_faq&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"FAQ"}),!!n.enabled_graph&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u56FE\u8C31"}),!!n.dependOnKb&&re("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&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u8868\u683C\u7B5B\u9009"}),!!n.enabled_rerank&&re("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&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u6EAF\u6E90"}),!!n.is_download&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function n9(e,t=[],n=60){const[r,o]=ht("");return vt(()=>{o("");let a=0;const i=setInterval(()=>{o(s=>a>=e.length?(clearInterval(i),s):(a++,e.slice(0,a)))},n);return()=>clearInterval(i)},[e,...t]),r}function r9(e){const{assistantList:t,eventsEmit:n,styles:r,selectedId:o,onSelectAssistant:a,productLogo:i}=e,[s,l]=ht(1),c=12,u=Ze();vt(()=>{o&&u.current!==o&&(n==null||n("conversation:new_assistant_change",{assistantId:o}),u.current=o)},[o,n]);const f=Gt(()=>Jo(),[]);vt(()=>{var y;if((y=r==null?void 0:r.theme)!=null&&y.colors){const x=document.createElement("style");return x.innerHTML=e9(r.theme.colors,f),x.id=`g-welcome-styles-${f}`,document.head.appendChild(x),()=>{const C=document.getElementById(x.id);C&&C.remove()}}},[r,f]);const p=Gt(()=>t.find(y=>y.id===o),[t,o]),v=Gt(()=>JSON.parse((p==null?void 0:p.configJson)||"{}"),[p]),h=Math.ceil(((t==null?void 0:t.length)||0)/c),g=(t==null?void 0:t.slice((s-1)*c,s*c))||[];vt(()=>{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 m=v.prologue||"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",b=n9(m,[o],30);return rt("div",{className:`flex flex-col items-center justify-center h-full w-full g-welcome-${f}`,children:[re("img",{src:i||ZH,alt:"logo",className:"mb-4",style:{width:100,height:100}}),re("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:b}),re("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&&re("div",{className:"flex mb-2 g-welcome-subtitle",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B"}),re("div",{className:"flex flex-wrap gap-3 px-5 justify-center mb-4",children:g&&g.length>0?g.map(y=>{const x=o===y.id;let C=y.icon;try{const w=JSON.parse(y.configJson||"{}");C=C||w.icon||w.avatar||w.logo}catch{}return C=C||JH,re(LS,{content:()=>re(t9,{config:t.find(w=>w.id===y.id),styles:r}),trigger:"hover",placement:"bottom",children:rt("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:()=>a==null?void 0:a(y.id),title:y.name,children:[re("span",{className:"icon-badge",children:re("img",{src:C,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),re("span",{className:"truncate max-w-[180px]",children:y.name})]})},y.id)}):re("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})}),h>1&&rt("div",{className:"flex items-center gap-3 text-sm",children:[re("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"}),rt("span",{className:"g-welcome-pagination-text",children:[s," / ",h]}),re("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 o9(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function a9(e){let t,n,r,o=!1;return function(i){t===void 0?(t=i,n=0,r=-1):t=s9(t,i);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 i9(e,t,n){let r=ub();const o=new TextDecoder;return function(i,s){if(i.length===0)n==null||n(r),r=ub();else if(s>0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+`
638
- `+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 s9(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ub(){return{data:"",event:"",id:"",retry:void 0}}var l9=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 ip="text/event-stream",c9=1e3,db="last-event-id";function u9(e,t){var{signal:n,headers:r,onopen:o,onmessage:a,onclose:i,onerror:s,openWhenHidden:l,fetch:c}=t,u=l9(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((f,p)=>{const v=Object.assign({},r);v.accept||(v.accept=ip);let h;function g(){h.abort(),document.hidden||w()}l||document.addEventListener("visibilitychange",g);let m=c9,b=0;function y(){document.removeEventListener("visibilitychange",g),window.clearTimeout(b),h.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const x=c??window.fetch,C=o??d9;async function w(){var E;h=new AbortController;try{const S=await x(e,Object.assign(Object.assign({},u),{headers:v,signal:h.signal}));await C(S),await o9(S.body,a9(i9($=>{$?v[db]=$:delete v[db]},$=>{m=$},a))),i==null||i(),y(),f()}catch(S){if(!h.signal.aborted)try{const $=(E=s==null?void 0:s(S))!==null&&E!==void 0?E:m;window.clearTimeout(b),b=window.setTimeout(w,$)}catch($){y(),p($)}}}w()})}function d9(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(ip)))throw new Error(`Expected content-type to be ${ip}, Actual: ${t}`)}class Ku extends Error{}let qr=null;const f9=({baseUrl:e,token:t,CSRFToken:n,setChatData:r,activeSessionId:o,setAppStatus:a,setConversationList:i})=>{const s=({content:h,status:g,respTime:m,filePaths:b,reference:y,webReference:x,graphReference:C,databaseReference:w,llmType:E,resultType:S,queryId:$,tokens:O})=>{r(k=>{var P;if(!k[0])return k;const M=k[0],j=M.messages||[],R=j.length-1;if(R<0)return k;const I=j[R];if(I.istype!=="ai")return k;let N=j.slice();if(b!=null&&b.length){const z=j.length-2;if(z>=0&&((P=j[z])==null?void 0:P.istype)==="user"){const H={...j[z],filePaths:b};N[z]=H}}const F={...I,content:(I.content||"")+h,status:g,respTime:m,filePaths:b,reference:y,webReference:x,graphReference:C??I.graphReference,databaseReference:w??I.databaseReference,resultType:S,llmType:E,tokens:O,queryId:$||I.queryId||Jo(32)};return F.clientSideId=F.clientSideId||F.queryId+"-ai",N[R]=F,[{...M,isNew:!1,messages:N},...k.slice(1)]})},l=h=>{if(h instanceof Ku)throw a(g=>({...g,display:"error",sender:"ready"})),qr&&(qr.abort(),qr=null),h};return{updateUserFilesMessage:({currentFiles:h})=>{r(g=>{if(!g[0])return g;const m=g[0],b=m.messages||[];if(!b.length)return g;const y=b.length-2;if(y<0||b[y].istype!=="user")return g;const C=b.slice();return C[y]={...b[y],currentFiles:h},[{...m,messages:C},...g.slice(1)]})},api_startChat_re:(h,g)=>{qr&&qr.abort(),qr=new AbortController;const m=`${e}/qa/ai/question_re`;console.log("data",h);const b={...h};u9(m,{method:"post",signal:qr.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 Ku("Internal Server Error");if(!y.ok)throw new Ku(`HTTP error: ${y.status}`)},onmessage:y=>{const x=JSON.parse(y.data);if(o!==x.sessionId)return;const{reply:C,resultType:w,respTime:E,reference:S,webReference:$,graphReference:O,filePaths:k,status:M,docs:j,llmType:R,databaseReference:I}=x,N=k?JSON.parse(k):[];if(M===2&&C&&C.content&&(C.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||C.content.includes("\u5931\u8D25")||C.content.includes("\u9519\u8BEF")||C.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&a(F=>({...F,display:"ready",sender:"ready"})),M===2){if(s({content:C.content||"",status:2,respTime:E,filePaths:N,reference:S||j||"",webReference:$||"",graphReference:O||null,databaseReference:I,llmType:R,resultType:w,queryId:x.queryId,tokens:x.tokens}),a(F=>({...F,display:"ready",sender:"ready"})),g){const F=E||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",F),g(F)}}else s({content:C.content||"",status:M,respTime:E,filePaths:N,reference:S||j||"",webReference:$||"",graphReference:O||null,databaseReference:I,llmType:R,resultType:w,queryId:x.queryId,tokens:x.tokens})},onerror:l})},addEmptyMessage:({queryId:h,content:g,filePaths:m,currentFiles:b})=>{r(y=>{const x=new Date().toISOString(),C=h||Jo(32),w={istype:"user",content:g,time:x,queryId:C,clientSideId:C+"-user",filePaths:m||"",currentFiles:b||[]},E={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:C,clientSideId:C+"-ai"},S=y.find($=>$.id===o);return S?S.messages.push(w,E):console.warn("addEmptyMessage called without an active session."),[...y]})},setLastEmptyMessage:({now:h})=>{r(g=>{if(!g[0])return g;const m=g[0],b=m.messages||[];if(!b.length)return g;const y=b.length-1;if(y<0)return g;const x=b[y];if(x.istype!=="ai")return g;const C=b.slice();return C[y]={...x,istype:"ai",content:"",time:h,streaming:!0,status:0},[{...m,messages:C},...g.slice(1)]})},stopStream:()=>{qr&&(qr.abort(),qr=null),a(h=>({...h,display:"ready",sender:"ready"}))}}},p9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:fb}=El,{useForm:m9}=xo,kS={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},g9=({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"}},[a]=m9(),[i,s]=ht({}),l=async()=>{try{const c=await a.validateFields();t(!1);const u={...c};Object.entries(i||{}).forEach(f=>{const[p,v]=f;v&&(u[kS[p]]=v)}),r(u)}catch(c){console.log(c);return}};return vt(()=>{e||(a.resetFields(),s(null))},[e]),re(Cp,{modal:{styles:o},children:rt(Ql,{open:e,onCancel:()=>t(!1),title:re("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:rt("div",{children:[re(_r,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),re(_r,{type:"primary",className:"w-[76px] border-none",onClick:l,children:"\u786E\u8BA4"})]}),children:[re(h9,{feedBackList:n,treeSelectResult:i,setTreeSelectResult:s}),rt(xo,{form:a,layout:"vertical",children:[re(xo.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:re(fb,{})})," ",re(xo.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:re(fb,{})}),re(xo.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:re(El,{})}),re(xo.Item,{name:"deptName",label:"\u90E8\u95E8",children:re(El,{})})]})]})})},h9=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,o]=ht(!1),[a,i]=ht([]),[s,l]=ht([]),[c,u]=ht([]),[f,p]=ht(null),v=Gt(()=>(l([]),f!=null&&f.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:f.items.map(g=>({title:g,key:g}))}]:[]),[f]),h=g=>{u(m=>Array.isArray(m)&&Array.isArray(s)?Object.entries(t).reduce((y,x)=>{const[C,w]=x,S=(w?w.split(";"):[]).filter($=>$!==g);return n($=>({...$||{},[C]:S.join(";")})),[...y,...S]},[]):m)};return vt(()=>{if(i(["\u5168\u9009"]),!t||!(f!=null&&f.que_name))return;const g=t[f.que_name]||"",m=g?g.split(";"):[];l(m)},[v,r]),vt(()=>{t===null&&(u([]),p(null),l([]))},[t]),vt(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",kS),console.log("selectedParent",f)},[t,c]),rt("div",{className:"relative mb-[24px] z-20",children:[rt("div",{className:"absolute w-full z-10",children:[rt("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:[re("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),re("img",{src:p9,width:24,height:24,className:"mr-[16px]"})]}),rt("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[rt("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[re("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((g,m)=>{var b;return rt("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(f==null?void 0:f.que_name)===g.que_name?"#E6F4FF":""},children:[re("div",{className:"h-full w-full leading-[32px]",onClick:()=>{p(g)},children:rt("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[g.que_name,"(",t&&t[g.que_name]?t[g.que_name].split(";").length:0,"/",(b=g==null?void 0:g.items)==null?void 0:b.length,")"]})}),re(_S,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},m)})}),re("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:re(VS,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:v,blockNode:!0,checkedKeys:s,expandedKeys:a,onCheck:g=>{Array.isArray(g)&&n(m=>({...m||{},[(f==null?void 0:f.que_name)||""]:(g||[]).filter(b=>b!=="\u5168\u9009").join(";")})),l(g)}})})]}),rt("div",{className:"flex justify-end h-[40px] items-center",children:[re(_r,{size:"small",className:"mr-[8px]",onClick:()=>o(!1),children:"\u53D6\u6D88"}),re(_r,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{u(g=>Array.isArray(g)&&Array.isArray(s)?Object.values(t).reduce((b,y)=>[...b,...y?y.split(";"):[]],[]):g),o(!1)},children:"\u786E\u8BA4"})]})]})]}),re("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&rt("div",{children:[rt("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(g=>{let m="";return Object.entries(t||{}).forEach(b=>{const[y,x]=b;x.indexOf(g)>-1&&(m=y)}),rt(WS,{closable:!0,className:"mt-[5px]",onClose:()=>h(g),children:[m,"\uFF08",g,"\uFF09"]},g)})]})]})},pb=e=>e?Array.isArray(e)?e.map(r=>"/minio/"+r.split("/").slice(3).join("/")):"/minio/"+e.split("/").slice(3).join("/"):"",mb="http://10.15.12.13:9000/",v9=e=>{if(typeof e=="string"){const t=e.split(".");return t.length?t[t.length-1]:""}else return""},b9=e=>{var w,E,S,$,O,k,M,j;const{file_type:t,file_name:n,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,onlyDownloadTypes:l,references:c,eventsEmit:u,styles:f,isUploadFile:p,type:v,collectionItems:h,pdfPages:g=0,fileManagerData:m}=e;if(v==="collection"&&Array.isArray(h)){const N=`calc(90% - ${.5}px)`,F=h.slice(0,4),A=h.length>4,P="\u6253\u5F00\u5408\u96C6",z=()=>{if(m&&t==="pdf"&&!e.pdfPages){const H=((m==null?void 0:m.uploadedFiles)||[]).find(V=>{var T;return((V==null?void 0:V.name)||((T=V==null?void 0:V.file)==null?void 0:T.name))===n});if(!(H!=null&&H.pdfPages)){xn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{...e,pdfPages:(H==null?void 0:H.pdfPages)||0})}else u==null||u("reference_file:click",e)};return rt("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:(E=(w=f==null?void 0:f.theme)==null?void 0:w.colors)==null?void 0:E.border},onClick:z,children:[re("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:F.map((H,V)=>{var D,B,L,W;if(A&&V===3)return re("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{width:N,height:N},children:re("span",{className:"text-xl text-gray-300 font-bold scale-75",children:"..."})},"ellipsis");if(H.file_type==="image"||H.file_type==="jpg"||H.file_type==="jpeg"||H.file_type==="png"||H.file_type==="gif"||H.file_type==="bmp"||H.file_type==="webp")return re("div",{className:"relative flex items-center justify-center bg-white rounded-lg border overflow-hidden",style:{width:N,height:N,borderColor:(B=(D=f==null?void 0:f.theme)==null?void 0:D.colors)==null?void 0:B.border},children:re("div",{className:"flex items-center justify-center w-full h-full scale-75",children:re("img",{src:String(H.url||H.file_path||""),alt:H.file_name||"",className:"object-contain max-w-full max-h-full"})})},H.file_name||V);const _=sp(String(H.file_type||""),f);return re("div",{className:"user-file flex flex-col items-center justify-center rounded-lg border bg-gray-50 p-1 text-sm",title:H.file_name,style:{width:N,height:N,borderColor:(W=(L=f==null?void 0:f.theme)==null?void 0:L.colors)==null?void 0:W.border},children:re("div",{className:"flex items-center justify-center w-full h-full scale-75",children:_})},H.file_name||V)})}),re("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:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{size:20,className:"mb-1 text-white"}),re("span",{className:"text-white text-center",style:{fontSize:12},children:P})]})})]})}const b=()=>{if(console.log(o,"parse_url",r,"url"),m&&t==="pdf"&&!g){const R=((m==null?void 0:m.uploadedFiles)||[]).find(I=>{var N;return((I==null?void 0:I.name)||((N=I==null?void 0:I.file)==null?void 0:N.name))===(n||"").replace(/\s+/g,"")});if(!(R!=null&&R.pdfPages)){xn.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:a,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:p,pdfPages:R.pdfPages||0})}else u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:p,pdfPages:g})},y=Gt(()=>(n||"").split(".").pop()||"",[n]),x=sp(y,f),C=async()=>{if(r){const R=pb(r.indexOf("http")>-1?r:`${mb}/${r}`);if(y.toLowerCase()==="json"){try{const F=await fetch(R);if(!F.ok)throw new Error("\u4E0B\u8F7D\u5931\u8D25");const A=await F.blob(),P=document.createElement("a");P.href=URL.createObjectURL(A),P.download=n||"",document.body.appendChild(P),P.click(),document.body.removeChild(P),setTimeout(()=>URL.revokeObjectURL(P.href),1e3)}catch{alert("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25")}return}const N=document.createElement("a");N.href=R,N.download=n||"",document.body.appendChild(N),N.click(),document.body.removeChild(N)}};return l&&l.includes(y.toLowerCase())?rt("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:C,style:{borderColor:($=(S=f==null?void 0:f.theme)==null?void 0:S.colors)==null?void 0:$.border},children:[x,re("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),re("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:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("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"?rt("div",{className:"relative group w-24 h-24 cursor-pointer flex items-center justify-center",onClick:()=>b(),children:[r?re("img",{src:String(pb(r&&r.indexOf("http")>-1?r:`${mb}/${r}`)||""),alt:n||"",className:"w-full h-full object-cover rounded-md border",style:{borderColor:(k=(O=f==null?void 0:f.theme)==null?void 0:O.colors)==null?void 0:k.border}}):re("div",{className:"w-full h-full flex items-center justify-center",children:re("span",{className:"animate-spin rounded-full border-2 border-gray-300 border-t-blue-500 w-8 h-8 inline-block"})}),re("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-md",children:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(GS,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",children:"\u67E5\u770B\u56FE\u7247"})]})})]},n):rt("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:(j=(M=f==null?void 0:f.theme)==null?void 0:M.colors)==null?void 0:j.border},children:[x,re("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),re("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:rt("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",style:{fontSize:10},children:"\u6253\u5F00\u6587\u4EF6"})]})})]},n)},y9=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",x9=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:p,style:v})=>rt("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:[re("div",{className:"pt-1",children:n}),rt("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[rt("div",{className:"flex items-center justify-between gap-1",children:[re("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),re("span",{className:"ml-1 text-[11px] text-gray-400",children:y9(t)})]}),rt("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,re("span",{children:r})]})]}),p,c&&!u&&re("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):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:re(Ep,{className:"w-3.5 h-3.5"})})]});function sp(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?re("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):re(un,{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?re("img",{src:n.image,alt:"image",style:{width:20,height:20}}):re(un,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?re("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):re(un,{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?re("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):re(un,{type:"rag/excel",size:18});case"pdf":return n.pdf?re("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):re(un,{type:"rag/pdf",size:18});case"txt":return n.txt?re("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):re(un,{type:"rag/txt",size:18});case"md":return n.md?re("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):re(un,{type:"rag/document",size:18});case"json":return n.json?re("img",{src:n.json,alt:"json",style:{width:20,height:20}}):re(un,{type:"rag/json",size:18});case"html":case"htm":return n.html?re("img",{src:n.html,alt:"html",style:{width:20,height:20}}):re(un,{type:"rag/url",size:18});case"xml":default:return re(un,{type:"rag/file",size:18})}}const w9=[{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 C9({open:e,onCancel:t,files:n=w9,currentFiles:r=[],onUpload:o,onRemoveFile:a,styles:i,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]=ht([]),f=(g,m)=>{s&&s("uploaded_file:removeFromTemp",{file:g,idx:m})},p=i&&i.theme&&i.theme.colors?i.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((g,m)=>rt("div",{className:"relative flex flex-col gap-2.5 items-center justify-center",children:[re("div",{className:"absolute right-1 top-1 z-10",children:re(qS,{title:"\u786E\u8BA4\u4ECE\u4E34\u65F6\u5BF9\u8BDD\u77E5\u8BC6\u5E93\u79FB\u9664\u8BE5\u6587\u4EF6\uFF1F",onConfirm:()=>f(g,m),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",children:re("button",{className:"bg-white cursor-pointer rounded-full p-0.5",style:{lineHeight:0,color:p&&p.text?p.text:"#FF0000",transition:"background 0.2s, color 0.2s"},onMouseOver:b=>{b.currentTarget.style.color=p&&p.error?p.error:"#FF0000"},onMouseOut:b=>{b.currentTarget.style.color=p.text},title:"\u79FB\u9664",children:re(Ep,{className:"w-3 h-3"})})})}),re(b9,{file_type:v9(g.file.name||g.name),file_name:g.name||g.file.name,url:g.url,retrieve_tags:[],styles:i,isUploadFile:!0,eventsEmit:s,parse_url:g.convertedFilePath,pdfPages:g.pdfPages||0})]},g.file.name+m)),h=r.map((g,m)=>{const b=g.file.name.split(".").pop()||"",y=sp(b,i);return re(x9,{cardId:`pending-file-card-${m}`,fileName:g.file.name,fileSize:g.file.size,icon:y,statusText:l[g.status||"pending"],statusColor:"text-gray-400",showRemove:!0,onRemove:()=>a&&a(g,m,"pending"),themeColors:p,style:{boxShadow:"none",height:55,background:"#f8fafc"}},g.file.name+m)});return c.length>0?(p&&p.error&&p.error,p&&p.error&&p.error+"",p&&p.error&&p.error):(p&&p.disabledText&&p.disabledText,p&&p.disabledBackground&&p.disabledBackground,p&&p.disabledText&&p.disabledText),rt(Ql,{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:[rt("div",{className:"file-manager-modal space-y-6 px-4 py-4",children:[rt("div",{className:"",children:[re("div",{className:"flex items-center mb-2 justify-between",children:rt("div",{className:"flex items-center",children:[re("span",{className:"text-xs font-semibold text-gray-700",children:"\u5DF2\u4E0A\u4F20\u6587\u4EF6"}),rt("span",{className:"ml-2 text-xs text-gray-400",children:[n.length," \u4E2A"]})]})}),re("div",{className:"w-full relative min-h-[200px] max-h-[260px] p-2 overflow-y-auto",style:{overflowX:"hidden"},children:re("div",{className:"flex flex-wrap gap-1",children:v.length>0?v:re("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"})})})]}),rt("div",{children:[rt("div",{className:"flex items-center mb-2",children:[re("span",{className:"text-xs font-semibold text-gray-700",children:"\u5F85\u4E0A\u4F20\u6587\u4EF6"}),rt("span",{className:"ml-2 text-xs text-gray-400",children:[r.length," \u4E2A"]})]}),rt("div",{className:"flex gap-2 overflow-x-auto pb-2",children:[h,re(US.Dragger,{multiple:!0,showUploadList:!1,beforeUpload:(g,m)=>(g===m[0]&&(o==null||o(m)),!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:rt("div",{className:"flex flex-row items-center pb-8 justify-center",children:[re(Rb,{size:20,className:"text-blue-400 mr-2"}),re("div",{className:"text-xs text-gray-500",children:"\u4E0A\u4F20\u6587\u4EF6"})]})})]})]}),re("div",{className:"flex justify-end gap-2",children:re(_r,{type:"primary",onClick:t,children:"\u786E\u8BA4"})})]}),re("style",{children:`
639
- .file-manager-modal .ant-upload-wrapper,
640
- .file-manager-modal .ant-upload-drag,
641
- .file-manager-modal .ant-upload-drag-container {
642
- min-height: 55px !important;
643
- height: 55px !important;
644
- padding: 0 !important;
645
- }
646
- `})]})}function S9(){const[e,t]=ht(0);return vt(()=>{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]),rt("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[rt("div",{className:"mb-8 flex flex-col items-center",children:[re("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),re("div",{className:"mt-2 text-sm text-[#555555]",children:"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),rt("div",{className:"relative w-80 max-w-sm",children:[re("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:re("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),rt("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),rt("div",{className:"mt-8 flex flex-col items-center gap-2",children:[re("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),re("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 OS=document.createElement("style");OS.textContent=`
647
- .animate-bounce-slow {
648
- animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
649
- }
650
- @keyframes bounce {
651
- 0%, 100% { transform: translateY(0); }
652
- 50% { transform: translateY(-12px); }
653
- }
654
- `;document.head.appendChild(OS);function E9(){return rt("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:1}})})]}),rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:3}})})]}),rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:1}})})]}),rt("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:2}})})]})]})}function $9({msg:e,subMsg:t}){return rt("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[re("div",{className:"mb-6 animate-bounce",children:re(QS,{size:64,className:"text-[#d70016]"})}),re("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:e||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),re("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"}),re(_r,{type:"primary",icon:re(Tb,{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 k9(){return rt("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[re("div",{className:"mb-6 animate-bounce",children:re(YS,{size:64,className:"text-[#d70016]"})}),re("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),re("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),re(_r,{type:"primary",icon:re(Tb,{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 O9=1e3,I9=3e3;function lp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(lp(r)):WC(r)&&r.props?n=n.concat(lp(r.props.children,t)):n.push(r))}),n}var Xo="RC_FORM_INTERNAL_HOOKS",tn=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ka=d.createContext({getFieldValue:tn,getFieldsValue:tn,getFieldError:tn,getFieldWarning:tn,getFieldsError:tn,isFieldsTouched:tn,isFieldTouched:tn,isFieldValidating:tn,isFieldsValidating:tn,resetFields:tn,setFields:tn,setFieldValue:tn,setFieldsValue:tn,validateFields:tn,submit:tn,getInternalHooks:function(){return tn(),{dispatch:tn,initEntityValue:tn,registerField:tn,useSubscribe:tn,setInitialValues:tn,destroyForm:tn,setCallbacks:tn,registerWatch:tn,getFields:tn,setValidateMessages:tn,setPreserve:tn,getInitialValue:tn}}}),Kl=d.createContext(null);function cp(e){return e==null?[]:Array.isArray(e)?e:[e]}function M9(e){return e&&!!e._init}function up(){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 dp=up();function F9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function N9(e,t,n){if(Vm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ua(o,n.prototype),o}function fp(e){var t=typeof Map=="function"?new Map:void 0;return fp=function(r){if(r===null||!F9(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 N9(r,arguments,ts(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ua(o,r)},fp(e)}var j9=/%[sdj%]/g,P9=function(){};function pp(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 cr(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(j9,function(s){if(s==="%%")return"%";if(o>=a)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 i}return e}function A9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||A9(t)&&typeof e=="string"&&!e)}function R9(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,kt(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function gb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function T9(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,kt(e[n]||[]))}),t}var hb=(function(e){ui(n,e);var t=di(n);function n(r,o){var a;return Xn(this,n),a=t.call(this,"Async Validation Error"),me(Tt(a),"errors",void 0),me(Tt(a),"fields",void 0),a.errors=r,a.fields=o,a}return Gn(n)})(fp(Error));function D9(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(b){return r(b),b.length?v(new hb(b,pp(b))):p(o)},g=T9(e);gb(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,v){var h=function(m){if(u.push.apply(u,m),c++,c===l)return r(u),u.length?v(new hb(u,pp(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?gb(m,n,h):R9(m,n,h)})});return f.catch(function(p){return p}),f}function _9(e){return!!(e&&e.message!==void 0)}function B9(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function vb(e,t){return function(n){var r;return e.fullFields?r=B9(t,e.fullFields):r=t[n.field||e.fullField],_9(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 bb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];jt(r)==="object"&&jt(e[n])==="object"?e[n]=Te(Te({},e[n]),r):e[n]=r}}return e}var Ea="enum",z9=function(t,n,r,o,a){t[Ea]=Array.isArray(t[Ea])?t[Ea]:[],t[Ea].indexOf(n)===-1&&o.push(cr(a.messages[Ea],t.fullField,t[Ea].join(", ")))},H9=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},L9=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,p=typeof n=="number",v=typeof n=="string",h=Array.isArray(n);if(p?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(u=n.length),v&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(cr(a.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(cr(a.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(cr(a.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(cr(a.messages[f].range,t.fullField,t.min,t.max))},IS=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Mn(n,i||t.type))&&o.push(cr(a.messages.required,t.fullField))},Js;const V9=(function(){if(Js)return Js;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(y).concat(x);return Js=new RegExp("(?:^".concat(C,"$)"),"i"),Js});var yb={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},Mi={integer:function(t){return Mi.number(t)&&parseInt(t,10)===t},float:function(t){return Mi.number(t)&&!Mi.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 jt(t)==="object"&&!Mi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(V9())},hex:function(t){return typeof t=="string"&&!!t.match(yb.hex)}},W9=function(t,n,r,o,a){if(t.required&&n===void 0){IS(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Mi[s](n)||o.push(cr(a.messages.types[s],t.fullField,t.type)):s&&jt(n)!==t.type&&o.push(cr(a.messages.types[s],t.fullField,t.type))},q9=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(cr(a.messages.whitespace,t.fullField))};const qt={required:IS,whitespace:q9,type:W9,range:L9,enum:z9,pattern:H9};var U9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a)}r(i)},Y9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();qt.required(t,n,o,i,a,"array"),n!=null&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},X9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt.type(t,n,o,i,a)}r(i)},G9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n,"date")&&!t.required)return r();if(qt.required(t,n,o,i,a),!Mn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),qt.type(t,l,o,i,a),l&&qt.range(t,l.getTime(),o,i,a)}}r(i)},K9="enum",Q9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt[K9](t,n,o,i,a)}r(i)},Z9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},J9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},eL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt.type(t,n,o,i,a)}r(i)},tL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},nL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt.type(t,n,o,i,a)}r(i)},rL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n,"string")&&!t.required)return r();qt.required(t,n,o,i,a),Mn(n,"string")||qt.pattern(t,n,o,i,a)}r(i)},oL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),Mn(n)||qt.type(t,n,o,i,a)}r(i)},aL=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":jt(n);qt.required(t,n,o,i,a,s),r(i)},iL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n,"string")&&!t.required)return r();qt.required(t,n,o,i,a,"string"),Mn(n,"string")||(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a),qt.pattern(t,n,o,i,a),t.whitespace===!0&&qt.whitespace(t,n,o,i,a))}r(i)},Qu=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Mn(n,i)&&!t.required)return r();qt.required(t,n,o,s,a,i),Mn(n,i)||qt.type(t,n,o,s,a)}r(s)};const _i={string:iL,method:eL,number:tL,boolean:X9,regexp:oL,integer:J9,float:Z9,array:Y9,object:nL,enum:Q9,pattern:rL,date:G9,url:Qu,hex:Qu,email:Qu,required:aL,any:U9};var xs=(function(){function e(t){Xn(this,e),me(this,"rules",null),me(this,"_messages",dp),this.define(t)}return Gn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(jt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=bb(up(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(h){var g=[],m={};function b(x){if(Array.isArray(x)){var C;g=(C=g).concat.apply(C,kt(x))}else g.push(x)}for(var y=0;y<h.length;y++)b(h[y]);g.length?(m=pp(g),l(g,m)):l(null,i)}if(s.messages){var u=this.messages();u===dp&&(u=up()),bb(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},p=s.keys||Object.keys(this.rules);p.forEach(function(h){var g=r.rules[h],m=i[h];g.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===n&&(i=Te({},i)),m=i[h]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":jt(m)))),typeof y=="function"?y={validator:y}:y=Te({},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:m,source:i,field:h}))})});var v={};return D9(f,s,function(h,g){var m=h.rule,b=(m.type==="object"||m.type==="array")&&(jt(m.fields)==="object"||jt(m.defaultField)==="object");b=b&&(m.required||!m.required&&h.value),m.field=h.field;function y(S,$){return Te(Te({},$),{},{fullField:"".concat(m.fullField,".").concat(S),fullFields:m.fullFields?[].concat(kt(m.fullFields),[S]):[S]})}function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(S)?S:[S];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&m.message!==void 0&&($=[].concat(m.message));var O=$.map(vb(m,i));if(s.first&&O.length)return v[m.field]=1,g(O);if(!b)g(O);else{if(m.required&&!h.value)return m.message!==void 0?O=[].concat(m.message).map(vb(m,i)):s.error&&(O=[s.error(m,cr(s.messages.required,m.field))]),g(O);var k={};m.defaultField&&Object.keys(h.value).map(function(R){k[R]=m.defaultField}),k=Te(Te({},k),h.rule.fields);var M={};Object.keys(k).forEach(function(R){var I=k[R],N=Array.isArray(I)?I:[I];M[R]=N.map(y.bind(null,R))});var j=new e(M);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(R){var I=[];O&&O.length&&I.push.apply(I,kt(O)),R&&R.length&&I.push.apply(I,kt(R)),g(I.length?I:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,h.value,x,h.source,s);else if(m.validator){try{C=m.validator(m,h.value,x,h.source,s)}catch(S){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,S),s.suppressValidatorError||setTimeout(function(){throw S},0),x(S.message)}C===!0?x():C===!1?x(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(S){return x(S)})},function(h){c(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!_i.hasOwnProperty(n.type))throw new Error(cr("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"?_i.required:_i[this.getType(n)]||void 0}}]),e})();me(xs,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");_i[t]=n});me(xs,"warning",P9);me(xs,"messages",dp);me(xs,"validators",_i);var sr="'${name}' is not a valid ${type}",MS={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:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},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}"}},xb=xs;function sL(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 wb="CODE_LOGIC_ERROR";function mp(e,t,n,r,o){return gp.apply(this,arguments)}function gp(){return gp=pa(qn().mark(function e(t,n,r,o,a){var i,s,l,c,u,f,p,v,h;return qn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=Te({},r),delete i.ruleIndex,xb.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(wb)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new xb(me({},t,[i])),u=Na(MS,o.validateMessages),c.messages(u),f=[],m.prev=10,m.next=13,Promise.resolve(c.validate(me({},t,n),Te({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(b,y){var x=b.message,C=x===wb?u.default:x;return d.isValidElement(C)?d.cloneElement(C,{key:"error_".concat(y)}):C}));case 18:if(!(!f.length&&l)){m.next=23;break}return m.next=21,Promise.all(n.map(function(b,y){return mp("".concat(t,".").concat(y),b,l,o,a)}));case 21:return p=m.sent,m.abrupt("return",p.reduce(function(b,y){return[].concat(kt(b),kt(y))},[]));case 23:return v=Te(Te({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(b){return typeof b=="string"?sL(b,v):b}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),gp.apply(this,arguments)}function lL(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,f){var p=u.validator,v=Te(Te({},u),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,y=function(){for(var w=arguments.length,E=new Array(w),S=0;S<w;S++)E[S]=arguments[S];Promise.resolve().then(function(){ur(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,E)})},x=p(h,g,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",ur(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){m()}).catch(function(C){m(C||" ")})}),v}).sort(function(u,f){var p=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),l;if(o===!0)l=new Promise((function(){var u=pa(qn().mark(function f(p,v){var h,g,m;return qn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return g=s[h],y.next=5,mp(i,t,g,r,a);case 5:if(m=y.sent,!m.length){y.next=9;break}return v([{errors:m,rule:g}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:p([]);case 13:case"end":return y.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return mp(i,t,u,r,a).then(function(f){return{errors:f,rule:u}})});l=(o?uL(c):cL(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function cL(e){return hp.apply(this,arguments)}function hp(){return hp=pa(qn().mark(function e(t){return qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,kt(o));return i}));case 1:case"end":return r.stop()}},e)})),hp.apply(this,arguments)}function uL(e){return vp.apply(this,arguments)}function vp(){return vp=pa(qn().mark(function e(t){var n;return qn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),vp.apply(this,arguments)}function bn(e){return cp(e)}function Cb(e,t){var n={};return t.forEach(function(r){var o=Kr(e,r);n=Nr(n,r,o)}),n}function za(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return FS(t,r,n)})}function FS(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 dL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||jt(e)!=="object"||jt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return kt(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function fL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&jt(t.target)==="object"&&e in t.target?t.target[e]:t}function Sb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(kt(e.slice(0,n)),[o],kt(e.slice(n,t)),kt(e.slice(t+1,r))):a<0?[].concat(kt(e.slice(0,t)),kt(e.slice(t+1,n+1)),[o],kt(e.slice(n+1,r))):e}var pL=["name"],br=[];function Zu(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var eg=(function(e){ui(n,e);var t=di(n);function n(r){var o;if(Xn(this,n),o=t.call(this,r),me(Tt(o),"state",{resetCount:0}),me(Tt(o),"cancelRegisterFunc",null),me(Tt(o),"mounted",!1),me(Tt(o),"touched",!1),me(Tt(o),"dirty",!1),me(Tt(o),"validatePromise",void 0),me(Tt(o),"prevValidating",void 0),me(Tt(o),"errors",br),me(Tt(o),"warnings",br),me(Tt(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}),me(Tt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(kt(p),kt(c)):[]}),me(Tt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),me(Tt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),me(Tt(o),"metaCache",null),me(Tt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Te(Te({},o.getMeta()),{},{destroy:l});If(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),me(Tt(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(m),C=c&&za(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!If(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=br,o.warnings=br,o.triggerMetaEvent()),u.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=br,o.warnings=br,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&Zu(p,l,m,y,x,u)){o.reRender();return}break}case"setField":{var w=u.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||br),"warnings"in w&&(o.warnings=w.warnings||br),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&za(c,b,!0)){o.reRender();return}if(p&&!b.length&&Zu(p,l,m,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(bn);if(E.some(function(S){return za(u.relatedFields,S)})){o.reRender();return}break}default:if(C||(!h.length||b.length||p)&&Zu(p,l,m,y,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),me(Tt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(pa(qn().mark(function m(){var b,y,x,C,w,E,S;return qn().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,C=b.messageVariables,w=b.validateDebounce,E=o.getRules(),p&&(E=E.filter(function(k){return k}).filter(function(k){var M=k.validateTrigger;if(!M)return!0;var j=cp(M);return j.includes(p)})),!(w&&p)){O.next=10;break}return O.next=8,new Promise(function(k){setTimeout(k,w)});case 8:if(o.validatePromise===g){O.next=10;break}return O.abrupt("return",[]);case 10:return S=lL(c,u,E,l,x,C),S.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br;if(o.validatePromise===g){var M;o.validatePromise=null;var j=[],R=[];(M=k.forEach)===null||M===void 0||M.call(k,function(I){var N=I.rule.warningOnly,F=I.errors,A=F===void 0?br:F;N?R.push.apply(R,kt(A)):j.push.apply(j,kt(A))}),o.errors=j,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",S);case 13:case"end":return O.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=br,o.warnings=br,o.triggerMetaEvent(),o.reRender()),g}),me(Tt(o),"isFieldValidating",function(){return!!o.validatePromise}),me(Tt(o),"isFieldTouched",function(){return o.touched}),me(Tt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Xo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),me(Tt(o),"getErrors",function(){return o.errors}),me(Tt(o),"getWarnings",function(){return o.warnings}),me(Tt(o),"isListField",function(){return o.props.isListField}),me(Tt(o),"isList",function(){return o.props.isList}),me(Tt(o),"isPreserve",function(){return o.props.preserve}),me(Tt(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}),me(Tt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Te(Te({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=lp(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),me(Tt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Kr(l||c(!0),u)}),me(Tt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),C=b.getInternalHooks,w=b.getFieldsValue,E=C(Xo),S=E.dispatch,$=o.getValue(),O=m||function(I){return me({},g,I)},k=l[f],M=u!==void 0?O($):{},j=Te(Te({},l),M);j[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,N=arguments.length,F=new Array(N),A=0;A<N;A++)F[A]=arguments[A];v?I=v.apply(void 0,F):I=fL.apply(void 0,[g].concat(F)),h&&(I=h(I,$,w(!0))),I!==$&&S({type:"updateValue",namePath:x,value:I}),k&&k.apply(void 0,F)};var R=cp(y||[]);return R.forEach(function(I){var N=j[I];j[I]=function(){N&&N.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&S({type:"validateField",namePath:x,triggerName:I})}}),j}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Xo),s=i.initEntityValue;s(Tt(o))}return o}return Gn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(Xo),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!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,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:d.isValidElement(s)?c=d.cloneElement(s,this.getControlled(s.props)):(ur(!s,"`children` of Field is not validate ReactElement."),c=s),d.createElement(d.Fragment,{key:o},c)}}]),n})(d.Component);me(eg,"contextType",Ka);me(eg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function NS(e){var t,n=e.name,r=Jr(e,pL),o=d.useContext(Ka),a=d.useContext(Kl),i=n!==void 0?bn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),d.createElement(eg,Tn({key:l,name:i,isListField:s},r,{fieldContext:o}))}function mL(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(Ka),l=d.useContext(Kl),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var g=bn(s.prefixName)||[];return[].concat(kt(g),kt(bn(t)))},[s.prefixName,t]),p=d.useMemo(function(){return Te(Te({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(m){var b=f.length,y=m[b];return[u.keys[y],m.slice(b+1)]}}},[f]);if(typeof r!="function")return ur(!1,"Form.List only accepts function as children."),null;var h=function(m,b,y){var x=y.source;return x==="internal"?!1:m!==b};return d.createElement(Kl.Provider,{value:v},d.createElement(Ka.Provider,{value:p},d.createElement(NS,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var b=g.value,y=b===void 0?[]:b,x=g.onChange,C=s.getFieldValue,w=function(){var O=C(f||[]);return O||[]},E={add:function(O,k){var M=w();k>=0&&k<=M.length?(u.keys=[].concat(kt(u.keys.slice(0,k)),[u.id],kt(u.keys.slice(k))),x([].concat(kt(M.slice(0,k)),[O],kt(M.slice(k))))):(u.keys=[].concat(kt(u.keys),[u.id]),x([].concat(kt(M),[O]))),u.id+=1},remove:function(O){var k=w(),M=new Set(Array.isArray(O)?O:[O]);M.size<=0||(u.keys=u.keys.filter(function(j,R){return!M.has(R)}),x(k.filter(function(j,R){return!M.has(R)})))},move:function(O,k){if(O!==k){var M=w();O<0||O>=M.length||k<0||k>=M.length||(u.keys=Sb(u.keys,O,k),x(Sb(M,O,k)))}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function($,O){var k=u.keys[O];return k===void 0&&(u.keys[O]=u.id,k=u.keys[O],u.id+=1),{name:O,key:k,isListField:!0}}),E,m)})))}function gL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var jS="__@field_split__";function Ju(e){return e.map(function(t){return"".concat(jt(t),":").concat(t)}).join(jS)}var $a=(function(){function e(){Xn(this,e),me(this,"kvs",new Map)}return Gn(e,[{key:"set",value:function(n,r){this.kvs.set(Ju(n),r)}},{key:"get",value:function(n){return this.kvs.get(Ju(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Ju(n))}},{key:"map",value:function(n){return kt(this.kvs.entries()).map(function(r){var o=Ct(r,2),a=o[0],i=o[1],s=a.split(jS);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Ct(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e})(),hL=["name"],vL=Gn(function e(t){var n=this;Xn(this,e),me(this,"formHooked",!1),me(this,"forceRootUpdate",void 0),me(this,"subscribable",!0),me(this,"store",{}),me(this,"fieldEntities",[]),me(this,"initialValues",{}),me(this,"callbacks",{}),me(this,"validateMessages",null),me(this,"preserve",null),me(this,"lastValidatePromise",null),me(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}}),me(this,"getInternalHooks",function(r){return r===Xo?(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}):(ur(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),me(this,"useSubscribe",function(r){n.subscribable=r}),me(this,"prevWithoutPreserves",null),me(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Na(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Nr(i,l,Kr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),me(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new $a;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),me(this,"getInitialValue",function(r){var o=Kr(n.initialValues,r);return r.length?Na(o):o}),me(this,"setCallbacks",function(r){n.callbacks=r}),me(this,"setValidateMessages",function(r){n.validateMessages=r}),me(this,"setPreserve",function(r){n.preserve=r}),me(this,"watchList",[]),me(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),me(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),me(this,"timeoutId",null),me(this,"warningUnhooked",function(){}),me(this,"updateStore",function(r){n.store=r}),me(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}),me(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new $a;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),me(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=bn(a);return o.get(i)||{INVALIDATE_NAME_PATH:bn(a)}})}),me(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&jt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in u?u.getMeta():null;i(m)&&c.push(v)}}),Cb(n.store,c.map(bn))}),me(this,"getFieldValue",function(r){n.warningUnhooked();var o=bn(r);return Kr(n.store,o)}),me(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:bn(r[i]),errors:[],warnings:[]}})}),me(this,"getFieldError",function(r){n.warningUnhooked();var o=bn(r),a=n.getFieldsError([o])[0];return a.errors}),me(this,"getFieldWarning",function(r){n.warningUnhooked();var o=bn(r),a=n.getFieldsError([o])[0];return a.warnings}),me(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(bn),c=!1):(l=null,c=i):(l=i.map(bn),c=s);var u=n.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return c?u.every(function(g){return f(g)||g.isList()}):u.some(f);var p=new $a;l.forEach(function(g){p.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();l.forEach(function(b){b.every(function(y,x){return m[x]===y})&&p.update(b,function(y){return[].concat(kt(y),[g])})})});var v=function(m){return m.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),me(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),me(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(bn);return o.some(function(i){var s=i.getNamePath();return za(a,s)&&i.isFieldValidating()})}),me(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),me(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new $a,a=n.getFieldEntities(!0);a.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 i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),v=n.getInitialValue(p);if(v!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)ur(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(p),m=u.isListField();!m&&(!r.skipExist||g===void 0)&&n.updateStore(Nr(n.store,p,kt(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,kt(kt(c).map(function(f){return f.entity})))}})):s=a,i(s)}),me(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Na(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(bn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Nr(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),me(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=Jr(i,hL),c=bn(s);a.push(c),"value"in l&&n.updateStore(Nr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),me(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=Te(Te({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),me(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Kr(n.store,a);i===void 0&&n.updateStore(Nr(n.store,a,o))}}),me(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),me(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,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)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!FS(f.getNamePath(),o)})){var u=n.store;n.updateStore(Nr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),me(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),me(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=Te(Te({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i)})}else n.forceRootUpdate()}),me(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(kt(a))}),a}),me(this,"updateValue",function(r,o){var a=bn(r),i=n.store;n.updateStore(Nr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Cb(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(kt(s)))}),me(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Na(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),me(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),me(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new $a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=bn(u);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),me(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new $a;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return za(r,u)});l.length&&a(l,i)}}),me(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(bn):[],c=[],u=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.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||za(l,x,v)){var C=y.validateRules(Te({validateMessages:Te(Te({},MS),n.validateMessages)},i));c.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var E,S=[],$=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(O){var k=O.rule.warningOnly,M=O.errors;k?$.push.apply($,kt(M)):S.push.apply(S,kt(M))}),S.length?Promise.reject({name:x,errors:S,warnings:$}):{name:x,errors:S,warnings:$}}))}}});var g=gL(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),m}),me(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function tg(e){var t=d.useRef(),n=d.useState({}),r=Ct(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new vL(a);t.current=i.getForm()}return[t.current]}var bp=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),bL=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=d.useContext(bp),s=d.useRef({});return d.createElement(bp.Provider,{value:Te(Te({},i),{},{validateMessages:Te(Te({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=Te(Te({},s.current),{},me({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=Te({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},a)},yL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],xL=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,v=p===void 0?"onChange":p,h=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,x=Jr(t,yL),C=d.useRef(null),w=d.useContext(bp),E=tg(i),S=Ct(E,1),$=S[0],O=$.getInternalHooks(Xo),k=O.useSubscribe,M=O.setInitialValues,j=O.setCallbacks,R=O.setValidateMessages,I=O.setPreserve,N=O.destroyForm;d.useImperativeHandle(n,function(){return Te(Te({},$),{},{nativeElement:C.current})}),d.useEffect(function(){return w.registerForm(r,$),function(){w.unregisterForm(r)}},[w,$,r]),R(Te(Te({},w.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(D){if(w.triggerFormChange(r,D),g){for(var B=arguments.length,L=new Array(B>1?B-1:0),W=1;W<B;W++)L[W-1]=arguments[W];g.apply(void 0,[D].concat(L))}},onFinish:function(D){w.triggerFormFinish(r,D),m&&m(D)},onFinishFailed:b}),I(s);var F=d.useRef(null);M(o,!F.current),F.current||(F.current=!0),d.useEffect(function(){return function(){return N(y)}},[]);var A,P=typeof l=="function";if(P){var z=$.getFieldsValue(!0);A=l(z,$)}else A=l;k(!P);var H=d.useRef();d.useEffect(function(){dL(H.current||[],a||[])||$.setFields(a||[]),H.current=a},[a,$]);var V=d.useMemo(function(){return Te(Te({},$),{},{validateTrigger:v})},[$,v]),T=d.createElement(Kl.Provider,{value:null},d.createElement(Ka.Provider,{value:V},A));return u===!1?T:d.createElement(u,Tn({},x,{ref:C,onSubmit:function(D){D.preventDefault(),D.stopPropagation(),$.submit()},onReset:function(D){var B;D.preventDefault(),$.resetFields(),(B=x.onReset)===null||B===void 0||B.call(x,D)}}),T)};function Eb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function wL(){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],a=o===void 0?{}:o,i=M9(a)?{form:a}:a,s=i.form,l=ht(),c=Ct(l,2),u=c[0],f=c[1],p=Gt(function(){return Eb(u)},[u]),v=Ze(p);v.current=p;var h=Kt(Ka),g=s||h,m=g&&g._init,b=bn(r),y=Ze(b);return y.current=b,vt(function(){if(m){var x=g.getFieldsValue,C=g.getInternalHooks,w=C(Xo),E=w.registerWatch,S=function(M,j){var R=i.preserve?j:M;return typeof r=="function"?r(R):Kr(R,y.current)},$=E(function(k,M){var j=S(k,M),R=Eb(j);v.current!==R&&(v.current=R,f(j))}),O=S(x(),x(!0));return u!==O&&f(O),$}},[m]),u}var CL=d.forwardRef(xL),ws=CL;ws.FormProvider=bL;ws.Field=NS;ws.List=mL;ws.useForm=tg;ws.useWatch=wL;const $b=e=>typeof e=="object"&&e!=null&&e.nodeType===1,kb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",el=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return kb(n.overflowY,t)||kb(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},tl=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,SL=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ob=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:F=>F!==c;if(!$b(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;$b(h)&&f(h);){if(h=SL(h),h===p){v.push(h);break}h!=null&&h===document.body&&el(h)&&!el(document.documentElement)||h!=null&&el(h,u)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:C,top:w,right:E,bottom:S,left:$}=e.getBoundingClientRect(),{top:O,right:k,bottom:M,left:j}=(F=>{const A=window.getComputedStyle(F);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(e);let R=s==="start"||s==="nearest"?w-O:s==="end"?S+M:w+x/2-O+M,I=l==="center"?$+C/2-j+k:l==="end"?E+k:$-j;const N=[];for(let F=0;F<v.length;F++){const A=v[F],{height:P,width:z,top:H,right:V,bottom:T,left:_}=A.getBoundingClientRect();if(i==="if-needed"&&w>=0&&$>=0&&S<=m&&E<=g&&(A===p&&!el(A)||w>=H&&S<=T&&$>=_&&E<=V))return N;const D=getComputedStyle(A),B=parseInt(D.borderLeftWidth,10),L=parseInt(D.borderTopWidth,10),W=parseInt(D.borderRightWidth,10),U=parseInt(D.borderBottomWidth,10);let J=0,q=0;const ee="offsetWidth"in A?A.offsetWidth-A.clientWidth-B-W:0,G="offsetHeight"in A?A.offsetHeight-A.clientHeight-L-U:0,X="offsetWidth"in A?A.offsetWidth===0?0:z/A.offsetWidth:0,ie="offsetHeight"in A?A.offsetHeight===0?0:P/A.offsetHeight:0;if(p===A)J=s==="start"?R:s==="end"?R-m:s==="nearest"?tl(y,y+m,m,L,U,y+R,y+R+x,x):R-m/2,q=l==="start"?I:l==="center"?I-g/2:l==="end"?I-g:tl(b,b+g,g,B,W,b+I,b+I+C,C),J=Math.max(0,J+y),q=Math.max(0,q+b);else{J=s==="start"?R-H-L:s==="end"?R-T+U+G:s==="nearest"?tl(H,T,P,L,U+G,R,R+x,x):R-(H+P/2)+G/2,q=l==="start"?I-_-B:l==="center"?I-(_+z/2)+ee/2:l==="end"?I-V+W+ee:tl(_,V,z,B,W+ee,I,I+C,C);const{scrollLeft:ae,scrollTop:ne}=A;J=ie===0?0:Math.max(0,Math.min(ne+J/ie,A.scrollHeight-P/ie+G)),q=X===0?0:Math.max(0,Math.min(ae+q/X,A.scrollWidth-z/X+ee)),R+=ne-J,I+=ae-q}N.push({el:A,top:J,left:q})}return N},EL=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function $L(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ob(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Ob(e,EL(t))){const s=a-n.top+n.bottom,l=i-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const kL=["parentNode"],OL="form_item";function PS(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function IL(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:kL.includes(n)?`${OL}_${n}`:n}var ML=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 Ib(e){return PS(e).join("_")}function Mb(e,t){const n=t.getFieldInstance(e),r=QC(n);if(r)return r;const o=IL(PS(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function AS(e){const[t]=tg(),n=d.useRef({}),r=d.useMemo(()=>Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Ib(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=ML(a,["focus"]),l=Mb(o,r);l&&($L(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Mb(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Ib(o);return n.current[a]}}),[e,t]);return[r]}const FL=({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}},[a]=AS();return vt(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),re(Cp,{modal:{styles:o},children:re(Ql,{title:re("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:rt("div",{className:"mt-[16px] flex justify-end",children:[re(_r,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),re(_r,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();t("ok_rename",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:re(xo,{form:a,children:re(xo.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:re(El,{})})})})})},NL=({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}},[a]=AS();return vt(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),re(Cp,{modal:{styles:o},children:re(Ql,{title:re("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:rt("div",{className:"mt-[16px] flex justify-end",children:[re(_r,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),re(_r,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();t("ok_remove",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:re("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${r.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})};function UL(e=yD){return function({token:n,url:r="http://localhost:8888",styles:o,CSRFToken:a,eventsEmit:i,...s}){const l=Gt(()=>BS({theme:xp,mode:"light"},o),[o]),[c,u]=ht(!1),[f,p]=ht(!1),[v,h]=ht(null),[g,m]=ht([]),[b,y]=ht([]),[x,C]=ht(void 0),[w,E]=ht([]),[S,$]=ht([]),[O,k]=ht(void 0),[M,j]=ht(!1),[R,I]=ht({display:"ready",sender:"ready",app:"initializing"}),[N,F]=ht([]);function A(K,Y){if(!Y)return K;const ue=Array.isArray(K)?[...K]:{...K};for(const be in Y)Y[be]!==void 0&&Y[be]!==null&&Object.prototype.hasOwnProperty.call(Y,be)&&(typeof K[be]=="object"&&K[be]!==null&&!Array.isArray(K[be])&&typeof Y[be]=="object"&&Y[be]!==null&&!Array.isArray(Y[be])?ue[be]=A(K[be],Y[be]):ue[be]=Y[be]);return ue}const[P,z]=ht(()=>A(Yv,s.senderConfig));vt(()=>{s.senderConfig&&z(A(Yv,s.senderConfig))},[s.senderConfig]);const[H,V]=ht([]),[T,_]=ht(()=>({uploadedFiles:[]}));vt(()=>{if(!x)return;const K=b.find(be=>be.id===x);let Y=[],ue=!1;if(K&&K.messages){const be=[...K.messages||[]].reverse().find(Me=>Me.istype==="ai");if(be!=null&&be.reference&&be.resultType===5){ue=!0;try{Y=JSON.parse(be.reference).map(Be=>He(Be))}catch{}}}ue&&_({uploadedFiles:Y})},[b]),vt(()=>{_({uploadedFiles:[]})},[x]);const[D,B]=fe.useState(()=>{var Y;if(!S||S.length===0)return;const K=S.find(ue=>ue.isDefault);return K?K.id:(Y=S[0])==null?void 0:Y.id});fe.useEffect(()=>{if(!S||S.length===0)return;const K=S.some(Y=>Y.id===D);if(!D||!K){const Y=S.find(ue=>ue.isDefault);B(Y?Y.id:S[0].id)}},[S]);const[L,W]=ht({}),U=Ze(void 0),J=Ze(void 0),q=Ze(void 0);Ze({sessionId:""}),Ze(null);const[ee,G]=ht({}),[X,ie]=ht(!1),[ae,ne]=ht([]),ce=Ze(!1),{api_startChat_re:de,addEmptyMessage:ye,setLastEmptyMessage:Ee,stopStream:ge}=f9({baseUrl:r,CSRFToken:a,token:n,setChatData:y,activeSessionId:x,setAppStatus:I,setConversationList:m}),Se=Gt(()=>{const K={};return(S||[]).forEach(Y=>{K[Y.id]=Y}),K},[S]),oe=Gt(()=>{const K=b.find(ue=>ue.id===x)||{id:x,messages:[]},Y=K.configId?Se[K.configId]:null;return{...K,assistantInfo:Y}},[b,x,Se]),ve=Gt(()=>{if(oe.configId&&Se){const K=Se[oe.configId];return K!=null&&K.configJson?JSON.parse(K.configJson).is_download:!1}else return!1},[oe.configId,Se]),je=Gt(()=>{if((oe.configId||O)&&Se){const K=Se[oe.configId];if(K!=null&&K.configJson){const Y=JSON.parse(K.configJson);return console.log("is_enableThinking",oe.configId,Se,O),!!Y.thinking}else if(O){const Y=Se[O];if(Y!=null&&Y.configJson)return!!JSON.parse(Y.configJson).thinking}}return!1},[oe.configId,Se,O]);function se(K,Y){const ue=new Map;return K.forEach(be=>ue.set(be.uid,He(be))),Y.forEach(be=>ue.set(be.uid,He(be))),Array.from(ue.values())}function He(K){if(!K||K.file&&K.file.name)return K;const Y=K.name||K.fileName||"";return{...K,url:K.filePath||"",uid:K.uid||"",file:{name:Y,size:typeof K.size=="string"&&K.size.endsWith("MB")?Number(K.size.replace("MB",""))*1024*1024:K.size||0,type:K.type||""},name:Y}}vt(()=>{if(U.current&&U.current!==x){const Y=U.current,ue=g.find(Be=>Be.sessionId===Y&&Be.isNew),be=b.find(Be=>Be.id===Y&&Be.isNew),Me=be&&be.messages&&be.messages.length>0;ue&&!Me&&(m(Be=>Be.filter(ut=>ut.sessionId!==Y)),y(Be=>Be.filter(ut=>ut.id!==Y)))}U.current=x;const K=oe.messages&&oe.messages.length>0?oe.messages[oe.messages.length-1].recommendQuestion:[];E(K)},[x,g,b,oe.messages]),vt(()=>{I(K=>({...K,app:"initializing"})),Promise.all([Un.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}}),Un.get(`${r}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:n}})]).then(([K,Y])=>{const ue=K.data.data.records||[];m(ue),x||he(),$(Y.data.data||[]),I(be=>({...be,app:"ready"}))}).catch(K=>{I(Y=>({...Y,app:"error"}))})},[r,n]),vt(()=>{x&&(I(K=>({...K,display:"loading"})),Un.get(`${r}/qa/dialogue/getDialogBySessionId?sessionId=${x}`,{headers:{Authorization:n}}).then(K=>{var We;if(!K.data.data){I(Pe=>({...Pe,display:"ready"}));return}const Y=((We=K.data.data)==null?void 0:We.queryReplyPairList)||[],ue=UH(Y),{sessionId:be,searchConfigDTO:Me,filePath:Be,configId:ut,reference:tt,webReference:at,uploadedFiles:xt,fileList:ze,currentFiles:Et}=K.data.data;if(ue.length>0){const Pe=ue.length-1-[...ue].reverse().findIndex(ct=>ct.istype==="ai");Pe>=0&&Pe<ue.length&&ue[Pe].istype==="ai"&&(tt&&(ue[Pe].reference=tt),at&&(ue[Pe].webReference=at))}const Ce=Et||ze||xt;if(Ce&&ue.length>0){const Pe=[...ue].reverse().findIndex(ct=>ct.istype==="user");Pe!==-1&&(console.log(ue[ue.length-1-Pe].currentFiles,"filesData"),ue[ue.length-1-Pe].currentFiles=Ce)}g.find(Pe=>Pe.sessionId===be)&&m(Pe=>Pe.map(ct=>ct.sessionId===be?{...ct,searchConfigDTO:Me,filePath:Be,configId:ut}:ct));const $e={configId:K.data.data.configId,filePath:K.data.data.filePath,searchConfigDTO:K.data.data.searchConfigDTO||{},sessionId:K.data.data.sessionId,label:K.data.data.label,kbId:K.data.data.kbId};y(Pe=>{const ct=Pe.filter(It=>It.id!==x);return[{id:x,messages:ue,...$e},...ct]}),I(Pe=>({...Pe,display:"ready"}))}).catch(K=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",K),K.response&&K.response.status===404&&he(),I(Y=>({...Y,display:"error"}))}))},[x,r,n]),vt(()=>{const K=T.uploadedFiles.length;z(Y=>{const ue=Array.isArray(Y.actions)?Y.actions:[];return{...Y,actions:ue.map(Me=>Me.name==="history"?{...Me,badgeCount:K}:Me)}})},[T.uploadedFiles]),vt(()=>{YH({url:r,token:n},K=>{ne(K)})},[]),fe.useEffect(()=>{H.length&&y(K=>{if(!K[0])return K;const{messages:Y}=K[0];for(let ue=Y.length-1;ue>=0;ue--)if(Y[ue].istype==="user"){const be=Y[ue].currentFiles||[];Y[ue].currentFiles=H.map(Me=>{var ut,tt,at;const Be=be.find(xt=>xt.uid===Me.uid);return{name:((ut=Me.file)==null?void 0:ut.name)||Me.name,size:((tt=Me.file)==null?void 0:tt.size)||Me.size,type:((at=Me.file)==null?void 0:at.type)||Me.type,status:Me.status,uid:Me.uid,url:Me.url||(Be==null?void 0:Be.url)||""}});break}return[...K]})},[H]);let De=null,qe=null;const Ue=(K,Y,ue,be)=>{const Me=K.join(",");let Be=0;qe=()=>{ce.current=!0};const ut=async()=>{if(!ce.current){if(Be>=O9){ce.current||be("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}Be++;try{const tt=await Un.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${Me}`,{headers:{Authorization:n}});if(ce.current)return;if(tt.data.success){const at=tt.data.data;ce.current||Y(at),at.every(ze=>ze.status===3)?ce.current||ue():ce.current||setTimeout(ut,I9)}else ce.current||be(tt.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch{if(ce.current)return;be("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};ut()},_e=(K,Y)=>{y(ue=>{const be=[...ue];return be[0]&&(be[0]={...be[0],messages:be[0].messages.map(Me=>Me.queryId===K?{...Me,feedbackResult:Y}:Me)}),be})},Oe=async K=>{var Y,ue;if(K)try{const be=(oe==null?void 0:oe.configId)||((Y=Se==null?void 0:Se[(oe==null?void 0:oe.configId)||""])==null?void 0:Y.id)||"",Me=await Un.get(`${r}/qa/ai/recommendQuestion?queryId=${K}&configId=${be||""}`.replace(/\?&/,"?"),{headers:{Authorization:n}});E(((ue=Me.data)==null?void 0:ue.data)||[])}catch{E([])}};function Ie(K){const{content:Y,audioUrl:ue,filePaths:be,queryId:Me}=K;if(!x||!Me)return;const Be=(oe==null?void 0:oe.messages)||[],ut=Be.findIndex(Ce=>(Ce==null?void 0:Ce.queryId)===Me&&((Ce==null?void 0:Ce.istype)==="ai"||(Ce==null?void 0:Ce.isUser)===!1));let tt;if(ut>0)for(let Ce=ut-1;Ce>=0;Ce-=1){const Ye=Be[Ce];if((Ye==null?void 0:Ye.istype)==="user"||(Ye==null?void 0:Ye.isUser)===!0){tt=Ye;break}}const at=(tt==null?void 0:tt.content)??Y;if(!at)return;const xt=(tt==null?void 0:tt.filePaths)??be,ze=(typeof xt=="string"&&xt?JSON.parse(xt):xt||[]).map(Ce=>Ce.uid),Et=Date.now();Ee({now:Et}),I(Ce=>({...Ce,display:"processing",sender:"processing"})),K.clearFn&&K.clearFn(),m(Ce=>Ce.map(Ye=>Ye.sessionId===x?{...Ye,gmtModified:Et}:Ye)),de({configId:oe.configId,content:at,fileUids:ze,lastDate:Et,name:oe.label||"",queryId:Me,sessionId:String(x||""),type:(tt==null?void 0:tt.audioUrl)??ue?"audioUrl":"text",audioUrl:((tt==null?void 0:tt.audioUrl)??ue)||"",enableThinking:!!L.reasoning,enableWebsearch:!!L.netSearch,qaChannel:L.qaChannel},Ce=>{Oe(Me)})}async function ke(K,Y){if(!x)return;const ue=g.find(be=>be.sessionId===x);if(ue&&ue.isNew){let be=!1;const Me=O||ue.configId,Be=K&&K.content?K.content.slice(0,20):ue.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((ut,tt)=>{KH({url:r,token:n,CSRFToken:a},{label:Be,sessionId:ue.sessionId,sysType:"INT_SESSION",configId:Me},at=>{at&&at.data&&at.data.sessionId?(m(xt=>xt.map(ze=>ze.sessionId===ue.sessionId?{...ze,isNew:!1,configId:Me,label:Be}:ze)),y(xt=>xt.map(ze=>ze.id===ue.sessionId?{...ze,isNew:!1,configId:Me,label:Be}:ze)),be=!0,ut()):(xn.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),tt())})}),!be)return;Ne(x,K,Y,Me);return}Ne(x,K,Y)}function Ne(K,Y,ue,be){const Me="query-"+Jo(32),Be=g.find(ze=>ze.sessionId===K),ut=be||(Be==null?void 0:Be.configId)||oe.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",ut);const tt=Y&&Y.content?Y.content.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let at;if(Y.files&&Y.files.length>0&&(at=Y.files.map(ze=>({name:ze.file.name,size:ze.file.size,type:ze.file.type,filePath:ze.filePath||"",convertedFilePath:ze.convertedFilePath||"",uid:ze.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",Y.files),ye({content:Y.content||Y.text||"",queryId:Me,currentFiles:at,filePaths:at?JSON.stringify(at):void 0}),m(ze=>ze.map(Et=>Et.sessionId===K&&Et.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&Et.isNew?{...Et,label:tt,gmtModified:Date.now(),isNew:!1}:Et)),y(ze=>ze.map(Et=>Et.id===K&&Et.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&Et.isNew?{...Et,label:tt,isNew:!1}:Et)),Y.files&&Y.files.length>0){I($e=>({...$e,sender:"uploading",display:"uploading"})),De=new AbortController,ce.current=!1;const ze=Y.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),Et=Y.files.map(($e,We)=>({...$e,uid:ze[We],status:"uploading"}));V(Et);const Ce=new FormData;Y.files.forEach($e=>{Ce.append("files",$e.file)});const Ye=String(K||"");Ce.append("sessionId",Ye),Ce.append("uids",ze.join(",")),Un.post(`${r}/index/knowledgeBase/file/uploadFiles`,Ce,{headers:{Authorization:n,"Content-Type":"multipart/form-data"},signal:De.signal}).then($e=>{if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",$e),!ce.current)if($e.data.success&&Array.isArray($e.data.data)&&$e.data.data.length>0){V(ct=>ct.map(dt=>{const It=$e.data.data.find(Mt=>Mt.uid===dt.uid);return It?{...dt,...It}:dt})),I(ct=>({...ct,sender:"processing",display:"analyzing"})),V(ct=>ct.map(dt=>({...dt,status:"parsing"})));const We=$e.data.data,Pe=We.map(ct=>ct.uid);Ue(Pe,ct=>{if(V(It=>It.map(Mt=>{const Lt=ct.find(zt=>zt.uid===Mt.uid);if(Lt)switch(Lt.status){case 3:return{...Mt,status:"done"};case 4:return{...Mt,status:"error"};case 1:case 2:default:return{...Mt,status:"parsing"}}return Mt})),ct.length>0&&ct.every(It=>It.status===3)){V([]);const It=new Map;(ct||[]).forEach(Mt=>{It.set(Mt.id,Mt)}),_(Mt=>({uploadedFiles:se(Mt.uploadedFiles,We).map(zt=>{var on;return{...zt,pdfPages:((on=It.get(zt.id))==null?void 0:on.pdfPages)||0}})}))}},()=>{ue==null||ue(),I(dt=>({...dt,sender:"processing",display:"processing"})),V(dt=>dt.map(It=>{const Mt=We.find(Lt=>Lt.uid===It.uid);return Mt?{...It,...Mt,url:Mt.filePath,filePath:Mt.filePath,name:Mt.fileName||It.name,convertedFilePath:Mt.convertedFilePath||It.convertedFilePath}:It})),y(dt=>{if(!dt[0])return dt;const{messages:It}=dt[0];for(let Mt=It.length-1;Mt>=0;Mt--)if(It[Mt].istype==="user"){const Lt=It[Mt].currentFiles||[];It[Mt].currentFiles=Lt.map(zt=>{const on=We.find(an=>an.uid===zt.uid);return on?{...zt,...on}:zt});break}return[...dt]});const ct=Date.now();de({configId:ut,content:Y.content||Y.text||"",fileUids:Pe,lastDate:ct,name:tt,queryId:Me,sessionId:String(K||""),type:"text",audioUrl:"",enableThinking:!!L.reasoning,enableWebsearch:!!L.netSearch,qaChannel:L.qaChannel},dt=>{Oe(Me)})},ct=>{I(dt=>({...dt,display:"ready",sender:"ready"})),V(dt=>dt.map(It=>({...It,status:"error",message:ct})))})}else{const We=$e.data.errorMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";I(Pe=>({...Pe,display:"error",sender:"ready"})),V(Pe=>Pe.map(ct=>({...ct,status:"error",message:We})))}}).catch($e=>{var We,Pe;((We=$e==null?void 0:$e.response)==null?void 0:We.status)===413?(Pe=$e==null?void 0:$e.response)!=null&&Pe.statusText.includes("Request Entity Too Large")&&xn.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):xn.error("\u7F51\u7EDC\u9519\u8BEF"),I(ct=>({...ct,display:"error",sender:"ready"})),V(ct=>ct.map(dt=>({...dt,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}I(ze=>({...ze,display:"processing",sender:"processing"}));const xt=Date.now();m(ze=>ze.map(Et=>Et.sessionId===K?{...Et,gmtModified:xt}:Et)),ue==null||ue(),de({configId:ut,content:Y.content||Y.text||"",fileUids:[],lastDate:xt,name:tt,queryId:Me,sessionId:String(K||""),type:"text",audioUrl:"",enableThinking:!!L.reasoning,enableWebsearch:!!L.netSearch,qaChannel:L.qaChannel},ze=>{Oe(Me)})}function Xe(K){K.restult==1?Gu({url:r,token:n,CSRFToken:a},{queryId:K.queryId},()=>{_e(K.queryId,null)}):cb({url:r,token:n,CSRFToken:a},{restult:1,queryId:K.queryId},()=>{_e(K.queryId,1)})}function he(K){const Y=Jo(32),ue={sessionId:Y,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};m(be=>[{...ue,messages:[]},...be]),y(be=>[{id:Y,messages:[],...ue},...be]),C(Y)}const st=K=>{var Me;const Y=new Set([...T.uploadedFiles.map(Be=>Be.file.name),...N.map(Be=>Be.file.name)]),ue=[],be=new Set;Array.from(K).forEach(Be=>{Y.has(Be.name)?be.add(Be.name):(ue.push({file:Be,type:lb(Be.name),status:"pending",preview:Be.type.startsWith("image")?URL.createObjectURL(Be):void 0}),Y.add(Be.name))}),be.size>0&&xn.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(be).join(", ")}`),ue.length>0&&(F(Be=>[...Be,...ue]),(Me=J.current)==null||Me.call(J,ue))},yt=(K,Y,ue)=>{var be;(be=q.current)==null||be.call(q,K,Y,ue)};function St(K){if(K!=null&&K.sessionId&&K.sessionId!==x){C(K.sessionId),I(ue=>({...ue,sender:"ready"}));const Y=b.find(ue=>ue.id===K.sessionId);if(Y&&Y.messages&&Y.messages.length>0){const ue=[...Y.messages].reverse().find(be=>be.istype==="ai");ue&&ue.recommendQuestion?E(ue.recommendQuestion):E([])}else E([])}}const Nt=async K=>new Promise((Y,ue)=>{GH({url:r,token:n,CSRFToken:a},{sessionId:K},be=>{be?(xn.success("\u5220\u9664\u6210\u529F!"),Y(be)):(xn.error("\u5220\u9664\u5931\u8D25!"),ue(be))})}),Ve=async()=>{try{const Y=(await Un.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}})).data.data.records||[];return m(Y),Y}catch(K){throw xn.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),K}},Qe=async(K,Y)=>new Promise((ue,be)=>{XH({url:r,token:n,CSRFToken:a},{label:Y,sessionId:K},Me=>{if(Me){const Be=Date.now();m(ut=>ut.map(tt=>tt.sessionId===K?{...tt,label:Y,gmtModified:Be}:tt)),xn.success("\u91CD\u547D\u540D\u6210\u529F!"),ue(Me)}else xn.error("\u91CD\u547D\u540D\u5931\u8D25"),be(Me)})}),Ge=K=>{m(Y=>{const ue=Y.filter(be=>be.sessionId!==K);return x===K&&(ue.length>0?C(ue[0].sessionId):he()),ue})},ot=(K,Y)=>{const ue=Date.now();m(be=>be.map(Me=>Me.sessionId===K?{...Me,label:Y,gmtModified:ue}:Me))},nt=K=>{cb({url:r,token:n,CSRFToken:a},{...K,...ee,restult:0},()=>{_e(ee.queryId,0)})},$t=K=>{const Y=K.new_name,ue=v.data.label;Y&&Y!==ue?v.async_renameConversation(Y).then(()=>{v.fn_renameItemInList(Y),u(!1)}).catch(()=>{}):u(!1)},Ot=K=>{v.async_deleteConversation().then(()=>{v.fn_removeItemFromList(),p(!1)}).catch(()=>{})},et=(K,Y)=>{switch(console.log(K,Y),K){case"close_remove":p(!1);break;case"close_rename":u(!1);break;case"ok_rename":$t(Y);break;case"ok_remove":Ot();break}},lt=async({url:K,params:Y,replacePredataFunction:ue})=>{var be,Me;try{const Be=await Un.post(K,Y,{headers:{Authorization:n}}),ut=(Me=(be=Be==null?void 0:Be.data)==null?void 0:be.data)==null?void 0:Me.data;ut&&ue(ut)}catch(Be){console.log("error",Be)}},bt=(K,Y)=>{var ue,be,Me;switch(console.log(`[Event] ${K}`,Y),K){case"retrieve-sql-data:pagingation_click":const{page:Be,pageSize:ut,fetchUrl:tt,source:at,replacePredataFunction:xt}=Y;lt({url:`${r}${tt}`,replacePredataFunction:xt,params:{pageNo:Be,pageSize:ut,convertedFilePath:at,stream:!1}});break;case"web_referenceFile_title:click":if(!((ue=Y==null?void 0:Y.data)!=null&&ue.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(Y.data.link,"_blank");break;case"conversation:item_click":St(Y);break;case"files:finished_animation_complete":V([]);break;case"conversation:create":he();break;case"conversation:new_assistant_change":k(Y.assistantId);break;case"conversations:rename_icon_clicked":h({data:Y,async_renameConversation:ze=>Qe(Y.sessionId,ze),fn_renameItemInList:ze=>ot(Y.sessionId,ze)}),u(!0);break;case"conversations:delete_icon_clicked":h({data:Y,async_deleteConversation:()=>Nt(Y.sessionId),async_refreshConversationList:Ve,fn_removeItemFromList:()=>Ge(Y.sessionId)}),p(!0);break;case"sender:send":ke(Y,Y.clearFn);break;case"sender:send_recommandQuestion":{const ze=((Y==null?void 0:Y.content)??"").toString();if(!ze)break;ke({content:ze},()=>{});break}case"chatbox:follow_up_question_click":{const ze=((Y==null?void 0:Y.question)??(Y==null?void 0:Y.content)??"").toString();if(!ze)break;ke({content:ze},()=>{});break}case"sender:action_history":j(!0);break;case"sender:stop":ce.current=!0,De&&(De.abort(),De=null),qe&&(qe(),qe=null),I(ze=>({...ze,display:"ready",sender:"ready"})),V([]),ge==null||ge();break;case"sender:clear":(be=Y.clearFn)==null||be.call(Y);break;case"sender:configChange":Y&&Y.all&&W(Y.all);break;case"action_copy:click":Y&&qH(Y.content,Y.event);break;case"chatbox:copy":{const ze=(Y==null?void 0:Y.content)||"";if(!ze)break;const Et=async Ye=>{try{return await navigator.clipboard.writeText(Ye),xn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},Ce=Ye=>{const $e=document.createElement("textarea");$e.value=Ye,$e.style.position="fixed",$e.style.opacity="0",document.body.appendChild($e),$e.focus(),$e.select();try{document.execCommand("copy"),xn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{xn.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild($e)};Et(ze).then(Ye=>{Ye||Ce(ze)});break}case"chatbox:repeat":console.log(Y,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),Ie(Y);break;case"action_thumbsup":Xe(Y);break;case"chatbox:like":Xe({queryId:Y==null?void 0:Y.queryId,restult:Y==null?void 0:Y.result});break;case"action_thumbsdown":Y.restult===0?Gu({url:r,token:n,CSRFToken:a},{queryId:Y.queryId},()=>{_e(Y.queryId,null)}):(G(Y),ie(!0));break;case"chatbox:dislike":(Y==null?void 0:Y.result)===0?Gu({url:r,token:n,CSRFToken:a},{queryId:Y.queryId},()=>{_e(Y.queryId,null)}):(G({queryId:Y==null?void 0:Y.queryId}),ie(!0));break;case"action_retrive_tag":i==null||i("action_retrive_tag",Y);break;case"referenceFile_view":i==null||i("referenceFile_view",Y);break;case"referenceFile_question":console.log(Y,"zhezhhzhzh"),i==null||i("referenceFile_question",Y);break;case"referenceFile_download":i==null||i("referenceFile_download",Y);break;case"retrive_tag:click":i==null||i("retrive_tag:click",Y);break;case"fileManager:change":{const ze=Array.isArray(Y==null?void 0:Y.uploadedFiles)?Y.uploadedFiles:[];F(ze),typeof(Y==null?void 0:Y.setUploadedFiles)=="function"&&(J.current=Y.setUploadedFiles,q.current=Y.removeFile);break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",Y);const ze=(Me=Y==null?void 0:Y.file)==null?void 0:Me.uid;if(!ze){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",Y);break}const Et=[...oe.messages||[]].reverse().find(Ye=>Ye.istype==="user"),Ce=Et==null?void 0:Et.queryId;QH({url:r,token:n,CSRFToken:a},{uid:ze,queryId:Ce},(Ye,$e)=>{if(Ye){if(xn.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),$e&&Array.isArray($e.data&&$e.data.data)){const We=$e.data.data.map(Pe=>{var dt;const ct=Pe.name||Pe.fileName||"";return{file:{name:ct,size:Number((dt=Pe.size)==null?void 0:dt.replace("MB",""))*1024*1024||0,type:Pe.type},type:lb(ct),status:"uploaded",url:Pe.filePath,convertedFilePath:Pe.convertedFilePath,uid:Pe.uid,preview:Pe.type==="image"?Pe.filePath:void 0}});_({uploadedFiles:We})}}else console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",$e),xn.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25")});break}case"uploaded_file:remove_batch":break;default:i==null||i(K,Y)}},Le=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:re(KS,{size:16}),enabled:!0,component:re(a8,{data:g,assistantList:S,activedItem:x||"",sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:bt,styles:l.theme})}],Fe=fe.useMemo(()=>()=>re(r9,{eventsEmit:bt,assistantList:S,styles:l,selectedId:D,onSelectAssistant:B}),[D]),Ae={...fe.useMemo(()=>({AiChatBox:(K,Y)=>{var at,xt;const ue=Y===(((at=oe==null?void 0:oe.messages)==null?void 0:at.length)||0)-1;let be="ready";if(ue)if(K.status!==void 0)switch(K.status){case 0:be="thinking";break;case 1:be="processing";break;case 2:be="ready";break;case 3:be="error";break;default:be=R.display}else be=R.display;let Me=[];if(Array.isArray(w))Me=w;else if(typeof w=="string")try{Me=JSON.parse(w)||[]}catch{Me=[]}const Be=(()=>{const ze=K==null?void 0:K.reference;if(!ze)return"[]";if(typeof ze=="string")try{return JSON.parse(ze),ze}catch{return"[]"}try{return JSON.stringify(ze)}catch{return"[]"}})(),ut=(()=>{const ze=K==null?void 0:K.webReference;if(!ze)return"[]";if(typeof ze=="string")try{return JSON.parse(ze),ze}catch{return"[]"}try{return JSON.stringify(ze)}catch{return"[]"}})(),tt=(()=>{const ze=K==null?void 0:K.graphReference;if(!ze)return"[]";if(typeof ze=="string")try{return JSON.parse(ze),ze}catch{return"[]"}try{return JSON.stringify(ze)}catch{return"[]"}})();return re(og,{...K,reference:Be,webReference:ut,graphReference:tt,contentType:"stream",displayStatus:be,eventsEmit:bt,isLast:ue&&(K==null?void 0:K.istype)==="ai",followUpQuestions:ue&&(K==null?void 0:K.istype)==="ai"?Me:[],defaultAnswer:((xt=oe==null?void 0:oe.searchConfigDTO)==null?void 0:xt.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:ve,styles:l},`${(K==null?void 0:K.queryId)||(K==null?void 0:K.id)||Y}-${(K==null?void 0:K.istype)||"unknown"}`)},LogoBox:K=>K&&K.LogoBox===null?null:K&&typeof K.LogoBox=="function"?re(K.LogoBox,{}):re("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>re(E9,{}),DisplayError:()=>re(k9,{}),AppError:()=>re($9,{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:()=>re(S9,{}),UserChatBox:(K,Y)=>re(og,{...K,contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:bt,styles:l,fileManagerData:T},`${(K==null?void 0:K.queryId)||(K==null?void 0:K.id)||Y}-user`),WelcomeComponent:Fe}),[Fe,oe,R.display,bt,l,ve,T]),...s.CustomComponents||{}};return vt(()=>{z(K=>{const Y=Array.isArray(K.switchs)?K.switchs.map(ue=>ue.name==="reasoning"?{...ue,enabled:je}:ue):[];return{...K,switchs:Y}})},[je]),rt(RS,{children:[re(C9,{open:M,onCancel:()=>j(!1),files:T.uploadedFiles,currentFiles:N,onUpload:st,onRemoveFile:yt,styles:l,eventsEmit:bt}),re(e,{...s,status:R,chatData:oe,sidebar:Le,recommandQuestions:[],eventsEmit:bt,styles:l,senderConfig:P,fileUploadStatus:H,CustomComponents:Ae,activeSessionId:x}),re(g9,{open:X,feedBackList:ae,setOpen:ie,handleConfirm:nt}),re(FL,{isModalOpen:c,handleOk:et,handleCancel:()=>et("close_rename"),data:(v==null?void 0:v.data)||{}}),re(NL,{isModalOpen:f,handleOk:et,handleCancel:()=>et("close_remove"),data:(v==null?void 0:v.data)||{}})]})}}export{UL as default};