@abtnode/blocklet-services 1.16.36 → 1.16.37-beta-20241224-013714-a79db7d3
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.
- package/api/index.js +1 -1
- package/api/services/auth/session.js +14 -0
- package/api/services/notification/blocklet-events-notifier.js +12 -3
- package/api/socket/channel/did.js +180 -73
- package/api/socket/util.js +3 -2
- package/dist/assets/{Add-CX1vjsKw.js → Add-bmdSrWOA.js} +1 -1
- package/dist/assets/{Alert-D87dZ3UW.js → Alert-dY-OL-cr.js} +1 -1
- package/dist/assets/{ArrowDropDown-DHIEui26.js → ArrowDropDown-y45Fdx-X.js} +1 -1
- package/dist/assets/{Autocomplete-MtOZ_ddo.js → Autocomplete-dIT4Amet.js} +1 -1
- package/dist/assets/{Avatar-BBmwGXNJ.js → Avatar-C7A9zyFp.js} +1 -1
- package/dist/assets/{ButtonGroup-B4-Fg7jI.js → ButtonGroup-XHi-9psG.js} +1 -1
- package/dist/assets/CSSTransition-uwGMy0rY.js +1 -0
- package/dist/assets/{CheckCircle-Rp6PMEen.js → CheckCircle-CdClV-_h.js} +1 -1
- package/dist/assets/Checkbox-Tv0FEBTk.js +1 -0
- package/dist/assets/{ChevronLeft-c5m-YpM0.js → ChevronLeft-C-j1vGKc.js} +1 -1
- package/dist/assets/{ChevronRight-Bu3ZuWG0.js → ChevronRight-CbtZ3hD-.js} +1 -1
- package/dist/assets/{Clear-b8hVwHGB.js → Clear-BHERDEfK.js} +1 -1
- package/dist/assets/CloseOutlined-LxFWlJhG.js +1 -0
- package/dist/assets/Delete-BP5vfq8X.js +1 -0
- package/dist/assets/{DeleteOutline-D9nJXz7t.js → DeleteOutline-BJNpCFE3.js} +1 -1
- package/dist/assets/DialogContentText-DOJMTAut.js +1 -0
- package/dist/assets/{Done-BXX9mmcA.js → Done-D1ZlVz28.js} +1 -1
- package/dist/assets/{Download-CW9qYXvX.js → Download-Cn9c9ohK.js} +1 -1
- package/dist/assets/{EditIcon-ntr6a7to.js → EditIcon-CznGQSjE.js} +1 -1
- package/dist/assets/{Error-C3Gec5vv.js → Error-CnHtr7Rs.js} +1 -1
- package/dist/assets/{ExpandMore-z223TCGt.js → ExpandMore-Bn9GWuEQ.js} +1 -1
- package/dist/assets/FormControl-Di5qjF9R.js +1 -0
- package/dist/assets/FormControlLabel-B2DvbQHM.js +1 -0
- package/dist/assets/FormGroup-DlbGSJN0.js +1 -0
- package/dist/assets/{Google-C-eSdThA.js → Google-D1iNY1x9.js} +1 -1
- package/dist/assets/{Grid-DvGS1eT-.js → Grid-zFG3HBuV.js} +1 -1
- package/dist/assets/{HelpOutline-CA0yuFPz.js → HelpOutline-BoSK3px7.js} +1 -1
- package/dist/assets/Hidden-CieUlF-N.js +1 -0
- package/dist/assets/{InfoOutlined-De7efdSI.js → InfoOutlined-Bwocpz5e.js} +1 -1
- package/dist/assets/InputAdornment-C8pbj17T.js +1 -0
- package/dist/assets/{LastPage-Cr9Ak46f.js → LastPage-BWy9Ot-z.js} +1 -1
- package/dist/assets/{Launch-CjTqTNC0.js → Launch-D_sSAnDg.js} +1 -1
- package/dist/assets/{LaunchOutlined-ClaHGU-X.js → LaunchOutlined-X2HpZgvj.js} +1 -1
- package/dist/assets/Link-C3LvemFf.js +1 -0
- package/dist/assets/{ListItemButton-s5WMuSEH.js → ListItemButton-C5esEELO.js} +1 -1
- package/dist/assets/ListSubheader-Cef_PnTv.js +1 -0
- package/dist/assets/{LoadingButton-C8kGVq5n.js → LoadingButton-DqZkQVkR.js} +1 -1
- package/dist/assets/{LockIcon-BRURbClv.js → LockIcon-Dy4i6Aqn.js} +1 -1
- package/dist/assets/{Loop-DhCMxpbJ.js → Loop-BUj9Vy6n.js} +1 -1
- package/dist/assets/{MarkEmailRead-DsCr6k83.js → MarkEmailRead-CA2pMXCE.js} +1 -1
- package/dist/assets/{Menu-C83cJ_lX.js → Menu-CvZfT5GL.js} +1 -1
- package/dist/assets/{MoreHoriz-CYspaAXh.js → MoreHoriz-PRHiJZol.js} +1 -1
- package/dist/assets/MoreVert-D6ZGYNyY.js +1 -0
- package/dist/assets/{OpenInNew-Bmg-7bFA.js → OpenInNew-BDTDwP3d.js} +1 -1
- package/dist/assets/{OutlinedInput-BZLbG5DR.js → OutlinedInput-gn7nbVpS.js} +2 -2
- package/dist/assets/{Pagination-oz0udlom.js → Pagination-D38Mochi.js} +1 -1
- package/dist/assets/{PlayArrow-BhhCt6rD.js → PlayArrow-vPTnOeug.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-BSLU-5QJ.js → QuestionMarkCircle-B4mLjcEm.js} +1 -1
- package/dist/assets/RadioGroup-Cnl-n4sv.js +1 -0
- package/dist/assets/{Search-CVIzSYhH.js → Search-Di1FfTVW.js} +1 -1
- package/dist/assets/{Select-oWe_u-D6.js → Select-DWN6VE5t.js} +1 -1
- package/dist/assets/{ServerLogo-DU1L-HB-.js → ServerLogo-CthaxJzV.js} +1 -1
- package/dist/assets/{Skeleton-CX8Tt8Bo.js → Skeleton-WadU0OJu.js} +5 -5
- package/dist/assets/{Stepper-oUEFYvV_.js → Stepper-B7bkS7Td.js} +1 -1
- package/dist/assets/TextField-8hH4A29d.js +1 -0
- package/dist/assets/Toolbar-CkZJzWdi.js +1 -0
- package/dist/assets/Verified-BomL4Vcg.js +1 -0
- package/dist/assets/{ViewColumn-l6xqEHMP.js → ViewColumn-DDNlwTLF.js} +1 -1
- package/dist/assets/{ViewList-DI9CqBFa.js → ViewList-Cf2E-w4V.js} +1 -1
- package/dist/assets/{_createAggregator-DHQaEdHP.js → _createAggregator-DerVCNXt.js} +1 -1
- package/dist/assets/access-control-DbzcvB2p.js +13 -0
- package/dist/assets/{actions-CONPytvg.js → actions-BIHzrJRL.js} +1 -1
- package/dist/assets/{add-component-core-Ptms3VM0.js → add-component-core-BNdw0aLE.js} +3 -3
- package/dist/assets/add-resource-zovOALza.js +1 -0
- package/dist/assets/{addon-C9BRq2rr.js → addon-38qg_4hX.js} +1 -1
- package/dist/assets/{analytics-BV-2dIsZ.js → analytics-P2-ARhzA.js} +8 -8
- package/dist/assets/api-Bgc-sAeO.js +1 -0
- package/dist/assets/ar-DJ10cGfc.js +3 -0
- package/dist/assets/audit-logs-B1jUwB8K.js +58 -0
- package/dist/assets/{base32-Bha8goHw.js → base32-DhP6Sd22.js} +1 -1
- package/dist/assets/branding-Cw8sKF3a.js +40 -0
- package/dist/assets/bundle-avatar-wTvr1j7O.js +1 -0
- package/dist/assets/{button-DnXjylQA.js → button-sagPkc4B.js} +1 -1
- package/dist/assets/{click-to-copy-DziDdr0B.js → click-to-copy-bNuefZAb.js} +1 -1
- package/dist/assets/{complete-93121Q5T.js → complete-BmQ4mgd0.js} +1 -1
- package/dist/assets/{component-CUWDsqls.js → component-YDzDe2Hy.js} +68 -68
- package/dist/assets/{config-BOzIhp1x.js → config-BcZ0hhSN.js} +1 -1
- package/dist/assets/{config-navigation-sGa37CFt.js → config-navigation-_B9Y2h3O.js} +6 -6
- package/dist/assets/{config-fZzyLL4i.js → config-oIKKsXqC.js} +2 -2
- package/dist/assets/{config-space-BudRzV_5.js → config-space-CZbBDsyW.js} +1 -1
- package/dist/assets/confirm-DLHqvhfc.js +7 -0
- package/dist/assets/{connect-RlFAKnw-.js → connect-5rRgHzPJ.js} +1 -1
- package/dist/assets/{connect-DmL9t9Pb.js → connect-DsWbhDFg.js} +1 -1
- package/dist/assets/connect-to-C-YyBuWN.js +29 -0
- package/dist/assets/{content-layout-j_ijfe5V.js → content-layout-CJjMzX72.js} +1 -1
- package/dist/assets/createSuper-B6NRScIe.js +1 -0
- package/dist/assets/dashboard-CP8PgBmS.js +122 -0
- package/dist/assets/de-5ORoKwiw.js +3 -0
- package/dist/assets/{deprecate-Czw83fWw.js → deprecate-VX12Wil8.js} +1 -1
- package/dist/assets/{did-address-plg0jYw3.js → did-address-BnRJDh4K.js} +1 -1
- package/dist/assets/did-spaces-guide-cover-DeSoOPSP.png +0 -0
- package/dist/assets/domain-jbyj4r81.js +9 -0
- package/dist/assets/domain-list-Cng1dqBX.js +15 -0
- package/dist/assets/{email-D7G1smCL.js → email-CoMU6QoA.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-D9ZvkPSc.js +1 -0
- package/dist/assets/es-CWClvbjs.js +3 -0
- package/dist/assets/{exchange-passport-CK56AJBa.js → exchange-passport-CKrLmbNT.js} +1 -1
- package/dist/assets/{fallback-7BFwIxSy.js → fallback-CxJVlnM-.js} +1 -1
- package/dist/assets/{form-text-input-1DixbtmZ.js → form-text-input-DuE0t2xh.js} +2 -2
- package/dist/assets/{format-error-D7O1LvF5.js → format-error-BqUQNRdR.js} +1 -1
- package/dist/assets/fr-CE8mlhdK.js +3 -0
- package/dist/assets/{fuel-PkYrmKwo.js → fuel-BxFKkvrY.js} +1 -1
- package/dist/assets/{fullpage-Dzbv_Bjr.js → fullpage-DMghH4Jh.js} +1 -1
- package/dist/assets/{get-safe-url-B7F64ILl.js → get-safe-url-BXN5S5Ow.js} +1 -1
- package/dist/assets/{get-safe-url-B_9CHKiR.js → get-safe-url-C6pQ0b4W.js} +1 -1
- package/dist/assets/hi-DVuJdQme.js +1 -0
- package/dist/assets/home-DMl4NbyY.js +1 -0
- package/dist/assets/id-L6JUyxUh.js +3 -0
- package/dist/assets/{iframe-B-WoBAzH.js → iframe-CYpHBgb4.js} +1 -1
- package/dist/assets/index-4lyITCv_.js +4 -0
- package/dist/assets/{index-DVHJpsNX.js → index-6hDu2vaf.js} +27 -27
- package/dist/assets/{index-CfOAEOXT.js → index-8SeRztEJ.js} +1 -1
- package/dist/assets/{index-CURuTEb2.js → index-B-RFpqiC.js} +181 -181
- package/dist/assets/{index-DcgOvNoU.js → index-B-s0lesn.js} +1 -1
- package/dist/assets/{index-L1YQQop8.js → index-B55M7j1N.js} +1 -1
- package/dist/assets/{index-B5rvRUtU.js → index-B6qJT9W4.js} +1 -1
- package/dist/assets/{index-BTC9PSrm.js → index-BH652Yyk.js} +9 -9
- package/dist/assets/{index-BTolZrGR.js → index-BKpiH5Dq.js} +31 -31
- package/dist/assets/index-BRjM_G4Y.js +1 -0
- package/dist/assets/index-BUjYSE2F.js +1 -0
- package/dist/assets/index-BYFrBIBa.js +5 -0
- package/dist/assets/{index-De03g9F6.js → index-Buj7PXf3.js} +11 -11
- package/dist/assets/{index-BP4DTdBA.js → index-CH3eSleH.js} +1 -1
- package/dist/assets/{index-CM4iFAJQ.js → index-CJD8MpdN.js} +4 -4
- package/dist/assets/{index-ClbUoDwd.js → index-CQXPe6Dg.js} +1 -1
- package/dist/assets/{index-C2bGI7WK.js → index-CeS3z9GZ.js} +2 -2
- package/dist/assets/{index-aL8XFphi.js → index-Cg_mxnpC.js} +2 -2
- package/dist/assets/{index-BKasVuE9.js → index-CntasVxY.js} +11 -11
- package/dist/assets/index-Cp2B6uNC.js +16 -0
- package/dist/assets/{index-c_geTDzQ.js → index-D1nK8ZHc.js} +1 -1
- package/dist/assets/{index-ib_nAWaQ.js → index-D8vZ-fPV.js} +8 -8
- package/dist/assets/{index-CA1fJOyr.js → index-DLhcpc3-.js} +1 -1
- package/dist/assets/{index-wIzEIL5u.js → index-DNWbdg1R.js} +1 -1
- package/dist/assets/{index-jWRQUWQQ.js → index-D_bDY9Qe.js} +1 -1
- package/dist/assets/index-DcfIKM1A.js +9 -0
- package/dist/assets/{index-BkHfBdHS.js → index-DnXN6H0t.js} +1 -1
- package/dist/assets/index-DvWxRDmE.js +1 -0
- package/dist/assets/{index-Bhigy6bC.js → index-DzPmWuJk.js} +22 -22
- package/dist/assets/{index-DBd8RuKA.js → index-WbA8mYzS.js} +1 -1
- package/dist/assets/{index-BU-yWCAN.js → index-dqr9Jaml.js} +1 -1
- package/dist/assets/{index-BZlD6OXo.js → index-kG1Lr_vO.js} +2 -2
- package/dist/assets/{index-B8pYs6qw.js → index-lU7kM9Ky.js} +1 -1
- package/dist/assets/{index-B8JIUDX2.js → index-t5EXQWHo.js} +1 -1
- package/dist/assets/{invitation-etE_VFdX.js → invitation-4vH9lNw-.js} +1 -1
- package/dist/assets/{invite-DhviMHhg.js → invite-DQiYh3jP.js} +1 -1
- package/dist/assets/{isEmail-DoX_u6Zd.js → isEmail-4oqXIJJ_.js} +1 -1
- package/dist/assets/{issue-passport-C8DsPT0-.js → issue-passport-BS7LBCub.js} +1 -1
- package/dist/assets/{item-B9A7WgaT.js → item-DJHWpTQA.js} +1 -1
- package/dist/assets/ja-C5orBePq.js +3 -0
- package/dist/assets/jss-plugin-props-sort.esm-qyHLnnAY.js +13 -0
- package/dist/assets/ko-BeIurXFC.js +3 -0
- package/dist/assets/{launch-result-message-BF-pkAdo.js → launch-result-message-CPwNcICB.js} +1 -1
- package/dist/assets/{layout-BLKVO1aA.js → layout-CzBrvFp3.js} +2 -2
- package/dist/assets/{list-header-CkJhELTK.js → list-header-nz8xgiCH.js} +1 -1
- package/dist/assets/localization-BNwqUIzj.js +1 -0
- package/dist/assets/{log-BQVpfJU-.js → log-BeJh3PPm.js} +1 -1
- package/dist/assets/{login-oauth-callback-Df2Wy7r-.js → login-oauth-callback-0-dvml4o.js} +1 -1
- package/dist/assets/{login-Bv1YL4-f.js → login-tBvKJsS6.js} +1 -1
- package/dist/assets/{logo-uploader-vzgZfcsx.js → logo-uploader-BWtqh-79.js} +4 -4
- package/dist/assets/{lost-passport-BL6kwgdn.js → lost-passport-jHVQuDqE.js} +3 -3
- package/dist/assets/{lottie-react.esm-CQpztMV_.js → lottie-react.esm-B-E5FxBf.js} +1 -1
- package/dist/assets/notifications-DQZrvasa.js +65 -0
- package/dist/assets/objectWithoutProperties-9wzxqNXD.js +1 -0
- package/dist/assets/{open-window-Bw74ZDo1.js → open-window-CjAsx5PP.js} +1 -1
- package/dist/assets/overview-CZUNI2c4.js +12 -0
- package/dist/assets/{page-header-XtrSmZfg.js → page-header-UmR_SJxL.js} +1 -1
- package/dist/assets/permission-C1qrFfei.js +1 -0
- package/dist/assets/{preferences-wTD0jKLE.js → preferences-CB4_S-0N.js} +1 -1
- package/dist/assets/pt-BED0VqHV.js +1 -0
- package/dist/assets/publish-resource-D5ytOxi0.js +1 -0
- package/dist/assets/{raf-schd.esm--VHqQAwf.js → raf-schd.esm-ClpohTxq.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-JkjWkb1g.js → react-beautiful-dnd.esm-DweOnO-z.js} +4 -4
- package/dist/assets/refType-CDZhz-3k.js +1 -0
- package/dist/assets/relative-time-BEhURFWp.js +1 -0
- package/dist/assets/resource-dialog-BjXfEmTi.js +299 -0
- package/dist/assets/ru-B5wj2v7e.js +1 -0
- package/dist/assets/sdk-D_6oU6pZ.js +1 -0
- package/dist/assets/{selector-bHfmQq2F.js → selector-DsbOSZva.js} +3 -3
- package/dist/assets/session-Cm5uP3l0.js +1 -0
- package/dist/assets/setup-BPHLiKGE.js +19 -0
- package/dist/assets/{shorten-label-AXaOgv3N.js → shorten-label-Df2VmqEs.js} +1 -1
- package/dist/assets/{simple-select-BvdSFcAP.js → simple-select-DnOgr-la.js} +1 -1
- package/dist/assets/slicedToArray-D4TxSsqm.js +2 -0
- package/dist/assets/{start-CLF-sxGf.js → start-DKutxZsB.js} +1 -1
- package/dist/assets/{step-actions-BOih4mzv.js → step-actions-Cv4gOO_c.js} +1 -1
- package/dist/assets/{studio-BX29D64q.js → studio-C_g9PDNu.js} +1 -1
- package/dist/assets/{switch-control-50NvsOor.js → switch-control-B4HEHqto.js} +1 -1
- package/dist/assets/tag-DgtY4FDs.js +13 -0
- package/dist/assets/th-CKxPcxWD.js +1 -0
- package/dist/assets/toConsumableArray-Dwhm2s8G.js +2 -0
- package/dist/assets/{toUpper-C7snz8mS.js → toUpper-CgVRCh5Q.js} +1 -1
- package/dist/assets/{transfer-DcUjnU0J.js → transfer-Cpwy6Tit.js} +1 -1
- package/dist/assets/trim-q0T1m2A9.js +1 -0
- package/dist/assets/uniqBy-0RbpFg98.js +1 -0
- package/dist/assets/{unsubscribe-Dinsbdr7.js → unsubscribe-COhcdAVq.js} +1 -1
- package/dist/assets/{url-join-CnY0czxB.js → url-join-Cv0idqJk.js} +1 -1
- package/dist/assets/{use-mobile-CaIg2l3g.js → use-mobile-Bf5pd6l6.js} +1 -1
- package/dist/assets/{use-mobile-CFfSxdXP.js → use-mobile-FgoAU6fs.js} +1 -1
- package/dist/assets/{useAsync-CUPYfNit.js → useAsync-h-WToGGG.js} +1 -1
- package/dist/assets/useAsyncRetry-CK--mOCs.js +7 -0
- package/dist/assets/{useFormControl-BSba3oCv.js → useFormControl-CpXS3ldC.js} +1 -1
- package/dist/assets/{useLocalStorage-D1AGu-lb.js → useLocalStorage-DVECFQbD.js} +1 -1
- package/dist/assets/{useSetState-DSX8AlnY.js → useSetState-CaafR-tn.js} +1 -1
- package/dist/assets/useSlot-Bl2NJ-iV.js +1 -0
- package/dist/assets/{useThemeProps-BXP-249z.js → useThemeProps-MTCDjzXT.js} +1 -1
- package/dist/assets/user-center-BU7eGmUd.js +449 -0
- package/dist/assets/{util-UrDod__A.js → util-BYCzRSr_.js} +1 -1
- package/dist/assets/{utils-iop7lDec.js → utils-DoM3o7-Q.js} +1 -1
- package/dist/assets/vi-DsheN6LQ.js +1 -0
- package/dist/assets/wrap-locale-ChSgu67N.js +1 -0
- package/dist/assets/zh-BJMvTFip.js +4 -0
- package/dist/assets/zh-tw-B_su4eMW.js +3 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +32 -32
- package/dist/assets/CSSTransition-Mh3ysxT1.js +0 -1
- package/dist/assets/Delete-DJJRj5Hb.js +0 -1
- package/dist/assets/DialogContentText-DKQ0aeHG.js +0 -1
- package/dist/assets/DialogTitle-LVWjEooN.js +0 -1
- package/dist/assets/FormControl-C7Nj6lk8.js +0 -1
- package/dist/assets/FormControlLabel-CsOaFzYE.js +0 -1
- package/dist/assets/FormGroup-9S4EZF14.js +0 -1
- package/dist/assets/Hidden-D8s2OkVT.js +0 -1
- package/dist/assets/InputAdornment-DLaj8suy.js +0 -1
- package/dist/assets/Link-Cfv3qknB.js +0 -1
- package/dist/assets/ListSubheader-Db7_5hOm.js +0 -1
- package/dist/assets/MoreVert-cgL2UwiF.js +0 -1
- package/dist/assets/RadioGroup-BxfFSGKO.js +0 -1
- package/dist/assets/Stack-ouMqQ5wb.js +0 -1
- package/dist/assets/TextField-BA4i5NsI.js +0 -1
- package/dist/assets/Toolbar-Dsg-eB8s.js +0 -1
- package/dist/assets/access-control-Co4RM0Bo.js +0 -13
- package/dist/assets/add-resource-62Kg3wZP.js +0 -1
- package/dist/assets/api-Bc9Mc47C.js +0 -1
- package/dist/assets/ar-BDRVvPrM.js +0 -3
- package/dist/assets/audit-logs-P5V7cojf.js +0 -58
- package/dist/assets/branding-B-Xki6ZL.js +0 -40
- package/dist/assets/bundle-avatar-DnRgcM-q.js +0 -1
- package/dist/assets/confirm-C5GHlmsL.js +0 -7
- package/dist/assets/connect-to-C9RrMw8y.js +0 -1
- package/dist/assets/dashboard-DWfGuG2f.js +0 -165
- package/dist/assets/de-B227a1no.js +0 -3
- package/dist/assets/domain-DGmKsEPb.js +0 -9
- package/dist/assets/domain-list-b8qyOv0K.js +0 -15
- package/dist/assets/emotion-cache.browser.esm-jEAge-b7.js +0 -1
- package/dist/assets/es-DAn9P2pX.js +0 -3
- package/dist/assets/fr-hW_Tvq9a.js +0 -3
- package/dist/assets/hi-6yAhJdFx.js +0 -1
- package/dist/assets/home-Ba5jkT5T.js +0 -1
- package/dist/assets/id-BMkTW_Ii.js +0 -3
- package/dist/assets/index-BiEwRwlx.js +0 -1
- package/dist/assets/index-CixjtzIf.js +0 -1
- package/dist/assets/index-CncNyG59.js +0 -29
- package/dist/assets/index-D7S1biYx.js +0 -4
- package/dist/assets/index-_mYSbTn_.js +0 -16
- package/dist/assets/index-yknVcz6a.js +0 -5
- package/dist/assets/ja-DMoxkdsA.js +0 -3
- package/dist/assets/jss-plugin-props-sort.esm-DxbPrUtX.js +0 -14
- package/dist/assets/ko-C926kBBj.js +0 -3
- package/dist/assets/localization-CBfrOcuo.js +0 -1
- package/dist/assets/notifications-Dq9FGpST.js +0 -65
- package/dist/assets/overview-DRggHObA.js +0 -12
- package/dist/assets/permission-a4KWdWdi.js +0 -7
- package/dist/assets/pt-S0JrQ9Y4.js +0 -1
- package/dist/assets/publish-resource-DDUATmJ8.js +0 -1
- package/dist/assets/refType-Bzs0bPAl.js +0 -1
- package/dist/assets/resource-dialog-D_g0Ux18.js +0 -271
- package/dist/assets/ru-Qa5qbmx5.js +0 -1
- package/dist/assets/sdk-BLFRAhju.js +0 -1
- package/dist/assets/session-CROK8kXg.js +0 -1
- package/dist/assets/setup-DeIVwtAN.js +0 -19
- package/dist/assets/slicedToArray-BWTfB_HY.js +0 -2
- package/dist/assets/th-BoRhU51f.js +0 -1
- package/dist/assets/trim-DXlOBONx.js +0 -1
- package/dist/assets/uniqBy-VaPfeDts.js +0 -1
- package/dist/assets/useSlot-BYwgFHQI.js +0 -1
- package/dist/assets/useSlotProps-BniFm7V2.js +0 -1
- package/dist/assets/user-center-DeRfl05a.js +0 -1
- package/dist/assets/user-sessions-DXOv0sUo.js +0 -1
- package/dist/assets/vi-klSG5jCL.js +0 -1
- package/dist/assets/wrap-locale-B5FvTTmq.js +0 -1
- package/dist/assets/zh-Bbb3gm_K.js +0 -4
- package/dist/assets/zh-tw-D9dNfXQ_.js +0 -3
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import{a2 as $u,a3 as Tu,j as x,u as gt,r as d,bm as Aa,l as ke,ap as Ti,B as q,A as Pl,bn as pn,T as Et,bo as ju,a as Fo,bp as Ot,n as Zr,D as $l,v as ar,bq as Te,k as je,br as Ou,bs as at,bt as Tl,bu as Ji,bv as Mu,bw as Au,J as Ia,aI as fn,aO as Sn,bx as Iu,by as Fu,Y as ko,bz as es,bA as ku,a7 as ji,bB as jl,bC as Lu,bD as Ke,bE as Nu,bF as _u,bG as zu,bH as Bu,t as Vu,s as Du,K as Hu,bI as Wu,bJ as Uu,bK as qu,aN as Ea,bL as Gu,bM as Ku,bN as Xu,c as Ur,bO as ts,R as Qu,w as rs,bP as ra,P as fe,b as Lo,bQ as ie,bR as ns,bS as Zu,bT as Xe,bU as Fa,bV as ue,bW as Yu,bX as Ol,bY as Wb,bZ as Ju,a4 as ir,a6 as ka,bk as ed,b_ as td,H as rd,L as nd}from"./index-B-RFpqiC.js";import{S as Ml,t as Mt,f as wn,P as ad,a as od,b as id,M as sd,C as as,d as ld,c as cd,e as ud,E as dd,D as fd,A as vd,g as Rr,I as gd,L as hd,h as pd,i as md,U as bd,H as yd,F as xd}from"./resource-dialog-BjXfEmTi.js";import{f as Sd,g as wd,B as Cd}from"./index-kG1Lr_vO.js";import{T as Ed}from"./index-CQXPe6Dg.js";import{E as Xr}from"./index-8SeRztEJ.js";import{E as Rd}from"./fallback-CxJVlnM-.js";import{d as Pd}from"./Verified-BomL4Vcg.js";import{N as $d}from"./index-B55M7j1N.js";import{u as os}from"./uniqBy-0RbpFg98.js";import{S as Al}from"./index-BRjM_G4Y.js";import{i as Td}from"./index-t5EXQWHo.js";import{S as Oi}from"./Select-DWN6VE5t.js";import{T as Il}from"./TextField-8hH4A29d.js";import{I as jd}from"./InputAdornment-C8pbj17T.js";import{A as Od}from"./Alert-dY-OL-cr.js";import{u as Md}from"./use-mobile-Bf5pd6l6.js";import{B as Fl}from"./bundle-avatar-wTvr1j7O.js";import{B as Ad}from"./index-DvWxRDmE.js";import{R as Id}from"./relative-time-BEhURFWp.js";import{L as kl}from"./Link-C3LvemFf.js";import{S as No}from"./Skeleton-WadU0OJu.js";import{_ as ot,a as Ll,b as Z,c as Fd}from"./toConsumableArray-Dwhm2s8G.js";import{_ as A,a as j}from"./Clear-BHERDEfK.js";import{_ as $r,a as it,b as Rt,c as kd}from"./objectWithoutProperties-9wzxqNXD.js";import{c as pe}from"./index-DNWbdg1R.js";import{_ as le}from"./toPropertyKey-PLuKRk1e.js";import{r as io}from"./index-DcfIKM1A.js";import{_ as Tr,a as Ld}from"./createSuper-B6NRScIe.js";import{N as Nd}from"./tag-DgtY4FDs.js";import{A as _d}from"./Avatar-C7A9zyFp.js";import{T as zd}from"./index-6hDu2vaf.js";import{F as Bd}from"./FormControl-Di5qjF9R.js";import{L as Vd}from"./ListSubheader-Cef_PnTv.js";import"./index-CH3eSleH.js";import"./Menu-CvZfT5GL.js";import"./Toolbar-CkZJzWdi.js";import"./Hidden-CieUlF-N.js";import"./ExpandMore-Bn9GWuEQ.js";import"./OpenInNew-BDTDwP3d.js";import"./CloseOutlined-LxFWlJhG.js";import"./index-Cp2B6uNC.js";import"./ButtonGroup-XHi-9psG.js";import"./HelpOutline-BoSK3px7.js";import"./DialogContentText-DOJMTAut.js";import"./MoreVert-D6ZGYNyY.js";import"./ListItemButton-C5esEELO.js";import"./selector-DsbOSZva.js";import"./emotion-cache.browser.esm-D9ZvkPSc.js";import"./purify.es-DutPtr9A.js";import"./FormControlLabel-B2DvbQHM.js";import"./useFormControl-CpXS3ldC.js";import"./utils-DoM3o7-Q.js";import"./OutlinedInput-gn7nbVpS.js";import"./useSlot-Bl2NJ-iV.js";import"./useThemeProps-MTCDjzXT.js";import"./Checkbox-Tv0FEBTk.js";import"./ViewColumn-DDNlwTLF.js";import"./FormGroup-DlbGSJN0.js";import"./Grid-zFG3HBuV.js";import"./Delete-BP5vfq8X.js";import"./LastPage-BWy9Ot-z.js";import"./Search-Di1FfTVW.js";var Mi={},Dd=Tu;Object.defineProperty(Mi,"__esModule",{value:!0});var Nl=Mi.default=void 0,Hd=Dd($u()),Wd=x;Nl=Mi.default=(0,Hd.default)((0,Wd.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");function Ud({user:e,isMyself:t=!0,showFullDid:r=!0,switchPassport:n,switchProfile:a,...o}){var p;const{locale:i}=gt(),{session:s}=d.useContext(Aa),[c,l]=d.useState(!1),u=ke((g,m={})=>Ot(Mt,g,i,"en",m)),f=Ti(),v=f.breakpoints.down("md");if(!e)return null;const h=async()=>{try{l(!0),await s.refreshProfile(),s.refresh(),ar.success(Ot(Mt,"refreshProfile.successfully",i))}catch(g){console.error(g),ar.error(wn(g))}finally{l(!1)}};return x.jsxs(q,{...o,sx:{position:"relative",...o.sx},children:[x.jsx(Pl,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:v?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",...t?{cursor:"pointer","&::after":{content:`"${u("switchProfile")}"`,color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:t?a:pn}),x.jsxs(q,{children:[x.jsxs(Et,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,t?x.jsxs(x.Fragment,{children:[x.jsx(Ml,{user:e,switchPassport:n}),!ju(e.url)&&x.jsx(Fo,{title:!c&&Ot(Mt,"refreshProfile.title",i),sx:{display:"flex",alignItems:"center"},children:c?x.jsx(Zr,{size:"16px",sx:{color:(p=f==null?void 0:f.colors)==null?void 0:p.primary,ml:.5}}):x.jsx(Nl,{onClick:h})})]}):null]}),x.jsx($l,{did:e.did,showQrcode:!0,copyable:!0,compact:!r,responsive:!r,locale:i})]})]})}function qd({data:e,verified:t,...r}){return x.jsxs(q,{...r,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...r.sx},children:[x.jsxs(Et,{sx:{display:"flex",alignItems:"center",color:Te.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),x.jsxs(q,{display:"flex",flexDirection:"row",alignItems:"center",children:[x.jsx(Et,{sx:{color:Te.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content}),t&&x.jsx(Pd,{color:"success",style:{fontSize:16,marginLeft:4}})]})]})}function Gd({user:e,isMySelf:t=!1,...r}){const{locale:n}=gt(),a=ke((s,c={})=>Ot(Mt,s,n,"en",c)),o=je(()=>(e==null?void 0:e.sourceProvider)&&Ou[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),i=[];return t&&(i.push({icon:x.jsx(at,{fontSize:16,icon:Tl}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField"),verified:e==null?void 0:e.emailVerified}),i.push({icon:x.jsx(at,{fontSize:16,icon:ad}),title:a("phone"),content:(e==null?void 0:e.phone)||a("emptyField"),verified:e==null?void 0:e.phoneVerified}),i.push({icon:x.jsx(at,{fontSize:16,icon:od}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?x.jsx(Ji,{locale:n,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),i.push({icon:x.jsx(at,{fontSize:16,icon:id}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),i.push({icon:x.jsx(at,{fontSize:16,icon:sd}),title:a("createdAt"),content:e!=null&&e.createdAt?x.jsx(Ji,{locale:n,value:e==null?void 0:e.createdAt}):a("unknown")}),t&&(i.push({icon:x.jsx(at,{fontSize:16,icon:as}),title:a("registerFrom"),content:o}),i.push({icon:x.jsx(at,{fontSize:16,icon:as}),title:a("invitedBy"),content:e!=null&&e.inviter?x.jsx($l,{did:e.inviter,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:n}):"-"})),x.jsx(q,{...r,sx:{display:"flex",flexDirection:"column",gap:1.5,...r==null?void 0:r.sx},children:i.map(s=>x.jsx(qd,{data:s,sx:{flex:1},verified:s.verified},s.title))})}function Kd({passport:e,user:t,color:r,width:n=150,icon:a=null,createPassportSvg:o,children:i,...s}){const{t:c}=gt();return x.jsxs(q,{...s,sx:{display:"flex",alignItems:"center",...s==null?void 0:s.sx},children:[!!e.display&&x.jsx(q,{className:"passport-item__display",sx:{width:n},children:x.jsx($d,{address:e.id,data:e.display,imageFilter:typeof n=="number"?{imageFilter:"resize",w:n}:null})}),!e.display&&x.jsx(q,{className:"passport-item__display",dangerouslySetInnerHTML:{__html:o({title:e.scope==="kyc"?e.name:e.title,issuer:e.issuer&&e.issuer.name,issuerDid:e.issuer&&e.issuer.id,ownerName:t.fullName,ownerDid:t.did,ownerAvatarUrl:t.avatar,revoked:e.revoked,scope:e.scope,role:e.role,display:e.display,preferredColor:r,width:n})}}),x.jsxs(q,{className:"passport-item__body",sx:{p:0,ml:3,mt:0},children:[x.jsxs(q,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:[Mu(e.title),x.jsxs(q,{className:"passport-item__status-icon",sx:{svg:{fill:"#bfbfbf",height:"1.2em",marginLeft:"0.4em"}},children:[a,e.revoked&&x.jsx(ld,{})]})]}),e.expirationDate&&x.jsx(q,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:c("team.passport.validUntil",{date:e.expirationDate})}),i]})]})}function Xd({user:e,...t}){var c,l;const{locale:r}=gt(),n=ke((u,f={})=>Ot(Mt,u,r,"en",f)),a=Ti(),o=je(()=>{const u=((e==null?void 0:e.passports)||[]).map(f=>({...f,revoked:f.status===Au.REVOKED}));return u.sort((f,v)=>f.revoked===v.revoked?0:f.revoked?1:-1),os(u.filter(f=>!f.display),"role").concat(os(u.filter(f=>f.display),"display.content"))},[e==null?void 0:e.passports]),i=je(()=>o==null?void 0:o.find(u=>u.name===e.role),[o,e==null?void 0:e.role]),s=je(()=>{var u,f;return((f=(u=a==null?void 0:a.palette)==null?void 0:u.primary)==null?void 0:f.main)||Te.textBase},[(l=(c=a==null?void 0:a.palette)==null?void 0:c.primary)==null?void 0:l.main]);return o.length===0?x.jsx(q,{children:x.jsx(Xr,{children:n("noPassport")})}):x.jsx(q,{...t,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(4, 1fr)"},gap:2.5,...t.sx},children:o.map(u=>x.jsx(Kd,{passport:u,user:e,color:window.blocklet.passportColor,createPassportSvg:cd,title:i&&i.role===u.role?n("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:Te.backgroundsBgComponent,boxShadow:i&&i.role===u.role?`0px 2px 4px 0px ${s}, 0px 1px 2px -1px ${s}, 0px 0px 0px 1px ${s} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},u.id))})}function is({onTest:e=pn,onDelete:t=pn,onSave:r=pn,onCancel:n=pn,type:a="slack",url:o="",edit:i=!1}){const{locale:s}=gt(),c=ke((g,m={})=>Ot(Mt,g,s,"en",m)),l=Ia({type:a||"slack",url:o||"",edit:i??!1,error:"",loading:!1}),u=ke(()=>l.url?Td(l.url)?(l.error="",!0):(l.error=c("common.invalid"),!1):(l.error=c("common.required"),!1)),f=ke(()=>{l.edit=!1,l.url=o||"",l.type=a||"slack",l.error="",l.loading=!1,n()}),v=ke(async g=>{l.loading=!0,await e(g),l.loading=!1}),h=ke(g=>()=>{u()&&g({type:l.type,url:l.url})}),p=je(()=>l.error?x.jsx(Et,{component:"span",color:"error",children:l.error}):l.edit?l.loading?x.jsx(Zr,{size:16}):x.jsx(fn,{size:"small",onClick:h(v),sx:{mr:-1},children:x.jsx(at,{icon:ud})}):null,[l.error,l.edit,l.loading]);return x.jsxs(q,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[x.jsxs(Oi,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:Te.backgroundsBgField}},disabled:!l.edit||l.loading,size:"small",value:l.type,onChange:g=>{l.type=g.target.value},children:[x.jsx(Sn,{value:"api",children:c("webhook.url")}),x.jsx(Sn,{value:"slack",children:c("webhook.slack")})]}),x.jsxs(q,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[x.jsx(Il,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:Te.backgroundsBgField}}},disabled:!l.edit||l.loading,fullWidth:!0,size:"small",required:!0,value:l.url,onChange:g=>{l.url=g.target.value,u()},error:!!l.error,InputProps:{endAdornment:x.jsx(jd,{position:"end",children:p})}}),x.jsx(q,{sx:{display:"flex",gap:.5},children:l.edit?x.jsxs(x.Fragment,{children:[x.jsx(fn,{color:"success",onClick:h((...g)=>{r(...g),l.edit=!1}),sx:{borderRadius:2,border:`1px solid ${Te.strokeBorderBase}`},children:x.jsx(at,{icon:Iu})}),x.jsx(fn,{color:"error",onClick:f,sx:{borderRadius:2,border:`1px solid ${Te.strokeBorderBase}`},children:x.jsx(at,{icon:Fu})})]}):x.jsxs(x.Fragment,{children:[x.jsx(fn,{onClick:()=>{l.edit=!0},sx:{borderRadius:2,border:`1px solid ${Te.strokeBorderBase}`},children:x.jsx(at,{icon:dd})}),x.jsx(fn,{color:"error",onClick:()=>{t({type:l.type,url:l.url})},sx:{borderRadius:2,border:`1px solid ${Te.strokeBorderBase}`},children:x.jsx(at,{icon:fd})})]})})]})]})}function so({title:e,description:t,value:r,onChange:n}){return x.jsx(Al,{checked:r,labelProps:{label:x.jsxs(Et,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,t]})},size:"small",onChange:n})}function Qd({user:e}){var h,p;const{locale:t}=gt(),r=ke((g,m={})=>Ot(Mt,g,t,"en",m)),n=Ia({showAdd:!1}),a=ko(async()=>await Rr.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),o=je(()=>{var g;return{wallet:!0,email:!0,phone:!1,push:!0,...((g=a==null?void 0:a.data)==null?void 0:g.notifications)||{}}},[(h=a==null?void 0:a.data)==null?void 0:h.notifications]),i=je(()=>{var g;return((g=a==null?void 0:a.data)==null?void 0:g.webhooks)||[]},[(p=a==null?void 0:a.data)==null?void 0:p.webhooks]),s=ke(async g=>{try{await Rr.user.saveUserNotificationConfig(g),ar.success(r("saveSuccess")),a.run()}catch(m){ar.error(wn(m))}}),c=ke(async(g,m)=>{await s({notifications:{[g]:m}})}),l=async g=>{try{await Rr.user.testNotificationWebhook(g),ar.success(r("webhookTested"))}catch(m){ar.error(wn(m))}},u=ke(async g=>{await s({webhooks:i.filter((m,y)=>y!==g)})}),f=ke(async(g,m)=>{await s({webhooks:i.map((y,b)=>b===g?m:y)})}),v=ke(async g=>{await s({webhooks:[...i,g]}),n.showAdd=!1});return a.error?x.jsx(Od,{severity:"error",children:a.error.message}):a.loading||!a.data?x.jsx(q,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:x.jsx(Zr,{})}):x.jsxs(q,{sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(q,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[x.jsx(so,{value:o.wallet,title:r("walletNotification"),onChange:g=>c("wallet",g.target.checked),description:es(e)&&x.jsx(Et,{component:"span",color:"text.secondary",fontSize:13,children:es(e)})}),x.jsx(so,{value:o.email,onChange:g=>c("email",g.target.checked),title:r("emailNotification"),description:(e==null?void 0:e.email)&&x.jsx(Et,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),x.jsx(so,{value:o.push,title:r("pushNotification"),onChange:g=>c("push",g.target.checked)})]}),x.jsxs(ku,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[i.map((g,m)=>x.jsx(is,{onTest:l,onDelete:()=>u(m),onSave:(...y)=>f(m,...y),type:g.type,url:g.url,edit:!1},`${m}_${g.url}`)),n.showAdd&&x.jsx(is,{onTest:l,onCancel:()=>{n.showAdd=!1},onSave:(...g)=>v(...g),edit:!0},"add"),x.jsx(ji,{variant:"outlined",size:"small",sx:{color:Te.foregroundsFgBase,borderColor:Te.strokeBorderBase,backgroundColor:Te.buttonsButtonNeutral,"&:hover":{borderColor:Te.strokeBorderBase,backgroundColor:Te.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:x.jsx(at,{icon:vd}),onClick:()=>{n.showAdd=!0},children:r("addWebhook")})]})]})}function Zd({configList:e,onSave:t}){const[r,n]=d.useState(e),{locale:a}=gt(),o=ke((s,c={})=>Ot(Mt,s,a,"en",c)),i=ke(async(s,c)=>{try{const l=await Rr.user.saveUserPrivacyConfig({[s]:!c});n(r.map(u=>({...u,value:(l==null?void 0:l[u.key])??u.value}))),ar.success(o("saveSuccess")),t("privacy")}catch(l){ar.error(wn(l))}});return x.jsx(q,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:r.map(s=>s.isPrivate?null:x.jsx(Al,{checked:!s.value,labelProps:{label:x.jsx(Et,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:o("toPublic",{name:s.name})})},size:"small",onChange:c=>i(s.key,c.target.checked)},s.key))})}function Yd({item:e}){var g,m,y,b,S;const{confirmApi:t,confirmHolder:r}=jl(),n=Ia({loading:!1}),{locale:a}=gt(),o=ke((R,w={})=>Ot(Mt,R,a,"en",w)),{session:i}=d.useContext(Aa),{bindOAuth:s,unbindOAuth:c,setBaseUrl:l,baseUrl:u}=i.useOAuth(),f={[Ke.AUTH0]:Tl,[Ke.APPLE]:Nu,[Ke.GITHUB]:_u,[Ke.GOOGLE]:zu},v=je(()=>f[e==null?void 0:e.provider],[e==null?void 0:e.provider]),h=je(()=>Lu[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),p=ke(async()=>{try{n.loading=!0,await new Promise((R,w)=>{var E;if(e!=null&&e._bind)t.open({title:o("thirdPartyLogin.confirmUnbind",{name:h}),content:o("thirdPartyLogin.confirmUnbindDescription",{name:h}),confirmButtonText:o("common.confirm"),confirmButtonProps:{color:"error"},cancelButtonText:o("common.cancel"),onConfirm(C){c({session:i,connectedAccount:{...Bu(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(R).catch(w),C()},onCancel:R});else{const C=u,M=window==null?void 0:window.blocklet;let T="/";const F=Vu(M),L=Du(M);F&&(L!=null&&L.appPid)&&((E=i==null?void 0:i.user)!=null&&E.sourceAppPid)&&(T=L.appUrl),l(T),s({session:i,oauthItem:{...e,provider:e._rawProvider}}).then(R).catch(w).finally(()=>{l(C)})}})}catch(R){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,R)}finally{n.loading=!1}});return x.jsxs(x.Fragment,{children:[x.jsxs(q,{sx:{borderRadius:2,border:`1px solid ${Te.strokeBorderBase}`,background:Te.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[x.jsx(q,{component:at,icon:v,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),x.jsx(q,{sx:{flex:1},children:h}),x.jsxs(q,{sx:{display:"flex",alignItems:"center",gap:.5},children:[x.jsx(q,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((g=e.userInfo)==null?void 0:g.email)||e.did}),(m=e.userInfo)!=null&&m.email?x.jsx(Fo,{title:x.jsx(x.Fragment,{children:x.jsxs(q,{sx:{display:"flex",alignItems:"center",gap:1},children:[x.jsx(Pl,{size:36,variant:"circle",shape:"circle",src:(y=e.userInfo)==null?void 0:y.picture,did:e.did}),x.jsxs(q,{children:[x.jsx(Et,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(b=e.userInfo)==null?void 0:b.name}),x.jsx(Et,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(S=e.userInfo)==null?void 0:S.email})]})]})}),children:x.jsx(q,{component:at,icon:gd,color:Te.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),x.jsx(Fo,{title:e._mainProvider?o("thirdPartyLogin.mainProviderCantRemove"):"",children:x.jsx(q,{children:x.jsx(ji,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?Te.red:Te.foregroundsFgBase,borderColor:e!=null&&e._bind?Te.red:Te.strokeBorderBase,backgroundColor:Te.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?Te.red:Te.strokeBorderBase,backgroundColor:Te.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:n.loading?null:x.jsx(at,{icon:hd}),onClick:p,disabled:e._mainProvider,loading:n.loading,children:e!=null&&e._bind?o("thirdPartyLogin.disconnect"):o("thirdPartyLogin.connect")})})}),r]})}function Jd({user:e}){const{session:t}=d.useContext(Aa),[r,n]=d.useState({}),{getOAuthConfigs:a}=t.useOAuth();Hu(async()=>{const s=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});n(s)},[e==null?void 0:e.sourceAppPid]);const o=je(()=>Object.keys(r).map(c=>({...r[c],provider:c})).filter(c=>c.enabled),[r]),i=je(()=>{const s=Wu(e);let c=!1,l="",u=Uu(e);const f=s.find(h=>h.provider===Ke.AUTH0);return f&&(f.id.startsWith("google-oauth2|")&&(s.some(h=>h.provider==="google")||(c=!0,l=Ke.GOOGLE,u===Ke.AUTH0&&(u=Ke.GOOGLE))),f.id.startsWith("appleid|")&&(s.some(h=>h.provider===Ke.APPLE)||(c=!0,l=Ke.APPLE,u===Ke.AUTH0&&(u=Ke.APPLE))),f.id.startsWith("github|")&&(s.some(h=>h.provider===Ke.GITHUB)||(c=!0,l=Ke.GITHUB,u===Ke.AUTH0&&(u=Ke.GITHUB)))),o.map(h=>{if(h.provider===Ke.AUTH0&&c)return null;const p=c&&h.provider===l?s.find(g=>g.provider===Ke.AUTH0):s.find(g=>g.provider===h.provider);return p?{...h,provider:h.provider,did:p.did,pk:p.pk,userInfo:p.userInfo,_bind:!0,_rawProvider:p.provider,_mainProvider:h.provider===u}:{...h,provider:h.provider,_rawProvider:h.provider,_mainProvider:h.provider===u}}).filter(Boolean).sort((h,p)=>(h==null?void 0:h.order)!==void 0&&(p==null?void 0:p.order)!==void 0?h.order-p.order:(h==null?void 0:h.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,o]);return x.jsx(q,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:i.length?x.jsx(x.Fragment,{children:i.map(s=>x.jsx(Yd,{item:s},s==null?void 0:s.provider))}):x.jsx(Xr,{})})}const ef=[{name:"English",code:"en"},{name:"中文",code:"zh"}];function tf({user:e,onSave:t}){const{locale:r,changeLocale:n}=gt(),a=ke((s,c={})=>Ot(Mt,s,r,"en",c)),o=Ia({locale:e.locale,loading:!1}),i=ke(async s=>{try{const{value:c}=s.target;o.loading=!0,await Rr.user.saveProfile({locale:c}),await t("profile"),n(c),o.locale=c}catch(c){ar.error(wn(c))}finally{o.loading=!1}});return x.jsxs(q,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[x.jsx(q,{children:a("commonSetting.locale")}),x.jsxs(q,{children:[x.jsx(qu,{color:"primary",sx:{visibility:o.loading?"visible":"hidden",height:2}}),x.jsx(Oi,{fullWidth:!0,value:o.locale,onChange:i,size:"small",children:(window.blocklet.languages||ef).map(s=>x.jsx(Sn,{value:s.code,children:s.name},s.code))})]})]})}function rf({user:e,settings:t,onSave:r,...n}){var l;const{locale:a}=gt(),o=ke((u,f={})=>Ot(Mt,u,a,"en",f)),i=je(()=>((t==null?void 0:t.userCenterTabs)||[]).map(f=>({key:f.value,name:f.label,value:f.protected,isPrivate:f.isPrivate})),[t==null?void 0:t.userCenterTabs]),s=(l=window==null?void 0:window.blocklet)==null?void 0:l.componentMountPoints.some(u=>{var f;return((f=u.capabilities)==null?void 0:f.didSpace)==="requiredOnConnect"}),c=je(()=>[{label:o("commonSetting.title"),value:"common",content:x.jsx(tf,{user:e,onSave:r})},{label:o("notificationManagement"),value:"notification",content:x.jsx(Qd,{user:e})},{label:o("thirdPartyLogin.title"),value:"thirdPartyLogin",content:x.jsx(Jd,{user:e})},{label:o("privacyManagement"),value:"privacy",content:x.jsx(Zd,{configList:i,onSave:r})},s&&{label:o("storageManagement"),value:"storage",content:x.jsx(pd,{children:x.jsx(md,{})})},{label:o("sessionManagement"),value:"session",content:x.jsx(bd,{user:e})}].filter(Boolean),[e,i]);return x.jsx(q,{...n,sx:{...n==null?void 0:n.sx,minWidth:{md:500},maxWidth:"100%"},children:c.map((u,f)=>x.jsxs(q,{children:[x.jsx(Et,{sx:{color:Te.foregroundsFgBase,fontWeight:600},children:u.label}),x.jsx(q,{mt:2.5,children:u.content}),f<c.length-1?x.jsx(Ea,{sx:{mt:2.5,mb:2.5}}):null]},u.value))})}function nf({children:e,notLoginContent:t=null,currentTab:r,contentProps:n={},disableAutoRedirect:a=!1,hideFooter:o=!1,headerProps:i={},footerProps:s={},userDid:c=void 0,stickySidebar:l=!1}){var V,$,P,O,N,B;const{locale:u}=gt(),f=Md({}),v=ke((k,D={})=>Ot(Mt,k,u,"en",D)),h=d.useContext(Aa),p=h==null?void 0:h.session,g=je(()=>{var W;if(c)return c;const k=window.location.href,D=Gu(k);return D!=null&&D.did?Array.isArray(D.did)?D.did[0]:D.did:(W=p==null?void 0:p.user)==null?void 0:W.did},[(V=p==null?void 0:p.user)==null?void 0:V.did,c]),m=je(()=>{var k;return p!=null&&p.user?g===((k=p==null?void 0:p.user)==null?void 0:k.did):!1},[g,($=p==null?void 0:p.user)==null?void 0:$.did]),y=ko(async()=>{if(await Ku(()=>p==null?void 0:p.initialized),m)return p.user;if(g)return Rr.user.getUserPublicInfo({did:g})},{refreshDeps:[g,m,p==null?void 0:p.initialized,p==null?void 0:p.user]}),b=ko(async()=>y.data&&r?await Rr.user.getUserPrivacyConfig({did:g}):null,{refreshDeps:[g,y.data,r],loadingDelay:300}),{confirmHolder:S}=jl({fullScreen:f,sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),R=je(()=>{const k=Xu(window.blocklet);try{return Sd(k)}catch(D){return console.error("Failed to format blocklet info",D,k),k}},[]),w=je(()=>{const k=[{label:v("common.profile"),protected:!1,url:Ur(ra,"/profile")}];return m&&k.push({label:v("common.setting"),protected:!0,isPrivate:!0,url:Ur(ra,"/settings")}),k},[m]),E=je(()=>{var H;const k=((H=R==null?void 0:R.navigation)==null?void 0:H.userCenter)||[];return(wd(k,u)||[]).concat(w).map(G=>{var te;const re=G._rawLink??G.link??G.url;return{value:re,label:G.title||G.label,url:G.link||G.url,protected:((te=b==null?void 0:b.data)==null?void 0:te[re])??!1,isPrivate:G.isPrivate}}).filter(G=>m||!G.isPrivate)},[R,y.data,b==null?void 0:b.data,u,w,m]),C=je(()=>E.find(k=>ts(k.value)===ts(r)),[E]),M=ke(k=>{const D=E.find(W=>W.value===k);D&&(window.location.href=rs(D.url,{did:m?void 0:g}))}),T=je(()=>x.jsx(rf,{user:y.data,settings:{userCenterTabs:E},onSave:async k=>k==="privacy"?(await b.runAsync(),b.data):(k==="profile"&&await p.refresh(),null)}),[y.data,E,b.data,b.runAsync]),F=je(()=>C&&(C==null?void 0:C.value)===Ur(ra,"/settings"),[C]),L=je(()=>C&&(C==null?void 0:C.value)===Ur(ra,"/profile"),[C]),z=je(()=>L?x.jsx(q,{sx:{maxWidth:"100%",position:"relative"},children:x.jsxs(q,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:l?"sticky":"static"},top:k=>l?k.spacing(3):"unset"},children:[x.jsxs(q,{children:[x.jsxs(q,{display:"flex",justifyContent:"space-between",children:[x.jsx(Et,{sx:{fontWeight:600,mb:1.5},children:v(m?"myInfo":"hisInfo")}),m?x.jsx(Ml,{user:y.data,switchPassport:p.switchPassport}):null]}),x.jsx(Gd,{user:y.data,isMySelf:m})]}),m?x.jsxs(q,{children:[x.jsx(Et,{sx:{fontWeight:600,mb:1.5},children:v("passport")}),x.jsx(Xd,{user:y.data})]}):null]})}):F&&m?T:null,[F,L,y,m,l,T]),_=je(()=>{var k,D,W,H;if(y.loading||p.loading)return null;if(y.error){if(((D=(k=y.error)==null?void 0:k.response)==null?void 0:D.status)===404)return x.jsx(q,{sx:{width:"100%"},children:x.jsx(Qu,{status:404,description:v("noUserFound")})});const te={message:((H=(W=y.error.response)==null?void 0:W.data)==null?void 0:H.error)||y.error.message||"error occurred"};return x.jsx(q,{sx:{width:"100%"},children:x.jsx(Rd,{error:te})})}return!g&&!y.data?t||x.jsx(q,{sx:{width:"100%"},children:x.jsxs(q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[x.jsx(Xr,{children:v("viewAfterLogin")}),x.jsx(ji,{size:"small",variant:"contained",onClick:()=>p.login(),children:v("loginNow")})]})}):x.jsxs(q,{sx:[{flex:{xs:"revert",md:1},overflow:"hidden"}],children:[x.jsx(Ud,{isMyself:m,switchPassport:p.switchPassport,switchProfile:p.switchProfile,user:y.data,showFullDid:!1,sx:{display:"flex",gap:3,mt:2}}),x.jsx(Ea,{sx:{mt:3,mb:3}}),E.length>0&&r?x.jsxs(q,{display:f?"block":"flex",sx:{height:"100%",overflow:"auto",padding:"1px"},children:[x.jsx(Ed,{orientation:f?"horizontal":"vertical",variant:"line",tabs:E,current:(C==null?void 0:C.value)??r,onChange:M,sx:{width:f?"100%":180,".MuiTabs-flexContainer":{gap:1.5,".MuiButtonBase-root":{fontSize:16},".MuiTab-root":{display:"block",textAlign:"left"}}}}),x.jsx(Ea,{orientation:"vertical",sx:{height:"100%",mr:2}}),!b.data||b.loading?x.jsx(q,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:x.jsx(Zr,{sx:{color:Te.primary100}})}):x.jsx(q,{sx:{flex:1},children:C!=null&&C.protected&&!m?x.jsx(q,{children:x.jsx(Xr,{children:v("underProtected")})}):x.jsx(x.Fragment,{children:e?x.jsx(q,{...n,children:e}):x.jsx(x.Fragment,{children:z})})})]}):null,E.length===0?x.jsx(q,{sx:{display:{xs:m?"none":"block",md:"block"},py:3},children:x.jsx(Xr,{children:v("emptyContent")})}):null]})},[y,E,m,C,b,r,l,z]),I=je(()=>m?!1:C==null?void 0:C.isPrivate,[m,C]);if(!a&&!r&&((O=(P=R==null?void 0:R.navigation)==null?void 0:P.userCenter)==null?void 0:O.length)>0||!C||I){const k=(B=(N=R==null?void 0:R.navigation)==null?void 0:N.userCenter[0])==null?void 0:B.link,D=E.find(W=>W.value===k);return k&&!(D!=null&&D.isPrivate)&&window.location.replace(rs(k,{did:m?void 0:g})),null}return x.jsxs(q,{sx:{minHeight:"100vh",display:"flex",flexDirection:"column"},children:[x.jsx(yd,{bordered:!0,...i,maxWidth:"100%"}),x.jsxs(q,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[_,S]}),o?null:x.jsx(xd,{bordered:!0,...s})]})}_l.propTypes={theme:fe.string,type:fe.oneOf(["button","line"]),onSelectType:fe.func,extra:fe.node,currentTab:fe.oneOf(["info","success","warning","error",""])};function _l({theme:e="dark",type:t="button",onSelectType:r,extra:n=void 0,currentTab:a="",...o}){const i=[{label:"All",value:""},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}],[s,c]=d.useState(a||i[0].value),l=h=>{h!==s&&(c(h),r(h))},u=d.useMemo(()=>{const h={width:"100%",bgcolor:e==="dark"?"#F9FAFB":"",overflowY:"auto",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end"};return t==="line"?Object.assign(h,{position:"relative",zIndex:2}):h},[t,e]),f=(h,p,g)=>x.jsx(Lo,{onClick:()=>l(h.value),className:`profile-button ${p?"active":""}`,...o,children:h.label},h.value||g),v=(h,p,g)=>x.jsx(Lo,{variant:"text",onClick:()=>l(h.value),className:`profile-line-button ${p?"active":""}`,...o,children:h.label},h.value||g);return x.jsxs(x.Fragment,{children:[x.jsxs(q,{className:"severity-tabs",sx:u,children:[x.jsx("div",{children:i==null?void 0:i.map((h,p)=>{const g=s===(h==null?void 0:h.value);return t==="line"?x.jsx(d.Fragment,{children:v(h,g,p)},h.value||p):x.jsx(d.Fragment,{children:f(h,g,p)},h.value||p)})}),n]}),x.jsx(Ea,{sx:{position:"relative",top:"-1px",zIndex:1,borderColor:"rgba(209, 213, 219, 1)"}})]})}var af=Symbol.for("react.element"),of=Symbol.for("react.transitional.element"),sf=Symbol.for("react.fragment");function zl(e){return e&&le(e)==="object"&&(e.$$typeof===af||e.$$typeof===of)&&e.type===sf}function Yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ie.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Yr(n)):zl(n)&&n.props?r=r.concat(Yr(n.props.children,t)):r.push(n))}),r}var _o={},lf=function(t){};function cf(e,t){}function uf(e,t){}function df(){_o={}}function Bl(e,t,r){!t&&!_o[r]&&(e(!1,r),_o[r]=!0)}function Ct(e,t){Bl(cf,e,t)}function ff(e,t){Bl(uf,e,t)}Ct.preMessage=lf;Ct.resetWarned=df;Ct.noteOnce=ff;function Cn(e){return e instanceof HTMLElement||e instanceof SVGElement}function vf(e){return e&&le(e)==="object"&&Cn(e.nativeElement)?e.nativeElement:Cn(e)?e:null}function ma(e){var t=vf(e);if(t)return t;if(e instanceof ie.Component){var r;return(r=ns.findDOMNode)===null||r===void 0?void 0:r.call(ns,e)}return null}function Ai(e,t,r){var n=d.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Ii=function(t,r){typeof t=="function"?t(r):le(t)==="object"&&t&&"current"in t&&(t.current=r)},La=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Ii(i,o)})}},Fi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ai(function(){return La.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},Na=function(t){var r,n;if(!t)return!1;if(Vl(t)&&t.props.propertyIsEnumerable("ref"))return!0;var a=io.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==io.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==io.ForwardRef)};function Vl(e){return d.isValidElement(e)&&!zl(e)}var ki=function(t){if(t&&Vl(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},zo=d.createContext(null);function gf(e){var t=e.children,r=e.onBatchResize,n=d.useRef(0),a=d.useRef([]),o=d.useContext(zo),i=d.useCallback(function(s,c,l){n.current+=1;var u=n.current;a.current.push({size:s,element:c,data:l}),Promise.resolve().then(function(){u===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,c,l)},[r,o]);return d.createElement(zo.Provider,{value:i},t)}var vr=new Map;function hf(e){e.forEach(function(t){var r,n=t.target;(r=vr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Dl=new Zu(hf);function pf(e,t){vr.has(e)||(vr.set(e,new Set),Dl.observe(e)),vr.get(e).add(t)}function mf(e,t){vr.has(e)&&(vr.get(e).delete(t),vr.get(e).size||(Dl.unobserve(e),vr.delete(e)))}var bf=function(e){$r(r,e);var t=Tr(r);function r(){return it(this,r),t.apply(this,arguments)}return ot(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function yf(e,t){var r=e.children,n=e.disabled,a=d.useRef(null),o=d.useRef(null),i=d.useContext(zo),s=typeof r=="function",c=s?r(a):r,l=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(c)&&Na(c),f=u?ki(c):null,v=Fi(f,a),h=function(){var y;return ma(a.current)||(a.current&&le(a.current)==="object"?ma((y=a.current)===null||y===void 0?void 0:y.nativeElement):null)||ma(o.current)};d.useImperativeHandle(t,function(){return h()});var p=d.useRef(e);p.current=e;var g=d.useCallback(function(m){var y=p.current,b=y.onResize,S=y.data,R=m.getBoundingClientRect(),w=R.width,E=R.height,C=m.offsetWidth,M=m.offsetHeight,T=Math.floor(w),F=Math.floor(E);if(l.current.width!==T||l.current.height!==F||l.current.offsetWidth!==C||l.current.offsetHeight!==M){var L={width:T,height:F,offsetWidth:C,offsetHeight:M};l.current=L;var z=C===Math.round(w)?w:C,_=M===Math.round(E)?E:M,I=A(A({},L),{},{offsetWidth:z,offsetHeight:_});i==null||i(I,m,S),b&&Promise.resolve().then(function(){b(I,m)})}},[]);return d.useEffect(function(){var m=h();return m&&!n&&pf(m,g),function(){return mf(m,g)}},[a.current,n]),d.createElement(bf,{ref:o},u?d.cloneElement(c,{ref:v}):c)}var xf=d.forwardRef(yf),Sf="rc-observer-key";function wf(e,t){var r=e.children,n=typeof r=="function"?[r]:Yr(r);return n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(Sf,"-").concat(o);return d.createElement(xf,Xe({},e,{key:i,ref:o===0?t:void 0}),a)})}var Fn=d.forwardRef(wf);Fn.Collection=gf;function Hl(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Wl=function(t){return+setTimeout(t,16)},Ul=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Wl=function(t){return window.requestAnimationFrame(t)},Ul=function(t){return window.cancelAnimationFrame(t)});var ss=0,Li=new Map;function ql(e){Li.delete(e)}var En=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ss+=1;var n=ss;function a(o){if(o===0)ql(n),t();else{var i=Wl(function(){a(o-1)});Li.set(n,i)}}return a(r),n};En.cancel=function(e){var t=Li.get(e);return ql(e),Ul(t)};function Gl(e){if(Array.isArray(e))return e}function Cf(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function Kl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Gl(e)||Cf(e,t)||Ll(e,t)||Kl()}function Rn(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 vt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ef(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var ls="data-rc-order",cs="data-rc-priority",Rf="rc-util-key",Bo=new Map;function Xl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Rf}function _a(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Pf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ni(e){return Array.from((Bo.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!vt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Pf(n),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(ls,i),s&&o&&c.setAttribute(cs,"".concat(o)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var l=_a(t),u=l.firstChild;if(n){if(s){var f=(t.styles||Ni(l)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(ls)))return!1;var h=Number(v.getAttribute(cs)||0);return o>=h});if(f.length)return l.insertBefore(c,f[f.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function Zl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=_a(t);return(t.styles||Ni(r)).find(function(n){return n.getAttribute(Xl(t))===e})}function Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Zl(e,t);if(r){var n=_a(t);n.removeChild(r)}}function $f(e,t){var r=Bo.get(e);if(!r||!Ef(document,r)){var n=Ql("",t),a=n.parentNode;Bo.set(e,a),e.removeChild(n)}}function or(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_a(r),a=Ni(n),o=A(A({},r),{},{styles:a});$f(n,o);var i=Zl(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var l;i.nonce=(l=o.csp)===null||l===void 0?void 0:l.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Ql(e,o);return u.setAttribute(Xl(o),t),u}function Vo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(Ct(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var l=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var u=0;u<o.length;u++)if(!a(o[u],i[u],l))return!1;return!0}if(o&&i&&le(o)==="object"&&le(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],l)})}return!1}return a(e,t)}var Tf="%";function Do(e){return e.join(Tf)}var jf=function(){function e(t){it(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),this.instanceId=t}return ot(e,[{key:"get",value:function(r){return this.opGet(Do(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Do(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),Jr="data-token-hash",_t="data-css-hash",gr="__cssinjs_instance__";function Of(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(_t,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[gr]=a[gr]||e,a[gr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(_t,"]"))).forEach(function(a){var o=a.getAttribute(_t);if(n[o]){if(a[gr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new jf(e)}var za=d.createContext({hashPriority:"low",cache:Of(),defaultCache:!0});function Mf(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var _i=function(){function e(){it(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ot(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,u){var f=U(l,2),v=f[1];return a.internalGet(u)[1]<v?[u,a.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var c=this.cache;r.forEach(function(l,u){if(u===r.length-1)c.set(l,{value:[n,a.cacheCallTimes++]});else{var f=c.get(l);f?f.map||(f.map=new Map):c.set(l,{map:new Map}),c=c.get(l).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Mf(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();j(_i,"MAX_CACHE_SIZE",20);j(_i,"MAX_CACHE_OFFSET",5);var us=0,Yl=function(){function e(t){it(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=us,t.length===0&&(t.length>0,void 0),us+=1}return ot(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),lo=new _i;function Ho(e){var t=Array.isArray(e)?e:[e];return lo.has(t)||lo.set(t,new Yl(t)),lo.get(t)}var Af=new WeakMap,co={};function If(e,t){for(var r=Af,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(co)||r.set(co,e()),r.get(co)}var ds=new WeakMap;function bn(e){var t=ds.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Yl?t+=n.id:n&&le(n)==="object"?t+=bn(n):t+=n}),t=Rn(t),ds.set(e,t)),t}function fs(e,t){return Rn("".concat(t,"_").concat(bn(e)))}var Wo=vt();function Ee(e){return typeof e=="number"?"".concat(e,"px"):e}function Ra(e,t,r){var n,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=A(A({},a),{},(n={},j(n,Jr,t),j(n,_t,r),n)),s=Object.keys(i).map(function(c){var l=i[c];return l?"".concat(c,'="').concat(l,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var ba=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").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()},Ff=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Jl=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,l=U(i,2),u=l[0],f=l[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[u])){var v,h=ba(u,n==null?void 0:n.prefix);a[h]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(h,")")}}),[o,Ff(a,r,{scope:n==null?void 0:n.scope})]},vs=vt()?d.useLayoutEffect:d.useEffect,Le=function(t,r){var n=d.useRef(!0);vs(function(){return t(n.current)},r),vs(function(){return n.current=!1,function(){n.current=!0}},[])},gs=function(t,r){Le(function(n){if(!n)return t()},r)},kf=A({},Fa),hs=kf.useInsertionEffect,Lf=function(t,r,n){d.useMemo(t,n),Le(function(){return r(!0)},n)},Nf=hs?function(e,t,r){return hs(function(){return e(),t()},r)}:Lf,_f=A({},Fa),zf=_f.useInsertionEffect,Bf=function(t){var r=[],n=!1;function a(o){n||r.push(o)}return d.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Vf=function(){return function(t){t()}},Df=typeof zf<"u"?Bf:Vf;function zi(e,t,r,n,a){var o=d.useContext(za),i=o.cache,s=[e].concat(Z(t)),c=Do(s),l=Df([c]),u=function(p){i.opUpdate(c,function(g){var m=g||[void 0,void 0],y=U(m,2),b=y[0],S=b===void 0?0:b,R=y[1],w=R,E=w||r(),C=[S,E];return p?p(C):C})};d.useMemo(function(){u()},[c]);var f=i.opGet(c),v=f[1];return Nf(function(){a==null||a(v)},function(h){return u(function(p){var g=U(p,2),m=g[0],y=g[1];return h&&m===0&&(a==null||a(v)),[m+1,y]}),function(){i.opUpdate(c,function(p){var g=p||[],m=U(g,2),y=m[0],b=y===void 0?0:y,S=m[1],R=b-1;return R===0?(l(function(){(h||!i.opGet(c))&&(n==null||n(S,!1))}),null):[b-1,S]})}},[c]),v}var Hf={},Wf="css",wr=new Map;function Uf(e){wr.set(e,(wr.get(e)||0)+1)}function qf(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Jr,'="').concat(e,'"]'));r.forEach(function(n){if(n[gr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Gf=0;function Kf(e,t){wr.set(e,(wr.get(e)||0)-1);var r=Array.from(wr.keys()),n=r.filter(function(a){var o=wr.get(a)||0;return o<=0});r.length-n.length>Gf&&n.forEach(function(a){qf(a,t),wr.delete(a)})}var Xf=function(t,r,n,a){var o=n.getDerivativeToken(t),i=A(A({},o),r);return a&&(i=a(i)),i},ec="token";function Qf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=d.useContext(za),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,c=r.override,l=c===void 0?Hf:c,u=r.formatToken,f=r.getComputedToken,v=r.cssVar,h=If(function(){return Object.assign.apply(Object,[{}].concat(Z(t)))},t),p=bn(h),g=bn(l),m=v?bn(v):"",y=zi(ec,[s,e.id,p,g,m],function(){var b,S=f?f(h,l,e):Xf(h,l,e,u),R=A({},S),w="";if(v){var E=Jl(S,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),C=U(E,2);S=C[0],w=C[1]}var M=fs(S,s);S._tokenKey=M,R._tokenKey=fs(R,s);var T=(b=v==null?void 0:v.key)!==null&&b!==void 0?b:M;S._themeKey=T,Uf(T);var F="".concat(Wf,"-").concat(Rn(M));return S._hashId=F,[S,F,R,w,(v==null?void 0:v.key)||""]},function(b){Kf(b[0]._themeKey,a)},function(b){var S=U(b,4),R=S[0],w=S[3];if(v&&w){var E=or(w,Rn("css-variables-".concat(R._themeKey)),{mark:_t,prepend:"queue",attachTo:o,priority:-999});E[gr]=a,E.setAttribute(Jr,R._themeKey)}});return y}var Zf=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],c=n||{},l=c.plain;if(!i)return null;var u=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Ra(i,s,u,v,l);return[f,u,h]},Yf={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},tc="comm",rc="rule",nc="decl",Jf="@import",ev="@keyframes",tv="@layer",ac=Math.abs,Bi=String.fromCharCode;function oc(e){return e.trim()}function ya(e,t,r){return e.replace(t,r)}function rv(e,t,r){return e.indexOf(t,r)}function $n(e,t){return e.charCodeAt(t)|0}function en(e,t,r){return e.slice(t,r)}function qt(e){return e.length}function nv(e){return e.length}function na(e,t){return t.push(e),e}var Ba=1,tn=1,ic=0,At=0,We=0,on="";function Vi(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Ba,column:tn,length:i,return:"",siblings:s}}function av(){return We}function ov(){return We=At>0?$n(on,--At):0,tn--,We===10&&(tn=1,Ba--),We}function zt(){return We=At<ic?$n(on,At++):0,tn++,We===10&&(tn=1,Ba++),We}function hr(){return $n(on,At)}function xa(){return At}function Va(e,t){return en(on,e,t)}function Tn(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 iv(e){return Ba=tn=1,ic=qt(on=e),At=0,[]}function sv(e){return on="",e}function uo(e){return oc(Va(At-1,Uo(e===91?e+2:e===40?e+1:e)))}function lv(e){for(;(We=hr())&&We<33;)zt();return Tn(e)>2||Tn(We)>3?"":" "}function cv(e,t){for(;--t&&zt()&&!(We<48||We>102||We>57&&We<65||We>70&&We<97););return Va(e,xa()+(t<6&&hr()==32&&zt()==32))}function Uo(e){for(;zt();)switch(We){case e:return At;case 34:case 39:e!==34&&e!==39&&Uo(We);break;case 40:e===41&&Uo(e);break;case 92:zt();break}return At}function uv(e,t){for(;zt()&&e+We!==57;)if(e+We===84&&hr()===47)break;return"/*"+Va(t,At-1)+"*"+Bi(e===47?e:zt())}function dv(e){for(;!Tn(hr());)zt();return Va(e,At)}function fv(e){return sv(Sa("",null,null,null,[""],e=iv(e),0,[0],e))}function Sa(e,t,r,n,a,o,i,s,c){for(var l=0,u=0,f=i,v=0,h=0,p=0,g=1,m=1,y=1,b=0,S="",R=a,w=o,E=n,C=S;m;)switch(p=b,b=zt()){case 40:if(p!=108&&$n(C,f-1)==58){rv(C+=ya(uo(b),"&","&\f"),"&\f",ac(l?s[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=uo(b);break;case 9:case 10:case 13:case 32:C+=lv(p);break;case 92:C+=cv(xa()-1,7);continue;case 47:switch(hr()){case 42:case 47:na(vv(uv(zt(),xa()),t,r,c),c),(Tn(p||1)==5||Tn(hr()||1)==5)&&qt(C)&&en(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:s[l++]=qt(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:y==-1&&(C=ya(C,/\f/g,"")),h>0&&(qt(C)-f||g===0&&p===47)&&na(h>32?ms(C+";",n,r,f-1,c):ms(ya(C," ","")+";",n,r,f-2,c),c);break;case 59:C+=";";default:if(na(E=ps(C,t,r,l,u,a,s,S,R=[],w=[],f,o),o),b===123)if(u===0)Sa(C,t,E,E,R,o,f,s,w);else switch(v===99&&$n(C,3)===110?100:v){case 100:case 108:case 109:case 115:Sa(e,E,E,n&&na(ps(e,E,E,0,0,a,s,S,a,R=[],f,w),w),a,w,f,s,n?R:w);break;default:Sa(C,E,E,E,[""],w,0,s,w)}}l=u=h=0,g=y=1,S=C="",f=i;break;case 58:f=1+qt(C),h=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&ov()==125)continue}switch(C+=Bi(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[l++]=(qt(C)-1)*y,y=1;break;case 64:hr()===45&&(C+=uo(zt())),v=hr(),u=f=qt(S=C+=dv(xa())),b++;break;case 45:p===45&&qt(C)==2&&(g=0)}}return o}function ps(e,t,r,n,a,o,i,s,c,l,u,f){for(var v=a-1,h=a===0?o:[""],p=nv(h),g=0,m=0,y=0;g<n;++g)for(var b=0,S=en(e,v+1,v=ac(m=i[g])),R=e;b<p;++b)(R=oc(m>0?h[b]+" "+S:ya(S,/&\f/g,h[b])))&&(c[y++]=R);return Vi(e,t,r,a===0?rc:s,c,l,u,f)}function vv(e,t,r,n){return Vi(e,t,r,tc,Bi(av()),en(e,2,-2),0,n)}function ms(e,t,r,n,a){return Vi(e,t,r,nc,en(e,0,n),en(e,n+1,-1),n,a)}function qo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function gv(e,t,r,n){switch(e.type){case tv:if(e.children.length)break;case Jf:case nc:return e.return=e.return||e.value;case tc:return"";case ev:return e.return=e.value+"{"+qo(e.children,n)+"}";case rc:if(!qt(e.value=e.props.join(",")))return""}return qt(r=qo(e.children,n))?e.return=e.value+"{"+r+"}":""}var bs="data-ant-cssinjs-cache-path",sc="_FILE_STYLE__",Pr,lc=!0;function hv(){if(!Pr&&(Pr={},vt())){var e=document.createElement("div");e.className=bs,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(a){var o=a.split(":"),i=U(o,2),s=i[0],c=i[1];Pr[s]=c});var r=document.querySelector("style[".concat(bs,"]"));if(r){var n;lc=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function pv(e){return hv(),!!Pr[e]}function mv(e){var t=Pr[e],r=null;if(t&&vt())if(lc)r=sc;else{var n=document.querySelector("style[".concat(_t,'="').concat(Pr[e],'"]'));n?r=n.innerHTML:delete Pr[e]}return[r,t]}var bv="_skip_check_",cc="_multi_value_";function wa(e){var t=qo(fv(e),gv);return t.replace(/\{%%%\:[^;];}/g,";")}function yv(e){return le(e)==="object"&&e&&(bv in e||cc in e)}function ys(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),l=c[0]||"",u=((s=l.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return l="".concat(u).concat(a).concat(l.slice(u.length)),[l].concat(Z(c.slice(1))).join(" ")});return o.join(",")}var xv=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,c=r.layer;r.path;var l=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var v="",h={};function p(y){var b=y.getName(s);if(!h[b]){var S=e(y.style,r,{root:!1,parentSelectors:i}),R=U(S,1),w=R[0];h[b]="@keyframes ".concat(y.getName(s)).concat(w)}}function g(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(S){Array.isArray(S)?g(S,b):S&&b.push(S)}),b}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(y){var b=typeof y=="string"&&!a?{}:y;if(typeof b=="string")v+="".concat(b,`
|
|
3
|
+
`);else if(b._keyframe)p(b);else{var S=f.reduce(function(R,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,R))||R},b);Object.keys(S).forEach(function(R){var w=S[R];if(le(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!yv(w)){var E=!1,C=R.trim(),M=!1;(a||o)&&s?C.startsWith("@")?E=!0:C==="&"?C=ys("",s,l):C=ys(R,s,l):a&&!s&&(C==="&"||C==="")&&(C="",M=!0);var T=e(w,r,{root:M,injectHash:E,parentSelectors:[].concat(Z(i),[C])}),F=U(T,2),L=F[0],z=F[1];h=A(A({},h),z),v+="".concat(C).concat(L)}else{let V=function($,P){var O=$.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),N=P;!Yf[$]&&typeof N=="number"&&N!==0&&(N="".concat(N,"px")),$==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(p(P),N=P.getName(s)),v+="".concat(O,":").concat(N,";")};var _,I=(_=w==null?void 0:w.value)!==null&&_!==void 0?_:w;le(w)==="object"&&w!==null&&w!==void 0&&w[cc]&&Array.isArray(I)?I.forEach(function($){V(R,$)}):V(R,I)}})}}),a?c&&(v&&(v="@layer ".concat(c.name," {").concat(v,"}")),c.dependencies&&(h["@layer ".concat(c.name)]=c.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(c.name,";")}).join(`
|
|
4
|
+
`))):v="{".concat(v,"}"),[v,h]};function uc(e,t){return Rn("".concat(e.join("%")).concat(t))}function Sv(){return null}var dc="style";function Go(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,l=c===void 0?0:c,u=d.useContext(za),f=u.autoClear;u.mock;var v=u.defaultCache,h=u.hashPriority,p=u.container,g=u.ssrInline,m=u.transformers,y=u.linters,b=u.cache,S=u.layer,R=r._tokenKey,w=[R];S&&w.push("layer"),w.push.apply(w,Z(n));var E=Wo,C=zi(dc,w,function(){var z=w.join("|");if(pv(z)){var _=mv(z),I=U(_,2),V=I[0],$=I[1];if(V)return[V,R,$,{},s,l]}var P=t(),O=xv(P,{hashId:a,hashPriority:h,layer:S?o:void 0,path:n.join("-"),transformers:m,linters:y}),N=U(O,2),B=N[0],k=N[1],D=wa(B),W=uc(w,D);return[D,R,W,k,s,l]},function(z,_){var I=U(z,3),V=I[2];(_||f)&&Wo&&Pn(V,{mark:_t})},function(z){var _=U(z,4),I=_[0];_[1];var V=_[2],$=_[3];if(E&&I!==sc){var P={mark:_t,prepend:S?!1:"queue",attachTo:p,priority:l},O=typeof i=="function"?i():i;O&&(P.csp={nonce:O});var N=[],B=[];Object.keys($).forEach(function(D){D.startsWith("@layer")?N.push(D):B.push(D)}),N.forEach(function(D){or(wa($[D]),"_layer-".concat(D),A(A({},P),{},{prepend:!0}))});var k=or(I,V,P);k[gr]=b.instanceId,k.setAttribute(Jr,R),B.forEach(function(D){or(wa($[D]),"_effect-".concat(D),P)})}}),M=U(C,3),T=M[0],F=M[1],L=M[2];return function(z){var _;if(!g||E||!v)_=d.createElement(Sv,null);else{var I;_=d.createElement("style",Xe({},(I={},j(I,Jr,F),j(I,_t,L),I),{dangerouslySetInnerHTML:{__html:T}}))}return d.createElement(d.Fragment,null,_,z)}}var wv=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],c=a[3],l=a[4],u=a[5],f=n||{},v=f.plain;if(l)return null;var h=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Ra(o,i,s,p,v),c&&Object.keys(c).forEach(function(g){if(!r[g]){r[g]=!0;var m=wa(c[g]),y=Ra(m,i,"_effect-".concat(g),p,v);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},fc="cssVar",Cv=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,l=c===void 0?"":c,u=d.useContext(za),f=u.cache.instanceId,v=u.container,h=s._tokenKey,p=[].concat(Z(t.path),[n,l,h]),g=zi(fc,p,function(){var m=r(),y=Jl(m,n,{prefix:a,unitless:o,ignore:i,scope:l}),b=U(y,2),S=b[0],R=b[1],w=uc(p,R);return[S,R,w,n]},function(m){var y=U(m,3),b=y[2];Wo&&Pn(b,{mark:_t})},function(m){var y=U(m,3),b=y[1],S=y[2];if(b){var R=or(b,S,{mark:_t,prepend:"queue",attachTo:v,priority:-999});R[gr]=f,R.setAttribute(Jr,n)}});return g},Ev=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],c=n||{},l=c.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},v=Ra(o,s,i,f,l);return[u,i,v]},vn;vn={},j(vn,dc,wv),j(vn,ec,Zf),j(vn,fc,Ev);var It=function(){function e(t,r){it(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=r}return ot(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function _r(e){return e.notSplit=!0,e}_r(["borderTop","borderBottom"]),_r(["borderTop"]),_r(["borderBottom"]),_r(["borderLeft","borderRight"]),_r(["borderLeft"]),_r(["borderRight"]);var Di=d.createContext({});function Rv(e){return Gl(e)||Fd(e)||Ll(e)||Kl()}function Gt(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function vc(e,t,r,n){if(!t.length)return r;var a=Rv(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Z(e):s=A({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=vc(s[o],i,r,n),s}function Lt(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Gt(e,t.slice(0,-1))?e:vc(e,t,r,n)}function Pv(e){return le(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function xs(e){return Array.isArray(e)?[]:{}}var $v=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function qr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=xs(t[0]);return t.forEach(function(a){function o(i,s){var c=new Set(s),l=Gt(a,i),u=Array.isArray(l);if(u||Pv(l)){if(!c.has(l)){c.add(l);var f=Gt(n,i);u?n=Lt(n,i,[]):(!f||le(f)!=="object")&&(n=Lt(n,i,xs(l))),$v(l).forEach(function(v){o([].concat(Z(i),[v]),c)})}}else n=Lt(n,i,l)}o([])}),n}function Tv(){}const jv=d.createContext({}),gc=()=>{const e=()=>{};return e.deprecated=Tv,e},Ov=d.createContext(void 0);var Mv={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"},Av={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Iv=A(A({},Av),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 hc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ss={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"]},Iv),timePickerLocale:Object.assign({},hc)},mt="${label} is not a valid ${type}",rn={locale:"en",Pagination:Mv,DatePicker:Ss,TimePicker:hc,Calendar:Ss,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:mt,method:mt,array:mt,object:mt,number:mt,date:mt,boolean:mt,integer:mt,float:mt,regexp:mt,email:mt,url:mt,hex:mt},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({},rn.Modal);let Ca=[];const ws=()=>Ca.reduce((e,t)=>Object.assign(Object.assign({},e),t),rn.Modal);function Fv(e){if(e){const t=Object.assign({},e);return Ca.push(t),ws(),()=>{Ca=Ca.filter(r=>r!==t),ws()}}Object.assign({},rn.Modal)}const Hi=d.createContext(void 0),kv=(e,t)=>{const r=d.useContext(Hi),n=d.useMemo(()=>{var o;const i=rn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=d.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?rn.locale:o},[r]);return[n,a]},Lv="internalMark",Nv=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;d.useEffect(()=>Fv(t==null?void 0:t.Modal),[t]);const a=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Hi.Provider,{value:a},r)};function Je(e,t){_v(e)&&(e="100%");var r=zv(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function aa(e){return Math.min(1,Math.max(0,e))}function _v(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zv(e){return typeof e=="string"&&e.indexOf("%")!==-1}function pc(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Cr(e){return e.length===1?"0"+e:String(e)}function Bv(e,t,r){return{r:Je(e,255)*255,g:Je(t,255)*255,b:Je(r,255)*255}}function Cs(e,t,r){e=Je(e,255),t=Je(t,255),r=Je(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var c=n-a;switch(i=s>.5?c/(2-n-a):c/(n+a),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s:i,l:s}}function fo(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Vv(e,t,r){var n,a,o;if(e=Je(e,360),t=Je(t,100),r=Je(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=fo(s,i,e+1/3),a=fo(s,i,e),o=fo(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Ko(e,t,r){e=Je(e,255),t=Je(t,255),r=Je(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,c=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:c,v:i}}function Dv(e,t,r){e=Je(e,360)*6,t=Je(t,100),r=Je(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,l=[r,i,o,o,s,r][c],u=[s,r,r,i,o,o][c],f=[o,o,s,r,r,i][c];return{r:l*255,g:u*255,b:f*255}}function Xo(e,t,r,n){var a=[Cr(Math.round(e).toString(16)),Cr(Math.round(t).toString(16)),Cr(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Hv(e,t,r,n,a){var o=[Cr(Math.round(e).toString(16)),Cr(Math.round(t).toString(16)),Cr(Math.round(r).toString(16)),Cr(Wv(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Wv(e){return Math.round(parseFloat(e)*255).toString(16)}function Es(e){return xt(e)/255}function xt(e){return parseInt(e,16)}function Uv(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Qo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wr(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Kv(e)),typeof e=="object"&&(nr(e.r)&&nr(e.g)&&nr(e.b)?(t=Bv(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):nr(e.h)&&nr(e.s)&&nr(e.v)?(n=oa(e.s),a=oa(e.v),t=Dv(e.h,n,a),i=!0,s="hsv"):nr(e.h)&&nr(e.s)&&nr(e.l)&&(n=oa(e.s),o=oa(e.l),t=Vv(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=pc(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var qv="[-\\+]?\\d+%?",Gv="[-\\+]?\\d*\\.\\d+%?",pr="(?:".concat(Gv,")|(?:").concat(qv,")"),vo="[\\s|\\(]+(".concat(pr,")[,|\\s]+(").concat(pr,")[,|\\s]+(").concat(pr,")\\s*\\)?"),go="[\\s|\\(]+(".concat(pr,")[,|\\s]+(").concat(pr,")[,|\\s]+(").concat(pr,")[,|\\s]+(").concat(pr,")\\s*\\)?"),kt={CSS_UNIT:new RegExp(pr),rgb:new RegExp("rgb"+vo),rgba:new RegExp("rgba"+go),hsl:new RegExp("hsl"+vo),hsla:new RegExp("hsla"+go),hsv:new RegExp("hsv"+vo),hsva:new RegExp("hsva"+go),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Kv(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Qo[e])e=Qo[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=kt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=kt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=kt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=kt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=kt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=kt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=kt.hex8.exec(e),r?{r:xt(r[1]),g:xt(r[2]),b:xt(r[3]),a:Es(r[4]),format:t?"name":"hex8"}:(r=kt.hex6.exec(e),r?{r:xt(r[1]),g:xt(r[2]),b:xt(r[3]),format:t?"name":"hex"}:(r=kt.hex4.exec(e),r?{r:xt(r[1]+r[1]),g:xt(r[2]+r[2]),b:xt(r[3]+r[3]),a:Es(r[4]+r[4]),format:t?"name":"hex8"}:(r=kt.hex3.exec(e),r?{r:xt(r[1]+r[1]),g:xt(r[2]+r[2]),b:xt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function nr(e){return!!kt.CSS_UNIT.exec(String(e))}var ut=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Uv(t)),this.originalInput=t;var a=Wr(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=pc(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ko(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ko(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Cs(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Cs(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Xo(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Hv(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Je(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Je(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Xo(this.r,this.g,this.b,!1),r=0,n=Object.entries(Qo);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=aa(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=aa(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=aa(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=aa(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ia=2,Rs=.16,Xv=.05,Qv=.05,Zv=.15,mc=5,bc=4,Yv=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ps(e){var t=e.r,r=e.g,n=e.b,a=Ko(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function sa(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Xo(t,r,n,!1))}function Jv(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function $s(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-ia*t:Math.round(e.h)+ia*t:n=r?Math.round(e.h)+ia*t:Math.round(e.h)-ia*t,n<0?n+=360:n>=360&&(n-=360),n}function Ts(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Rs*t:t===bc?n=e.s+Rs:n=e.s+Xv*t,n>1&&(n=1),r&&t===mc&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function js(e,t,r){var n;return r?n=e.v+Qv*t:n=e.v-Zv*t,n>1&&(n=1),Number(n.toFixed(2))}function jn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Wr(e),a=mc;a>0;a-=1){var o=Ps(n),i=sa(Wr({h:$s(o,a,!0),s:Ts(o,a,!0),v:js(o,a,!0)}));r.push(i)}r.push(sa(n));for(var s=1;s<=bc;s+=1){var c=Ps(n),l=sa(Wr({h:$s(c,s),s:Ts(c,s),v:js(c,s)}));r.push(l)}return t.theme==="dark"?Yv.map(function(u){var f=u.index,v=u.opacity,h=sa(Jv(Wr(t.backgroundColor||"#141414"),Wr(r[f]),v*100));return h}):r}var ho={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"},Zo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Zo.primary=Zo[5];var Yo=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Yo.primary=Yo[5];var Jo=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Jo.primary=Jo[5];var Pa=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Pa.primary=Pa[5];var ei=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ei.primary=ei[5];var ti=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ti.primary=ti[5];var ri=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ri.primary=ri[5];var ni=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ni.primary=ni[5];var $a=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$a.primary=$a[5];var ai=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ai.primary=ai[5];var oi=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];oi.primary=oi[5];var ii=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ii.primary=ii[5];var si=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];si.primary=si[5];var po={red:Zo,volcano:Yo,orange:Jo,gold:Pa,yellow:ei,lime:ti,green:ri,cyan:ni,blue:$a,geekblue:ai,purple:oi,magenta:ii,grey:si};const yc={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"},On=Object.assign(Object.assign({},yc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
5
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
6
|
+
'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});function eg(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,f=r(c),v=r(a),h=r(o),p=r(i),g=r(s),m=n(l,u),y=e.colorLink||e.colorInfo,b=r(y),S=new ut(p[1]).mix(new ut(p[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:S,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new ut("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const tg=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function rg(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},tg(n))}const ng=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ag(e){return(e+8)/e}function og(e){const t=new Array(10).fill(null).map((r,n)=>{const a=n-1,o=e*Math.pow(Math.E,a/5),i=n>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ag(r)}))}const ig=e=>{const t=og(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),a=r[1],o=r[0],i=r[2],s=n[1],c=n[0],l=n[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function sg(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const $t=(e,t)=>new ut(e).setAlpha(t).toRgbString(),gn=(e,t)=>new ut(e).darken(t).toHexString(),lg=e=>{const t=jn(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]}},cg=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:$t(n,.88),colorTextSecondary:$t(n,.65),colorTextTertiary:$t(n,.45),colorTextQuaternary:$t(n,.25),colorFill:$t(n,.15),colorFillSecondary:$t(n,.06),colorFillTertiary:$t(n,.04),colorFillQuaternary:$t(n,.02),colorBgSolid:$t(n,1),colorBgSolidHover:$t(n,.75),colorBgSolidActive:$t(n,.95),colorBgLayout:gn(r,4),colorBgContainer:gn(r,0),colorBgElevated:gn(r,0),colorBgSpotlight:$t(n,.85),colorBgBlur:"transparent",colorBorder:gn(r,15),colorBorderSecondary:gn(r,6)}};function ug(e){ho.pink=ho.magenta,po.pink=po.magenta;const t=Object.keys(yc).map(r=>{const n=e[r]===ho[r]?po[r]:jn(e[r]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${r}-${i+1}`]=n[i],a[`${r}${i+1}`]=n[i],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),eg(e,{generateColorPalettes:lg,generateNeutralColorPalettes:cg})),ig(e.fontSize)),sg(e)),ng(e)),rg(e))}const xc=Ho(ug),li={token:On,override:{override:On},hashed:!0},Sc=ie.createContext(li),ci="ant",wc="anticon",dg=["outlined","borderless","filled"],fg=(e,t)=>t||(e?`${ci}-${e}`:ci),Bt=d.createContext({getPrefixCls:fg,iconPrefixCls:wc}),vg=`-ant-${Date.now()}-${Math.random()}`;function gg(e,t){const r={},n=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new ut(i),l=jn(c.toRgbString());r[`${s}-color`]=n(c),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new ut(t.primaryColor),s=jn(i.toRgbString());s.forEach((l,u)=>{r[`primary-${u+1}`]=l}),r["primary-color-deprecated-l-35"]=n(i,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(i,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(i,l=>l.setAlpha(l.getAlpha()*.12));const c=new ut(s[0]);r["primary-color-active-deprecated-f-30"]=n(c,l=>l.setAlpha(l.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,l=>l.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
7
|
+
:root {
|
|
8
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
9
|
+
`)}
|
|
10
|
+
}
|
|
11
|
+
`.trim()}function hg(e,t){const r=gg(e,t);vt()&&or(r,`${vg}-dynamic-theme`)}const Ta=d.createContext(!1),pg=e=>{let{children:t,disabled:r}=e;const n=d.useContext(Ta);return d.createElement(Ta.Provider,{value:r??n},t)},nn=d.createContext(void 0),mg=e=>{let{children:t,size:r}=e;const n=d.useContext(nn);return d.createElement(nn.Provider,{value:r||n},t)};function bg(){const e=d.useContext(Ta),t=d.useContext(nn);return{componentDisabled:e,componentSize:t}}var Cc=ot(function e(){it(this,e)}),Ec="CALC_UNIT",yg=new RegExp(Ec,"g");function mo(e){return typeof e=="number"?"".concat(e).concat(Ec):e}var xg=function(e){$r(r,e);var t=Tr(r);function r(n,a){var o;it(this,r),o=t.call(this),j(ue(o),"result",""),j(ue(o),"unitlessCssVar",void 0),j(ue(o),"lowPriority",void 0);var i=le(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=mo(n):i==="string"&&(o.result=n),o}return ot(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(mo(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(mo(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(c=!1),this.result=this.result.replace(yg,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Cc),Sg=function(e){$r(r,e);var t=Tr(r);function r(n){var a;return it(this,r),a=t.call(this),j(ue(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return ot(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(Cc),wg=function(t,r){var n=t==="css"?xg:Sg;return function(a){return new n(a,r)}},Os=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function St(e){var t=d.useRef();t.current=e;var r=d.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function Mn(e){var t=d.useRef(!1),r=d.useState(e),n=U(r,2),a=n[0],o=n[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,c){c&&t.current||o(s)}return[a,i]}function bo(e){return e!==void 0}function An(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=Mn(function(){return bo(a)?a:bo(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=U(s,2),l=c[0],u=c[1],f=a!==void 0?a:l,v=i?i(f):f,h=St(o),p=Mn([f]),g=U(p,2),m=g[0],y=g[1];gs(function(){var S=m[0];l!==S&&h(l,S)},[m]),gs(function(){bo(a)||u(a)},[a]);var b=St(function(S,R){u(S,R),y([f],R)});return[v,b]}function Ms(e,t,r,n){var a=A({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var c=U(s,2),l=c[0],u=c[1];if(a!=null&&a[l]||a!=null&&a[u]){var f;(f=a[u])!==null&&f!==void 0||(a[u]=a==null?void 0:a[l])}})}var i=A(A({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Rc=typeof CSSINJS_STATISTIC<"u",ui=!0;function jr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Rc)return Object.assign.apply(Object,[{}].concat(t));ui=!1;var n={};return t.forEach(function(a){if(le(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),ui=!0,n}var As={};function Cg(){}var Eg=function(t){var r,n=t,a=Cg;return Rc&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){if(ui){var c;(c=r)===null||c===void 0||c.add(s)}return i[s]}}),a=function(i,s){var c;As[i]={global:Array.from(r),component:A(A({},(c=As[i])===null||c===void 0?void 0:c.component),s)}}),{token:n,keys:r,flush:a}};function Is(e,t,r){if(typeof r=="function"){var n;return r(jr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Rg(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return Ee(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return Ee(o)}).join(","),")")}}}var Pg=1e3*60*10,$g=function(){function e(){it(this,e),j(this,"map",new Map),j(this,"objectIDMap",new WeakMap),j(this,"nextID",0),j(this,"lastAccessBeat",new Map),j(this,"accessBeat",0)}return ot(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&le(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(le(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>Pg&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Fs=new $g;function Tg(e,t){return ie.useMemo(function(){var r=Fs.get(t);if(r)return r;var n=e();return Fs.set(t,n),n},t)}var jg=function(){return{}};function Og(e){var t=e.useCSP,r=t===void 0?jg:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(v,h,p,g){var m=Array.isArray(v)?v[0]:v;function y(M){return"".concat(String(m)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var b=(g==null?void 0:g.unitless)||{},S=typeof s=="function"?s(v):{},R=A(A({},S),{},j({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(M){R[y(M)]=b[M]});var w=A(A({},g),{},{unitless:R,prefixToken:y}),E=u(v,h,p,w),C=l(m,p,w);return function(M){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,F=E(M,T),L=U(F,2),z=L[1],_=C(T),I=U(_,2),V=I[0],$=I[1];return[V,z,$]}}function l(v,h,p){var g=p.unitless,m=p.injectStyle,y=m===void 0?!0:m,b=p.prefixToken,S=p.ignore,R=function(C){var M=C.rootCls,T=C.cssVar,F=T===void 0?{}:T,L=n(),z=L.realToken;return Cv({path:[v],prefix:F.prefix,key:F.key,unitless:g,ignore:S,token:z,scope:M},function(){var _=Is(v,z,h),I=Ms(v,z,_,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(_).forEach(function(V){I[b(V)]=I[V],delete I[V]}),I}),null},w=function(C){var M=n(),T=M.cssVar;return[function(F){return y&&T?ie.createElement(ie.Fragment,null,ie.createElement(R,{rootCls:C,cssVar:T,component:v}),F):F},T==null?void 0:T.key]};return w}function u(v,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(v)?v:[v,v],y=U(m,1),b=y[0],S=m.join("-"),R=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,C=n(),M=C.theme,T=C.realToken,F=C.hashId,L=C.token,z=C.cssVar,_=a(),I=_.rootPrefixCls,V=_.iconPrefixCls,$=r(),P=z?"css":"js",O=Tg(function(){var H=new Set;return z&&Object.keys(g.unitless||{}).forEach(function(G){H.add(ba(G,z.prefix)),H.add(ba(G,Os(b,z.prefix)))}),wg(P,H)},[P,b,z==null?void 0:z.prefix]),N=Rg(P),B=N.max,k=N.min,D={theme:M,token:L,hashId:F,nonce:function(){return $.nonce},clientOnly:g.clientOnly,layer:R,order:g.order||-999};typeof o=="function"&&Go(A(A({},D),{},{clientOnly:!1,path:["Shared",I]}),function(){return o(L,{prefix:{rootPrefixCls:I,iconPrefixCls:V},csp:$})});var W=Go(A(A({},D),{},{path:[S,w,V]}),function(){if(g.injectStyle===!1)return[];var H=Eg(L),G=H.token,re=H.flush,te=Is(b,T,p),Re=".".concat(w),me=Ms(b,T,te,{deprecatedTokens:g.deprecatedTokens});z&&te&&le(te)==="object"&&Object.keys(te).forEach(function(ge){te[ge]="var(".concat(ba(ge,Os(b,z.prefix)),")")});var be=jr(G,{componentCls:Re,prefixCls:w,iconCls:".".concat(V),antCls:".".concat(I),calc:O,max:B,min:k},z?te:me),ye=h(be,{hashId:F,prefixCls:w,rootPrefixCls:I,iconPrefixCls:V});re(b,me);var ae=typeof i=="function"?i(be,w,E,g.resetFont):null;return[g.resetStyle===!1?null:ae,ye]});return[W,F]}}function f(v,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(v,h,p,A({resetStyle:!1,order:-998},g)),y=function(S){var R=S.prefixCls,w=S.rootCls,E=w===void 0?R:w;return m(R,E),null};return y}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:u}}const ja=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Mg="5.22.2";function yo(e){return e>=0&&e<=255}function la(e,t){const{r,g:n,b:a,a:o}=new ut(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new ut(t).toRgb();for(let l=.01;l<=1;l+=.01){const u=Math.round((r-i*(1-l))/l),f=Math.round((n-s*(1-l))/l),v=Math.round((a-c*(1-l))/l);if(yo(u)&&yo(f)&&yo(v))return new ut({r:u,g:f,b:v,a:Math.round(l*100)/100}).toRgbString()}return new ut({r,g:n,b:a,a:1}).toRgbString()}var Ag=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Pc(e){const{override:t}=e,r=Ag(e,["override"]),n=Object.assign({},t);Object.keys(On).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,c=992,l=1200,u=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:la(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:la(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:la(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:la(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
12
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
13
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
14
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
15
|
+
`,boxShadowSecondary:`
|
|
16
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
17
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
18
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
19
|
+
`,boxShadowTertiary:`
|
|
20
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
21
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
22
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
23
|
+
`,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
24
|
+
0 1px 2px -2px ${new ut("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
25
|
+
0 3px 6px 0 ${new ut("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
26
|
+
0 5px 12px 4px ${new ut("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
27
|
+
`,boxShadowDrawerRight:`
|
|
28
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerLeft:`
|
|
32
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowDrawerUp:`
|
|
36
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
37
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
38
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
39
|
+
`,boxShadowDrawerDown:`
|
|
40
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
41
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
42
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
43
|
+
`,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)"}),n)}var ks=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $c={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},Ig={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Fg={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},Tc=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=ks(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Pc(i),o&&Object.entries(o).forEach(s=>{let[c,l]=s;const{theme:u}=l,f=ks(l,["theme"]);let v=f;u&&(v=Tc(Object.assign(Object.assign({},i),f),{override:f},u)),i[c]=v}),i};function sn(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=ie.useContext(Sc),o=`${Mg}-${t||""}`,i=r||xc,[s,c,l]=Qf(i,[On,e],{salt:o,override:n,getComputedToken:Tc,formatToken:Pc,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:$c,ignore:Ig,preserve:Fg}});return[i,l,t?c:"",s,a]}const Wi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},kg=()=>({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"}}),Lg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ng=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"}}}),_g=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},zg=e=>({outline:`${Ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Bg=e=>({"&:focus-visible":Object.assign({},zg(e))}),jc=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Bg(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Oc=(e,t)=>{const[r,n]=sn();return Go({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},kg()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Ui,genComponentStyleHook:Yy,genSubStyleComponent:Jy}=Og({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=sn();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=d.useContext(Bt);return Oc(t,e),e??{}},getResetStyles:e=>[{"&":Ng(e)}],getCommonStyle:_g,getCompUnitless:()=>$c});function Vg(e,t){return ja.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Dg=Object.assign({},Fa),{useId:Ls}=Dg,Hg=()=>"",Wg=typeof Ls>"u"?Hg:Ls;function Ug(e,t,r){var n;gc();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},li),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:li.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Wg();return Ai(()=>{var s,c;if(!e)return t;const l=Object.assign({},o.components);Object.keys(e.components||{}).forEach(v=>{l[v]=Object.assign(Object.assign({},l[v]),e.components[v])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||u});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:l,cssVar:f})},[a,o],(s,c)=>s.some((l,u)=>{const f=c[u];return!Vo(l,f,!0)}))}var qg=["children"],Mc=d.createContext({});function Gg(e){var t=e.children,r=Rt(e,qg);return d.createElement(Mc.Provider,{value:r},t)}var Kg=function(e){$r(r,e);var t=Tr(r);function r(){return it(this,r),t.apply(this,arguments)}return ot(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function Xg(e){var t=d.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=d.useRef(e),o=St(function(){return a.current}),i=St(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var fr="none",ca="appear",ua="enter",da="leave",Ns="none",Nt="prepare",Gr="start",Kr="active",qi="end",Ac="prepared";function _s(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Qg(e,t){var r={animationend:_s("Animation","AnimationEnd"),transitionend:_s("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Zg=Qg(vt(),typeof window<"u"?window:{}),Ic={};if(vt()){var Yg=document.createElement("div");Ic=Yg.style}var fa={};function Fc(e){if(fa[e])return fa[e];var t=Zg[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Ic)return fa[e]=t[o],fa[e]}return""}var kc=Fc("animationend"),Lc=Fc("transitionend"),Nc=!!(kc&&Lc),zs=kc||"animationend",Bs=Lc||"transitionend";function Vs(e,t){if(!e)return null;if(le(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const Jg=function(e){var t=d.useRef();function r(a){a&&(a.removeEventListener(Bs,e),a.removeEventListener(zs,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Bs,e),a.addEventListener(zs,e),t.current=a)}return d.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var _c=vt()?d.useLayoutEffect:d.useEffect;const eh=function(){var e=d.useRef(null);function t(){En.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=En(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[r,t]};var th=[Nt,Gr,Kr,qi],rh=[Nt,Ac],zc=!1,nh=!0;function Bc(e){return e===Kr||e===qi}const ah=function(e,t,r){var n=Mn(Ns),a=U(n,2),o=a[0],i=a[1],s=eh(),c=U(s,2),l=c[0],u=c[1];function f(){i(Nt,!0)}var v=t?rh:th;return _c(function(){if(o!==Ns&&o!==qi){var h=v.indexOf(o),p=v[h+1],g=r(o);g===zc?i(p,!0):p&&l(function(m){function y(){m.isCanceled()||i(p,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function oh(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,c=n.motionLeave,l=c===void 0?!0:c,u=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,h=n.onEnterPrepare,p=n.onLeavePrepare,g=n.onAppearStart,m=n.onEnterStart,y=n.onLeaveStart,b=n.onAppearActive,S=n.onEnterActive,R=n.onLeaveActive,w=n.onAppearEnd,E=n.onEnterEnd,C=n.onLeaveEnd,M=n.onVisibleChanged,T=Mn(),F=U(T,2),L=F[0],z=F[1],_=Xg(fr),I=U(_,2),V=I[0],$=I[1],P=Mn(null),O=U(P,2),N=O[0],B=O[1],k=V(),D=d.useRef(!1),W=d.useRef(null);function H(){return r()}var G=d.useRef(!1);function re(){$(fr),B(null,!0)}var te=St(function(Se){var se=V();if(se!==fr){var Ne=H();if(!(Se&&!Se.deadline&&Se.target!==Ne)){var Q=G.current,Fe;se===ca&&Q?Fe=w==null?void 0:w(Ne,Se):se===ua&&Q?Fe=E==null?void 0:E(Ne,Se):se===da&&Q&&(Fe=C==null?void 0:C(Ne,Se)),Q&&Fe!==!1&&re()}}}),Re=Jg(te),me=U(Re,1),be=me[0],ye=function(se){switch(se){case ca:return j(j(j({},Nt,v),Gr,g),Kr,b);case ua:return j(j(j({},Nt,h),Gr,m),Kr,S);case da:return j(j(j({},Nt,p),Gr,y),Kr,R);default:return{}}},ae=d.useMemo(function(){return ye(k)},[k]),ge=ah(k,!e,function(Se){if(Se===Nt){var se=ae[Nt];return se?se(H()):zc}if(de in ae){var Ne;B(((Ne=ae[de])===null||Ne===void 0?void 0:Ne.call(ae,H(),null))||null)}return de===Kr&&k!==fr&&(be(H()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){te({deadline:!0})},u))),de===Ac&&re(),nh}),we=U(ge,2),ce=we[0],de=we[1],Oe=Bc(de);G.current=Oe,_c(function(){z(t);var Se=D.current;D.current=!0;var se;!Se&&t&&s&&(se=ca),Se&&t&&o&&(se=ua),(Se&&!t&&l||!Se&&f&&!t&&l)&&(se=da);var Ne=ye(se);se&&(e||Ne[Nt])?($(se),ce()):$(fr)},[t]),d.useEffect(function(){(k===ca&&!s||k===ua&&!o||k===da&&!l)&&$(fr)},[s,o,l]),d.useEffect(function(){return function(){D.current=!1,clearTimeout(W.current)}},[]);var xe=d.useRef(!1);d.useEffect(function(){L&&(xe.current=!0),L!==void 0&&k===fr&&((xe.current||L)&&(M==null||M(L)),xe.current=!0)},[L,k]);var Ae=N;return ae[Nt]&&de===Gr&&(Ae=A({transition:"none"},Ae)),[k,de,Ae,L??t]}function ih(e){var t=e;le(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=d.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,l=c===void 0?!0:c,u=a.forceRender,f=a.children,v=a.motionName,h=a.leavedClassName,p=a.eventProps,g=d.useContext(Mc),m=g.motion,y=r(a,m),b=d.useRef(),S=d.useRef();function R(){try{return b.current instanceof HTMLElement?b.current:ma(S.current)}catch{return null}}var w=oh(y,s,R,a),E=U(w,4),C=E[0],M=E[1],T=E[2],F=E[3],L=d.useRef(F);F&&(L.current=!0);var z=d.useCallback(function(O){b.current=O,Ii(o,O)},[o]),_,I=A(A({},p),{},{visible:s});if(!f)_=null;else if(C===fr)F?_=f(A({},I),z):!l&&L.current&&h?_=f(A(A({},I),{},{className:h}),z):u||!l&&!h?_=f(A(A({},I),{},{style:{display:"none"}}),z):_=null;else{var V;M===Nt?V="prepare":Bc(M)?V="active":M===Gr&&(V="start");var $=Vs(v,"".concat(C,"-").concat(V));_=f(A(A({},I),{},{className:pe(Vs(v,C),j(j({},$,$&&V),v,typeof v=="string")),style:T}),z)}if(d.isValidElement(_)&&Na(_)){var P=ki(_);P||(_=d.cloneElement(_,{ref:z}))}return d.createElement(Kg,{ref:S},_)});return n.displayName="CSSMotion",n}const Gi=ih(Nc);var di="add",fi="keep",vi="remove",xo="removed";function sh(e){var t;return e&&le(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function gi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(sh)}function lh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=gi(e),i=gi(t);o.forEach(function(l){for(var u=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===l.key){n<f&&(r=r.concat(i.slice(n,f).map(function(h){return A(A({},h),{},{status:di})})),n=f),r.push(A(A({},v),{},{status:fi})),n+=1,u=!0;break}}u||r.push(A(A({},l),{},{status:vi}))}),n<a&&(r=r.concat(i.slice(n).map(function(l){return A(A({},l),{},{status:di})})));var s={};r.forEach(function(l){var u=l.key;s[u]=(s[u]||0)+1});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){r=r.filter(function(u){var f=u.key,v=u.status;return f!==l||v!==vi}),r.forEach(function(u){u.key===l&&(u.status=fi)})}),r}var ch=["component","children","onVisibleChanged","onAllRemoved"],uh=["status"],dh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gi,r=function(n){$r(o,n);var a=Tr(o);function o(){var i;it(this,o);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a.call.apply(a,[this].concat(c)),j(ue(i),"state",{keyEntities:[]}),j(ue(i),"removeKey",function(u){i.setState(function(f){var v=f.keyEntities.map(function(h){return h.key!==u?h:A(A({},h),{},{status:xo})});return{keyEntities:v}},function(){var f=i.state.keyEntities,v=f.filter(function(h){var p=h.status;return p!==xo}).length;v===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return ot(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,l=this.props,u=l.component,f=l.children,v=l.onVisibleChanged;l.onAllRemoved;var h=Rt(l,ch),p=u||d.Fragment,g={};return dh.forEach(function(m){g[m]=h[m],delete h[m]}),delete h.keys,d.createElement(p,h,c.map(function(m,y){var b=m.status,S=Rt(m,uh),R=b===di||b===fi;return d.createElement(t,Xe({},g,{key:S.key,visible:R,eventProps:S,onVisibleChanged:function(E){v==null||v(E,{key:S.key}),E||s.removeKey(S.key)}}),function(w,E){return f(A(A({},w),{},{index:y}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var l=s.keys,u=c.keyEntities,f=gi(l),v=lh(u,f);return{keyEntities:v.filter(function(h){var p=u.find(function(g){var m=g.key;return h.key===m});return!(p&&p.status===xo&&h.status===vi)})}}}]),o}(d.Component);return j(r,"defaultProps",{component:"div"}),r}fh(Nc);function vh(e){const{children:t}=e,[,r]=sn(),{motion:n}=r,a=d.useRef(!1);return a.current=a.current||n===!1,a.current?d.createElement(Gg,{motion:n},t):t}const gh=()=>null;var hh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const ph=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vc;function mh(){return Vc||ci}function bh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const yh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Vc=t),n&&bh(n)&&hg(mh(),n)},xh=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:l,space:u,splitter:f,virtual:v,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:m,parentContext:y,iconPrefixCls:b,theme:S,componentDisabled:R,segmented:w,statistic:E,spin:C,calendar:M,carousel:T,cascader:F,collapse:L,typography:z,checkbox:_,descriptions:I,divider:V,drawer:$,skeleton:P,steps:O,image:N,layout:B,list:k,mentions:D,modal:W,progress:H,result:G,slider:re,breadcrumb:te,menu:Re,pagination:me,input:be,textArea:ye,empty:ae,badge:ge,radio:we,rate:ce,switch:de,transfer:Oe,avatar:xe,message:Ae,tag:Se,table:se,card:Ne,tabs:Q,timeline:Fe,timePicker:Be,upload:Ve,notification:dt,tree:st,colorPicker:ht,datePicker:et,rangePicker:Dt,flex:Qe,wave:he,dropdown:ne,warning:tt,tour:X,floatButtonGroup:J,variant:De,inputNumber:Kt,treeSelect:lr}=e,Or=d.useCallback((Me,Ce)=>{const{prefixCls:ct}=e;if(Ce)return Ce;const nt=ct||y.getPrefixCls("");return Me?`${nt}-${Me}`:nt},[y.getPrefixCls,e.prefixCls]),Xt=b||y.iconPrefixCls||wc,rt=r||y.csp;Oc(Xt,rt);const Ze=Ug(S,y.theme,{prefixCls:Or("")}),Qt={csp:rt,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||m,direction:l,space:u,splitter:f,virtual:v,popupMatchSelectWidth:p??h,popupOverflow:g,getPrefixCls:Or,iconPrefixCls:Xt,theme:Ze,segmented:w,statistic:E,spin:C,calendar:M,carousel:T,cascader:F,collapse:L,typography:z,checkbox:_,descriptions:I,divider:V,drawer:$,skeleton:P,steps:O,image:N,input:be,textArea:ye,layout:B,list:k,mentions:D,modal:W,progress:H,result:G,slider:re,breadcrumb:te,menu:Re,pagination:me,empty:ae,badge:ge,radio:we,rate:ce,switch:de,transfer:Oe,avatar:xe,message:Ae,tag:Se,table:se,card:Ne,tabs:Q,timeline:Fe,timePicker:Be,upload:Ve,notification:dt,tree:st,colorPicker:ht,datePicker:et,rangePicker:Dt,flex:Qe,wave:he,dropdown:ne,warning:tt,tour:X,floatButtonGroup:J,variant:De,inputNumber:Kt,treeSelect:lr},_e=Object.assign({},y);Object.keys(Qt).forEach(Me=>{Qt[Me]!==void 0&&(_e[Me]=Qt[Me])}),ph.forEach(Me=>{const Ce=e[Me];Ce&&(_e[Me]=Ce)}),typeof n<"u"&&(_e.button=Object.assign({autoInsertSpace:n},_e.button));const lt=Ai(()=>_e,_e,(Me,Ce)=>{const ct=Object.keys(Me),nt=Object.keys(Ce);return ct.length!==nt.length||ct.some(pt=>Me[pt]!==Ce[pt])}),Pe=d.useMemo(()=>({prefixCls:Xt,csp:rt}),[Xt,rt]);let oe=d.createElement(d.Fragment,null,d.createElement(gh,{dropdownMatchSelectWidth:h}),t);const ft=d.useMemo(()=>{var Me,Ce,ct,nt;return qr(((Me=rn.Form)===null||Me===void 0?void 0:Me.defaultValidateMessages)||{},((ct=(Ce=lt.locale)===null||Ce===void 0?void 0:Ce.Form)===null||ct===void 0?void 0:ct.defaultValidateMessages)||{},((nt=lt.form)===null||nt===void 0?void 0:nt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[lt,i==null?void 0:i.validateMessages]);Object.keys(ft).length>0&&(oe=d.createElement(Ov.Provider,{value:ft},oe)),s&&(oe=d.createElement(Nv,{locale:s,_ANT_MARK__:Lv},oe)),(Xt||rt)&&(oe=d.createElement(Di.Provider,{value:Pe},oe)),c&&(oe=d.createElement(mg,{size:c},oe)),oe=d.createElement(vh,null,oe);const Zt=d.useMemo(()=>{const Me=Ze||{},{algorithm:Ce,token:ct,components:nt,cssVar:pt}=Me,Mr=hh(Me,["algorithm","token","components","cssVar"]),Ar=Ce&&(!Array.isArray(Ce)||Ce.length>0)?Ho(Ce):xc,Yt={};Object.entries(nt||{}).forEach(mr=>{let[er,tr]=mr;const Ue=Object.assign({},tr);"algorithm"in Ue&&(Ue.algorithm===!0?Ue.theme=Ar:(Array.isArray(Ue.algorithm)||typeof Ue.algorithm=="function")&&(Ue.theme=Ho(Ue.algorithm)),delete Ue.algorithm),Yt[er]=Ue});const Jt=Object.assign(Object.assign({},On),ct);return Object.assign(Object.assign({},Mr),{theme:Ar,token:Jt,components:Yt,override:Object.assign({override:Jt},Yt),cssVar:pt})},[Ze]);return S&&(oe=d.createElement(Sc.Provider,{value:Zt},oe)),lt.warning&&(oe=d.createElement(jv.Provider,{value:lt.warning},oe)),R!==void 0&&(oe=d.createElement(pg,{disabled:R},oe)),d.createElement(Bt.Provider,{value:lt},oe)},kn=e=>{const t=d.useContext(Bt),r=d.useContext(Hi);return d.createElement(xh,Object.assign({parentContext:t,legacyLocale:r},e))};kn.ConfigContext=Bt;kn.SizeContext=nn;kn.config=yh;kn.useConfig=bg;Object.defineProperty(kn,"SizeContext",{get:()=>nn});function Dc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Sh(e){return Dc(e)instanceof ShadowRoot}function Oa(e){return Sh(e)?Dc(e):null}function wh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Ch(e,t){Ct(e,"[@ant-design/icons] ".concat(t))}function Ds(e){return le(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(le(e.icon)==="object"||typeof e.icon=="function")}function Hs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[wh(r)]=n}return t},{})}function hi(e,t,r){return r?ie.createElement(e.tag,A(A({key:t},Hs(e.attrs)),r),(e.children||[]).map(function(n,a){return hi(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ie.createElement(e.tag,A({key:t},Hs(e.attrs)),(e.children||[]).map(function(n,a){return hi(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Hc(e){return jn(e)[0]}function Wc(e){return e?Array.isArray(e)?e:[e]:[]}var Eh=`
|
|
44
|
+
.anticon {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
color: inherit;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
line-height: 0;
|
|
50
|
+
text-align: center;
|
|
51
|
+
text-transform: none;
|
|
52
|
+
vertical-align: -0.125em;
|
|
53
|
+
text-rendering: optimizeLegibility;
|
|
54
|
+
-webkit-font-smoothing: antialiased;
|
|
55
|
+
-moz-osx-font-smoothing: grayscale;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.anticon > * {
|
|
59
|
+
line-height: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.anticon svg {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.anticon::before {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.anticon .anticon-icon {
|
|
71
|
+
display: block;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.anticon[tabindex] {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.anticon-spin::before,
|
|
79
|
+
.anticon-spin {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
82
|
+
animation: loadingCircle 1s infinite linear;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@-webkit-keyframes loadingCircle {
|
|
86
|
+
100% {
|
|
87
|
+
-webkit-transform: rotate(360deg);
|
|
88
|
+
transform: rotate(360deg);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@keyframes loadingCircle {
|
|
93
|
+
100% {
|
|
94
|
+
-webkit-transform: rotate(360deg);
|
|
95
|
+
transform: rotate(360deg);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`,Rh=function(t){var r=d.useContext(Di),n=r.csp,a=r.prefixCls,o=Eh;a&&(o=o.replace(/anticon/g,a)),d.useEffect(function(){var i=t.current,s=Oa(i);or(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},Ph=["icon","className","onClick","style","primaryColor","secondaryColor"],yn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $h(e){var t=e.primaryColor,r=e.secondaryColor;yn.primaryColor=t,yn.secondaryColor=r||Hc(t),yn.calculated=!!r}function Th(){return A({},yn)}var ln=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=Rt(t,Ph),l=d.useRef(),u=yn;if(i&&(u={primaryColor:i,secondaryColor:s||Hc(i)}),Rh(l),Ch(Ds(r),"icon should be icon definiton, but got ".concat(r)),!Ds(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),hi(f.icon,"svg-".concat(f.name),A(A({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:l}))};ln.displayName="IconReact";ln.getTwoToneColors=Th;ln.setTwoToneColors=$h;function Uc(e){var t=Wc(e),r=U(t,2),n=r[0],a=r[1];return ln.setTwoToneColors({primaryColor:n,secondaryColor:a})}function jh(){var e=ln.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Oh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Uc($a.primary);var sr=d.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,l=Rt(e,Oh),u=d.useContext(Di),f=u.prefixCls,v=f===void 0?"anticon":f,h=u.rootClassName,p=pe(h,v,j(j({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),g=i;g===void 0&&s&&(g=-1);var m=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=Wc(c),b=U(y,2),S=b[0],R=b[1];return d.createElement("span",Xe({role:"img","aria-label":n.name},l,{ref:t,tabIndex:g,onClick:s,className:p}),d.createElement(ln,{icon:n,primaryColor:S,secondaryColor:R,style:m}))});sr.displayName="AntdIcon";sr.getTwoToneColor=jh;sr.setTwoToneColor=Uc;var Mh={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"},Ah=function(t,r){return d.createElement(sr,Xe({},t,{ref:r,icon:Mh}))},Ih=d.forwardRef(Ah);function Fh(e){return e&&ie.isValidElement(e)&&e.type===ie.Fragment}const kh=(e,t,r)=>ie.isValidElement(e)?ie.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function qc(e,t){return kh(e,e,t)}const Lh=e=>{const[,,,,t]=sn();return t?`${e}-css-var`:""};var Y={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Y.F1&&r<=Y.F12)return!1;switch(r){case Y.ALT:case Y.CAPS_LOCK:case Y.CONTEXT_MENU:case Y.CTRL:case Y.DOWN:case Y.END:case Y.ESC:case Y.HOME:case Y.INSERT:case Y.LEFT:case Y.MAC_FF_META:case Y.META:case Y.NUMLOCK:case Y.NUM_CENTER:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.PAUSE:case Y.PRINT_SCREEN:case Y.RIGHT:case Y.SHIFT:case Y.UP:case Y.WIN_KEY:case Y.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Y.ZERO&&t<=Y.NINE||t>=Y.NUM_ZERO&&t<=Y.NUM_MULTIPLY||t>=Y.A&&t<=Y.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Y.SPACE:case Y.QUESTION_MARK:case Y.NUM_PLUS:case Y.NUM_MINUS:case Y.NUM_PERIOD:case Y.NUM_DIVISION:case Y.SEMICOLON:case Y.DASH:case Y.EQUALS:case Y.COMMA:case Y.PERIOD:case Y.SLASH:case Y.APOSTROPHE:case Y.SINGLE_QUOTE:case Y.OPEN_SQUARE_BRACKET:case Y.BACKSLASH:case Y.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Nh={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"},_h=function(t,r){return d.createElement(sr,Xe({},t,{ref:r,icon:Nh}))},zh=d.forwardRef(_h);const Gc=ie.createContext(void 0),Sr=100,Kc={Modal:Sr,Drawer:Sr,Popover:Sr,Popconfirm:Sr,Tooltip:Sr,Tour:Sr,FloatButton:Sr},Bh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Vh(e){return e in Kc}const Dh=(e,t)=>{const[,r]=sn(),n=ie.useContext(Gc),a=Vh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Kc[e]:i+=Bh[e],o=[n===void 0?t:i,i]}return o};function Vt(){Vt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function($,P,O){$[P]=O.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l($,P,O){return Object.defineProperty($,P,{value:O,enumerable:!0,configurable:!0,writable:!0}),$[P]}try{l({},"")}catch{l=function(O,N,B){return O[N]=B}}function u($,P,O,N){var B=P&&P.prototype instanceof y?P:y,k=Object.create(B.prototype),D=new I(N||[]);return a(k,"_invoke",{value:F($,O,D)}),k}function f($,P,O){try{return{type:"normal",arg:$.call(P,O)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var v="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function b(){}function S(){}var R={};l(R,i,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(V([])));E&&E!==r&&n.call(E,i)&&(R=E);var C=S.prototype=y.prototype=Object.create(R);function M($){["next","throw","return"].forEach(function(P){l($,P,function(O){return this._invoke(P,O)})})}function T($,P){function O(B,k,D,W){var H=f($[B],$,k);if(H.type!=="throw"){var G=H.arg,re=G.value;return re&&le(re)=="object"&&n.call(re,"__await")?P.resolve(re.__await).then(function(te){O("next",te,D,W)},function(te){O("throw",te,D,W)}):P.resolve(re).then(function(te){G.value=te,D(G)},function(te){return O("throw",te,D,W)})}W(H.arg)}var N;a(this,"_invoke",{value:function(k,D){function W(){return new P(function(H,G){O(k,D,H,G)})}return N=N?N.then(W,W):W()}})}function F($,P,O){var N=v;return function(B,k){if(N===p)throw Error("Generator is already running");if(N===g){if(B==="throw")throw k;return{value:e,done:!0}}for(O.method=B,O.arg=k;;){var D=O.delegate;if(D){var W=L(D,O);if(W){if(W===m)continue;return W}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(N===v)throw N=g,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);N=p;var H=f($,P,O);if(H.type==="normal"){if(N=O.done?g:h,H.arg===m)continue;return{value:H.arg,done:O.done}}H.type==="throw"&&(N=g,O.method="throw",O.arg=H.arg)}}}function L($,P){var O=P.method,N=$.iterator[O];if(N===e)return P.delegate=null,O==="throw"&&$.iterator.return&&(P.method="return",P.arg=e,L($,P),P.method==="throw")||O!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+O+"' method")),m;var B=f(N,$.iterator,P.arg);if(B.type==="throw")return P.method="throw",P.arg=B.arg,P.delegate=null,m;var k=B.arg;return k?k.done?(P[$.resultName]=k.value,P.next=$.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,m):k:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,m)}function z($){var P={tryLoc:$[0]};1 in $&&(P.catchLoc=$[1]),2 in $&&(P.finallyLoc=$[2],P.afterLoc=$[3]),this.tryEntries.push(P)}function _($){var P=$.completion||{};P.type="normal",delete P.arg,$.completion=P}function I($){this.tryEntries=[{tryLoc:"root"}],$.forEach(z,this),this.reset(!0)}function V($){if($||$===""){var P=$[i];if(P)return P.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var O=-1,N=function B(){for(;++O<$.length;)if(n.call($,O))return B.value=$[O],B.done=!1,B;return B.value=e,B.done=!0,B};return N.next=N}}throw new TypeError(le($)+" is not iterable")}return b.prototype=S,a(C,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:b,configurable:!0}),b.displayName=l(S,c,"GeneratorFunction"),t.isGeneratorFunction=function($){var P=typeof $=="function"&&$.constructor;return!!P&&(P===b||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,S):($.__proto__=S,l($,c,"GeneratorFunction")),$.prototype=Object.create(C),$},t.awrap=function($){return{__await:$}},M(T.prototype),l(T.prototype,s,function(){return this}),t.AsyncIterator=T,t.async=function($,P,O,N,B){B===void 0&&(B=Promise);var k=new T(u($,P,O,N),B);return t.isGeneratorFunction(P)?k:k.next().then(function(D){return D.done?D.value:k.next()})},M(C),l(C,c,"Generator"),l(C,i,function(){return this}),l(C,"toString",function(){return"[object Generator]"}),t.keys=function($){var P=Object($),O=[];for(var N in P)O.push(N);return O.reverse(),function B(){for(;O.length;){var k=O.pop();if(k in P)return B.value=k,B.done=!1,B}return B.done=!0,B}},t.values=V,I.prototype={constructor:I,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!P)for(var O in this)O.charAt(0)==="t"&&n.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=e)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var O=this;function N(G,re){return D.type="throw",D.arg=P,O.next=G,re&&(O.method="next",O.arg=e),!!re}for(var B=this.tryEntries.length-1;B>=0;--B){var k=this.tryEntries[B],D=k.completion;if(k.tryLoc==="root")return N("end");if(k.tryLoc<=this.prev){var W=n.call(k,"catchLoc"),H=n.call(k,"finallyLoc");if(W&&H){if(this.prev<k.catchLoc)return N(k.catchLoc,!0);if(this.prev<k.finallyLoc)return N(k.finallyLoc)}else if(W){if(this.prev<k.catchLoc)return N(k.catchLoc,!0)}else{if(!H)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return N(k.finallyLoc)}}}},abrupt:function(P,O){for(var N=this.tryEntries.length-1;N>=0;--N){var B=this.tryEntries[N];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var k=B;break}}k&&(P==="break"||P==="continue")&&k.tryLoc<=O&&O<=k.finallyLoc&&(k=null);var D=k?k.completion:{};return D.type=P,D.arg=O,k?(this.method="next",this.next=k.finallyLoc,m):this.complete(D)},complete:function(P,O){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&O&&(this.next=O),m},finish:function(P){for(var O=this.tryEntries.length-1;O>=0;--O){var N=this.tryEntries[O];if(N.finallyLoc===P)return this.complete(N.completion,N.afterLoc),_(N),m}},catch:function(P){for(var O=this.tryEntries.length-1;O>=0;--O){var N=this.tryEntries[O];if(N.tryLoc===P){var B=N.completion;if(B.type==="throw"){var k=B.arg;_(N)}return k}}throw Error("illegal catch attempt")},delegateYield:function(P,O,N){return this.delegate={iterator:V(P),resultName:O,nextLoc:N},this.method==="next"&&(this.arg=e),m}},t}function Ws(e,t,r,n,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,a)}function Ln(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(c){Ws(o,n,a,i,s,"next",c)}function s(c){Ws(o,n,a,i,s,"throw",c)}i(void 0)})}}const Hh=(e,t,r)=>r!==void 0?r:`${e}-${t}`,Wh=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Uh=e=>{const t=ie.useContext(nn);return ie.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},qh=d.createContext(null),Gh=e=>{let{children:t}=e;return d.createElement(qh.Provider,{value:null},t)},Kh=e=>({animationDuration:e,animationFillMode:"both"}),Xh=e=>({animationDuration:e,animationFillMode:"both"}),Qh=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
99
|
+
${o}${e}-enter,
|
|
100
|
+
${o}${e}-appear
|
|
101
|
+
`]:Object.assign(Object.assign({},Kh(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Xh(n)),{animationPlayState:"paused"}),[`
|
|
102
|
+
${o}${e}-enter${e}-enter-active,
|
|
103
|
+
${o}${e}-appear${e}-appear-active
|
|
104
|
+
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Zh=new It("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yh=new It("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Us=new It("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qs=new It("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Jh=new It("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ep=new It("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),tp=new It("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),rp=new It("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),np=new It("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ap=new It("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),op=new It("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ip=new It("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),sp={zoom:{inKeyframes:Zh,outKeyframes:Yh},"zoom-big":{inKeyframes:Us,outKeyframes:qs},"zoom-big-fast":{inKeyframes:Us,outKeyframes:qs},"zoom-left":{inKeyframes:tp,outKeyframes:rp},"zoom-right":{inKeyframes:np,outKeyframes:ap},"zoom-up":{inKeyframes:Jh,outKeyframes:ep},"zoom-down":{inKeyframes:op,outKeyframes:ip}},lp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=sp[t];return[Qh(n,a,o,e.motionDurationFast),{[`
|
|
105
|
+
${n}-enter,
|
|
106
|
+
${n}-appear
|
|
107
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function cp(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function up(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function dp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},cp(e,n,t)),up(r,n,t))}}var Xc=d.createContext(null),Gs=[];function fp(e,t){var r=d.useState(function(){if(!vt())return null;var p=document.createElement("div");return p}),n=U(r,1),a=n[0],o=d.useRef(!1),i=d.useContext(Xc),s=d.useState(Gs),c=U(s,2),l=c[0],u=c[1],f=i||(o.current?void 0:function(p){u(function(g){var m=[p].concat(Z(g));return m})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function h(){var p;(p=a.parentElement)===null||p===void 0||p.removeChild(a),o.current=!1}return Le(function(){return e?i?i(v):v():h(),h},[e]),Le(function(){l.length&&(l.forEach(function(p){return p()}),u(Gs))},[l]),[a,f]}function vp(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),l=parseInt(s.height,10);try{var u=c?"width: ".concat(s.width,";"):"",f=l?"height: ".concat(s.height,";"):"";or(`
|
|
108
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
109
|
+
`).concat(u,`
|
|
110
|
+
`).concat(f,`
|
|
111
|
+
}`),t)}catch(p){console.error(p),a=c,o=l}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,h=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Pn(t),{width:v,height:h}}function gp(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:vp(e)}function hp(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pp="rc-util-locker-".concat(Date.now()),Ks=0;function mp(e){var t=!!e,r=d.useState(function(){return Ks+=1,"".concat(pp,"_").concat(Ks)}),n=U(r,1),a=n[0];Le(function(){if(t){var o=gp(document.body).width,i=hp();or(`
|
|
112
|
+
html body {
|
|
113
|
+
overflow-y: hidden;
|
|
114
|
+
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
115
|
+
}`),a)}else Pn(a);return function(){Pn(a)}},[t,a])}var bp=!1;function yp(e){return bp}var Xs=function(t){return t===!1?!1:!vt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Qc=d.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=d.useState(r),l=U(c,2),u=l[0],f=l[1],v=u||r;d.useEffect(function(){(i||r)&&f(r)},[r,i]);var h=d.useState(function(){return Xs(a)}),p=U(h,2),g=p[0],m=p[1];d.useEffect(function(){var L=Xs(a);m(L??null)});var y=fp(v&&!g),b=U(y,2),S=b[0],R=b[1],w=g??S;mp(n&&r&&vt()&&(w===S||w===document.body));var E=null;if(s&&Na(s)&&t){var C=s;E=C.ref}var M=Fi(E,t);if(!v||!vt()||g===void 0)return null;var T=w===!1||yp(),F=s;return t&&(F=d.cloneElement(s,{ref:M})),d.createElement(Xc.Provider,{value:R},T?F:Yu.createPortal(F,w))});function xp(){var e=A({},Fa);return e.useId}var Qs=0,Zs=xp();const Sp=Zs?function(t){var r=Zs();return t||r}:function(t){var r=d.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return d.useEffect(function(){var i=Qs;Qs+=1,o("rc_unique_".concat(i))},[]),t||a};var Er="RC_FORM_INTERNAL_HOOKS",$e=function(){Ct(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},an=d.createContext({getFieldValue:$e,getFieldsValue:$e,getFieldError:$e,getFieldWarning:$e,getFieldsError:$e,isFieldsTouched:$e,isFieldTouched:$e,isFieldValidating:$e,isFieldsValidating:$e,resetFields:$e,setFields:$e,setFieldValue:$e,setFieldsValue:$e,validateFields:$e,submit:$e,getInternalHooks:function(){return $e(),{dispatch:$e,initEntityValue:$e,registerField:$e,useSubscribe:$e,setInitialValues:$e,destroyForm:$e,setCallbacks:$e,registerWatch:$e,getFields:$e,setValidateMessages:$e,setPreserve:$e,getInitialValue:$e}}}),Ma=d.createContext(null);function pi(e){return e==null?[]:Array.isArray(e)?e:[e]}function wp(e){return e&&!!e._init}function mi(){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 bi=mi();function Cp(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ep(e,t,r){if(Ld())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Ol(a,r.prototype),a}function yi(e){var t=typeof Map=="function"?new Map:void 0;return yi=function(n){if(n===null||!Cp(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,a)}function a(){return Ep(n,arguments,kd(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ol(a,n)},yi(e)}var Rp=/%[sdj%]/g,Pp=function(){};function xi(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function wt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(Rp,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function $p(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ge(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$p(t)&&typeof e=="string"&&!e)}function Tp(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Z(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function Ys(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function jp(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Z(e[r]||[]))}),t}var Js=function(e){$r(r,e);var t=Tr(r);function r(n,a){var o;return it(this,r),o=t.call(this,"Async Validation Error"),j(ue(o),"errors",void 0),j(ue(o),"fields",void 0),o.errors=n,o.fields=a,o}return ot(r)}(yi(Error));function Op(e,t,r,n,a){if(t.first){var o=new Promise(function(v,h){var p=function(y){return n(y),y.length?h(new Js(y,xi(y))):v(a)},g=jp(e);Ys(g,r,p)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],f=new Promise(function(v,h){var p=function(m){if(u.push.apply(u,m),l++,l===c)return n(u),u.length?h(new Js(u,xi(u))):v(a)};s.length||(n(u),v(a)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?Ys(m,r,p):Tp(m,r,p)})});return f.catch(function(v){return v}),f}function Mp(e){return!!(e&&e.message!==void 0)}function Ap(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function el(e,t){return function(r){var n;return e.fullFields?n=Ap(t,e.fullFields):n=t[r.field||e.fullField],Mp(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function tl(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];le(n)==="object"&&le(e[r])==="object"?e[r]=A(A({},e[r]),n):e[r]=n}}return e}var zr="enum",Ip=function(t,r,n,a,o){t[zr]=Array.isArray(t[zr])?t[zr]:[],t[zr].indexOf(r)===-1&&a.push(wt(o.messages[zr],t.fullField,t[zr].join(", ")))},Fp=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(wt(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(wt(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},kp=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,v=typeof r=="number",h=typeof r=="string",p=Array.isArray(r);if(v?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(u=r.length),h&&(u=r.replace(l,"_").length),i?u!==t.len&&a.push(wt(o.messages[f].len,t.fullField,t.len)):s&&!c&&u<t.min?a.push(wt(o.messages[f].min,t.fullField,t.min)):c&&!s&&u>t.max?a.push(wt(o.messages[f].max,t.fullField,t.max)):s&&c&&(u<t.min||u>t.max)&&a.push(wt(o.messages[f].range,t.fullField,t.min,t.max))},Zc=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Ge(r,i||t.type))&&a.push(wt(o.messages.required,t.fullField))},va;const Lp=function(){if(va)return va;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(r,"$")),l=new RegExp("^".concat(i,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(r).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,p=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]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',R="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(h,"|").concat(p,"|").concat(g).concat(m).concat(y,")").concat(b).concat(S);return va=new RegExp("(?:^".concat(R,"$)"),"i"),va};var rl={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},mn={integer:function(t){return mn.number(t)&&parseInt(t,10)===t},float:function(t){return mn.number(t)&&!mn.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 le(t)==="object"&&!mn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(rl.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Lp())},hex:function(t){return typeof t=="string"&&!!t.match(rl.hex)}},Np=function(t,r,n,a,o){if(t.required&&r===void 0){Zc(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?mn[s](r)||a.push(wt(o.messages.types[s],t.fullField,t.type)):s&&le(r)!==t.type&&a.push(wt(o.messages.types[s],t.fullField,t.type))},_p=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(wt(o.messages.whitespace,t.fullField))};const ve={required:Zc,whitespace:_p,type:Np,range:kp,enum:Ip,pattern:Fp};var zp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o)}n(i)},Bp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ve.required(t,r,a,i,o,"array"),r!=null&&(ve.type(t,r,a,i,o),ve.range(t,r,a,i,o))}n(i)},Vp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&ve.type(t,r,a,i,o)}n(i)},Dp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r,"date")&&!t.required)return n();if(ve.required(t,r,a,i,o),!Ge(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),ve.type(t,c,a,i,o),c&&ve.range(t,c.getTime(),a,i,o)}}n(i)},Hp="enum",Wp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&ve[Hp](t,r,a,i,o)}n(i)},Up=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&(ve.type(t,r,a,i,o),ve.range(t,r,a,i,o))}n(i)},qp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&(ve.type(t,r,a,i,o),ve.range(t,r,a,i,o))}n(i)},Gp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&ve.type(t,r,a,i,o)}n(i)},Kp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&(ve.type(t,r,a,i,o),ve.range(t,r,a,i,o))}n(i)},Xp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),r!==void 0&&ve.type(t,r,a,i,o)}n(i)},Qp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r,"string")&&!t.required)return n();ve.required(t,r,a,i,o),Ge(r,"string")||ve.pattern(t,r,a,i,o)}n(i)},Zp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r)&&!t.required)return n();ve.required(t,r,a,i,o),Ge(r)||ve.type(t,r,a,i,o)}n(i)},Yp=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":le(r);ve.required(t,r,a,i,o,s),n(i)},Jp=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ge(r,"string")&&!t.required)return n();ve.required(t,r,a,i,o,"string"),Ge(r,"string")||(ve.type(t,r,a,i,o),ve.range(t,r,a,i,o),ve.pattern(t,r,a,i,o),t.whitespace===!0&&ve.whitespace(t,r,a,i,o))}n(i)},So=function(t,r,n,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Ge(r,i)&&!t.required)return n();ve.required(t,r,a,s,o,i),Ge(r,i)||ve.type(t,r,a,s,o)}n(s)};const xn={string:Jp,method:Gp,number:Kp,boolean:Vp,regexp:Zp,integer:qp,float:Up,array:Bp,object:Xp,enum:Wp,pattern:Qp,date:Dp,url:So,hex:So,email:So,required:Yp,any:zp};var Nn=function(){function e(t){it(this,e),j(this,"rules",null),j(this,"_messages",bi),this.define(t)}return ot(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(le(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=tl(mi(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function l(p){var g=[],m={};function y(S){if(Array.isArray(S)){var R;g=(R=g).concat.apply(R,Z(S))}else g.push(S)}for(var b=0;b<p.length;b++)y(p[b]);g.length?(m=xi(g),c(g,m)):c(null,i)}if(s.messages){var u=this.messages();u===bi&&(u=mi()),tl(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(p){var g=n.rules[p],m=i[p];g.forEach(function(y){var b=y;typeof b.transform=="function"&&(i===r&&(i=A({},i)),m=i[p]=b.transform(m),m!=null&&(b.type=b.type||(Array.isArray(m)?"array":le(m)))),typeof b=="function"?b={validator:b}:b=A({},b),b.validator=n.getValidationMethod(b),b.validator&&(b.field=p,b.fullField=b.fullField||p,b.type=n.getType(b),f[p]=f[p]||[],f[p].push({rule:b,value:m,source:i,field:p}))})});var h={};return Op(f,s,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(le(m.fields)==="object"||le(m.defaultField)==="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function b(C,M){return A(A({},M),{},{fullField:"".concat(m.fullField,".").concat(C),fullFields:m.fullFields?[].concat(Z(m.fullFields),[C]):[C]})}function S(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(C)?C:[C];!s.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&m.message!==void 0&&(M=[].concat(m.message));var T=M.map(el(m,i));if(s.first&&T.length)return h[m.field]=1,g(T);if(!y)g(T);else{if(m.required&&!p.value)return m.message!==void 0?T=[].concat(m.message).map(el(m,i)):s.error&&(T=[s.error(m,wt(s.messages.required,m.field))]),g(T);var F={};m.defaultField&&Object.keys(p.value).map(function(_){F[_]=m.defaultField}),F=A(A({},F),p.rule.fields);var L={};Object.keys(F).forEach(function(_){var I=F[_],V=Array.isArray(I)?I:[I];L[_]=V.map(b.bind(null,_))});var z=new e(L);z.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),z.validate(p.value,p.rule.options||s,function(_){var I=[];T&&T.length&&I.push.apply(I,Z(T)),_&&_.length&&I.push.apply(I,Z(_)),g(I.length?I:null)})}}var R;if(m.asyncValidator)R=m.asyncValidator(m,p.value,S,p.source,s);else if(m.validator){try{R=m.validator(m,p.value,S,p.source,s)}catch(C){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,C),s.suppressValidatorError||setTimeout(function(){throw C},0),S(C.message)}R===!0?S():R===!1?S(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):R instanceof Array?S(R):R instanceof Error&&S(R.message)}R&&R.then&&R.then(function(){return S()},function(C){return S(C)})},function(p){l(p)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!xn.hasOwnProperty(r.type))throw new Error(wt("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?xn.required:xn[this.getType(r)]||void 0}}]),e}();j(Nn,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");xn[t]=r});j(Nn,"warning",Pp);j(Nn,"messages",bi);j(Nn,"validators",xn);var bt="'${name}' is not a valid ${type}",Yc={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:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},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}"}},nl=Nn;function em(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var al="CODE_LOGIC_ERROR";function Si(e,t,r,n,a){return wi.apply(this,arguments)}function wi(){return wi=Ln(Vt().mark(function e(t,r,n,a,o){var i,s,c,l,u,f,v,h,p;return Vt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=A({},n),delete i.ruleIndex,nl.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(al)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),l=new nl(j({},t,[i])),u=qr(Yc,a.validateMessages),l.messages(u),f=[],m.prev=10,m.next=13,Promise.resolve(l.validate(j({},t,r),A({},a)));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(y,b){var S=y.message,R=S===al?u.default:S;return d.isValidElement(R)?d.cloneElement(R,{key:"error_".concat(b)}):R}));case 18:if(!(!f.length&&c)){m.next=23;break}return m.next=21,Promise.all(r.map(function(y,b){return Si("".concat(t,".").concat(b),y,c,a,o)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(y,b){return[].concat(Z(y),Z(b))},[]));case 23:return h=A(A({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),p=f.map(function(y){return typeof y=="string"?em(y,h):y}),m.abrupt("return",p);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),wi.apply(this,arguments)}function tm(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(u,f){var v=u.validator,h=A(A({},u),{},{ruleIndex:f});return v&&(h.validator=function(p,g,m){var y=!1,b=function(){for(var w=arguments.length,E=new Array(w),C=0;C<w;C++)E[C]=arguments[C];Promise.resolve().then(function(){Ct(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||m.apply(void 0,E)})},S=v(p,g,b);y=S&&typeof S.then=="function"&&typeof S.catch=="function",Ct(y,"`callback` is deprecated. Please return a promise instead."),y&&S.then(function(){m()}).catch(function(R){m(R||" ")})}),h}).sort(function(u,f){var v=u.warningOnly,h=u.ruleIndex,p=f.warningOnly,g=f.ruleIndex;return!!v==!!p?h-g:v?1:-1}),c;if(a===!0)c=new Promise(function(){var u=Ln(Vt().mark(function f(v,h){var p,g,m;return Vt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:p=0;case 1:if(!(p<s.length)){b.next=12;break}return g=s[p],b.next=5,Si(i,t,g,n,o);case 5:if(m=b.sent,!m.length){b.next=9;break}return h([{errors:m,rule:g}]),b.abrupt("return");case 9:p+=1,b.next=1;break;case 12:v([]);case 13:case"end":return b.stop()}},f)}));return function(f,v){return u.apply(this,arguments)}}());else{var l=s.map(function(u){return Si(i,t,u,n,o).then(function(f){return{errors:f,rule:u}})});c=(a?nm(l):rm(l)).then(function(u){return Promise.reject(u)})}return c.catch(function(u){return u}),c}function rm(e){return Ci.apply(this,arguments)}function Ci(){return Ci=Ln(Vt().mark(function e(t){return Vt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Z(a));return i}));case 1:case"end":return n.stop()}},e)})),Ci.apply(this,arguments)}function nm(e){return Ei.apply(this,arguments)}function Ei(){return Ei=Ln(Vt().mark(function e(t){var r;return Vt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Ei.apply(this,arguments)}function He(e){return pi(e)}function ol(e,t){var r={};return t.forEach(function(n){var a=Gt(e,n);r=Lt(r,n,a)}),r}function Qr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Jc(t,n,r)})}function Jc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function am(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||le(e)!=="object"||le(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Z(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function om(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&le(t.target)==="object"&&e in t.target?t.target[e]:t}function il(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(Z(e.slice(0,r)),[a],Z(e.slice(r,t)),Z(e.slice(t+1,n))):o<0?[].concat(Z(e.slice(0,t)),Z(e.slice(t+1,r+1)),[a],Z(e.slice(r+1,n))):e}var im=["name"],Tt=[];function wo(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var Ki=function(e){$r(r,e);var t=Tr(r);function r(n){var a;if(it(this,r),a=t.call(this,n),j(ue(a),"state",{resetCount:0}),j(ue(a),"cancelRegisterFunc",null),j(ue(a),"mounted",!1),j(ue(a),"touched",!1),j(ue(a),"dirty",!1),j(ue(a),"validatePromise",void 0),j(ue(a),"prevValidating",void 0),j(ue(a),"errors",Tt),j(ue(a),"warnings",Tt),j(ue(a),"cancelRegister",function(){var c=a.props,l=c.preserve,u=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,l,He(f)),a.cancelRegisterFunc=null}),j(ue(a),"getNamePath",function(){var c=a.props,l=c.name,u=c.fieldContext,f=u.prefixName,v=f===void 0?[]:f;return l!==void 0?[].concat(Z(v),Z(l)):[]}),j(ue(a),"getRules",function(){var c=a.props,l=c.rules,u=l===void 0?[]:l,f=c.fieldContext;return u.map(function(v){return typeof v=="function"?v(f):v})}),j(ue(a),"refresh",function(){a.mounted&&a.setState(function(c){var l=c.resetCount;return{resetCount:l+1}})}),j(ue(a),"metaCache",null),j(ue(a),"triggerMetaEvent",function(c){var l=a.props.onMetaChange;if(l){var u=A(A({},a.getMeta()),{},{destroy:c});Vo(a.metaCache,u)||l(u),a.metaCache=u}else a.metaCache=null}),j(ue(a),"onStoreChange",function(c,l,u){var f=a.props,v=f.shouldUpdate,h=f.dependencies,p=h===void 0?[]:h,g=f.onReset,m=u.store,y=a.getNamePath(),b=a.getValue(c),S=a.getValue(m),R=l&&Qr(l,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!Vo(b,S)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Tt,a.warnings=Tt,a.triggerMetaEvent()),u.type){case"reset":if(!l||R){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Tt,a.warnings=Tt,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(v&&wo(v,c,m,b,S,u)){a.reRender();return}break}case"setField":{var w=u.data;if(R){"touched"in w&&(a.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(a.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(a.errors=w.errors||Tt),"warnings"in w&&(a.warnings=w.warnings||Tt),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in w&&Qr(l,y,!0)){a.reRender();return}if(v&&!y.length&&wo(v,c,m,b,S,u)){a.reRender();return}break}case"dependenciesUpdate":{var E=p.map(He);if(E.some(function(C){return Qr(u.relatedFields,C)})){a.reRender();return}break}default:if(R||(!p.length||y.length||v)&&wo(v,c,m,b,S,u)){a.reRender();return}break}v===!0&&a.reRender()}),j(ue(a),"validateRules",function(c){var l=a.getNamePath(),u=a.getValue(),f=c||{},v=f.triggerName,h=f.validateOnly,p=h===void 0?!1:h,g=Promise.resolve().then(Ln(Vt().mark(function m(){var y,b,S,R,w,E,C;return Vt().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(a.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=a.props,b=y.validateFirst,S=b===void 0?!1:b,R=y.messageVariables,w=y.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(F){return F}).filter(function(F){var L=F.validateTrigger;if(!L)return!0;var z=pi(L);return z.includes(v)})),!(w&&v)){T.next=10;break}return T.next=8,new Promise(function(F){setTimeout(F,w)});case 8:if(a.validatePromise===g){T.next=10;break}return T.abrupt("return",[]);case 10:return C=tm(l,u,E,c,S,R),C.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tt;if(a.validatePromise===g){var L;a.validatePromise=null;var z=[],_=[];(L=F.forEach)===null||L===void 0||L.call(F,function(I){var V=I.rule.warningOnly,$=I.errors,P=$===void 0?Tt:$;V?_.push.apply(_,Z(P)):z.push.apply(z,Z(P))}),a.errors=z,a.warnings=_,a.triggerMetaEvent(),a.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},m)})));return p||(a.validatePromise=g,a.dirty=!0,a.errors=Tt,a.warnings=Tt,a.triggerMetaEvent(),a.reRender()),g}),j(ue(a),"isFieldValidating",function(){return!!a.validatePromise}),j(ue(a),"isFieldTouched",function(){return a.touched}),j(ue(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,l=c.getInternalHooks(Er),u=l.getInitialValue;return u(a.getNamePath())!==void 0}),j(ue(a),"getErrors",function(){return a.errors}),j(ue(a),"getWarnings",function(){return a.warnings}),j(ue(a),"isListField",function(){return a.props.isListField}),j(ue(a),"isList",function(){return a.props.isList}),j(ue(a),"isPreserve",function(){return a.props.preserve}),j(ue(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),j(ue(a),"getOnlyChild",function(c){if(typeof c=="function"){var l=a.getMeta();return A(A({},a.getOnlyChild(c(a.getControlled(),l,a.props.fieldContext))),{},{isFunction:!0})}var u=Yr(c);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),j(ue(a),"getValue",function(c){var l=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return Gt(c||l(!0),u)}),j(ue(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=a.props,u=l.name,f=l.trigger,v=l.validateTrigger,h=l.getValueFromEvent,p=l.normalize,g=l.valuePropName,m=l.getValueProps,y=l.fieldContext,b=v!==void 0?v:y.validateTrigger,S=a.getNamePath(),R=y.getInternalHooks,w=y.getFieldsValue,E=R(Er),C=E.dispatch,M=a.getValue(),T=m||function(I){return j({},g,I)},F=c[f],L=u!==void 0?T(M):{},z=A(A({},c),L);z[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var I,V=arguments.length,$=new Array(V),P=0;P<V;P++)$[P]=arguments[P];h?I=h.apply(void 0,$):I=om.apply(void 0,[g].concat($)),p&&(I=p(I,M,w(!0))),I!==M&&C({type:"updateValue",namePath:S,value:I}),F&&F.apply(void 0,$)};var _=pi(b||[]);return _.forEach(function(I){var V=z[I];z[I]=function(){V&&V.apply(void 0,arguments);var $=a.props.rules;$&&$.length&&C({type:"validateField",namePath:S,triggerName:I})}}),z}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(Er),s=i.initEntityValue;s(ue(a))}return a}return ot(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,c=s(Er),l=c.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 a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,c=i.isFunction,l;return c?l=s:d.isValidElement(s)?l=d.cloneElement(s,this.getControlled(s.props)):(Ct(!s,"`children` of Field is not validate ReactElement."),l=s),d.createElement(d.Fragment,{key:a},l)}}]),r}(d.Component);j(Ki,"contextType",an);j(Ki,"defaultProps",{trigger:"onChange",valuePropName:"value"});function eu(e){var t=e.name,r=Rt(e,im),n=d.useContext(an),a=d.useContext(Ma),o=t!==void 0?He(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),d.createElement(Ki,Xe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function sm(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=d.useContext(an),c=d.useContext(Ma),l=d.useRef({keys:[],id:0}),u=l.current,f=d.useMemo(function(){var g=He(s.prefixName)||[];return[].concat(Z(g),Z(He(t)))},[s.prefixName,t]),v=d.useMemo(function(){return A(A({},s),{},{prefixName:f})},[s,f]),h=d.useMemo(function(){return{getKey:function(m){var y=f.length,b=m[y];return[u.keys[b],m.slice(y+1)]}}},[f]);if(typeof n!="function")return Ct(!1,"Form.List only accepts function as children."),null;var p=function(m,y,b){var S=b.source;return S==="internal"?!1:m!==y};return d.createElement(Ma.Provider,{value:h},d.createElement(an.Provider,{value:v},d.createElement(eu,{name:[],shouldUpdate:p,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!c},function(g,m){var y=g.value,b=y===void 0?[]:y,S=g.onChange,R=s.getFieldValue,w=function(){var T=R(f||[]);return T||[]},E={add:function(T,F){var L=w();F>=0&&F<=L.length?(u.keys=[].concat(Z(u.keys.slice(0,F)),[u.id],Z(u.keys.slice(F))),S([].concat(Z(L.slice(0,F)),[T],Z(L.slice(F))))):(u.keys=[].concat(Z(u.keys),[u.id]),S([].concat(Z(L),[T]))),u.id+=1},remove:function(T){var F=w(),L=new Set(Array.isArray(T)?T:[T]);L.size<=0||(u.keys=u.keys.filter(function(z,_){return!L.has(_)}),S(F.filter(function(z,_){return!L.has(_)})))},move:function(T,F){if(T!==F){var L=w();T<0||T>=L.length||F<0||F>=L.length||(u.keys=il(u.keys,T,F),S(il(L,T,F)))}}},C=b||[];return Array.isArray(C)||(C=[]),n(C.map(function(M,T){var F=u.keys[T];return F===void 0&&(u.keys[T]=u.id,F=u.keys[T],u.id+=1),{name:T,key:F,isListField:!0}}),E,m)})))}function lm(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[s]=c,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var tu="__@field_split__";function Co(e){return e.map(function(t){return"".concat(le(t),":").concat(t)}).join(tu)}var Br=function(){function e(){it(this,e),j(this,"kvs",new Map)}return ot(e,[{key:"set",value:function(r,n){this.kvs.set(Co(r),n)}},{key:"get",value:function(r){return this.kvs.get(Co(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Co(r))}},{key:"map",value:function(r){return Z(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(tu);return r({key:s.map(function(c){var l=c.match(/^([^:]*):(.*)$/),u=U(l,3),f=u[1],v=u[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),cm=["name"],um=ot(function e(t){var r=this;it(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),j(this,"getInternalHooks",function(n){return n===Er?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Ct(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(n){r.subscribable=n}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=qr(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=Lt(i,c,Gt(n,c))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),j(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new Br;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),j(this,"getInitialValue",function(n){var a=Gt(r.initialValues,n);return n.length?qr(a):a}),j(this,"setCallbacks",function(n){r.callbacks=n}),j(this,"setValidateMessages",function(n){r.validateMessages=n}),j(this,"setPreserve",function(n){r.preserve=n}),j(this,"watchList",[]),j(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),j(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(n){r.store=n}),j(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),j(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Br;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),j(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=He(o);return a.get(i)||{INVALIDATE_NAME_PATH:He(o)}})}),j(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&le(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return c.forEach(function(u){var f,v,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,g;if((p=(g=u).isList)!==null&&p!==void 0&&p.call(g))return}else if(!o&&(f=(v=u).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)l.push(h);else{var m="getMeta"in u?u.getMeta():null;i(m)&&l.push(h)}}),ol(r.store,l.map(He))}),j(this,"getFieldValue",function(n){r.warningUnhooked();var a=He(n);return Gt(r.store,a)}),j(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:He(n[i]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(n){r.warningUnhooked();var a=He(n),o=r.getFieldsError([a])[0];return o.errors}),j(this,"getFieldWarning",function(n){r.warningUnhooked();var a=He(n),o=r.getFieldsError([a])[0];return o.warnings}),j(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],c,l=!1;a.length===0?c=null:a.length===1?Array.isArray(i)?(c=i.map(He),l=!1):(c=null,l=i):(c=i.map(He),l=s);var u=r.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!c)return l?u.every(function(g){return f(g)||g.isList()}):u.some(f);var v=new Br;c.forEach(function(g){v.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();c.forEach(function(y){y.every(function(b,S){return m[S]===b})&&v.update(y,function(b){return[].concat(Z(b),[g])})})});var h=function(m){return m.some(f)},p=v.map(function(g){var m=g.value;return m});return l?p.every(h):p.some(h)}),j(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),j(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map(He);return a.some(function(i){var s=i.getNamePath();return Qr(o,s)&&i.isFieldValidating()})}),j(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),j(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Br,o=r.getFieldEntities(!0);o.forEach(function(c){var l=c.props.initialValue,u=c.getNamePath();if(l!==void 0){var f=a.get(u)||new Set;f.add({entity:c,value:l}),a.set(u,f)}});var i=function(l){l.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var v=u.getNamePath(),h=r.getInitialValue(v);if(h!==void 0)Ct(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var p=a.get(v);if(p&&p.size>1)Ct(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var g=r.getFieldValue(v),m=u.isListField();!m&&(!n.skipExist||g===void 0)&&r.updateStore(Lt(r.store,v,Z(p)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(c){var l=a.get(c);if(l){var u;(u=s).push.apply(u,Z(Z(l).map(function(f){return f.entity})))}})):s=o,i(s)}),j(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(qr(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(He);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(Lt(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),j(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,c=Rt(i,cm),l=He(s);o.push(l),"value"in c&&r.updateStore(Lt(r.store,l,c.value)),r.notifyObservers(a,[l],{type:"setField",data:i})}),r.notifyWatch(o)}),j(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=A(A({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),j(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=Gt(r.store,o);i===void 0&&r.updateStore(Lt(r.store,o,a))}}),j(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),j(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||c.length>1)){var l=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==l&&r.fieldEntities.every(function(f){return!Jc(f.getNamePath(),a)})){var u=r.store;r.updateStore(Lt(u,a,l,!0)),r.notifyObservers(u,[a],{type:"remove"}),r.triggerDependenciesUpdate(u,a)}}r.notifyWatch([a])}}),j(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),j(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=A(A({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(n,a,i)})}else r.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Z(o))}),o}),j(this,"updateValue",function(n,a){var o=He(n),i=r.store;r.updateStore(Lt(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),c=r.callbacks.onValuesChange;if(c){var l=ol(r.store,[o]);c(l,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Z(s)))}),j(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=qr(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),j(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),j(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new Br;r.getFieldEntities().forEach(function(c){var l=c.props.dependencies;(l||[]).forEach(function(u){var f=He(u);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(c),v})})});var s=function c(l){var u=i.get(l)||new Set;u.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),c(v))}})};return s(n),o}),j(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new Br;a.forEach(function(l){var u=l.name,f=l.errors;s.set(u,f)}),i.forEach(function(l){l.errors=s.get(l.name)||l.errors})}var c=i.filter(function(l){var u=l.name;return Qr(n,u)});c.length&&o(c,i)}}),j(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,c=s?o.map(He):[],l=[],u=String(Date.now()),f=new Set,v=i||{},h=v.recursive,p=v.dirty;r.getFieldEntities(!0).forEach(function(b){if(s||c.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(p&&!b.isFieldDirty())){var S=b.getNamePath();if(f.add(S.join(u)),!s||Qr(c,S,h)){var R=b.validateRules(A({validateMessages:A(A({},Yc),r.validateMessages)},i));l.push(R.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(w){var E,C=[],M=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(T){var F=T.rule.warningOnly,L=T.errors;F?M.push.apply(M,Z(L)):C.push.apply(C,Z(L))}),C.length?Promise.reject({name:S,errors:C,warnings:M}):{name:S,errors:C,warnings:M}}))}}});var g=lm(l);r.lastValidatePromise=g,g.catch(function(b){return b}).then(function(b){var S=b.map(function(R){var w=R.name;return w});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,b)});var m=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(b){var S=b.filter(function(R){return R&&R.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:S,outOfDate:r.lastValidatePromise!==g})});m.catch(function(b){return b});var y=c.filter(function(b){return f.has(b.join(u))});return r.triggerOnFieldsChange(y),m}),j(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function ru(e){var t=d.useRef(),r=d.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new um(o);t.current=i.getForm()}return[t.current]}var Ri=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dm=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=d.useContext(Ri),s=d.useRef({});return d.createElement(Ri.Provider,{value:A(A({},i),{},{validateMessages:A(A({},i.validateMessages),r),triggerFormChange:function(l,u){n&&n(l,{changedFields:u,forms:s.current}),i.triggerFormChange(l,u)},triggerFormFinish:function(l,u){a&&a(l,{values:u,forms:s.current}),i.triggerFormFinish(l,u)},registerForm:function(l,u){l&&(s.current=A(A({},s.current),{},j({},l,u))),i.registerForm(l,u)},unregisterForm:function(l){var u=A({},s.current);delete u[l],s.current=u,i.unregisterForm(l)}})},o)},fm=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],vm=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,l=t.component,u=l===void 0?"form":l,f=t.validateMessages,v=t.validateTrigger,h=v===void 0?"onChange":v,p=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,S=Rt(t,fm),R=d.useRef(null),w=d.useContext(Ri),E=ru(i),C=U(E,1),M=C[0],T=M.getInternalHooks(Er),F=T.useSubscribe,L=T.setInitialValues,z=T.setCallbacks,_=T.setValidateMessages,I=T.setPreserve,V=T.destroyForm;d.useImperativeHandle(r,function(){return A(A({},M),{},{nativeElement:R.current})}),d.useEffect(function(){return w.registerForm(n,M),function(){w.unregisterForm(n)}},[w,M,n]),_(A(A({},w.validateMessages),f)),z({onValuesChange:p,onFieldsChange:function(H){if(w.triggerFormChange(n,H),g){for(var G=arguments.length,re=new Array(G>1?G-1:0),te=1;te<G;te++)re[te-1]=arguments[te];g.apply(void 0,[H].concat(re))}},onFinish:function(H){w.triggerFormFinish(n,H),m&&m(H)},onFinishFailed:y}),I(s);var $=d.useRef(null);L(a,!$.current),$.current||($.current=!0),d.useEffect(function(){return function(){return V(b)}},[]);var P,O=typeof c=="function";if(O){var N=M.getFieldsValue(!0);P=c(N,M)}else P=c;F(!O);var B=d.useRef();d.useEffect(function(){am(B.current||[],o||[])||M.setFields(o||[]),B.current=o},[o,M]);var k=d.useMemo(function(){return A(A({},M),{},{validateTrigger:h})},[M,h]),D=d.createElement(Ma.Provider,{value:null},d.createElement(an.Provider,{value:k},P));return u===!1?D:d.createElement(u,Xe({},S,{ref:R,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),M.submit()},onReset:function(H){var G;H.preventDefault(),M.resetFields(),(G=S.onReset)===null||G===void 0||G.call(S,H)}}),D)};function sl(e){try{return JSON.stringify(e)}catch{return Math.random()}}function gm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=wp(o)?{form:o}:o,s=i.form,c=d.useState(),l=U(c,2),u=l[0],f=l[1],v=d.useMemo(function(){return sl(u)},[u]),h=d.useRef(v);h.current=v;var p=d.useContext(an),g=s||p,m=g&&g._init,y=He(n),b=d.useRef(y);return b.current=y,d.useEffect(function(){if(m){var S=g.getFieldsValue,R=g.getInternalHooks,w=R(Er),E=w.registerWatch,C=function(L,z){var _=i.preserve?z:L;return typeof n=="function"?n(_):Gt(_,b.current)},M=E(function(F,L){var z=C(F,L),_=sl(z);h.current!==_&&(h.current=_,f(z))}),T=C(S(),S(!0));return u!==T&&f(T),M}},[m]),u}var hm=d.forwardRef(vm),_n=hm;_n.FormProvider=dm;_n.Field=eu;_n.List=sm;_n.useForm=ru;_n.useWatch=gm;const Pi=d.createContext({}),pm=e=>{let{children:t,status:r,override:n}=e;const a=d.useContext(Pi),o=d.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return d.createElement(Pi.Provider,{value:o},t)},mm=d.createContext(void 0),bm=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=ie.createElement(pm,{override:!0,status:!0},a)),t&&(a=ie.createElement(Gh,null,a)),a};var nu=function(t){if(vt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},ym=function(t,r){if(!nu(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function ll(e,t){return!Array.isArray(e)&&t!==void 0?ym(e,t):nu(e)}const xm=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))};function Sm(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,c=a.x,l=c===void 0?0:c,u=a.y,f=u===void 0?0:u,v=d.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var p=r.points[0],g=r.points[1],m=p[0],y=p[1],b=g[0],S=g[1];m===b||!["t","b"].includes(m)?h.top=f:m==="t"?h.top=0:h.bottom=0,y===S||!["l","r"].includes(y)?h.left=l:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:v,className:pe("".concat(t,"-arrow"),i),style:h},s)}function wm(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?d.createElement(Gi,Xe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return d.createElement("div",{style:{zIndex:n},className:pe("".concat(t,"-mask"),s)})}):null}var Cm=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Em=d.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,l=e.keepDom,u=e.fresh,f=e.onClick,v=e.mask,h=e.arrow,p=e.arrowPos,g=e.align,m=e.motion,y=e.maskMotion,b=e.forceRender,S=e.getPopupContainer,R=e.autoDestroy,w=e.portal,E=e.zIndex,C=e.onMouseEnter,M=e.onMouseLeave,T=e.onPointerEnter,F=e.onPointerDownCapture,L=e.ready,z=e.offsetX,_=e.offsetY,I=e.offsetR,V=e.offsetB,$=e.onAlign,P=e.onPrepare,O=e.stretch,N=e.targetWidth,B=e.targetHeight,k=typeof r=="function"?r():r,D=c||l,W=(S==null?void 0:S.length)>0,H=d.useState(!S||!W),G=U(H,2),re=G[0],te=G[1];if(Le(function(){!re&&W&&i&&te(!0)},[re,W,i]),!re)return null;var Re="auto",me={left:"-1000vw",top:"-1000vh",right:Re,bottom:Re};if(L||!c){var be,ye=g.points,ae=g.dynamicInset||((be=g._experimental)===null||be===void 0?void 0:be.dynamicInset),ge=ae&&ye[0][1]==="r",we=ae&&ye[0][0]==="b";ge?(me.right=I,me.left=Re):(me.left=z,me.right=Re),we?(me.bottom=V,me.top=Re):(me.top=_,me.bottom=Re)}var ce={};return O&&(O.includes("height")&&B?ce.height=B:O.includes("minHeight")&&B&&(ce.minHeight=B),O.includes("width")&&N?ce.width=N:O.includes("minWidth")&&N&&(ce.minWidth=N)),c||(ce.pointerEvents="none"),d.createElement(w,{open:b||D,getContainer:S&&function(){return S(i)},autoDestroy:R},d.createElement(wm,{prefixCls:a,open:c,zIndex:E,mask:v,motion:y}),d.createElement(Fn,{onResize:$,disabled:!c},function(de){return d.createElement(Gi,Xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},m,{onAppearPrepare:P,onEnterPrepare:P,visible:c,onVisibleChanged:function(xe){var Ae;m==null||(Ae=m.onVisibleChanged)===null||Ae===void 0||Ae.call(m,xe),s(xe)}}),function(Oe,xe){var Ae=Oe.className,Se=Oe.style,se=pe(a,Ae,n);return d.createElement("div",{ref:La(de,t,xe),className:se,style:A(A(A(A({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},me),ce),Se),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:C,onMouseLeave:M,onPointerEnter:T,onClick:f,onPointerDownCapture:F},h&&d.createElement(Sm,{prefixCls:a,arrow:h,arrowPos:p,align:g}),d.createElement(Cm,{cache:!c&&!u},k))})}))}),Rm=d.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=Na(r),o=d.useCallback(function(s){Ii(t,n?n(s):s)},[n]),i=Fi(o,ki(r));return a?d.cloneElement(r,{ref:i}):r}),cl=d.createContext(null);function ul(e){return e?Array.isArray(e)?e:[e]:[]}function Pm(e,t,r,n){return d.useMemo(function(){var a=ul(r??t),o=ul(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function $m(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Tm(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,c=o[i];if($m((s=e[c])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(c)}return""}function dl(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function zn(e){return e.ownerDocument.defaultView}function $i(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=zn(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function In(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function hn(e){return In(parseFloat(e),0)}function fl(e,t){var r=A({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=zn(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,l=a.borderLeftWidth,u=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,h=n.clientHeight,p=n.offsetWidth,g=n.clientWidth,m=hn(s),y=hn(c),b=hn(l),S=hn(u),R=In(Math.round(f.width/p*1e3)/1e3),w=In(Math.round(f.height/v*1e3)/1e3),E=(p-g-b-S)*R,C=(v-h-m-y)*w,M=m*w,T=y*w,F=b*R,L=S*R,z=0,_=0;if(o==="clip"){var I=hn(i);z=I*R,_=I*w}var V=f.x+F-z,$=f.y+M-_,P=V+f.width+2*z-F-L-E,O=$+f.height+2*_-M-T-C;r.left=Math.max(r.left,V),r.top=Math.max(r.top,$),r.right=Math.min(r.right,P),r.bottom=Math.min(r.bottom,O)}}),r}function vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function gl(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[vl(e.width,a),vl(e.height,o)]}function hl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Vr(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function dr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function jm(e,t,r,n,a,o,i){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),c=U(s,2),l=c[0],u=c[1],f=d.useRef(0),v=d.useMemo(function(){return t?$i(t):[]},[t]),h=d.useRef({}),p=function(){h.current={}};e||p();var g=St(function(){if(t&&r&&e){let Pt=function(Nr,cr){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,dn=H.x+Nr,Jn=H.y+cr,ro=dn+ge,no=Jn+ae,ao=Math.max(dn,ur.left),K=Math.max(Jn,ur.top),ee=Math.min(ro,ur.right),Ie=Math.min(no,ur.bottom);return Math.max(0,(ee-ao)*(Ie-K))},Yn=function(){er=H.y+oe,tr=er+ae,Ue=H.x+Pe,Ir=Ue+ge};var b,S,R,w,E=t,C=E.ownerDocument,M=zn(E),T=M.getComputedStyle(E),F=T.width,L=T.height,z=T.position,_=E.style.left,I=E.style.top,V=E.style.right,$=E.style.bottom,P=E.style.overflow,O=A(A({},a[n]),o),N=C.createElement("div");(b=E.parentElement)===null||b===void 0||b.appendChild(N),N.style.left="".concat(E.offsetLeft,"px"),N.style.top="".concat(E.offsetTop,"px"),N.style.position=z,N.style.height="".concat(E.offsetHeight,"px"),N.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 B;if(Array.isArray(r))B={x:r[0],y:r[1],width:0,height:0};else{var k,D,W=r.getBoundingClientRect();W.x=(k=W.x)!==null&&k!==void 0?k:W.left,W.y=(D=W.y)!==null&&D!==void 0?D:W.top,B={x:W.x,y:W.y,width:W.width,height:W.height}}var H=E.getBoundingClientRect();H.x=(S=H.x)!==null&&S!==void 0?S:H.left,H.y=(R=H.y)!==null&&R!==void 0?R:H.top;var G=C.documentElement,re=G.clientWidth,te=G.clientHeight,Re=G.scrollWidth,me=G.scrollHeight,be=G.scrollTop,ye=G.scrollLeft,ae=H.height,ge=H.width,we=B.height,ce=B.width,de={left:0,top:0,right:re,bottom:te},Oe={left:-ye,top:-be,right:Re-ye,bottom:me-be},xe=O.htmlRegion,Ae="visible",Se="visibleFirst";xe!=="scroll"&&xe!==Se&&(xe=Ae);var se=xe===Se,Ne=fl(Oe,v),Q=fl(de,v),Fe=xe===Ae?Q:Ne,Be=se?Q:Fe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ve=E.getBoundingClientRect();E.style.left=_,E.style.top=I,E.style.right=V,E.style.bottom=$,E.style.overflow=P,(w=E.parentElement)===null||w===void 0||w.removeChild(N);var dt=In(Math.round(ge/parseFloat(F)*1e3)/1e3),st=In(Math.round(ae/parseFloat(L)*1e3)/1e3);if(dt===0||st===0||Cn(r)&&!Wh(r))return;var ht=O.offset,et=O.targetOffset,Dt=gl(H,ht),Qe=U(Dt,2),he=Qe[0],ne=Qe[1],tt=gl(B,et),X=U(tt,2),J=X[0],De=X[1];B.x-=J,B.y-=De;var Kt=O.points||[],lr=U(Kt,2),Or=lr[0],Xt=lr[1],rt=hl(Xt),Ze=hl(Or),Qt=Vr(B,rt),_e=Vr(H,Ze),lt=A({},O),Pe=Qt.x-_e.x+he,oe=Qt.y-_e.y+ne,ft=Pt(Pe,oe),Zt=Pt(Pe,oe,Q),Me=Vr(B,["t","l"]),Ce=Vr(H,["t","l"]),ct=Vr(B,["b","r"]),nt=Vr(H,["b","r"]),pt=O.overflow||{},Mr=pt.adjustX,Ar=pt.adjustY,Yt=pt.shiftX,Jt=pt.shiftY,mr=function(cr){return typeof cr=="boolean"?cr:cr>=0},er,tr,Ue,Ir;Yn();var br=mr(Ar),Vn=Ze[0]===rt[0];if(br&&Ze[0]==="t"&&(tr>Be.bottom||h.current.bt)){var Ye=oe;Vn?Ye-=ae-we:Ye=Me.y-nt.y-ne;var Dn=Pt(Pe,Ye),Wa=Pt(Pe,Ye,Q);Dn>ft||Dn===ft&&(!se||Wa>=Zt)?(h.current.bt=!0,oe=Ye,ne=-ne,lt.points=[dr(Ze,0),dr(rt,0)]):h.current.bt=!1}if(br&&Ze[0]==="b"&&(er<Be.top||h.current.tb)){var yr=oe;Vn?yr+=ae-we:yr=ct.y-Ce.y-ne;var Hn=Pt(Pe,yr),Ua=Pt(Pe,yr,Q);Hn>ft||Hn===ft&&(!se||Ua>=Zt)?(h.current.tb=!0,oe=yr,ne=-ne,lt.points=[dr(Ze,0),dr(rt,0)]):h.current.tb=!1}var Wn=mr(Mr),Un=Ze[1]===rt[1];if(Wn&&Ze[1]==="l"&&(Ir>Be.right||h.current.rl)){var xr=Pe;Un?xr-=ge-ce:xr=Me.x-nt.x-he;var qn=Pt(xr,oe),Fr=Pt(xr,oe,Q);qn>ft||qn===ft&&(!se||Fr>=Zt)?(h.current.rl=!0,Pe=xr,he=-he,lt.points=[dr(Ze,1),dr(rt,1)]):h.current.rl=!1}if(Wn&&Ze[1]==="r"&&(Ue<Be.left||h.current.lr)){var rr=Pe;Un?rr+=ge-ce:rr=ct.x-Ce.x-he;var Gn=Pt(rr,oe),Kn=Pt(rr,oe,Q);Gn>ft||Gn===ft&&(!se||Kn>=Zt)?(h.current.lr=!0,Pe=rr,he=-he,lt.points=[dr(Ze,1),dr(rt,1)]):h.current.lr=!1}Yn();var Ht=Yt===!0?0:Yt;typeof Ht=="number"&&(Ue<Q.left&&(Pe-=Ue-Q.left-he,B.x+ce<Q.left+Ht&&(Pe+=B.x-Q.left+ce-Ht)),Ir>Q.right&&(Pe-=Ir-Q.right-he,B.x>Q.right-Ht&&(Pe+=B.x-Q.right+Ht)));var Ft=Jt===!0?0:Jt;typeof Ft=="number"&&(er<Q.top&&(oe-=er-Q.top-ne,B.y+we<Q.top+Ft&&(oe+=B.y-Q.top+we-Ft)),tr>Q.bottom&&(oe-=tr-Q.bottom-ne,B.y>Q.bottom-Ft&&(oe+=B.y-Q.bottom+Ft)));var kr=H.x+Pe,Lr=kr+ge,Wt=H.y+oe,qa=Wt+ae,Xn=B.x,Ga=Xn+ce,cn=B.y,Ka=cn+we,Xa=Math.max(kr,Xn),Qa=Math.min(Lr,Ga),Qn=(Xa+Qa)/2,Za=Qn-kr,Ya=Math.max(Wt,cn),Zn=Math.min(qa,Ka),Ja=(Ya+Zn)/2,eo=Ja-Wt;i==null||i(t,lt);var un=Ve.right-H.x-(Pe+H.width),Ut=Ve.bottom-H.y-(oe+H.height);dt===1&&(Pe=Math.round(Pe),un=Math.round(un)),st===1&&(oe=Math.round(oe),Ut=Math.round(Ut));var to={ready:!0,offsetX:Pe/dt,offsetY:oe/st,offsetR:un/dt,offsetB:Ut/st,arrowX:Za/dt,arrowY:eo/st,scaleX:dt,scaleY:st,align:lt};u(to)}}),m=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&g()})},y=function(){u(function(S){return A(A({},S),{},{ready:!1})})};return Le(y,[n]),Le(function(){e||y()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,m]}function Om(e,t,r,n,a){Le(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=$i(o),c=$i(i),l=zn(i),u=new Set([l].concat(Z(s),Z(c)));return u.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),l.addEventListener("resize",f,{passive:!0}),n(),function(){u.forEach(function(v){v.removeEventListener("scroll",f),l.removeEventListener("resize",f)})}}},[e,t,r])}function Mm(e,t,r,n,a,o,i,s){var c=d.useRef(e);c.current=e;var l=d.useRef(!1);d.useEffect(function(){if(t&&n&&(!a||o)){var f=function(){l.current=!1},v=function(m){var y;c.current&&!i(((y=m.composedPath)===null||y===void 0||(y=y.call(m))===null||y===void 0?void 0:y[0])||m.target)&&!l.current&&s(!1)},h=zn(n);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",v,!0),h.addEventListener("contextmenu",v,!0);var p=Oa(r);return p&&(p.addEventListener("mousedown",v,!0),p.addEventListener("contextmenu",v,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",v,!0),h.removeEventListener("contextmenu",v,!0),p&&(p.removeEventListener("mousedown",v,!0),p.removeEventListener("contextmenu",v,!0))}}},[t,r,n,a,o]);function u(){l.current=!0}return u}var Am=["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 Im(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qc,t=d.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,c=s===void 0?"hover":s,l=r.showAction,u=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,h=r.onPopupVisibleChange,p=r.afterPopupVisibleChange,g=r.mouseEnterDelay,m=r.mouseLeaveDelay,y=m===void 0?.1:m,b=r.focusDelay,S=r.blurDelay,R=r.mask,w=r.maskClosable,E=w===void 0?!0:w,C=r.getPopupContainer,M=r.forceRender,T=r.autoDestroy,F=r.destroyPopupOnHide,L=r.popup,z=r.popupClassName,_=r.popupStyle,I=r.popupPlacement,V=r.builtinPlacements,$=V===void 0?{}:V,P=r.popupAlign,O=r.zIndex,N=r.stretch,B=r.getPopupClassNameFromAlign,k=r.fresh,D=r.alignPoint,W=r.onPopupClick,H=r.onPopupAlign,G=r.arrow,re=r.popupMotion,te=r.maskMotion,Re=r.popupTransitionName,me=r.popupAnimation,be=r.maskTransitionName,ye=r.maskAnimation,ae=r.className,ge=r.getTriggerDOMNode,we=Rt(r,Am),ce=T||F||!1,de=d.useState(!1),Oe=U(de,2),xe=Oe[0],Ae=Oe[1];Le(function(){Ae(xm())},[]);var Se=d.useRef({}),se=d.useContext(cl),Ne=d.useMemo(function(){return{registerSubPopup:function(ee,Ie){Se.current[ee]=Ie,se==null||se.registerSubPopup(ee,Ie)}}},[se]),Q=Sp(),Fe=d.useState(null),Be=U(Fe,2),Ve=Be[0],dt=Be[1],st=d.useRef(null),ht=St(function(K){st.current=K,Cn(K)&&Ve!==K&&dt(K),se==null||se.registerSubPopup(Q,K)}),et=d.useState(null),Dt=U(et,2),Qe=Dt[0],he=Dt[1],ne=d.useRef(null),tt=St(function(K){Cn(K)&&Qe!==K&&(he(K),ne.current=K)}),X=d.Children.only(i),J=(X==null?void 0:X.props)||{},De={},Kt=St(function(K){var ee,Ie,qe=Qe;return(qe==null?void 0:qe.contains(K))||((ee=Oa(qe))===null||ee===void 0?void 0:ee.host)===K||K===qe||(Ve==null?void 0:Ve.contains(K))||((Ie=Oa(Ve))===null||Ie===void 0?void 0:Ie.host)===K||K===Ve||Object.values(Se.current).some(function(ze){return(ze==null?void 0:ze.contains(K))||K===ze})}),lr=dl(o,re,me,Re),Or=dl(o,te,ye,be),Xt=d.useState(v||!1),rt=U(Xt,2),Ze=rt[0],Qt=rt[1],_e=f??Ze,lt=St(function(K){f===void 0&&Qt(K)});Le(function(){Qt(f||!1)},[f]);var Pe=d.useRef(_e);Pe.current=_e;var oe=d.useRef([]);oe.current=[];var ft=St(function(K){var ee;lt(K),((ee=oe.current[oe.current.length-1])!==null&&ee!==void 0?ee:_e)!==K&&(oe.current.push(K),h==null||h(K))}),Zt=d.useRef(),Me=function(){clearTimeout(Zt.current)},Ce=function(ee){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Me(),Ie===0?ft(ee):Zt.current=setTimeout(function(){ft(ee)},Ie*1e3)};d.useEffect(function(){return Me},[]);var ct=d.useState(!1),nt=U(ct,2),pt=nt[0],Mr=nt[1];Le(function(K){(!K||_e)&&Mr(!0)},[_e]);var Ar=d.useState(null),Yt=U(Ar,2),Jt=Yt[0],mr=Yt[1],er=d.useState(null),tr=U(er,2),Ue=tr[0],Ir=tr[1],br=function(ee){Ir([ee.clientX,ee.clientY])},Vn=jm(_e,Ve,D&&Ue!==null?Ue:Qe,I,$,P,H),Ye=U(Vn,11),Dn=Ye[0],Wa=Ye[1],yr=Ye[2],Hn=Ye[3],Ua=Ye[4],Wn=Ye[5],Un=Ye[6],xr=Ye[7],qn=Ye[8],Fr=Ye[9],rr=Ye[10],Gn=Pm(xe,c,l,u),Kn=U(Gn,2),Ht=Kn[0],Ft=Kn[1],kr=Ht.has("click"),Lr=Ft.has("click")||Ft.has("contextMenu"),Wt=St(function(){pt||rr()}),qa=function(){Pe.current&&D&&Lr&&Ce(!1)};Om(_e,Qe,Ve,Wt,qa),Le(function(){Wt()},[Ue,I]),Le(function(){_e&&!($!=null&&$[I])&&Wt()},[JSON.stringify(P)]);var Xn=d.useMemo(function(){var K=Tm($,o,Fr,D);return pe(K,B==null?void 0:B(Fr))},[Fr,B,$,o,D]);d.useImperativeHandle(n,function(){return{nativeElement:ne.current,popupElement:st.current,forceAlign:Wt}});var Ga=d.useState(0),cn=U(Ga,2),Ka=cn[0],Xa=cn[1],Qa=d.useState(0),Qn=U(Qa,2),Za=Qn[0],Ya=Qn[1],Zn=function(){if(N&&Qe){var ee=Qe.getBoundingClientRect();Xa(ee.width),Ya(ee.height)}},Ja=function(){Zn(),Wt()},eo=function(ee){Mr(!1),rr(),p==null||p(ee)},un=function(){return new Promise(function(ee){Zn(),mr(function(){return ee})})};Le(function(){Jt&&(rr(),Jt(),mr(null))},[Jt]);function Ut(K,ee,Ie,qe){De[K]=function(ze){var ea;qe==null||qe(ze),Ce(ee,Ie);for(var oo=arguments.length,Yi=new Array(oo>1?oo-1:0),ta=1;ta<oo;ta++)Yi[ta-1]=arguments[ta];(ea=J[K])===null||ea===void 0||ea.call.apply(ea,[J,ze].concat(Yi))}}(kr||Lr)&&(De.onClick=function(K){var ee;Pe.current&&Lr?Ce(!1):!Pe.current&&kr&&(br(K),Ce(!0));for(var Ie=arguments.length,qe=new Array(Ie>1?Ie-1:0),ze=1;ze<Ie;ze++)qe[ze-1]=arguments[ze];(ee=J.onClick)===null||ee===void 0||ee.call.apply(ee,[J,K].concat(qe))});var to=Mm(_e,Lr,Qe,Ve,R,E,Kt,Ce),Pt=Ht.has("hover"),Yn=Ft.has("hover"),Nr,cr;Pt&&(Ut("onMouseEnter",!0,g,function(K){br(K)}),Ut("onPointerEnter",!0,g,function(K){br(K)}),Nr=function(ee){(_e||pt)&&Ve!==null&&Ve!==void 0&&Ve.contains(ee.target)&&Ce(!0,g)},D&&(De.onMouseMove=function(K){var ee;(ee=J.onMouseMove)===null||ee===void 0||ee.call(J,K)})),Yn&&(Ut("onMouseLeave",!1,y),Ut("onPointerLeave",!1,y),cr=function(){Ce(!1,y)}),Ht.has("focus")&&Ut("onFocus",!0,b),Ft.has("focus")&&Ut("onBlur",!1,S),Ht.has("contextMenu")&&(De.onContextMenu=function(K){var ee;Pe.current&&Ft.has("contextMenu")?Ce(!1):(br(K),Ce(!0)),K.preventDefault();for(var Ie=arguments.length,qe=new Array(Ie>1?Ie-1:0),ze=1;ze<Ie;ze++)qe[ze-1]=arguments[ze];(ee=J.onContextMenu)===null||ee===void 0||ee.call.apply(ee,[J,K].concat(qe))}),ae&&(De.className=pe(J.className,ae));var ur=A(A({},J),De),dn={},Jn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Jn.forEach(function(K){we[K]&&(dn[K]=function(){for(var ee,Ie=arguments.length,qe=new Array(Ie),ze=0;ze<Ie;ze++)qe[ze]=arguments[ze];(ee=ur[K])===null||ee===void 0||ee.call.apply(ee,[ur].concat(qe)),we[K].apply(we,qe)})});var ro=d.cloneElement(X,A(A({},ur),dn)),no={x:Wn,y:Un},ao=G?A({},G!==!0?G:{}):null;return d.createElement(d.Fragment,null,d.createElement(Fn,{disabled:!_e,ref:tt,onResize:Ja},d.createElement(Rm,{getTriggerDOMNode:ge},ro)),d.createElement(cl.Provider,{value:Ne},d.createElement(Em,{portal:e,ref:ht,prefixCls:o,popup:L,className:pe(z,Xn),style:_,target:Qe,onMouseEnter:Nr,onMouseLeave:cr,onPointerEnter:Nr,zIndex:O,open:_e,keepDom:pt,fresh:k,onClick:W,onPointerDownCapture:to,mask:R,motion:lr,maskMotion:Or,onVisibleChanged:eo,onPrepare:un,forceRender:M,autoDestroy:ce,getPopupContainer:C,align:Fr,arrow:ao,arrowPos:no,ready:Dn,offsetX:Wa,offsetY:yr,offsetR:Hn,offsetB:Ua,onAlign:Wt,stretch:N,targetWidth:Ka/xr,targetHeight:Za/qn})))});return t}const Fm=Im(Qc);function km(e,t,r){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`]:r})}const Lm=(e,t)=>t||e,Nm=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=d.useContext(Bt),s=d.useContext(mm),c=i==null?void 0:i.variant;let l;typeof t<"u"?l=t:r===!1?l="borderless":l=(a=(n=s??c)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const u=dg.includes(l);return[l,u]};var _m={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"},zm=function(t,r){return d.createElement(sr,Xe({},t,{ref:r,icon:_m}))},Bm=d.forwardRef(zm);function au(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return d.createElement("div",{className:pe("".concat(r,"-content"),o),style:i},d.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var Dr={shiftX:64,adjustY:1},Hr={adjustX:1,shiftY:!0},jt=[0,0],Vm={left:{points:["cr","cl"],overflow:Hr,offset:[-4,0],targetOffset:jt},right:{points:["cl","cr"],overflow:Hr,offset:[4,0],targetOffset:jt},top:{points:["bc","tc"],overflow:Dr,offset:[0,-4],targetOffset:jt},bottom:{points:["tc","bc"],overflow:Dr,offset:[0,4],targetOffset:jt},topLeft:{points:["bl","tl"],overflow:Dr,offset:[0,-4],targetOffset:jt},leftTop:{points:["tr","tl"],overflow:Hr,offset:[-4,0],targetOffset:jt},topRight:{points:["br","tr"],overflow:Dr,offset:[0,-4],targetOffset:jt},rightTop:{points:["tl","tr"],overflow:Hr,offset:[4,0],targetOffset:jt},bottomRight:{points:["tr","br"],overflow:Dr,offset:[0,4],targetOffset:jt},rightBottom:{points:["bl","br"],overflow:Hr,offset:[4,0],targetOffset:jt},bottomLeft:{points:["tl","bl"],overflow:Dr,offset:[0,4],targetOffset:jt},leftBottom:{points:["br","bl"],overflow:Hr,offset:[-4,0],targetOffset:jt}},Dm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Hm=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,l=c===void 0?.1:c,u=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,h=t.children,p=t.onVisibleChange,g=t.afterVisibleChange,m=t.transitionName,y=t.animation,b=t.motion,S=t.placement,R=S===void 0?"right":S,w=t.align,E=w===void 0?{}:w,C=t.destroyTooltipOnHide,M=C===void 0?!1:C,T=t.defaultVisible,F=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,_=t.id,I=t.showArrow,V=I===void 0?!0:I,$=Rt(t,Dm),P=d.useRef(null);d.useImperativeHandle(r,function(){return P.current});var O=A({},$);"visible"in t&&(O.popupVisible=t.visible);var N=function(){return d.createElement(au,{key:"content",prefixCls:v,id:_,overlayInnerStyle:L},z)};return d.createElement(Fm,Xe({popupClassName:n,prefixCls:v,popup:N,action:o,builtinPlacements:Vm,popupPlacement:R,ref:P,popupAlign:E,getPopupContainer:F,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:m,popupAnimation:y,popupMotion:b,defaultPopupVisible:T,autoDestroy:M,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:s,arrow:V},O),h)};const Wm=d.forwardRef(Hm);function Um(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),l=a-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-l,v=u,h=2*a-s,p=c,g=2*a-o,m=i,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1),S=`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,R=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${l} ${u} A ${r} ${r} 0 0 1 ${f} ${v} L ${h} ${p} A ${n} ${n} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:y,arrowPath:R,arrowPolygon:S}}const qm=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ee(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},ou=8;function iu(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?ou:n}}function ga(e,t){return e?t:{}}function Gm(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},qm(e,t,a)),{"&:before":{background:t}})]},ga(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ga(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ga(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),ga(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function Km(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const pl={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"]}},Xm={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"]}},Qm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Zm(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(pl).forEach(l=>{const u=n&&Xm[l]||pl[l],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(c[l]=f,Qm.has(l)&&(f.autoArrow=!1),l){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=iu({contentRadius:o,limitVerticalRadius:!0});if(n)switch(l){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=Km(l,v,t,r),i&&(f.htmlRegion="visibleFirst")}),c}const Ym=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:l,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Wi(e)),{position:"absolute",zIndex:i,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,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Ee(e.calc(l).div(2).equal())} ${Ee(u)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,ou)}},[`${t}-content`]:{position:"relative"}}),Vg(e,(f,v)=>{let{darkColor:h}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Gm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},iu({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Um(jr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),su=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ui("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=jr(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Ym(s),lp(n,"zoom-big-fast")]},Jm,{resetStyle:!1,injectStyle:t})(e)},e0=ja.map(e=>`${e}-inverse`);function t0(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Z(e0),Z(ja)).includes(e):ja.includes(e)}function lu(e,t){const r=t0(t),n=pe({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const r0=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=d.useContext(Bt),c=s("tooltip",t),[l,u,f]=su(c),v=lu(c,o),h=v.arrowStyle,p=Object.assign(Object.assign({},i),v.overlayStyle),g=pe(u,f,c,`${c}-pure`,`${c}-placement-${n}`,r,v.className);return l(d.createElement("div",{className:g,style:h},d.createElement("div",{className:`${c}-arrow`}),d.createElement(au,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:p}),a)))};var n0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const a0=d.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:l,children:u,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:h,arrow:p=!0,title:g,overlay:m,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:S=!0}=e,R=!!p,[,w]=sn(),{getPopupContainer:E,getPrefixCls:C,direction:M}=d.useContext(Bt),T=gc(),F=d.useRef(null),L=()=>{var Q;(Q=F.current)===null||Q===void 0||Q.forceAlign()};d.useImperativeHandle(t,()=>{var Q;return{forceAlign:L,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),L()},nativeElement:(Q=F.current)===null||Q===void 0?void 0:Q.nativeElement}});const[z,_]=An(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),I=!g&&!m&&g!==0,V=Q=>{var Fe,Be;_(I?!1:Q),I||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,Q),(Be=e.onVisibleChange)===null||Be===void 0||Be.call(e,Q))},$=d.useMemo(()=>{var Q,Fe;let Be=b;return typeof p=="object"&&(Be=(Fe=(Q=p.pointAtCenter)!==null&&Q!==void 0?Q:p.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:b),y||Zm({arrowPointAtCenter:Be,autoAdjustOverflow:S,arrowWidth:R?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[b,p,y,w]),P=d.useMemo(()=>g===0?g:m||g||"",[m,g]),O=d.createElement(bm,{space:!0},typeof P=="function"?P():P),{getPopupContainer:N,placement:B="top",mouseEnterDelay:k=.1,mouseLeaveDelay:D=.1,overlayStyle:W,rootClassName:H}=e,G=n0(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),re=C("tooltip",a),te=C(),Re=e["data-popover-inject"];let me=z;!("open"in e)&&!("visible"in e)&&I&&(me=!1);const be=d.isValidElement(u)&&!Fh(u)?u:d.createElement("span",null,u),ye=be.props,ae=!ye.className||typeof ye.className=="string"?pe(ye.className,o||`${re}-open`):ye.className,[ge,we,ce]=su(re,!Re),de=lu(re,c),Oe=de.arrowStyle,xe=Object.assign(Object.assign({},l),de.overlayStyle),Ae=pe(s,{[`${re}-rtl`]:M==="rtl"},de.className,H,we,ce),[Se,se]=Dh("Tooltip",G.zIndex),Ne=d.createElement(Wm,Object.assign({},G,{zIndex:Se,showArrow:R,placement:B,mouseEnterDelay:k,mouseLeaveDelay:D,prefixCls:re,overlayClassName:Ae,overlayStyle:Object.assign(Object.assign({},Oe),W),getTooltipContainer:N||i||E,ref:F,builtinPlacements:$,overlay:O,visible:me,onVisibleChange:V,afterVisibleChange:f??v,overlayInnerStyle:xe,arrowContent:d.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Hh(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),me?qc(be,{className:ae}):be);return ge(d.createElement(Gc.Provider,{value:se},Ne))}),Da=a0;Da._InternalPanelDoNotUseOrYouWillBeFired=r0;function o0(e){return jr(e,{inputAffixPadding:e.paddingXXS})}const i0=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:l-a,paddingInlineSM:u-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},s0=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Xi=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({},s0(jr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),cu=(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}}),ml=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),l0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cu(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Xi(e))}),ml(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ml(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),bl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),c0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},bl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),bl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Xi(e))}})}),u0=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},uu=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),yl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),d0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uu(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Xi(e))}),yl(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),yl(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),xl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),f0=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},xl(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),xl(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:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),v0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),du=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${Ee(t)} ${Ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},fu=e=>({padding:`${Ee(e.paddingBlockSM)} ${Ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ee(e.paddingBlock)} ${Ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},v0(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},du(e)),"&-sm":Object.assign({},fu(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),g0=e=>{const{componentCls:t,antCls:r}=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({},du(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},fu(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${Ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Lg()),{[`${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},[`
|
|
116
|
+
& > ${t}-affix-wrapper,
|
|
117
|
+
& > ${t}-number-affix-wrapper,
|
|
118
|
+
& > ${r}-picker-range
|
|
119
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
120
|
+
& > ${r}-select-auto-complete ${t},
|
|
121
|
+
& > ${r}-cascader-picker ${t},
|
|
122
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
123
|
+
& > ${r}-select:first-child > ${r}-select-selector,
|
|
124
|
+
& > ${r}-select-auto-complete:first-child ${t},
|
|
125
|
+
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
126
|
+
& > ${r}-select:last-child > ${r}-select-selector,
|
|
127
|
+
& > ${r}-cascader-picker:last-child ${t},
|
|
128
|
+
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},h0=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wi(e)),vu(e)),l0(e)),d0(e)),u0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},p0=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ee(e.inputAffixPadding)}`}}}},m0=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},vu(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),p0(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[l]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},b0=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Wi(e)),g0(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},c0(e)),f0(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}}})})}},y0=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-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,
|
|
129
|
+
> ${t},
|
|
130
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},x0=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
131
|
+
&-allow-clear > ${t},
|
|
132
|
+
&-affix-wrapper${n}-has-feedback ${t}
|
|
133
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},S0=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},w0=Ui("Input",e=>{const t=jr(e,o0(e));return[h0(t),x0(t),m0(t),b0(t),y0(t),S0(t),dp(t)]},i0,{resetFont:!1});function C0(e){return!!(e.addonBefore||e.addonAfter)}function E0(e){return!!(e.prefix||e.suffix||e.allowClear)}function Sl(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function wl(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=Sl(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=Sl(t,e,n),r(a);return}r(a)}}function R0(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var P0=ie.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,l=e.addonBefore,u=e.addonAfter,f=e.className,v=e.style,h=e.disabled,p=e.readOnly,g=e.focused,m=e.triggerFocus,y=e.allowClear,b=e.value,S=e.handleReset,R=e.hidden,w=e.classes,E=e.classNames,C=e.dataAttrs,M=e.styles,T=e.components,F=e.onClear,L=o??a,z=(T==null?void 0:T.affixWrapper)||"span",_=(T==null?void 0:T.groupWrapper)||"span",I=(T==null?void 0:T.wrapper)||"span",V=(T==null?void 0:T.groupAddon)||"span",$=d.useRef(null),P=function(we){var ce;(ce=$.current)!==null&&ce!==void 0&&ce.contains(we.target)&&(m==null||m())},O=E0(e),N=d.cloneElement(L,{value:b,className:pe(L.props.className,!O&&(E==null?void 0:E.variant))||null}),B=d.useRef(null);if(ie.useImperativeHandle(t,function(){return{nativeElement:B.current||$.current}}),O){var k=null;if(y){var D=!h&&!p&&b,W="".concat(i,"-clear-icon"),H=le(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";k=ie.createElement("span",{onClick:function(we){S==null||S(we),F==null||F()},onMouseDown:function(we){return we.preventDefault()},className:pe(W,j(j({},"".concat(W,"-hidden"),!D),"".concat(W,"-has-suffix"),!!c)),role:"button",tabIndex:-1},H)}var G="".concat(i,"-affix-wrapper"),re=pe(G,j(j(j(j(j({},"".concat(i,"-disabled"),h),"".concat(G,"-disabled"),h),"".concat(G,"-focused"),g),"".concat(G,"-readonly"),p),"".concat(G,"-input-with-clear-btn"),c&&y&&b),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),te=(c||y)&&ie.createElement("span",{className:pe("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:M==null?void 0:M.suffix},k,c);N=ie.createElement(z,Xe({className:re,style:M==null?void 0:M.affixWrapper,onClick:P},C==null?void 0:C.affixWrapper,{ref:$}),s&&ie.createElement("span",{className:pe("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:M==null?void 0:M.prefix},s),N,te)}if(C0(e)){var Re="".concat(i,"-group"),me="".concat(Re,"-addon"),be="".concat(Re,"-wrapper"),ye=pe("".concat(i,"-wrapper"),Re,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),ae=pe(be,j({},"".concat(be,"-disabled"),h),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);N=ie.createElement(_,{className:ae,ref:B},ie.createElement(I,{className:ye},l&&ie.createElement(V,{className:me},l),N,u&&ie.createElement(V,{className:me},u)))}return ie.cloneElement(N,{className:pe((r=N.props)===null||r===void 0?void 0:r.className,f)||null,style:A(A({},(n=N.props)===null||n===void 0?void 0:n.style),v),hidden:R})}),$0=["show"];function T0(e,t){return d.useMemo(function(){var r={};t&&(r.show=le(t)==="object"&&t.formatter?t.formatter:!!t),r=A(A({},r),e);var n=r,a=n.show,o=Rt(n,$0);return A(A({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}const j0=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ie.createElement(Ih,null)}),t};var O0=`
|
|
134
|
+
min-height:0 !important;
|
|
135
|
+
max-height:none !important;
|
|
136
|
+
height:0 !important;
|
|
137
|
+
visibility:hidden !important;
|
|
138
|
+
overflow:hidden !important;
|
|
139
|
+
position:absolute !important;
|
|
140
|
+
z-index:-1000 !important;
|
|
141
|
+
top:0 !important;
|
|
142
|
+
right:0 !important;
|
|
143
|
+
pointer-events: none !important;
|
|
144
|
+
`,M0=["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"],Eo={},yt;function A0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Eo[r])return Eo[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=M0.map(function(l){return"".concat(l,":").concat(n.getPropertyValue(l))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Eo[r]=c),c}function I0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yt||(yt=document.createElement("textarea"),yt.setAttribute("tab-index","-1"),yt.setAttribute("aria-hidden","true"),yt.setAttribute("name","hiddenTextarea"),document.body.appendChild(yt)),e.getAttribute("wrap")?yt.setAttribute("wrap",e.getAttribute("wrap")):yt.removeAttribute("wrap");var a=A0(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;yt.setAttribute("style","".concat(c,";").concat(O0)),yt.value=e.value||e.placeholder||"";var l=void 0,u=void 0,f,v=yt.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){yt.value=" ";var h=yt.scrollHeight-o;r!==null&&(l=h*r,s==="border-box"&&(l=l+o+i),v=Math.max(l,v)),n!==null&&(u=h*n,s==="border-box"&&(u=u+o+i),f=v>u?"":"hidden",v=Math.min(u,v))}var p={height:v,overflowY:f,resize:"none"};return l&&(p.minHeight=l),u&&(p.maxHeight=u),p}var F0=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ro=0,Po=1,$o=2,k0=d.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,c=r.className,l=r.style,u=r.disabled,f=r.onChange;r.onInternalAutoSize;var v=Rt(r,F0),h=An(a,{value:o,postState:function(H){return H??""}}),p=U(h,2),g=p[0],m=p[1],y=function(H){m(H.target.value),f==null||f(H)},b=d.useRef();d.useImperativeHandle(t,function(){return{textArea:b.current}});var S=d.useMemo(function(){return i&&le(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),R=U(S,2),w=R[0],E=R[1],C=!!i,M=function(){try{if(document.activeElement===b.current){var H=b.current,G=H.selectionStart,re=H.selectionEnd,te=H.scrollTop;b.current.setSelectionRange(G,re),b.current.scrollTop=te}}catch{}},T=d.useState($o),F=U(T,2),L=F[0],z=F[1],_=d.useState(),I=U(_,2),V=I[0],$=I[1],P=function(){z(Ro)};Le(function(){C&&P()},[o,w,E,C]),Le(function(){if(L===Ro)z(Po);else if(L===Po){var W=I0(b.current,!1,w,E);z($o),$(W)}else M()},[L]);var O=d.useRef(),N=function(){En.cancel(O.current)},B=function(H){L===$o&&(s==null||s(H),i&&(N(),O.current=En(function(){P()})))};d.useEffect(function(){return N},[]);var k=C?V:null,D=A(A({},l),k);return(L===Ro||L===Po)&&(D.overflowY="hidden",D.overflowX="hidden"),d.createElement(Fn,{onResize:B,disabled:!(i||s)},d.createElement("textarea",Xe({},v,{ref:b,style:D,className:pe(n,c,j({},"".concat(n,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),L0=["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"],N0=ie.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,l=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,g=e.showCount,m=e.count,y=e.className,b=e.style,S=e.disabled,R=e.hidden,w=e.classNames,E=e.styles,C=e.onResize,M=e.onClear,T=e.onPressEnter,F=e.readOnly,L=e.autoSize,z=e.onKeyDown,_=Rt(e,L0),I=An(n,{value:a,defaultValue:n}),V=U(I,2),$=V[0],P=V[1],O=$==null?"":String($),N=ie.useState(!1),B=U(N,2),k=B[0],D=B[1],W=ie.useRef(!1),H=ie.useState(null),G=U(H,2),re=G[0],te=G[1],Re=d.useRef(null),me=d.useRef(null),be=function(){var ne;return(ne=me.current)===null||ne===void 0?void 0:ne.textArea},ye=function(){be().focus()};d.useImperativeHandle(t,function(){var he;return{resizableTextArea:me.current,focus:ye,blur:function(){be().blur()},nativeElement:((he=Re.current)===null||he===void 0?void 0:he.nativeElement)||be()}}),d.useEffect(function(){D(function(he){return!S&&he})},[S]);var ae=ie.useState(null),ge=U(ae,2),we=ge[0],ce=ge[1];ie.useEffect(function(){if(we){var he;(he=be()).setSelectionRange.apply(he,Z(we))}},[we]);var de=T0(m,g),Oe=(r=de.max)!==null&&r!==void 0?r:l,xe=Number(Oe)>0,Ae=de.strategy(O),Se=!!Oe&&Ae>Oe,se=function(ne,tt){var X=tt;!W.current&&de.exceedFormatter&&de.max&&de.strategy(tt)>de.max&&(X=de.exceedFormatter(tt,{max:de.max}),tt!==X&&ce([be().selectionStart||0,be().selectionEnd||0])),P(X),wl(ne.currentTarget,ne,s,X)},Ne=function(ne){W.current=!0,u==null||u(ne)},Q=function(ne){W.current=!1,se(ne,ne.currentTarget.value),f==null||f(ne)},Fe=function(ne){se(ne,ne.target.value)},Be=function(ne){ne.key==="Enter"&&T&&T(ne),z==null||z(ne)},Ve=function(ne){D(!0),o==null||o(ne)},dt=function(ne){D(!1),i==null||i(ne)},st=function(ne){P(""),ye(),wl(be(),ne,s)},ht=v,et;de.show&&(de.showFormatter?et=de.showFormatter({value:O,count:Ae,maxLength:Oe}):et="".concat(Ae).concat(xe?" / ".concat(Oe):""),ht=ie.createElement(ie.Fragment,null,ht,ie.createElement("span",{className:pe("".concat(p,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},et)));var Dt=function(ne){var tt;C==null||C(ne),(tt=be())!==null&&tt!==void 0&&tt.style.height&&te(!0)},Qe=!L&&!g&&!c;return ie.createElement(P0,{ref:Re,value:O,allowClear:c,handleReset:st,suffix:ht,prefixCls:p,classNames:A(A({},w),{},{affixWrapper:pe(w==null?void 0:w.affixWrapper,j(j({},"".concat(p,"-show-count"),g),"".concat(p,"-textarea-allow-clear"),c))}),disabled:S,focused:k,className:pe(y,Se&&"".concat(p,"-out-of-range")),style:A(A({},b),re&&!Qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof et=="string"?et:void 0}},hidden:R,readOnly:F,onClear:M},ie.createElement(k0,Xe({},_,{autoSize:L,maxLength:l,onKeyDown:Be,onChange:Fe,onFocus:Ve,onBlur:dt,onCompositionStart:Ne,onCompositionEnd:Q,className:pe(w==null?void 0:w.textarea),style:A(A({},E==null?void 0:E.textarea),{},{resize:b==null?void 0:b.resize}),disabled:S,prefixCls:p,onResize:Dt,ref:me,readOnly:F})))}),_0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const z0=d.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:l,classNames:u,rootClassName:f,className:v,style:h,styles:p,variant:g}=e,m=_0(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:S}=d.useContext(Bt),R=Uh(i),w=d.useContext(Ta),E=s??w,{status:C,hasFeedback:M,feedbackIcon:T}=d.useContext(Pi),F=Lm(C,c),L=d.useRef(null);d.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=L.current)===null||B===void 0?void 0:B.resizableTextArea,focus:k=>{var D,W;R0((W=(D=L.current)===null||D===void 0?void 0:D.resizableTextArea)===null||W===void 0?void 0:W.textArea,k)},blur:()=>{var k;return(k=L.current)===null||k===void 0?void 0:k.blur()}}});const z=y("input",a),_=Lh(z),[I,V,$]=w0(z,_),[P,O]=Nm("textArea",g,o),N=j0(l??(S==null?void 0:S.allowClear));return I(d.createElement(N0,Object.assign({autoComplete:S==null?void 0:S.autoComplete},m,{style:Object.assign(Object.assign({},S==null?void 0:S.style),h),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),disabled:E,allowClear:N,className:pe($,_,v,f,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},u),S==null?void 0:S.classNames),{textarea:pe({[`${z}-sm`]:R==="small",[`${z}-lg`]:R==="large"},V,u==null?void 0:u.textarea,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.textarea),variant:pe({[`${z}-${P}`]:O},km(z,F)),affixWrapper:pe(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:b==="rtl",[`${z}-affix-wrapper-sm`]:R==="small",[`${z}-affix-wrapper-lg`]:R==="large",[`${z}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:z,suffix:M&&d.createElement("span",{className:`${z}-textarea-suffix`},T),ref:L})))});function B0(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var V0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},D0=function(t,r){return d.createElement(sr,Xe({},t,{ref:r,icon:V0}))},H0=d.forwardRef(D0),W0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},U0=function(t,r){return d.createElement(sr,Xe({},t,{ref:r,icon:W0}))},q0=d.forwardRef(U0),G0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},K0=function(t,r){return d.createElement(sr,Xe({},t,{ref:r,icon:G0}))},X0=d.forwardRef(K0);const Q0=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Z0=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
145
|
+
h${n}&,
|
|
146
|
+
div&-h${n},
|
|
147
|
+
div&-h${n} > textarea,
|
|
148
|
+
h${n}
|
|
149
|
+
`]=Q0(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Y0=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},jc(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},J0=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Pa[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),eb=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Ee(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},tb=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rb=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),nb=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Z0(e)),{[`
|
|
150
|
+
& + h1${t},
|
|
151
|
+
& + h2${t},
|
|
152
|
+
& + h3${t},
|
|
153
|
+
& + h4${t},
|
|
154
|
+
& + h5${t}
|
|
155
|
+
`]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),J0(e)),Y0(e)),{[`
|
|
156
|
+
${t}-expand,
|
|
157
|
+
${t}-collapse,
|
|
158
|
+
${t}-edit,
|
|
159
|
+
${t}-copy
|
|
160
|
+
`]:Object.assign(Object.assign({},jc(e)),{marginInlineStart:e.marginXXS})}),eb(e)),tb(e)),rb()),{"&-rtl":{direction:"rtl"}})}},ab=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),gu=Ui("Typography",e=>[nb(e)],ab),ob=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:f,component:v,enterIcon:h=d.createElement(X0,null)}=e,p=d.useRef(null),g=d.useRef(!1),m=d.useRef(),[y,b]=d.useState(c);d.useEffect(()=>{b(c)},[c]),d.useEffect(()=>{var I;if(!((I=p.current)===null||I===void 0)&&I.resizableTextArea){const{textArea:V}=p.current.resizableTextArea;V.focus();const{length:$}=V.value;V.setSelectionRange($,$)}},[]);const S=I=>{let{target:V}=I;b(V.value.replace(/[\n\r]/g,""))},R=()=>{g.current=!0},w=()=>{g.current=!1},E=I=>{let{keyCode:V}=I;g.current||(m.current=V)},C=()=>{l(y.trim())},M=I=>{let{keyCode:V,ctrlKey:$,altKey:P,metaKey:O,shiftKey:N}=I;m.current!==V||g.current||$||P||O||N||(V===Y.ENTER?(C(),f==null||f()):V===Y.ESC&&u())},T=()=>{C()},[F,L,z]=gu(t),_=pe(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${v}`]:!!v},n,L,z);return F(d.createElement("div",{className:_,style:a},d.createElement(z0,{ref:p,maxLength:i,value:y,onChange:S,onKeyDown:E,onKeyUp:M,onCompositionStart:R,onCompositionEnd:w,onBlur:T,"aria-label":r,rows:1,autoSize:s}),h!==null?qc(h,{className:`${t}-edit-content-confirm`}):null))};var ib=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(u){try{l(n.next(u))}catch(f){i(f)}}function c(u){try{l(n.throw(u))}catch(f){i(f)}}function l(u){u.done?o(u.value):a(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})};const sb=e=>{let{copyConfig:t,children:r}=e;const[n,a]=d.useState(!1),[o,i]=d.useState(!1),s=d.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},l={};t.format&&(l.format=t.format),d.useEffect(()=>c,[]);const u=St(f=>ib(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;Ju(h||B0(r,!0).join("")||"",l),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(h){throw i(!1),h}}));return{copied:n,copyLoading:o,onClick:u}};function To(e,t){return d.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const lb=e=>{const t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current},cb=(e,t,r)=>d.useMemo(()=>e===!0?{title:t??r}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var ub=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const hu=d.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:l}=e,u=ub(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:h}=d.useContext(Bt),p=c??v,g=i?La(t,i):t,m=f("typography",r),[y,b,S]=gu(m),R=pe(m,h==null?void 0:h.className,{[`${m}-rtl`]:p==="rtl"},a,o,b,S),w=Object.assign(Object.assign({},h==null?void 0:h.style),l);return y(d.createElement(n,Object.assign({className:R,style:w,ref:g},u),s))});function Cl(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function jo(e,t,r){return e===!0||e===void 0?t:e||r&&t}function db(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const Qi=e=>["string","number"].includes(typeof e),fb=e=>{let{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,tabIndex:s,onCopy:c,loading:l}=e;const u=Cl(o),f=Cl(i),{copied:v,copy:h}=n??{},p=r?v:h,g=jo(u[r?1:0],p),m=typeof g=="string"?g:p;return d.createElement(Da,{title:g},d.createElement("button",{type:"button",className:pe(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":m,tabIndex:s},r?jo(f[1],d.createElement(Bm,null),!0):jo(f[0],l?d.createElement(zh,null):d.createElement(H0,null),!0)))},ha=d.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)}),vb=e=>e.reduce((t,r)=>t+(Qi(r)?String(r).length:1),0);function El(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Qi(o)?String(o).length:1,c=r+s;if(c>t){const l=t-r;return n.push(String(o).slice(0,l)),n}n.push(o),r=c}return e}const Oo=0,Mo=1,Ao=2,Io=3,Rl=4,pa={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function gb(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,l=d.useMemo(()=>Yr(n),[n]),u=d.useMemo(()=>vb(l),[n]),f=d.useMemo(()=>a(l,!1),[n]),[v,h]=d.useState(null),p=d.useRef(null),g=d.useRef(null),m=d.useRef(null),y=d.useRef(null),b=d.useRef(null),[S,R]=d.useState(!1),[w,E]=d.useState(Oo),[C,M]=d.useState(0),[T,F]=d.useState(null);Le(()=>{E(t&&r&&u?Mo:Oo)},[r,n,o,t,l]),Le(()=>{var I,V,$,P;if(w===Mo){E(Ao);const O=g.current&&getComputedStyle(g.current).whiteSpace;F(O)}else if(w===Ao){const O=!!(!((I=m.current)===null||I===void 0)&&I.isExceed());E(O?Io:Rl),h(O?[0,u]:null),R(O);const N=((V=m.current)===null||V===void 0?void 0:V.getHeight())||0,B=o===1?0:(($=y.current)===null||$===void 0?void 0:$.getHeight())||0,k=((P=b.current)===null||P===void 0?void 0:P.getHeight())||0,D=Math.max(N,B+k);M(D+1),c(O)}},[w]);const L=v?Math.ceil((v[0]+v[1])/2):0;Le(()=>{var I;const[V,$]=v||[0,0];if(V!==$){const O=(((I=p.current)===null||I===void 0?void 0:I.getHeight())||0)>C;let N=L;$-V===1&&(N=O?V:$),h(O?[V,N]:[N,$])}},[v,L]);const z=d.useMemo(()=>{if(!t)return a(l,!1);if(w!==Io||!v||v[0]!==v[1]){const I=a(l,!1);return[Rl,Oo].includes(w)?I:d.createElement("span",{style:Object.assign(Object.assign({},pa),{WebkitLineClamp:o})},I)}return a(i?l:El(l,v[0]),S)},[i,w,v,l].concat(Z(s))),_={width:r,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,z,w===Ao&&d.createElement(d.Fragment,null,d.createElement(ha,{style:Object.assign(Object.assign(Object.assign({},_),pa),{WebkitLineClamp:o}),ref:m},f),d.createElement(ha,{style:Object.assign(Object.assign(Object.assign({},_),pa),{WebkitLineClamp:o-1}),ref:y},f),d.createElement(ha,{style:Object.assign(Object.assign(Object.assign({},_),pa),{WebkitLineClamp:1}),ref:b},a([],!0))),w===Io&&v&&v[0]!==v[1]&&d.createElement(ha,{style:Object.assign(Object.assign({},_),{top:400}),ref:p},a(El(l,L),!0)),w===Mo&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const hb=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:d.createElement(Da,Object.assign({open:r?void 0:!1},a),n)};var pb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function mb(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:c}=e,l=t;function u(f,v){v&&(l=d.createElement(f,{},l))}return u("strong",i),u("u",a),u("del",o),u("code",n),u("mark",r),u("kbd",s),u("i",c),l}const bb="...",Ha=d.forwardRef((e,t)=>{var r;const{prefixCls:n,className:a,style:o,type:i,disabled:s,children:c,ellipsis:l,editable:u,copyable:f,component:v,title:h}=e,p=pb(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:m}=d.useContext(Bt),[y]=kv("Text"),b=d.useRef(null),S=d.useRef(null),R=g("typography",n),w=Hl(p,["mark","code","delete","underline","strong","keyboard","italic"]),[E,C]=To(u),[M,T]=An(!1,{value:C.editing}),{triggerType:F=["icon"]}=C,L=X=>{var J;X&&((J=C.onStart)===null||J===void 0||J.call(C)),T(X)},z=lb(M);Le(()=>{var X;!M&&z&&((X=S.current)===null||X===void 0||X.focus())},[M]);const _=X=>{X==null||X.preventDefault(),L(!0)},I=X=>{var J;(J=C.onChange)===null||J===void 0||J.call(C,X),L(!1)},V=()=>{var X;(X=C.onCancel)===null||X===void 0||X.call(C),L(!1)},[$,P]=To(f),{copied:O,copyLoading:N,onClick:B}=sb({copyConfig:P,children:c}),[k,D]=d.useState(!1),[W,H]=d.useState(!1),[G,re]=d.useState(!1),[te,Re]=d.useState(!1),[me,be]=d.useState(!0),[ye,ae]=To(l,{expandable:!1,symbol:X=>X?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ge,we]=An(ae.defaultExpanded||!1,{value:ae.expanded}),ce=ye&&(!ge||ae.expandable==="collapsible"),{rows:de=1}=ae,Oe=d.useMemo(()=>ce&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||E||$),[ce,ae,E,$]);Le(()=>{ye&&!Oe&&(D(ll("webkitLineClamp")),H(ll("textOverflow")))},[Oe,ye]);const[xe,Ae]=d.useState(ce),Se=d.useMemo(()=>Oe?!1:de===1?W:k,[Oe,W,k]);Le(()=>{Ae(Se&&ce)},[Se,ce]);const se=ce&&(xe?te:G),Ne=ce&&de===1&&xe,Q=ce&&de>1&&xe,Fe=(X,J)=>{var De;we(J.expanded),(De=ae.onExpand)===null||De===void 0||De.call(ae,X,J)},[Be,Ve]=d.useState(0),dt=X=>{let{offsetWidth:J}=X;Ve(J)},st=X=>{var J;re(X),G!==X&&((J=ae.onEllipsis)===null||J===void 0||J.call(ae,X))};d.useEffect(()=>{const X=b.current;if(ye&&xe&&X){const J=db(X);te!==J&&Re(J)}},[ye,xe,c,Q,me,Be]),d.useEffect(()=>{const X=b.current;if(typeof IntersectionObserver>"u"||!X||!xe||!ce)return;const J=new IntersectionObserver(()=>{be(!!X.offsetParent)});return J.observe(X),()=>{J.disconnect()}},[xe,ce]);const ht=cb(ae.tooltip,C.text,c),et=d.useMemo(()=>{if(!(!ye||xe))return[C.text,c,h,ht.title].find(Qi)},[ye,xe,h,ht.title,se]);if(M)return d.createElement(ob,{value:(r=C.text)!==null&&r!==void 0?r:typeof c=="string"?c:"",onSave:I,onCancel:V,onEnd:C.onEnd,prefixCls:R,className:a,style:o,direction:m,component:v,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const Dt=()=>{const{expandable:X,symbol:J}=ae;return X?d.createElement("button",{type:"button",key:"expand",className:`${R}-${ge?"collapse":"expand"}`,onClick:De=>Fe(De,{expanded:!ge}),"aria-label":ge?y.collapse:y==null?void 0:y.expand},typeof J=="function"?J(ge):J):null},Qe=()=>{if(!E)return;const{icon:X,tooltip:J,tabIndex:De}=C,Kt=Yr(J)[0]||(y==null?void 0:y.edit),lr=typeof Kt=="string"?Kt:"";return F.includes("icon")?d.createElement(Da,{key:"edit",title:J===!1?"":Kt},d.createElement("button",{type:"button",ref:S,className:`${R}-edit`,onClick:_,"aria-label":lr,tabIndex:De},X||d.createElement(q0,{role:"button"}))):null},he=()=>$?d.createElement(fb,Object.assign({key:"copy"},P,{prefixCls:R,copied:O,locale:y,onCopy:B,loading:N,iconOnly:c==null})):null,ne=X=>[X&&Dt(),Qe(),he()],tt=X=>[X&&!ge&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},bb),ae.suffix,ne(X)];return d.createElement(Fn,{onResize:dt,disabled:!ce},X=>d.createElement(hb,{tooltipProps:ht,enableEllipsis:ce,isEllipsis:se},d.createElement(hu,Object.assign({className:pe({[`${R}-${i}`]:i,[`${R}-disabled`]:s,[`${R}-ellipsis`]:ye,[`${R}-ellipsis-single-line`]:Ne,[`${R}-ellipsis-multiple-line`]:Q},a),prefixCls:n,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Q?de:void 0}),component:v,ref:La(X,b,t),direction:m,onClick:F.includes("text")?_:void 0,"aria-label":et==null?void 0:et.toString(),title:h},w),d.createElement(gb,{enableMeasure:ce&&!xe,text:c,rows:de,width:Be,onEllipsis:st,expanded:ge,miscDeps:[O,ge,N,E,$,y]},(J,De)=>mb(e,d.createElement(d.Fragment,null,J.length>0&&De&&!ge&&et?d.createElement("span",{key:"show-content","aria-hidden":!0},J):J,tt(De)))))))});var yb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const xb=d.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=yb(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,d.createElement(Ha,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),Sb=d.forwardRef((e,t)=>d.createElement(Ha,Object.assign({ref:t},e,{component:"div"})));var wb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cb=(e,t)=>{var{ellipsis:r}=e,n=wb(e,["ellipsis"]);const a=d.useMemo(()=>r&&typeof r=="object"?Hl(r,["expandable","rows"]):r,[r]);return d.createElement(Ha,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},Eb=d.forwardRef(Cb);var Rb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Pb=[1,2,3,4,5],$b=d.forwardRef((e,t)=>{const{level:r=1}=e,n=Rb(e,["level"]),a=Pb.includes(r)?`h${r}`:"h1";return d.createElement(Ha,Object.assign({ref:t},n,{component:a}))}),Bn=hu;Bn.Text=Eb;Bn.Link=xb;Bn.Title=$b;Bn.Paragraph=Sb;function pu(e){return e.startsWith("http")?e:Tb(e)}function Tb(e){const{blocklet:t={}}=window,{componentMountPoints:r=[]}=t,n=r.find(a=>a.did==="z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9");return Ur((n==null?void 0:n.mountPoint)||"/","/uploads",e)}function mu({attachment:e}){const{data:t}=e;let r="";try{r=new URL(t.url).host}catch{r=t.url}return x.jsx(jb,{children:x.jsx("div",{className:"attachment",children:x.jsxs(kl,{href:t.url,className:"link",children:[!!r&&x.jsx("span",{className:"url",children:r}),!t.title&&x.jsx(No,{variant:"rectangular",height:20}),!!t.title&&x.jsx(q,{className:"title",children:t.title}),!t.description&&x.jsx(No,{sx:{mt:"10px"},variant:"rectangular",height:40}),!!t.description&&x.jsx("span",{className:"description",children:t.description}),!!t.image&&x.jsx("img",{className:"image",src:pu(t.image),alt:""})]})})})}const jb=ir.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
justify-content: flex-start;
|
|
164
|
+
width: 100%;
|
|
165
|
+
.attachment {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
flex: 1;
|
|
169
|
+
width: 0;
|
|
170
|
+
margin-top: 6px;
|
|
171
|
+
.url {
|
|
172
|
+
color: #9397a1;
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
}
|
|
175
|
+
.title {
|
|
176
|
+
color: #4598fa;
|
|
177
|
+
font-size: 14px;
|
|
178
|
+
font-weight: bold;
|
|
179
|
+
margin-top: 4px;
|
|
180
|
+
line-height: 18px;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
}
|
|
185
|
+
.description {
|
|
186
|
+
width: 100%;
|
|
187
|
+
display: inline-block;
|
|
188
|
+
color: #25292f;
|
|
189
|
+
font-size: 14px;
|
|
190
|
+
margin-top: 4px;
|
|
191
|
+
word-break: break-all;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
text-overflow: ellipsis;
|
|
195
|
+
}
|
|
196
|
+
.image {
|
|
197
|
+
margin-top: 8px;
|
|
198
|
+
height: 140px;
|
|
199
|
+
object-fit: cover;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
`;mu.propTypes={attachment:fe.object.isRequired};function bu({attachment:e}){const{data:t}=e;return x.jsx(Ob,{children:x.jsx("div",{className:"attachment",children:x.jsx("img",{className:"image",src:pu(t.url),alt:t.alt})})})}const Ob=ir.div`
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: row;
|
|
205
|
+
justify-content: flex-start;
|
|
206
|
+
width: 100%;
|
|
207
|
+
.attachment {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
flex: 1;
|
|
211
|
+
width: 0;
|
|
212
|
+
.image {
|
|
213
|
+
width: 180px;
|
|
214
|
+
object-fit: contain;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
`;bu.propTypes={attachment:fe.object.isRequired};function yu({attachment:e}){var a;const{data:t}=e,r=(a=t.color)==null?void 0:a.toLowerCase();let n="14px";return t.size==="small"?n="12px":t.size==="normal"?n="14px":t.size==="big"&&(n="16px"),x.jsx(Mb,{children:x.jsx("div",{className:"attachment",children:x.jsx("span",{className:"title",style:{fontSize:n,color:r},children:t.text})})})}const Mb=ir.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: row;
|
|
220
|
+
justify-content: flex-start;
|
|
221
|
+
width: 100%;
|
|
222
|
+
.attachment {
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-direction: column;
|
|
225
|
+
flex: 1;
|
|
226
|
+
width: 0;
|
|
227
|
+
white-space: pre-line;
|
|
228
|
+
}
|
|
229
|
+
`;yu.propTypes={attachment:fe.object.isRequired};function xu({attachment:e,...t}){return x.jsxs(Ab,{...t,children:[e.type==="link"&&x.jsx(mu,{attachment:e}),e.type==="image"&&x.jsx(bu,{attachment:e}),e.type==="text"&&x.jsx(yu,{attachment:e})]})}const Ab=ir.div`
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
width: 100%;
|
|
233
|
+
margin-bottom: 8px;
|
|
234
|
+
&:last-child {
|
|
235
|
+
margin-bottom: 0;
|
|
236
|
+
}
|
|
237
|
+
`;xu.propTypes={attachment:fe.object.isRequired};function Zi({attachments:e,severity:t,showSke:r=!0}){if(!e||!e.length)return null;let n="#C4C5CA";t==="success"?n="#25C99B":t==="warning"?n="#DE9E37":t==="error"?n="#F16E6E":n="#C4C5CA";const a=o=>!o&&!Array.isArray(o)?null:o.map((i,s)=>i.type==="section"?x.jsx(d.Fragment,{children:a(i.fields)},s):x.jsx(xu,{attachment:i},s));return x.jsx(Ib,{leftLineColor:n,children:x.jsx("div",{className:"message-in-list",children:x.jsxs("div",{className:"left-part",children:[e.length>0&&x.jsx("div",{className:"message-container",children:x.jsx("div",{className:"attachment-container",children:a(e)})}),e.length===0&&r&&x.jsx(No,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})})}const Ib=ir.div`
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: column;
|
|
240
|
+
.message-in-list {
|
|
241
|
+
border: 1px solid #eee;
|
|
242
|
+
padding: 8px;
|
|
243
|
+
display: flex;
|
|
244
|
+
border-radius: 8px;
|
|
245
|
+
background: #eee;
|
|
246
|
+
.left-part {
|
|
247
|
+
flex: 1;
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
.app-name {
|
|
251
|
+
font-weight: bold;
|
|
252
|
+
margin-bottom: 4px;
|
|
253
|
+
}
|
|
254
|
+
.left-part-top {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
.app-name {
|
|
258
|
+
flex: 1;
|
|
259
|
+
}
|
|
260
|
+
.time {
|
|
261
|
+
font-size: 14px;
|
|
262
|
+
color: #999;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
.message-in-list-title {
|
|
266
|
+
color: #666;
|
|
267
|
+
word-break: break-all;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
.message-title {
|
|
272
|
+
color: #25292f;
|
|
273
|
+
font-size: 18px;
|
|
274
|
+
font-weight: bold;
|
|
275
|
+
word-break: break-all;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.attach-ske {
|
|
279
|
+
position: relative;
|
|
280
|
+
margin-left: 10px;
|
|
281
|
+
&::after {
|
|
282
|
+
content: '';
|
|
283
|
+
position: absolute;
|
|
284
|
+
left: -10px;
|
|
285
|
+
top: 0;
|
|
286
|
+
height: 100%;
|
|
287
|
+
width: 4px;
|
|
288
|
+
background-color: ${e=>e.leftLineColor};
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.message-body {
|
|
293
|
+
color: #25292f;
|
|
294
|
+
font-size: 16px;
|
|
295
|
+
word-break: break-all;
|
|
296
|
+
white-space: pre-line;
|
|
297
|
+
}
|
|
298
|
+
.message-container {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
justify-content: flex-start;
|
|
302
|
+
width: 100%;
|
|
303
|
+
position: relative;
|
|
304
|
+
margin-top: 6px;
|
|
305
|
+
&::after {
|
|
306
|
+
content: '';
|
|
307
|
+
position: absolute;
|
|
308
|
+
height: 100%;
|
|
309
|
+
width: 3px;
|
|
310
|
+
background-color: ${e=>e.leftLineColor};
|
|
311
|
+
left: 0;
|
|
312
|
+
top: 0;
|
|
313
|
+
}
|
|
314
|
+
.attachment-container {
|
|
315
|
+
display: flex;
|
|
316
|
+
flex-direction: column;
|
|
317
|
+
width: 100%;
|
|
318
|
+
margin-left: 10px;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
.actions-container {
|
|
322
|
+
margin-top: 10px;
|
|
323
|
+
.actions-item {
|
|
324
|
+
margin-right: 8px;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
`;Zi.propTypes={severity:fe.string.isRequired,attachments:fe.array.isRequired,showSke:fe.bool};Zi.defaultProps={showSke:!0};const{Paragraph:Fb}=Bn;Su.propTypes={notification:fe.object,rows:fe.number};function Su({notification:e,rows:t=2}){const[r,n]=d.useState(!1),{t:a}=gt(),o=d.useMemo(()=>{const{attachments:u}=e||{};if(!u)return!1;try{return u.length>0}catch{return!1}},[e]),i=d.useMemo(()=>{const{blocks:u}=e||{};if(!u)return!1;try{return u.length>0}catch{return!1}},[e]),s=d.useMemo(()=>{const{description:u}=e||{};return!!u},[e]),c=d.useMemo(()=>o||i||s,[o,i,s]),l=d.useMemo(()=>{if(!e.description)return e.description;const u=/^<([^<>()\n]+)\([^<>]*\)>/;return e.description.replace(u,(v,h)=>h)},[e.description]);return c?x.jsxs(kb,{children:[x.jsxs(q,{className:"text-container",children:[x.jsx(Fb,{ellipsis:t>0?{rows:t,expandable:"collapsible",expanded:r,symbol:u=>a(u?"common.collapse":"common.expand"),onExpand:(u,f)=>n(f.expanded)}:{rows:2},children:l})," "]}),x.jsx(Zi,{severity:e.severity,attachments:e.attachments})]}):null}const kb=ir(q)`
|
|
328
|
+
width: 100%;
|
|
329
|
+
.text-container {
|
|
330
|
+
word-wrap: break-word;
|
|
331
|
+
font-size: 14px;
|
|
332
|
+
color: rgba(75, 85, 99, 1);
|
|
333
|
+
&.collasped {
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
text-overflow: ellipsis;
|
|
336
|
+
display: -webkit-box;
|
|
337
|
+
-webkit-line-clamp: 2;
|
|
338
|
+
-webkit-box-orient: vertical;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
.toggle-btn {
|
|
342
|
+
cursor: pointer;
|
|
343
|
+
margin-left: 4px;
|
|
344
|
+
font-size: 14px;
|
|
345
|
+
color: rgba(59, 130, 246, 1);
|
|
346
|
+
}
|
|
347
|
+
`,Lb=d.memo(Su);Cu.propTypes={data:fe.array,blockletMap:fe.object,onReadNotification:fe.func,inDialog:fe.bool};wu.propTypes={notification:fe.object,blocklet:fe.object,onReadNotification:fe.func,inDialog:fe.bool};function wu({notification:e,blocklet:t,onReadNotification:r=()=>{},inDialog:n=!1}){var u;const{locale:a}=d.useContext(ka),o=Ti(),i=d.useMemo(()=>{const{receivers:f=[]}=e;return f.length?f[0].read:!0},[e]),s=d.useMemo(()=>{const{actions:f,action:v}=e;let h=f??[];return!h.length&&v&&(h=[{name:"Visit",link:v}]),h},[e]),c=(t==null?void 0:t.did)||((u=t==null?void 0:t.meta)==null?void 0:u.did)||"",l=(t==null?void 0:t.appId)||(t==null?void 0:t.appDid)||(t==null?void 0:t.appPid)||"";return x.jsxs(Nb,{className:"notification-row",display:"flex",gap:2,sx:{padding:"16px 8px 0 8px"},onClick:()=>r(e),children:[x.jsx(Cd,{variant:"dot",color:"error",invisible:i,children:t?x.jsx(q,{children:l===c?x.jsx(Ad,{blocklet:t}):x.jsx(Fl,{blocklet:t,ancestors:t.ancestors??[]})}):x.jsx(_d,{children:e.entityType.substr(0,1).toUpperCase()})}),x.jsxs(q,{className:"notification",display:"flex",flexDirection:"column",alignItems:"start",paddingBottom:1,children:[x.jsxs(q,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,sx:{width:"100%"},children:[x.jsx(q,{className:"title",children:e.title}),"·",x.jsx(Id,{value:e.createdAt,locale:a,style:{color:o.palette.text.secondary,fontSize:"0.875rem"}})]}),e.severity!=="info"?x.jsx(Nd,{className:"notification-tag",status:e.severity}):null,x.jsx(Lb,{notification:e,rows:n?0:2}),s.length>0?x.jsx(q,{display:"flex",justifyContent:"start",gap:1,children:s.map(f=>x.jsx(kl,{href:f.link,className:"link",children:f.name},f.link))}):null]})]})}function Cu({data:e,blockletMap:t,onReadNotification:r=()=>{},inDialog:n=!1}){const{t:a}=gt(),o=d.useMemo(()=>n?e==null?void 0:e.slice(0,5):e,[n,e]);return e!=null&&e.length?x.jsx(q,{display:"flex",flexDirection:"column",sx:{...n?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:o==null?void 0:o.map(i=>{const s=t.get(i.componentDid||i.sender||i.entityId);return x.jsx(wu,{inDialog:n,notification:i,blocklet:s,onReadNotification:()=>r(i)},i.id)})}):x.jsx(Xr,{children:a("common.empty")})}const Nb=ir(q)`
|
|
348
|
+
cursor: pointer;
|
|
349
|
+
// border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
350
|
+
|
|
351
|
+
&:hover {
|
|
352
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
353
|
+
}
|
|
354
|
+
.notification {
|
|
355
|
+
width: calc(100% - 50px);
|
|
356
|
+
|
|
357
|
+
.title {
|
|
358
|
+
min-width: 0;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
text-overflow: ellipsis;
|
|
361
|
+
white-space: nowrap;
|
|
362
|
+
color: rgba(3, 7, 18, 1);
|
|
363
|
+
font-size: 16px;
|
|
364
|
+
}
|
|
365
|
+
.description {
|
|
366
|
+
color: rgba(75, 85, 99, 1);
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
text-overflow: ellipsis;
|
|
369
|
+
white-space: nowrap;
|
|
370
|
+
font-size: 12px;
|
|
371
|
+
transform: translateY(-1px);
|
|
372
|
+
}
|
|
373
|
+
.link {
|
|
374
|
+
color: rgba(59, 130, 246, 1);
|
|
375
|
+
font-size: 14px;
|
|
376
|
+
text-decoration: none;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
`;Eu.propTypes={paging:fe.objectOf(fe.any).isRequired,loading:fe.bool.isRequired,onChange:fe.func.isRequired};function Eu({loading:e,paging:t,onChange:r}){const{t:n}=d.useContext(ka);if(t.pageCount<=1)return null;const a=(s,c)=>{r({page:c+1})},o=s=>{const c=Number(s.target.value);r({page:1,pageSize:c})},i=t.page-1<=0?0:t.page-1;return x.jsx(q,{mt:2,display:"flex",justifyContent:"flex-end",children:x.jsx(zd,{disabled:e,count:t.total,page:i,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:n("pagination.rowsPerPage"),labelDisplayedRows:({from:s,to:c,count:l})=>`${s}–${c} / ${l!==-1?l:`${n()}more than ${c}`}`,rowsPerPage:t.pageSize,onPageChange:a,onRowsPerPageChange:o})})}const _b=d.memo(Eu);Ru.propTypes={selectedId:fe.string,blockletMap:fe.object,onSelectChange:fe.func,filterType:fe.oneOf(["component","entity"])};const zb=ir.div`
|
|
380
|
+
display: flex;
|
|
381
|
+
justify-items: flex-start;
|
|
382
|
+
align-items: center;
|
|
383
|
+
gap: 8px;
|
|
384
|
+
.name {
|
|
385
|
+
display: block;
|
|
386
|
+
max-width: 260px;
|
|
387
|
+
white-space: nowrap;
|
|
388
|
+
overflow: hidden;
|
|
389
|
+
text-overflow: ellipsis;
|
|
390
|
+
}
|
|
391
|
+
`;function Ru({selectedId:e="",filterType:t="component",blockletMap:r=new Map,onSelectChange:n=()=>{}}){const[a,o]=d.useState(""),{t:i}=d.useContext(ka),s=l=>{const u=l.target.value;n(u==="all"?"":u)},c=d.useMemo(()=>{if(!r.size)return[];const l=[];return Array.from(r).forEach(([,u])=>{var g,m;const f=u.did||((g=u.meta)==null?void 0:g.did),v=u.title||((m=u.meta)==null?void 0:m.title)||"",h=u.appPid||u.appDid,p=v.toLowerCase().includes(a.toLowerCase());(t==="component"&&h!==f&&p||t==="entity"&&h===f&&p)&&l.push(u)}),l},[r,a,t]);return r.size?x.jsx(Bd,{sx:{minWidth:240,maxWidth:300},children:x.jsxs(Oi,{MenuProps:{autoFocus:!1},value:e||"all",onChange:s,onClose:()=>o(""),size:"small",variant:"outlined",children:[x.jsx(Vd,{children:x.jsx(Il,{autoFocus:!0,value:a,placeholder:"Search",variant:"outlined",size:"small",fullWidth:!0,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key!=="Escape"&&l.stopPropagation()}})}),x.jsx(Sn,{value:"all",children:i("common.all")}),c.map(l=>{var v,h;const u=l.did||((v=l.meta)==null?void 0:v.did),f=l.title||((h=l.meta)==null?void 0:h.title);return x.jsx(Sn,{value:u,children:x.jsxs(zb,{children:[x.jsx(Fl,{size:24,blocklet:l,ancestors:l.ancestors}),x.jsx("span",{className:"name",children:f})]})},u)})]})}):null}const Bb=d.memo(Ru),Vb=ir.div`
|
|
392
|
+
.MuiContainer-root {
|
|
393
|
+
padding-right: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.profile-button.MuiButtonBase-root {
|
|
397
|
+
border-radius: 9999px;
|
|
398
|
+
margin-right: 2px;
|
|
399
|
+
color: #4b5563;
|
|
400
|
+
padding: 5px 12px;
|
|
401
|
+
line-height: 22px;
|
|
402
|
+
font-size: 13px;
|
|
403
|
+
border: 1px solid transparent;
|
|
404
|
+
}
|
|
405
|
+
.profile-button.active.MuiButtonBase-root {
|
|
406
|
+
background-color: #ffffff;
|
|
407
|
+
color: #030712;
|
|
408
|
+
border: 1px solid #e5e7eb !important;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.profile-line-button.MuiButtonBase-root {
|
|
412
|
+
margin-right: 2px;
|
|
413
|
+
color: #4b5563;
|
|
414
|
+
padding: 5px 12px;
|
|
415
|
+
line-height: 22px;
|
|
416
|
+
font-size: 13px;
|
|
417
|
+
border: none !important;
|
|
418
|
+
border-radius: 0;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.profile-line-button.active.MuiButtonBase-root {
|
|
422
|
+
color: rgba(3, 7, 18, 1);
|
|
423
|
+
border-bottom: 1px solid rgba(3, 7, 18, 1) !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.profile-button.MuiButtonBase-root:last-of-type,
|
|
427
|
+
.profile-line-button.MuiButtonBase-root {
|
|
428
|
+
margin-right: 0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.profile-button.MuiButtonBase-root:hover {
|
|
432
|
+
background-color: #ffffff;
|
|
433
|
+
color: #030712;
|
|
434
|
+
border: 1px solid #e5e7eb;
|
|
435
|
+
}
|
|
436
|
+
.profile-line-button.MuiButtonBase-root:hover {
|
|
437
|
+
color: rgba(3, 7, 18, 1);
|
|
438
|
+
background-color: unset;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
* {
|
|
442
|
+
scrollbar-width: none; /* Firefox */
|
|
443
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
*::-webkit-scrollbar {
|
|
447
|
+
display: none; /* Chrome, Safari and Opera */
|
|
448
|
+
}
|
|
449
|
+
`;Pu.propTypes={blocklets:fe.array,context:fe.object,pagination:fe.bool,inDialog:fe.bool,filterType:fe.oneOf(["component","entity"]),toViewAll:fe.func,tabType:fe.oneOf(["button","line"])};function Pu({blocklets:e=[],context:t,pagination:r=!0,tabType:n="button",inDialog:a=!1,filterType:o="component",toViewAll:i=()=>{}}){const{data:s,paging:c,refresh:l,loading:u,params:f,onReadNotification:v,unReadCount:h}=t,p=M=>{l({...f,severity:M,page:1})},{t:g}=d.useContext(ka),[m,y]=d.useState(!1),b=async()=>{y(!0),t.makeAllAsRead&&typeof t.makeAllAsRead=="function"&&await t.makeAllAsRead(),y(!1)},S=d.useMemo(()=>{const M=new Map;return e.length&&e.forEach(T=>{var L,z;const F=(T==null?void 0:T.did)||((L=T.meta)==null?void 0:L.did);F&&!M.has(F)&&(T.ancestors=[],M.set(F,T)),((z=T==null?void 0:T.children)==null?void 0:z.length)>0&&T.children.forEach(_=>{var V;const I=(_==null?void 0:_.did)||((V=_.meta)==null?void 0:V.did);I&&!M.has(I)&&(_.ancestors=[T],M.set(I,_))})}),M},[e]),R=M=>{l({...f,...M})},w=M=>{var T,F;!M||(F=(T=M.receivers)==null?void 0:T[0])!=null&&F.read||v(M.id).then(()=>{a&&i()})},E=M=>{let T={};o==="component"?T={entityId:"",componentDid:M}:o==="entity"&&(T={componentDid:"",entityId:M}),l({...f,...T,page:1})},C=je(()=>o==="component"?f.componentDid||"":o==="entity"&&f.entityId||"",[f,o]);return x.jsxs(Vb,{children:[x.jsx(_l,{currentTab:f.severity,type:n,theme:"light",onSelectType:p,extra:a?null:x.jsxs(q,{children:[h>0&&x.jsxs(Lo,{disabled:m,onClick:b,className:"",children:[m&&x.jsx(Zr,{size:16,style:{marginRight:"1em"}}),g("notification.markAllAsRead")]}),x.jsx(Bb,{onSelectChange:E,selectedId:C,filterType:o,blockletMap:S})]})}),u?x.jsx(q,{sx:{display:"flex",width:"100%",minHeight:400,justifyContent:"center",alignItems:"center"},children:x.jsx(Zr,{sx:{color:"#4598fa"}})}):x.jsx(Cu,{data:s,blockletMap:S,onReadNotification:w,inDialog:a}),r?x.jsx(_b,{loading:u,paging:c,onChange:R}):null]})}const Db=d.memo(Pu);function ex(){const t=ed().tab,{t:r}=gt(),n=td(),a=je(()=>{var o;return{...window.blocklet,meta:{did:window.blocklet.did,name:window.blocklet.did},children:(o=window==null?void 0:window.blocklet)==null?void 0:o.componentMountPoints.map(i=>({...i,meta:{...i,did:i.did,name:i.name||i.title||"",logo:"logo.png"}}))}});return x.jsxs(x.Fragment,{children:[x.jsx(rd,{children:x.jsx("title",{children:r("pageTitle.userCenter")})}),x.jsx(nf,{currentTab:t?Ur(nd.WELLKNOWN_SERVICE_PATH_PREFIX,"user",t):"",disableAutoRedirect:t==="settings",children:t==="notifications"?x.jsx(Db,{blocklets:[a],context:n}):null})]})}export{ex as default};
|