// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.18.1 // @author magicdawn // @description 为 B 站首页添加像 App 一样的推荐 // @license MIT // @icon https://www.bilibili.com/favicon.ico // @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match https://www.bilibili.com/ // @match https://www.bilibili.com/?* // @match https://www.bilibili.com/index.html // @match https://www.bilibili.com/index.html?* // @require https://registry.npmmirror.com/axios/0.27.2/files/dist/axios.min.js // @require https://registry.npmmirror.com/axios-userscript-adapter/0.2.0/files/dist/axiosGmxhrAdapter.min.js // @require https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js // @require https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js // @require https://registry.npmmirror.com/ua-parser-js/1.0.37/files/dist/ua-parser.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect www.mcbbs.net // @grant GM.getValue // @grant GM.setClipboard // @grant GM.setValue // @grant GM.xmlHttpRequest // @grant GM_addStyle // @grant unsafeWindow // @downloadURL none // ==/UserScript== (t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const e=document.createElement("style");e.textContent=t,document.head.append(e)})(" ._modal-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mnvtu_1{position:relative}._preview-card-wrapper_mnvtu_4{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mnvtu_4 ._preview-card-inner_mnvtu_17{width:100%;height:100%}._watch-later_mnvtu_21{z-index:5}._badge_mnvtu_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mnvtu_33{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mnvtu_48{color:default}._btn-dislike_mnvtu_51{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mnvtu_51 ._btn-dislike-icon_mnvtu_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mnvtu_51 ._btn-dislike-tip_mnvtu_73{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mnvtu_88{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:var(--video-card-border-radius);border:1px solid #eee}body.dark ._disliked-wrapper_mnvtu_88{border:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-icon_mnvtu_119{margin-bottom:5px}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-reason_mnvtu_122{font-size:20px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-desc_mnvtu_126{font-size:16px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{border-top:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mnvtu_147 .bili-video-card__skeleton--cover,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--text,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mnvtu_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mnvtu_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_t2sr7_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_t2sr7_52{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_t2sr7_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_t2sr7_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_t2sr7_112{grid-template-columns:repeat(2,1fr)!important}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} "); (async function (f, uy, Qx, Ym, Zx, Jx) { 'use strict'; function _interopNamespaceDefault(e) { const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } }); if (e) { for (const k in e) { if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: () => e[k] }); } } } n.default = e; return Object.freeze(n); } const f__namespace = /*#__PURE__*/_interopNamespaceDefault(f); const uy__namespace = /*#__PURE__*/_interopNamespaceDefault(uy); var Wx=Object.defineProperty;var Vx=(e,t,n)=>t in e?Wx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _t=(e,t,n)=>(Vx(e,typeof t!="symbol"?t+"":t,n),n),md=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var it=(e,t,n)=>(md(e,t,"read from private field"),n?n.call(e):t.get(e)),jn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n);},Pn=(e,t,n,r)=>(md(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var gd=(e,t,n,r)=>({set _(o){Pn(e,t,o,n);},get _(){return it(e,t,r)}}),Qt=(e,t,n)=>(md(e,t,"access private method"),n);var Ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}var fy={exports:{}},zc={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var tE=f,nE=Symbol.for("react.element"),rE=Symbol.for("react.fragment"),oE=Object.prototype.hasOwnProperty,aE=tE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iE={key:!0,ref:!0,__self:!0,__source:!0};function my(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)oE.call(t,r)&&!iE.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return {$$typeof:nE,type:e,key:a,ref:i,props:o,_owner:aE.current}}zc.Fragment=rE;zc.jsx=my;zc.jsxs=my;fy.exports=zc;var rs=fy.exports;function sE(e){if(e.sheet)return e.sheet;for(var t=0;t0?$n(ii,--Kn):0,Va--,un===10&&(Va=1,jc--),un}function rr(){return un=Kn2||as(un)>3?"":" "}function CE(e,t){for(;--t&&rr()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return Ps(e,Tl()+(t<6&&Kr()==32&&rr()==32))}function yf(e){for(;rr();)switch(un){case e:return Kn;case 34:case 39:e!==34&&e!==39&&yf(un);break;case 40:e===41&&yf(e);break;case 92:rr();break}return Kn}function SE(e,t){for(;rr()&&e+un!==47+10;)if(e+un===42+42&&Kr()===47)break;return "/*"+Ps(t,Kn-1)+"*"+Dc(e===47?e:rr())}function $E(e){for(;!as(Kr());)rr();return Ps(e,Kn)}function Cy(e){return yy(kl("",null,null,null,[""],e=by(e),0,[0],e))}function kl(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,m=0,g=0,h=0,v=1,p=1,b=1,y=0,C="",w=o,E=a,x=r,S=C;p;)switch(h=y,y=rr()){case 40:if(h!=108&&$n(S,d-1)==58){bf(S+=kt(Nl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Nl(y);break;case 9:case 10:case 13:case 32:S+=yE(h);break;case 92:S+=CE(Tl()-1,7);continue;case 47:switch(Kr()){case 42:case 47:ul(wE(SE(rr(),Tl()),t,n),l);break;default:S+="/";}break;case 123*v:s[c++]=Hr(S)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=kt(S,/\f/g,"")),g>0&&Hr(S)-d&&ul(g>32?gv(S+";",r,n,d-1):gv(kt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(ul(x=mv(S,t,n,c,u,o,s,C,w=[],E=[],d),a),y===123)if(u===0)kl(S,t,x,x,w,a,d,s,E);else switch(m===99&&$n(S,3)===110?100:m){case 100:case 108:case 109:case 115:kl(e,x,x,r&&ul(mv(e,x,x,0,0,o,s,C,o,w=[],d),E),o,E,d,s,r?w:E);break;default:kl(S,x,x,x,[""],E,0,s,E);}}c=u=g=0,v=b=1,C=S="",d=i;break;case 58:d=1+Hr(S),g=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&bE()==125)continue}switch(S+=Dc(y),y*v){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Hr(S)-1)*b,b=1;break;case 64:Kr()===45&&(S+=Nl(rr())),m=Kr(),u=d=Hr(C=S+=$E(Tl())),y++;break;case 45:h===45&&Hr(S)==2&&(v=0);}}return a}function mv(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,m=o===0?a:[""],g=Jm(m),h=0,v=0,p=0;h0?m[b]+" "+y:kt(y,/&\f/g,m[b])))&&(l[p++]=C);return Fc(e,t,n,o===0?Qm:s,l,c,u)}function wE(e,t,n){return Fc(e,t,n,gy,Dc(pE()),os(e,2,-2),0)}function gv(e,t,n,r){return Fc(e,t,n,Zm,os(e,0,r),os(e,r+1,-1),r)}function Ko(e,t){for(var n="",r=Jm(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+Nt+"$2-$3$1"+Zl+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~bf(e,"stretch")?$y(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,Hr(e)-3-(~bf(e,"!important")&&10))){case 107:return kt(e,":",":"+Nt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nt+($n(e,14)===45?"inline-":"")+"box$3$1"+Nt+"$2$3$1"+Mn+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Nt+e+Mn+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nt+e+Mn+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nt+e+Mn+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nt+e+Mn+e+e}return e}var TE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Zm:t.return=$y(t.value,t.length);break;case hy:return Ko([Oi(t,{value:kt(t.value,"@","@"+Nt)})],o);case Qm:if(t.length)return vE(t.props,function(a){switch(hE(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ko([Oi(t,{props:[kt(a,/:(read-\w+)/,":"+Zl+"$1")]})],o);case"::placeholder":return Ko([Oi(t,{props:[kt(a,/:(plac\w+)/,":"+Nt+"input-$1")]}),Oi(t,{props:[kt(a,/:(plac\w+)/,":"+Zl+"$1")]}),Oi(t,{props:[kt(a,/:(plac\w+)/,Mn+"input-$1")]})],o)}return ""})}},NE=[TE],wy=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||NE,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var VE={animationIterationCount:1,aspectRatio: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},KE=/[A-Z]|^ms/g,GE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,My=function(t){return t.charCodeAt(1)===45},vv=function(t){return t!=null&&typeof t!="boolean"},hd=IE(function(e){return My(e)?e:e.replace(KE,"-$&").toLowerCase()}),pv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(GE,function(r,o,a){return Wr={name:o,styles:a,next:Wr},o})}return VE[t]!==1&&!My(t)&&typeof n=="number"&&n!==0?n+"px":n};function is(e,t,n){if(n==null)return "";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return "";case"object":{if(n.anim===1)return Wr={name:n.name,styles:n.styles,next:Wr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wr={name:r.name,styles:r.styles,next:Wr},r=r.next;var o=n.styles+";";return o}return UE(e,t,n)}case"function":{if(e!==void 0){var a=Wr,i=n(e);return Wr=a,is(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function UE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o-1}var g2=m2,h2=Zc;function v2(e,t){var n=this.__data__,r=h2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var p2=v2,b2=e2,y2=l2,C2=d2,S2=g2,$2=p2;function si(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=SP}var gg=$P,wP=ci,xP=gg,EP=Mo,IP="[object Arguments]",OP="[object Array]",PP="[object Boolean]",MP="[object Date]",RP="[object Error]",_P="[object Function]",TP="[object Map]",NP="[object Number]",kP="[object Object]",AP="[object RegExp]",LP="[object Set]",zP="[object String]",DP="[object WeakMap]",jP="[object ArrayBuffer]",FP="[object DataView]",BP="[object Float32Array]",HP="[object Float64Array]",WP="[object Int8Array]",VP="[object Int16Array]",KP="[object Int32Array]",GP="[object Uint8Array]",UP="[object Uint8ClampedArray]",XP="[object Uint16Array]",qP="[object Uint32Array]",Kt={};Kt[BP]=Kt[HP]=Kt[WP]=Kt[VP]=Kt[KP]=Kt[GP]=Kt[UP]=Kt[XP]=Kt[qP]=!0;Kt[IP]=Kt[OP]=Kt[jP]=Kt[PP]=Kt[FP]=Kt[MP]=Kt[RP]=Kt[_P]=Kt[TP]=Kt[NP]=Kt[kP]=Kt[AP]=Kt[LP]=Kt[zP]=Kt[DP]=!1;function YP(e){return EP(e)&&xP(e.length)&&!!Kt[wP(e)]}var QP=YP;function ZP(e){return function(t){return e(t)}}var hg=ZP,ec={exports:{}};ec.exports;(function(e,t){var n=Ly,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s;})(ec,ec.exports);var vg=ec.exports,JP=QP,eM=hg,Pv=vg,Mv=Pv&&Pv.isTypedArray,tM=Mv?eM(Mv):JP,Wy=tM,nM=oP,rM=dg,oM=Lr,aM=fg,iM=mg,sM=Wy,lM=Object.prototype,cM=lM.hasOwnProperty;function uM(e,t){var n=oM(e),r=!n&&rM(e),o=!n&&!r&&aM(e),a=!n&&!r&&!o&&sM(e),i=n||r||o||a,s=i?nM(e.length,String):[],l=s.length;for(var c in e)(t||cM.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||iM(c,l)))&&s.push(c);return s}var Vy=uM,dM=Object.prototype;function fM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||dM;return e===n}var pg=fM;function mM(e,t){return function(n){return e(t(n))}}var Ky=mM,gM=Ky,hM=gM(Object.keys,Object),vM=hM,pM=pg,bM=vM,yM=Object.prototype,CM=yM.hasOwnProperty;function SM(e){if(!pM(e))return bM(e);var t=[];for(var n in Object(e))CM.call(e,n)&&n!="constructor"&&t.push(n);return t}var $M=SM,wM=Dy,xM=gg;function EM(e){return e!=null&&xM(e.length)&&!wM(e)}var Gy=EM,IM=Vy,OM=$M,PM=Gy;function MM(e){return PM(e)?IM(e):OM(e)}var Rs=MM,RM=Ms,_M=Rs;function TM(e,t){return e&&RM(t,_M(t),e)}var NM=TM;function kM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var AM=kM,LM=qr,zM=pg,DM=AM,jM=Object.prototype,FM=jM.hasOwnProperty;function BM(e){if(!LM(e))return DM(e);var t=zM(e),n=[];for(var r in e)r=="constructor"&&(t||!FM.call(e,r))||n.push(r);return n}var HM=BM,WM=Vy,VM=HM,KM=Gy;function UM(e){return KM(e)?WM(e,!0):VM(e)}var bg=UM,XM=Ms,qM=bg;function YM(e,t){return e&&XM(t,qM(t),e)}var QM=YM,tc={exports:{}};tc.exports;(function(e,t){var n=Ar,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,m=s?s(d):new c.constructor(d);return c.copy(m),m}e.exports=l;})(tc,tc.exports);var ZM=tc.exports;function JM(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r0&&n(s)?t>1?c1(s,t-1,n,r,o):M3(o,s):r||(o[o.length]=s);}return o}var _3=c1,T3=_3;function N3(e){var t=e==null?0:e.length;return t?T3(e,1):[]}var k3=N3;function A3(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var L3=A3,z3=L3,Yv=Math.max;function D3(e,t,n){return t=Yv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Yv(r.length-t,0),i=Array(a);++o0){if(++t>=U3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Q3=Y3,Z3=G3,J3=Q3,ek=J3(Z3),tk=ek,nk=k3,rk=j3,ok=tk;function ak(e){return ok(rk(e,void 0,nk),e+"")}var d1=ak,ik=ag,sk=a1,lk=d3,ck=gi,uk=Ms,dk=x3,fk=d1,mk=Zy,gk=1,hk=2,vk=4,pk=fk(function(e,t){var n={};if(e==null)return n;var r=!1;t=ik(t,function(a){return a=ck(a,e),r||(r=a.length>1),a}),uk(e,mk(e),n),r&&(n=sk(n,gk|hk|vk,dk));for(var o=t.length;o--;)lk(n,t[o]);return n}),bk=pk;const yk=hn(bk);var Ck=Ar,Sk=function(){return Ck.Date.now()},$k=Sk,wk=/\s/;function xk(e){for(var t=e.length;t--&&wk.test(e.charAt(t)););return t}var Ek=xk,Ik=Ek,Ok=/^\s+/;function Pk(e){return e&&e.slice(0,Ik(e)+1).replace(Ok,"")}var Mk=Pk,Rk=Mk,Zv=qr,_k=ru,Jv=0/0,Tk=/^[-+]0x[0-9a-f]+$/i,Nk=/^0b[01]+$/i,kk=/^0o[0-7]+$/i,Ak=parseInt;function Lk(e){if(typeof e=="number")return e;if(_k(e))return Jv;if(Zv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zv(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=Rk(e);var n=Nk.test(e);return n||kk.test(e)?Ak(e.slice(2),n?2:8):Tk.test(e)?Jv:+e}var f1=Lk,zk=qr,pd=$k,ep=f1,Dk="Expected a function",jk=Math.max,Fk=Math.min;function Bk(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(Dk);t=ep(t)||0,zk(n)&&(u=!!n.leading,d="maxWait"in n,a=d?jk(ep(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function g(x){var S=r,$=o;return r=o=void 0,c=x,i=e.apply($,S),i}function h(x){return c=x,s=setTimeout(b,t),u?g(x):i}function v(x){var S=x-l,$=x-c,I=t-S;return d?Fk(I,a-$):I}function p(x){var S=x-l,$=x-c;return l===void 0||S>=t||S<0||d&&$>=a}function b(){var x=pd();if(p(x))return y(x);s=setTimeout(b,v(x));}function y(x){return s=void 0,m&&r?g(x):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function w(){return s===void 0?i:y(pd())}function E(){var x=pd(),S=p(x);if(r=arguments,o=this,l=x,S){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),i}return E.cancel=C,E.flush=w,E}var m1=Bk;const Hk=hn(m1);var Wk=m1,Vk=qr,Kk="Expected a function";function Gk(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Kk);return Vk(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Wk(e,t,{leading:r,maxWait:t,trailing:o})}var Uk=Gk;const g1=hn(Uk);var Xk=ug,qk=gi,Yk=mg,tp=qr,Qk=hi;function Zk(e,t,n,r){if(!tp(e))return e;t=qk(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o0)return i(u);if(m==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*a;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*r;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,m,g){var h=d>=m*1.5;return Math.round(u/m)+" "+g+(h?"s":"")}return bd}function O4(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=I4(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let m=0;m{if(x==="%%")return "%";w++;const $=n.formatters[S];if(typeof $=="function"){const I=p[w];x=$.call(b,I),p.splice(w,1),w--;}return x}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==n.namespaces&&(g=n.namespaces,h=n.enabled(u)),h),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(v),v}function r(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const m=(typeof u=="string"?u:"").split(/[\s,]+/),g=m.length;for(d=0;d"-"+d)].join(",");return n.enable(""),u}function i(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function a(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function i(){try{return localStorage}catch{}}e.exports=P4(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(If,If.exports);var M4=If.exports;const R4=hn(M4),xn="bilibili-app-recommend",_4="bilibili_app_recommend",vi=R4(xn),v1="https://api.bilibili.com",p1="https://app.bilibili.com",Ka={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"};var b1={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(bn(!l,"Warning: There may be circular references"),l)return !1;if(a===i)return !0;if(n&&s>1)return !1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u=0)&&(n[o]=e[o]);return n}function Je(e,t){if(e==null)return {};var n=H4(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}var me={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 n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=me.F1&&n<=me.F12)return !1;switch(n){case me.ALT:case me.CAPS_LOCK:case me.CONTEXT_MENU:case me.CTRL:case me.DOWN:case me.END:case me.ESC:case me.HOME:case me.INSERT:case me.LEFT:case me.MAC_FF_META:case me.META:case me.NUMLOCK:case me.NUM_CENTER:case me.PAGE_DOWN:case me.PAGE_UP:case me.PAUSE:case me.PRINT_SCREEN:case me.RIGHT:case me.SHIFT:case me.UP:case me.WIN_KEY:case me.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=me.ZERO&&t<=me.NINE||t>=me.NUM_ZERO&&t<=me.NUM_MULTIPLY||t>=me.A&&t<=me.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case me.SPACE:case me.QUESTION_MARK:case me.NUM_PLUS:case me.NUM_MINUS:case me.NUM_PERIOD:case me.NUM_DIVISION:case me.SEMICOLON:case me.DASH:case me.EQUALS:case me.COMMA:case me.PERIOD:case me.SLASH:case me.APOSTROPHE:case me.SINGLE_QUOTE:case me.OPEN_SQUARE_BRACKET:case me.BACKSLASH:case me.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}};function Mf(e,t,n){return (e-t)/(n-t)}function Og(e,t,n,r){var o=Mf(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function _a(e,t){return Array.isArray(e)?e[t]:e}var W4=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],V4=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,m=Je(e,W4),g=f__namespace.useContext(oa),h=g.min,v=g.max,p=g.direction,b=g.disabled,y=g.keyboard,C=g.range,w=g.tabIndex,E=g.ariaLabelForHandle,x=g.ariaLabelledByForHandle,S=g.ariaValueTextFormatterForHandle,$=g.styles,I=g.classNames,O="".concat(o,"-handle"),_=function(R){b||s(R,i);},M=function(R){if(!b&&y){var P=null;switch(R.which||R.keyCode){case me.LEFT:P=p==="ltr"||p==="btt"?-1:1;break;case me.RIGHT:P=p==="ltr"||p==="btt"?1:-1;break;case me.UP:P=p!=="ttb"?1:-1;break;case me.DOWN:P=p!=="ttb"?-1:1;break;case me.HOME:P="min";break;case me.END:P="max";break;case me.PAGE_UP:P=2;break;case me.PAGE_DOWN:P=-2;break}P!==null&&(R.preventDefault(),d(P,i));}},k=Og(p,a,h,v),A=f__namespace.createElement("div",xe({ref:t,className:K(O,(n={},D(n,"".concat(O,"-").concat(i+1),C),D(n,"".concat(O,"-dragging"),u),n),I.handle),style:U(U(U({},k),l),$.handle),onMouseDown:_,onTouchStart:_,onKeyDown:M,tabIndex:b?null:_a(w,i),role:"slider","aria-valuemin":h,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":b,"aria-label":_a(E,i),"aria-labelledby":_a(x,i),"aria-valuetext":(r=_a(S,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},m));return c&&(A=c(A,{index:i,prefixCls:o,value:a,dragging:u})),A}),K4=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],G4=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=Je(e,K4),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var g;(g=u.current[m])===null||g===void 0||g.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,i.map(function(d,m){return f__namespace.createElement(V4,xe({ref:function(h){h?u.current[m]=h:delete u.current[m];},dragging:l===m,prefixCls:n,style:_a(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:a,render:s},c))}))});function ap(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function U4(e,t,n,r,o,a,i,s,l){var c=f__namespace.useState(null),u=Y(c,2),d=u[0],m=u[1],g=f__namespace.useState(-1),h=Y(g,2),v=h[0],p=h[1],b=f__namespace.useState(n),y=Y(b,2),C=y[0],w=y[1],E=f__namespace.useState(n),x=Y(E,2),S=x[0],$=x[1],I=f__namespace.useRef(null),O=f__namespace.useRef(null);f__namespace.useEffect(function(){v===-1&&w(n);},[n,v]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",O.current);}},[]);var _=function(P,T){C.some(function(z,F){return z!==P[F]})&&(T!==void 0&&m(T),w(P),i(P));},M=function(P,T){if(P===-1){var z=S[0],F=S[S.length-1],H=r-z,B=o-F,W=T*(o-r);W=Math.max(W,H),W=Math.min(W,B);var G=a(z+W);W=G-z;var X=S.map(function(q){return q+W});_(X);}else {var Q=(o-r)*T,ee=Pe(C);ee[P]=S[P];var V=l(ee,Q,P,"dist");_(V.values,V.value);}},k=f__namespace.useRef(M);k.current=M;var A=function(P,T,z){P.stopPropagation();var F=z||n,H=F[T];p(T),m(H),$(F);var B=ap(P),W=B.pageX,G=B.pageY,X=function(V){V.preventDefault();var q=ap(V),re=q.pageX,ue=q.pageY,de=re-W,Z=ue-G,te=e.current.getBoundingClientRect(),fe=te.width,J=te.height,le;switch(t){case"btt":le=-Z/J;break;case"ttb":le=Z/J;break;case"rtl":le=-de/fe;break;default:le=de/fe;}k.current(T,le);},Q=function ee(V){V.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",X),document.removeEventListener("touchend",ee),document.removeEventListener("touchmove",X),I.current=null,O.current=null,p(-1),s();};document.addEventListener("mouseup",Q),document.addEventListener("mousemove",X),document.addEventListener("touchend",Q),document.addEventListener("touchmove",X),I.current=X,O.current=Q;},L=f__namespace.useMemo(function(){var R=Pe(n).sort(function(T,z){return T-z}),P=Pe(C).sort(function(T,z){return T-z});return R.every(function(T,z){return T===P[z]})?C:n},[n,C]);return [v,d,L,A]}function X4(e,t,n,r,o,a){var i=f__namespace.useCallback(function(g){var h=isFinite(g)?g:e;return h=Math.min(t,g),h=Math.max(e,h),h},[e,t]),s=f__namespace.useCallback(function(g){if(n!==null){var h=e+Math.round((i(g)-e)/n)*n,v=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),b=Number(h.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=f__namespace.useCallback(function(g){var h=i(g),v=r.map(function(y){return y.value});n!==null&&v.push(s(g)),v.push(e,t);var p=v[0],b=t-e;return v.forEach(function(y){var C=Math.abs(h-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,s]),c=function g(h,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,C=h[p],w=C+v,E=[];r.forEach(function(O){E.push(O.value);}),E.push(e,t),E.push(s(C));var x=v>0?1:-1;b==="unit"?E.push(s(C+x*n)):E.push(s(w)),E=E.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=C:O>=C}),b==="unit"&&(E=E.filter(function(O){return O!==C}));var S=b==="unit"?C:w;y=E[0];var $=Math.abs(y-S);if(E.forEach(function(O){var _=Math.abs(O-S);_<$&&(y=O,$=_);}),y===void 0)return v<0?e:t;if(b==="dist")return y;if(Math.abs(v)>1){var I=Pe(h);return I[p]=y,g(I,v-x,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(h,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h[p],C=c(h,v,p,b);return {value:C,changed:C!==y}},d=function(h){return a===null&&h===0||typeof a=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",y=h.map(l),C=y[p],w=c(y,v,p,b);if(y[p]=w,o===!1){var E=a||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+E)),p0;I-=1)for(var O=!0;d(y[I]-y[I-1])&&O;){var _=u(y,-1,I-1);y[I-1]=_.value,O=_.changed;}for(var M=y.length-1;M>0;M-=1)for(var k=!0;d(y[M]-y[M-1])&&k;){var A=u(y,-1,M-1);y[M-1]=A.value,k=A.changed;}for(var L=0;L=0?R:!1},[R,he]),Me=f__namespace.useMemo(function(){var dt=Object.keys(V||{});return dt.map(function(ke){var Ie=V[ke],Se={value:Number(ke)};return Ie&<(Ie)==="object"&&!f__namespace.isValidElement(Ie)&&("label"in Ie||"style"in Ie)?(Se.style=Ie.style,Se.label=Ie.label):Se.label=Ie,Se}).filter(function(ke){var Ie=ke.label;return Ie||typeof Ie=="number"}).sort(function(ke,Ie){return ke.value-Ie.value})},[V]),ze=X4(se,oe,he,Me,A,be),qe=Y(ze,2),Oe=qe[0],Te=qe[1],Ve=Wt(S,{value:x}),je=Y(Ve,2),Ke=je[0],Be=je[1],He=f__namespace.useMemo(function(){var dt=Ke==null?[]:Array.isArray(Ke)?Ke:[Ke],ke=Y(dt,1),Ie=ke[0],Se=Ie===void 0?se:Ie,$e=Ke===null?[]:[Se];if($){if($e=Pe(dt),I||Ke===void 0){var Le=I>=0?I+1:2;for($e=$e.slice(0,Le);$e.length=0&&J.current.focus(dt);}ae(null);},[ge]);var ve=f__namespace.useMemo(function(){return P&&he===null?!1:P},[P,he]),Ce=function(ke,Ie){Ee(ke,Ie),_==null||_(rt(Ae.current));},_e=nt!==-1;f__namespace.useEffect(function(){if(!_e){var dt=He.lastIndexOf(Ot);J.current.focus(dt);}},[_e]);var Ye=f__namespace.useMemo(function(){return Pe(St).sort(function(dt,ke){return dt-ke})},[St]),Qe=f__namespace.useMemo(function(){return $?[Ye[0],Ye[Ye.length-1]]:[se,Ye[0]]},[Ye,$,se]),$t=Y(Qe,2),ht=$t[0],wt=$t[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){J.current.focus(0);},blur:function(){var ke=document,Ie=ke.activeElement;le.current.contains(Ie)&&(Ie==null||Ie.blur());}}}),f__namespace.useEffect(function(){g&&J.current.focus(0);},[]);var bt=f__namespace.useMemo(function(){return {min:se,max:oe,direction:ie,disabled:u,keyboard:m,step:he,included:H,includedStart:ht,includedEnd:wt,range:$,tabIndex:de,ariaLabelForHandle:Z,ariaLabelledByForHandle:te,ariaValueTextFormatterForHandle:fe,styles:l||{},classNames:s||{}}},[se,oe,ie,u,m,he,H,ht,wt,$,de,Z,te,fe,l,s]);return f__namespace.createElement(oa.Provider,{value:bt},f__namespace.createElement("div",{ref:le,className:K(o,a,(n={},D(n,"".concat(o,"-disabled"),u),D(n,"".concat(o,"-vertical"),z),D(n,"".concat(o,"-horizontal"),!z),D(n,"".concat(o,"-with-marks"),Me.length),n)),style:i,onMouseDown:Re},f__namespace.createElement("div",{className:K("".concat(o,"-rail"),s==null?void 0:s.rail),style:U(U({},X),l==null?void 0:l.rail)}),f__namespace.createElement(J4,{prefixCls:o,style:W,values:Ye,startPoint:B,onStartMove:ve?Ce:null}),f__namespace.createElement(Z4,{prefixCls:o,marks:Me,dots:q,style:Q,activeStyle:ee}),f__namespace.createElement(G4,{ref:J,prefixCls:o,style:G,values:St,draggingIndex:nt,onStartMove:Ce,onOffsetChange:ne,onFocus:h,onBlur:v,handleRender:re}),f__namespace.createElement(Y4,{prefixCls:o,marks:Me,onClick:we})))});function tA(){}const nA=f__namespace.createContext({}),x1=()=>{const e=()=>{};return e.deprecated=tA,e};function Pg(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Ts(e,t,n){var r=f__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sp(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):sA}function au(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function lA(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function I1(e){return Array.from((_f.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function O1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Fn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=lA(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(cp,i),s&&a&&l.setAttribute(up,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=au(t),u=c.firstChild;if(r){if(s){var d=I1(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(cp)))return !1;var g=Number(m.getAttribute(up)||0);return a>=g});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function P1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=au(t);return I1(n).find(function(r){return r.getAttribute(E1(t))===e})}function nc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=P1(e,t);if(n){var r=au(t);r.removeChild(n);}}function cA(e,t){var n=_f.get(e);if(!n||!iA(document,n)){var r=O1("",t),o=r.parentNode;_f.set(e,o),e.removeChild(r);}}function Ga(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=au(n);cA(r,n);var o=P1(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=O1(e,n);return l.setAttribute(E1(n),t),l}function uA(e,t){if(e.length!==t.length)return !1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else {var l,c;i=(l=i)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=Y(c,2),m=d[1];return o.internalGet(u)[1]0,void 0),dp+=1;}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Cd=new Rg;function ss(e){var t=Array.isArray(e)?e:[e];return Cd.has(t)||Cd.set(t,new M1(t)),Cd.get(t)}var dA=new WeakMap,Sd={};function fA(e,t){for(var n=dA,r=0;rRA&&r.forEach(function(o){MA(o,t),Do.delete(o);});}var T1=function(t,n,r,o){var a=r.getDerivativeToken(t),i=U(U({},a),n);return o&&(i=o(i)),i};function TA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Mg),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?IA:s,c=n.formatToken,u=n.getComputedToken,d=fA(function(){return Object.assign.apply(Object,[{}].concat(Pe(t)))},t),m=rc(d),g=rc(l),h=_1("token",[i,e.id,m,g],function(){var v=u?u(d,l,e):T1(d,l,e,c),p=mA(v,i);v._tokenKey=p,PA(p);var b="".concat(OA,"-").concat(Pg(p));return v._hashId=b,[v,b]},function(v){_A(v[0]._tokenKey,o);});return h}var NA={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},gp="data-ant-cssinjs-cache-path",N1="_FILE_STYLE__",Xo,k1=!0;function kA(){if(!Xo&&(Xo={},Fn())){var e=document.createElement("div");e.className=gp,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Y(a,2),s=i[0],l=i[1];Xo[s]=l;});var n=document.querySelector("style[".concat(gp,"]"));if(n){var r;k1=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function AA(e){return kA(),!!Xo[e]}function LA(e){var t=Xo[e],n=null;if(t&&Fn())if(k1)n=N1;else {var r=document.querySelector("style[".concat(Uo,'="').concat(Xo[e],'"]'));r?n=r.innerHTML:delete Xo[e];}return [n,t]}var hp=Fn(),zA="_skip_check_",A1="_multi_value_";function vp(e){var t=Ko(Cy(e),Sy);return t.replace(/\{%%%\:[^;];}/g,";")}function DA(e){return lt(e)==="object"&&e&&(zA in e||A1 in e)}function jA(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Pe(l.slice(1))).join(" ")});return a.join(",")}var FA=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var m="",g={};function h(C){var w=C.getName(s);if(!g[w]){var E=e(C.style,n,{root:!1,parentSelectors:i}),x=Y(E,1),S=x[0];g[w]="@keyframes ".concat(C.getName(s)).concat(S);}}function v(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(E){Array.isArray(E)?v(E,w):E&&w.push(E);}),w}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")m+="".concat(w,` `);else if(w._keyframe)h(w);else {var E=d.reduce(function(x,S){var $;return (S==null||($=S.visit)===null||$===void 0?void 0:$.call(S,x))||x},w);Object.keys(E).forEach(function(x){var S=E[x];if(lt(S)==="object"&&S&&(x!=="animationName"||!S._keyframe)&&!DA(S)){var $=!1,I=x.trim(),O=!1;(o||a)&&s?I.startsWith("@")?$=!0:I=jA(x,s,c):o&&!s&&(I==="&"||I==="")&&(I="",O=!0);var _=e(S,n,{root:O,injectHash:$,parentSelectors:[].concat(Pe(i),[I])}),M=Y(_,2),k=M[0],A=M[1];g=U(U({},g),A),m+="".concat(I).concat(k);}else {let P=function(T,z){var F=T.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),H=z;!NA[T]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),T==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(h(z),H=z.getName(s)),m+="".concat(F,":").concat(H,";");};var L,R=(L=S==null?void 0:S.value)!==null&&L!==void 0?L:S;lt(S)==="object"&&S!==null&&S!==void 0&&S[A1]&&Array.isArray(R)?R.forEach(function(T){P(x,T);}):P(x,R);}});}}),!o)m="{".concat(m,"}");else if(l&&hA()){var b=l.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m));}return [m,g]};function BA(e,t){return Pg("".concat(e.join("%")).concat(t))}function HA(){return null}function Tf(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f__namespace.useContext(Mg),d=u.autoClear;u.mock;var m=u.defaultCache,g=u.hashPriority,h=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,w=[C].concat(Pe(r)),E=hp,x=_1("style",w,function(){var _=w.join("|");if(AA(_)){var M=LA(_),k=Y(M,2),A=k[0],L=k[1];if(A)return [A,C,L,{},s,c]}var R=t(),P=FA(R,{hashId:o,hashPriority:g,layer:a,path:r.join("-"),transformers:p,linters:b}),T=Y(P,2),z=T[0],F=T[1],H=vp(z),B=BA(w,H);return [H,C,B,F,s,c]},function(_,M){var k=Y(_,3),A=k[2];(M||d)&&hp&&nc(A,{mark:Uo});},function(_){var M=Y(_,4),k=M[0];M[1];var A=M[2],L=M[3];if(E&&k!==N1){var R={mark:Uo,prepend:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(R.csp={nonce:P});var T=Ga(k,A,R);T[Ta]=y.instanceId,T.setAttribute(Rf,C),Object.keys(L).forEach(function(z){Ga(vp(L[z]),"_effect-".concat(z),R);});}}),S=Y(x,3),$=S[0],I=S[1],O=S[2];return function(_){var M;if(!v||E||!m)M=f__namespace.createElement(HA,null);else {var k;M=f__namespace.createElement("style",xe({},(k={},D(k,Rf,I),D(k,Uo,O),k),{dangerouslySetInnerHTML:{__html:$}}));}return f__namespace.createElement(f__namespace.Fragment,null,M,_)}}var Mt=function(){function e(t,n){Cn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=t,this.style=n;}return Sn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function fa(e){return e.notSplit=!0,e}fa(["borderTop","borderBottom"]),fa(["borderTop"]),fa(["borderBottom"]),fa(["borderLeft","borderRight"]),fa(["borderLeft"]),fa(["borderRight"]);var WA=f.createContext({});const _g=WA;function L1(e){return S1(e)||C1(e)||Ig(e)||$1()}function _r(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!_r(e,t.slice(0,-1))?e:z1(e,t,n,r)}function VA(e){return lt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function pp(e){return Array.isArray(e)?[]:{}}var KA=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Na(){for(var e=arguments.length,t=new Array(e),n=0;nLl.reduce((e,t)=>Object.assign(Object.assign({},e),t),lo.Modal);function QA(e){if(e){const t=Object.assign({},e);return Ll.push(t),yp(),()=>{Ll=Ll.filter(n=>n!==t),yp();}}Object.assign({},lo.Modal);}const ZA=f.createContext(void 0),Tg=ZA,JA=(e,t)=>{const n=f__namespace.useContext(Tg),r=f__namespace.useMemo(()=>{var a;const i=t||lo[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?lo.locale:a},[n]);return [r,o]},pi=JA,eL="internalMark",tL=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>QA(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Tg.Provider,{value:o},n)},nL=tL;function En(e,t){rL(e)&&(e="100%");var n=oL(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(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 dl(e){return Math.min(1,Math.max(0,e))}function rL(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function oL(e){return typeof e=="string"&&e.indexOf("%")!==-1}function F1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bo(e){return e.length===1?"0"+e:String(e)}function aL(e,t,n){return {r:En(e,255)*255,g:En(t,255)*255,b:En(n,255)*255}}function Cp(e,t,n){e=En(e,255),t=En(t,255),n=En(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else {var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iL(e,t,n){var r,o,a;if(e=En(e,360),t=En(t,100),n=En(n,100),t===0)o=n,a=n,r=n;else {var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=wd(s,i,e+1/3),o=wd(s,i,e),a=wd(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function Nf(e,t,n){e=En(e,255),t=En(t,255),n=En(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=r===0?0:s/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Af={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 Pa(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=mL(e)),typeof e=="object"&&(to(e.r)&&to(e.g)&&to(e.b)?(t=aL(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):to(e.h)&&to(e.s)&&to(e.v)?(r=fl(e.s),o=fl(e.v),t=sL(e.h,r,o),i=!0,s="hsv"):to(e.h)&&to(e.s)&&to(e.l)&&(r=fl(e.s),a=fl(e.l),t=iL(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=F1(n),{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:n}}var dL="[-\\+]?\\d+%?",fL="[-\\+]?\\d*\\.\\d+%?",$o="(?:".concat(fL,")|(?:").concat(dL,")"),xd="[\\s|\\(]+(".concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")\\s*\\)?"),Ed="[\\s|\\(]+(".concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")\\s*\\)?"),xr={CSS_UNIT:new RegExp($o),rgb:new RegExp("rgb"+xd),rgba:new RegExp("rgba"+Ed),hsl:new RegExp("hsl"+xd),hsla:new RegExp("hsla"+Ed),hsv:new RegExp("hsv"+xd),hsva:new RegExp("hsva"+Ed),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 mL(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Af[e])e=Af[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=xr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=xr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=xr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=xr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=xr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=xr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=xr.hex8.exec(e),n?{r:er(n[1]),g:er(n[2]),b:er(n[3]),a:Sp(n[4]),format:t?"name":"hex8"}:(n=xr.hex6.exec(e),n?{r:er(n[1]),g:er(n[2]),b:er(n[3]),format:t?"name":"hex"}:(n=xr.hex4.exec(e),n?{r:er(n[1]+n[1]),g:er(n[2]+n[2]),b:er(n[3]+n[3]),a:Sp(n[4]+n[4]),format:t?"name":"hex8"}:(n=xr.hex3.exec(e),n?{r:er(n[1]+n[1]),g:er(n[2]+n[2]),b:er(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function to(e){return !!xr.CSS_UNIT.exec(String(e))}var qt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=uL(t)),this.originalInput=t;var o=Pa(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.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=o.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(),n,r,o,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=F1(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=Nf(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=Nf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Cp(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=Cp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),kf(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),lL(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),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return "".concat(Math.round(En(n,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(n){return Math.round(En(n,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="#"+kf(this.r,this.g,this.b,!1),n=0,r=Object.entries(Af);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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 n=this.toHsl();return n.l+=t/100,n.l=dl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=dl(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=dl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=dl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},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 n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ml*t:Math.round(e.h)+ml*t:r=n?Math.round(e.h)+ml*t:Math.round(e.h)-ml*t,r<0?r+=360:r>=360&&(r-=360),r}function Ep(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-$p*t:t===H1?r=e.s+$p:r=e.s+gL*t,r>1&&(r=1),n&&t===B1&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Ip(e,t,n){var r;return n?r=e.v+hL*t:r=e.v-vL*t,r>1&&(r=1),Number(r.toFixed(2))}function co(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Pa(e),o=B1;o>0;o-=1){var a=wp(r),i=gl(Pa({h:xp(a,o,!0),s:Ep(a,o,!0),v:Ip(a,o,!0)}));n.push(i);}n.push(gl(r));for(var s=1;s<=H1;s+=1){var l=wp(r),c=gl(Pa({h:xp(l,s),s:Ep(l,s),v:Ip(l,s)}));n.push(c);}return t.theme==="dark"?pL.map(function(u){var d=u.index,m=u.opacity,g=gl(bL(Pa(t.backgroundColor||"#141414"),Pa(n[d]),m*100));return g}):n}var Id={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"},zl={},Od={};Object.keys(Id).forEach(function(e){zl[e]=co(Id[e]),zl[e].primary=zl[e][5],Od[e]=co(Id[e],{theme:"dark",backgroundColor:"#141414"}),Od[e].primary=Od[e][5];});var yL=zl.blue;const CL=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},W1=CL;function SL(e){const{sizeUnit:t,sizeStep:n}=e;return {sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ng={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"},$L=Object.assign(Object.assign({},Ng),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', '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}),Ua=$L;function V1(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),m=n(o),g=n(a),h=n(i),v=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new qt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const wL=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},xL=wL;function EL(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},xL(r))}const no=(e,t)=>new qt(e).setAlpha(t).toRgbString(),Mi=(e,t)=>new qt(e).darken(t).toHexString(),IL=e=>{const t=co(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]}},OL=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:no(r,.88),colorTextSecondary:no(r,.65),colorTextTertiary:no(r,.45),colorTextQuaternary:no(r,.25),colorFill:no(r,.15),colorFillSecondary:no(r,.06),colorFillTertiary:no(r,.04),colorFillQuaternary:no(r,.02),colorBgLayout:Mi(n,4),colorBgContainer:Mi(n,0),colorBgElevated:Mi(n,0),colorBgSpotlight:no(r,.85),colorBgBlur:"transparent",colorBorder:Mi(n,15),colorBorderSecondary:Mi(n,6)}};function PL(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const ML=e=>{const t=PL(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return {fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},K1=ML;function Ns(e){const t=Object.keys(Ng).map(n=>{const r=co(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),V1(e,{generateColorPalettes:IL,generateNeutralColorPalettes:OL})),K1(e.fontSize)),SL(e)),W1(e)),EL(e))}const G1=ss(Ns),oc={token:Ua,override:{override:Ua},hashed:!0},U1=f.createContext(oc),X1="anticon",RL=(e,t)=>t||(e?`ant-${e}`:"ant"),et=f__namespace.createContext({getPrefixCls:RL,iconPrefixCls:X1}),_L=`-ant-${Date.now()}-${Math.random()}`;function TL(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new qt(i),c=co(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const i=new qt(t.primaryColor),s=co(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new qt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } `.trim()}function NL(e,t){const n=TL(e,t);Fn()&&Ga(n,`${_L}-dynamic-theme`);}const Lf=f__namespace.createContext(!1),kL=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(Lf);return f__namespace.createElement(Lf.Provider,{value:n??r},t)},Yr=Lf,zf=f__namespace.createContext(void 0),AL=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(zf);return f__namespace.createElement(zf.Provider,{value:n||r},t)},iu=zf;function LL(){const e=f.useContext(Yr),t=f.useContext(iu);return {componentDisabled:e,componentSize:t}}const ls=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zL="5.11.0";function Pd(e){return e>=0&&e<=255}function hl(e,t){const{r:n,g:r,b:o,a}=new qt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new qt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Pd(u)&&Pd(d)&&Pd(m))return new qt({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new qt({r:n,g:r,b:o,a:1}).toRgbString()}var DL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[m];});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:hl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:hl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:hl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:hl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new qt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new qt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new qt("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Op=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=Op(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=kg(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Op(c,["theme"]);let m=d;u&&(m=q1(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=m;}),i};function Gn(){const{token:e,hashed:t,theme:n,override:r}=f.useContext(U1),o=`${zL}-${t||""}`,a=n||G1,[i,s]=TA(a,[Ua,e],{salt:o,override:r,getComputedToken:q1,formatToken:kg});return [a,i,t?s:""]}var Y1={exports:{}},Dt={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ag=Symbol.for("react.element"),Lg=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),uu=Symbol.for("react.provider"),du=Symbol.for("react.context"),jL=Symbol.for("react.server_context"),fu=Symbol.for("react.forward_ref"),mu=Symbol.for("react.suspense"),gu=Symbol.for("react.suspense_list"),hu=Symbol.for("react.memo"),vu=Symbol.for("react.lazy"),FL=Symbol.for("react.offscreen"),Q1;Q1=Symbol.for("react.module.reference");function Sr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ag:switch(e=e.type,e){case su:case cu:case lu:case mu:case gu:return e;default:switch(e=e&&e.$$typeof,e){case jL:case du:case fu:case vu:case hu:case uu:return e;default:return t}}case Lg:return t}}}Dt.ContextConsumer=du;Dt.ContextProvider=uu;Dt.Element=Ag;Dt.ForwardRef=fu;Dt.Fragment=su;Dt.Lazy=vu;Dt.Memo=hu;Dt.Portal=Lg;Dt.Profiler=cu;Dt.StrictMode=lu;Dt.Suspense=mu;Dt.SuspenseList=gu;Dt.isAsyncMode=function(){return !1};Dt.isConcurrentMode=function(){return !1};Dt.isContextConsumer=function(e){return Sr(e)===du};Dt.isContextProvider=function(e){return Sr(e)===uu};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ag};Dt.isForwardRef=function(e){return Sr(e)===fu};Dt.isFragment=function(e){return Sr(e)===su};Dt.isLazy=function(e){return Sr(e)===vu};Dt.isMemo=function(e){return Sr(e)===hu};Dt.isPortal=function(e){return Sr(e)===Lg};Dt.isProfiler=function(e){return Sr(e)===cu};Dt.isStrictMode=function(e){return Sr(e)===lu};Dt.isSuspense=function(e){return Sr(e)===mu};Dt.isSuspenseList=function(e){return Sr(e)===gu};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===cu||e===lu||e===mu||e===gu||e===FL||typeof e=="object"&&e!==null&&(e.$$typeof===vu||e.$$typeof===hu||e.$$typeof===uu||e.$$typeof===du||e.$$typeof===fu||e.$$typeof===Q1||e.getModuleId!==void 0)};Dt.typeOf=Sr;Y1.exports=Dt;var zg=Y1.exports;function Dg(e,t){typeof e=="function"?e(t):lt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n{const a=e/2,i=0,s=a,l=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*a-u,g=d,h=2*a-l,v=c,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${m} ${g} L ${h} ${v} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Qo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Lt=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}},ia=()=>({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"}}),Df=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),WL=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),VL=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return {[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Zo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Jo=e=>({"&:focus-visible":Object.assign({},Zo(e))}),Z1=typeof CSSINJS_STATISTIC<"u";let jf=!0;function pt(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),jf=!0,r}const Pp={};function KL(){}function GL(e){let t,n=e,r=KL;return Z1&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return jf&&t.add(a),o[a]}}),r=(o,a)=>{var i;Pp[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Pp[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const UL=(e,t)=>{const[n,r]=Gn();return Tf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ia()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},J1=UL;function Ft(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[l,c,u]=Gn(),{getPrefixCls:d,iconPrefixCls:m,csp:g}=f.useContext(et),h=d(),v={theme:l,token:c,hashId:u,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Tf(Object.assign(Object.assign({},v),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":WL(c)}]),J1(m,g),[Tf(Object.assign(Object.assign({},v),{path:[i,s,m]}),()=>{const{token:p,flush:b}=GL(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:$}=r;$.forEach(I=>{let[O,_]=I;var M;(y!=null&&y[O]||y!=null&&y[_])&&((M=y[_])!==null&&M!==void 0||(y[_]=y==null?void 0:y[O]));});}const C=typeof n=="function"?n(pt(p,y??{})):n,w=Object.assign(Object.assign({},C),y),E=`.${s}`,x=pt(p,{componentCls:E,prefixCls:s,iconCls:`.${m}`,antCls:`.${h}`},w),S=t(x,{hashId:u,prefixCls:s,rootPrefixCls:h,iconPrefixCls:m,overrideComponentToken:y});return b(a,w),[r.resetStyle===!1?null:VL(c,s),S]}),u]}}const jg=(e,t,n,r)=>{const o=Ft(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function pu(e,t){return ls.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}function XL(e,t){const n=e||{},r=n.inherit===!1||!t?oc:t;return Ts(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,s)=>{const l=a[s];return !_s(i,l,!0)}))}function ac(e){return e instanceof HTMLElement||e instanceof SVGElement}function Gi(e){return ac(e)?e:e instanceof f.Component?uy.findDOMNode(e):null}var qL=["children"],eC=f__namespace.createContext({});function YL(e){var t=e.children,n=Je(e,qL);return f__namespace.createElement(eC.Provider,{value:n},t)}function Ff(e,t){return Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ff(e,t)}function _o(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ff(e,t);}function ic(e){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ic(e)}function QL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZL(e,t){if(t&&(lt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function To(e){var t=QL();return function(){var r=ic(e),o;if(t){var a=ic(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return ZL(this,o)}}var JL=function(e){_o(n,e);var t=To(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),Lo="none",vl="appear",pl="enter",bl="leave",Mp="none",Pr="prepare",ka="start",Aa="active",Fg="end",tC="prepared";function Rp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function e5(e,t){var n={animationend:Rp("Animation","AnimationEnd"),transitionend:Rp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var t5=e5(Fn(),typeof window<"u"?window:{}),nC={};if(Fn()){var n5=document.createElement("div");nC=n5.style;}var yl={};function rC(e){if(yl[e])return yl[e];var t=t5[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:1;kp+=1;var r=kp;function o(a){if(a===0)uC(r),t();else {var i=lC(function(){o(a-1);});Bg.set(r,i);}}return o(n),r};It.cancel=function(e){var t=Bg.get(e);return uC(t),cC(t)};const o5=function(){var e=f__namespace.useRef(null);function t(){It.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=It(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var a5=[Pr,ka,Aa,Fg],i5=[Pr,tC],dC=!1,s5=!0;function fC(e){return e===Aa||e===Fg}const l5=function(e,t,n){var r=Go(Mp),o=Y(r,2),a=o[0],i=o[1],s=o5(),l=Y(s,2),c=l[0],u=l[1];function d(){i(Pr,!0);}var m=t?i5:a5;return sC(function(){if(a!==Mp&&a!==Fg){var g=m.indexOf(a),h=m[g+1],v=n(a);v===dC?i(h,!0):h&&c(function(p){function b(){p.isCanceled()||i(h,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,a]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function c5(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,w=r.onLeaveActive,E=r.onAppearEnd,x=r.onEnterEnd,S=r.onLeaveEnd,$=r.onVisibleChanged,I=Go(),O=Y(I,2),_=O[0],M=O[1],k=Go(Lo),A=Y(k,2),L=A[0],R=A[1],P=Go(null),T=Y(P,2),z=T[0],F=T[1],H=f.useRef(!1),B=f.useRef(null);function W(){return n()}var G=f.useRef(!1);function X(){R(Lo,!0),F(null,!0);}function Q(se){var oe=W();if(!(se&&!se.deadline&&se.target!==oe)){var he=G.current,be;L===vl&&he?be=E==null?void 0:E(oe,se):L===pl&&he?be=x==null?void 0:x(oe,se):L===bl&&he&&(be=S==null?void 0:S(oe,se)),L!==Lo&&he&&be!==!1&&X();}}var ee=r5(Q),V=Y(ee,1),q=V[0],re=function(oe){var he,be,Me;switch(oe){case vl:return he={},D(he,Pr,m),D(he,ka,v),D(he,Aa,y),he;case pl:return be={},D(be,Pr,g),D(be,ka,p),D(be,Aa,C),be;case bl:return Me={},D(Me,Pr,h),D(Me,ka,b),D(Me,Aa,w),Me;default:return {}}},ue=f__namespace.useMemo(function(){return re(L)},[L]),de=l5(L,!e,function(se){if(se===Pr){var oe=ue[Pr];return oe?oe(W()):dC}if(fe in ue){var he;F(((he=ue[fe])===null||he===void 0?void 0:he.call(ue,W(),null))||null);}return fe===Aa&&(q(W()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Q({deadline:!0});},u))),fe===tC&&X(),s5}),Z=Y(de,2),te=Z[0],fe=Z[1],J=fC(fe);G.current=J,sC(function(){M(t);var se=H.current;H.current=!0;var oe;!se&&t&&s&&(oe=vl),se&&t&&a&&(oe=pl),(se&&!t&&c||!se&&d&&!t&&c)&&(oe=bl);var he=re(oe);oe&&(e||he[Pr])?(R(oe),te()):R(Lo);},[t]),f.useEffect(function(){(L===vl&&!s||L===pl&&!a||L===bl&&!c)&&R(Lo);},[s,a,c]),f.useEffect(function(){return function(){H.current=!1,clearTimeout(B.current);}},[]);var le=f__namespace.useRef(!1);f.useEffect(function(){_&&(le.current=!0),_!==void 0&&L===Lo&&((le.current||_)&&($==null||$(_)),le.current=!0);},[_,L]);var ie=z;return ue[Pr]&&fe===ka&&(ie=U({transition:"none"},ie)),[L,fe,ie,_??t]}function u5(e){var t=e;lt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=f__namespace.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,m=o.motionName,g=o.leavedClassName,h=o.eventProps,v=f__namespace.useContext(eC),p=v.motion,b=n(o,p),y=f.useRef(),C=f.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Gi(C.current)}catch{return null}}var E=c5(b,s,w,o),x=Y(E,4),S=x[0],$=x[1],I=x[2],O=x[3],_=f__namespace.useRef(O);O&&(_.current=!0);var M=f__namespace.useCallback(function(F){y.current=F,Dg(a,F);},[a]),k,A=U(U({},h),{},{visible:s});if(!d)k=null;else if(S===Lo)O?k=d(U({},A),M):!c&&_.current&&g?k=d(U(U({},A),{},{className:g}),M):u||!c&&!g?k=d(U(U({},A),{},{style:{display:"none"}}),M):k=null;else {var L,R;$===Pr?R="prepare":fC($)?R="active":$===ka&&(R="start");var P=Np(m,"".concat(S,"-").concat(R));k=d(U(U({},A),{},{className:K(Np(m,S),(L={},D(L,P,P&&R),D(L,m,typeof m=="string"),L)),style:I}),M);}if(f__namespace.isValidElement(k)&&Ro(k)){var T=k,z=T.ref;z||(k=f__namespace.cloneElement(k,{ref:M}));}return f__namespace.createElement(JL,{ref:C},k)});return r.displayName="CSSMotion",r}const go=u5(iC);var Bf="add",Hf="keep",Wf="remove",Md="removed";function d5(e){var t;return e&<(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function Vf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(d5)}function f5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Vf(e),i=Vf(t);a.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,m=u.status;return d!==c||m!==Wf}),n.forEach(function(u){u.key===c&&(u.status=Hf);});}),n}var m5=["component","children","onVisibleChanged","onAllRemoved"],g5=["status"],h5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function v5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:go,n=function(r){_o(a,r);var o=To(a);function a(){var i;Cn(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var y5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const x5=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(mC=t),r&&w5(r)&&NL($5(),r);},E5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:w,statistic:E,spin:x,calendar:S,carousel:$,cascader:I,collapse:O,typography:_,checkbox:M,descriptions:k,divider:A,drawer:L,skeleton:R,steps:P,image:T,layout:z,list:F,mentions:H,modal:B,progress:W,result:G,slider:X,breadcrumb:Q,menu:ee,pagination:V,input:q,empty:re,badge:ue,radio:de,rate:Z,switch:te,transfer:fe,avatar:J,message:le,tag:ie,table:se,card:oe,tabs:he,timeline:be,timePicker:Me,upload:ze,notification:qe,tree:Oe,colorPicker:Te,datePicker:Ve,rangePicker:je,flex:Ke,wave:Be,dropdown:He,warning:Ae}=e,rt=f__namespace.useCallback((ye,Fe)=>{const{prefixCls:ge}=e;if(Fe)return Fe;const ae=ge||p.getPrefixCls("");return ye?`${ae}-${ye}`:ae},[p.getPrefixCls,e.prefixCls]),Ue=b||p.iconPrefixCls||X1,Ze=n||p.csp;J1(Ue,Ze);const mt=XL(y,p.theme),ut={csp:Ze,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:g??m,popupOverflow:h,getPrefixCls:rt,iconPrefixCls:Ue,theme:mt,segmented:w,statistic:E,spin:x,calendar:S,carousel:$,cascader:I,collapse:O,typography:_,checkbox:M,descriptions:k,divider:A,drawer:L,skeleton:R,steps:P,image:T,input:q,layout:z,list:F,mentions:H,modal:B,progress:W,result:G,slider:X,breadcrumb:Q,menu:ee,pagination:V,empty:re,badge:ue,radio:de,rate:Z,switch:te,transfer:fe,avatar:J,message:le,tag:ie,table:se,card:oe,tabs:he,timeline:be,timePicker:Me,upload:ze,notification:qe,tree:Oe,colorPicker:Te,datePicker:Ve,rangePicker:je,flex:Ke,wave:Be,dropdown:He,warning:Ae},nt=Object.assign({},p);Object.keys(ut).forEach(ye=>{ut[ye]!==void 0&&(nt[ye]=ut[ye]);}),C5.forEach(ye=>{const Fe=e[ye];Fe&&(nt[ye]=Fe);});const Ot=Ts(()=>nt,nt,(ye,Fe)=>{const ge=Object.keys(ye),ae=Object.keys(Fe);return ge.length!==ae.length||ge.some(ne=>ye[ne]!==Fe[ne])}),St=f__namespace.useMemo(()=>({prefixCls:Ue,csp:Ze}),[Ue,Ze]);let Ee=f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(b5,{dropdownMatchSelectWidth:m}),t);const we=f__namespace.useMemo(()=>{var ye,Fe,ge,ae;return Na(((ye=lo.Form)===null||ye===void 0?void 0:ye.defaultValidateMessages)||{},((ge=(Fe=Ot.locale)===null||Fe===void 0?void 0:Fe.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((ae=Ot.form)===null||ae===void 0?void 0:ae.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Ot,i==null?void 0:i.validateMessages]);Object.keys(we).length>0&&(Ee=f__namespace.createElement(GA.Provider,{value:we},Ee)),s&&(Ee=f__namespace.createElement(nL,{locale:s,_ANT_MARK__:eL},Ee)),(Ue||Ze)&&(Ee=f__namespace.createElement(_g.Provider,{value:St},Ee)),l&&(Ee=f__namespace.createElement(AL,{size:l},Ee)),Ee=f__namespace.createElement(p5,null,Ee);const Re=f__namespace.useMemo(()=>{const ye=mt||{},{algorithm:Fe,token:ge,components:ae}=ye,ne=y5(ye,["algorithm","token","components"]),ve=Fe&&(!Array.isArray(Fe)||Fe.length>0)?ss(Fe):G1,Ce={};Object.entries(ae||{}).forEach(Ye=>{let[Qe,$t]=Ye;const ht=Object.assign({},$t);"algorithm"in ht&&(ht.algorithm===!0?ht.theme=ve:(Array.isArray(ht.algorithm)||typeof ht.algorithm=="function")&&(ht.theme=ss(ht.algorithm)),delete ht.algorithm),Ce[Qe]=ht;});const _e=Object.assign(Object.assign({},Ua),ge);return Object.assign(Object.assign({},ne),{theme:ve,token:_e,components:Ce,override:Object.assign({override:_e},Ce)})},[mt]);return y&&(Ee=f__namespace.createElement(U1.Provider,{value:Re},Ee)),Ot.warning&&(Ee=f__namespace.createElement(nA.Provider,{value:Ot.warning},Ee)),C!==void 0&&(Ee=f__namespace.createElement(kL,{disabled:C},Ee)),f__namespace.createElement(et.Provider,{value:Ot},Ee)},bi=e=>{const t=f__namespace.useContext(et),n=f__namespace.useContext(Tg);return f__namespace.createElement(E5,Object.assign({parentContext:t,legacyLocale:n},e))};bi.ConfigContext=et;bi.SizeContext=iu;bi.config=x5;bi.useConfig=LL;Object.defineProperty(bi,"SizeContext",{get:()=>iu});const Hg=bi;function Wg(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return f__namespace.createElement("div",{className:K("".concat(n,"-content"),a),style:i},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var gC=f__namespace.createContext(null),Ap=[];function I5(e,t){var n=f__namespace.useState(function(){if(!Fn())return null;var h=document.createElement("div");return h}),r=Y(n,1),o=r[0],a=f__namespace.useRef(!1),i=f__namespace.useContext(gC),s=f__namespace.useState(Ap),l=Y(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(h){u(function(v){var p=[h].concat(Pe(v));return p});});function m(){o.parentElement||document.body.appendChild(o),a.current=!0;}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1;}return Ht(function(){return e?i?i(m):m():g(),g},[e]),Ht(function(){c.length&&(c.forEach(function(h){return h()}),u(Ap));},[c]),[o,d]}var Rd;function O5(e){if(typeof document>"u")return 0;if(e||Rd===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),Rd=o-a;}return Rd}function P5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var M5="rc-util-locker-".concat(Date.now()),Lp=0;function R5(e){var t=!!e,n=f__namespace.useState(function(){return Lp+=1,"".concat(M5,"_").concat(Lp)}),r=Y(n,1),o=r[0];Ht(function(){if(t){var a=O5(),i=P5();Ga(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",` }`),o);}else nc(o);return function(){nc(o);}},[t,o]);}var zp=!1;function _5(e){return typeof e=="boolean"&&(zp=e),zp}var Dp=function(t){return t===!1?!1:!Fn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},hC=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=f__namespace.useState(n),c=Y(l,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var g=f__namespace.useState(function(){return Dp(o)}),h=Y(g,2),v=h[0],p=h[1];f__namespace.useEffect(function(){var _=Dp(o);p(_??null);});var b=I5(m&&!v),y=Y(b,2),C=y[0],w=y[1],E=v??C;R5(r&&n&&Fn()&&(E===C||E===document.body));var x=null;if(s&&Ro(s)&&t){var S=s;x=S.ref;}var $=aa(x,t);if(!m||!Fn()||v===void 0)return null;var I=E===!1||_5(),O=s;return t&&(O=f__namespace.cloneElement(s,{ref:$})),f__namespace.createElement(gC.Provider,{value:w},I?O:uy.createPortal(O,E))});function ar(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ar(r)):zg.isFragment(r)&&r.props?n=n.concat(ar(r.props.children,t)):n.push(r));}),n}var Kf=f__namespace.createContext(null);function T5(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),a=f__namespace.useContext(Kf),i=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),a==null||a(s,l,c);},[n,a]);return f__namespace.createElement(Kf.Provider,{value:i},t)}var wo=new Map;function N5(e){e.forEach(function(t){var n,r=t.target;(n=wo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var vC=new Qx(N5);function k5(e,t){wo.has(e)||(wo.set(e,new Set),vC.observe(e)),wo.get(e).add(t);}function A5(e,t){wo.has(e)&&(wo.get(e).delete(t),wo.get(e).size||(vC.unobserve(e),wo.delete(e)));}var L5=function(e){_o(n,e);var t=To(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function z5(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),a=f__namespace.useRef(null),i=f__namespace.useContext(Kf),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&Ro(l),d=u?l.ref:null,m=aa(d,o),g=function(){var b;return Gi(o.current)||(o.current&<(o.current)==="object"?Gi((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Gi(a.current)};f__namespace.useImperativeHandle(t,function(){return g()});var h=f__namespace.useRef(e);h.current=e;var v=f__namespace.useCallback(function(p){var b=h.current,y=b.onResize,C=b.data,w=p.getBoundingClientRect(),E=w.width,x=w.height,S=p.offsetWidth,$=p.offsetHeight,I=Math.floor(E),O=Math.floor(x);if(c.current.width!==I||c.current.height!==O||c.current.offsetWidth!==S||c.current.offsetHeight!==$){var _={width:I,height:O,offsetWidth:S,offsetHeight:$};c.current=_;var M=S===Math.round(E)?E:S,k=$===Math.round(x)?x:$,A=U(U({},_),{},{offsetWidth:M,offsetHeight:k});i==null||i(A,p,C),y&&Promise.resolve().then(function(){y(A,p);});}},[]);return f__namespace.useEffect(function(){var p=g();return p&&!r&&k5(p,v),function(){return A5(p,v)}},[o.current,r]),f__namespace.createElement(L5,{ref:a},u?f__namespace.cloneElement(l,{ref:m}):l)}var D5=f__namespace.forwardRef(z5),j5="rc-observer-key";function F5(e,t){var n=e.children,r=typeof n=="function"?[n]:ar(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(j5,"-").concat(a);return f__namespace.createElement(D5,xe({},e,{key:i,ref:a===0?t:void 0}),o)})}var pr=f__namespace.forwardRef(F5);pr.Collection=T5;function pC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function B5(e){return pC(e)instanceof ShadowRoot}function sc(e){return B5(e)?pC(e):null}function H5(){var e=U({},f__namespace);return e.useId}var jp=0,Fp=H5();const W5=Fp?function(t){var n=Fp();return t||n}:function(t){var n=f__namespace.useState("ssr-id"),r=Y(n,2),o=r[0],a=r[1];return f__namespace.useEffect(function(){var i=jp;jp+=1,a("rc_unique_".concat(i));},[]),t||o},bu=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 V5(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,m=f__namespace.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],v=n.points[1],p=h[0],b=h[1],y=v[0],C=v[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===C||!["l","r"].includes(b)?g.left=c:b==="l"?g.left=0:g.right=0;}return f__namespace.createElement("div",{ref:m,className:K("".concat(t,"-arrow"),i),style:g},s)}function K5(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?f__namespace.createElement(go,xe({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return f__namespace.createElement("div",{style:{zIndex:r},className:K("".concat(t,"-mask"),s)})}):null}var G5=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),U5=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,v=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,E=e.portal,x=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,I=e.onPointerEnter,O=e.ready,_=e.offsetX,M=e.offsetY,k=e.offsetR,A=e.offsetB,L=e.onAlign,R=e.onPrepare,P=e.stretch,T=e.targetWidth,z=e.targetHeight,F=typeof n=="function"?n():n,H=l||c,B=(C==null?void 0:C.length)>0,W=f__namespace.useState(!C||!B),G=Y(W,2),X=G[0],Q=G[1];if(Ht(function(){!X&&B&&i&&Q(!0);},[X,B,i]),!X)return null;var ee="auto",V={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(O||!l){var q,re=v.points,ue=v.dynamicInset||((q=v._experimental)===null||q===void 0?void 0:q.dynamicInset),de=ue&&re[0][1]==="r",Z=ue&&re[0][0]==="b";de?(V.right=k,V.left=ee):(V.left=_,V.right=ee),Z?(V.bottom=A,V.top=ee):(V.top=M,V.bottom=ee);}var te={};return P&&(P.includes("height")&&z?te.height=z:P.includes("minHeight")&&z&&(te.minHeight=z),P.includes("width")&&T?te.width=T:P.includes("minWidth")&&T&&(te.minWidth=T)),l||(te.pointerEvents="none"),f__namespace.createElement(E,{open:y||H,getContainer:C&&function(){return C(i)},autoDestroy:w},f__namespace.createElement(K5,{prefixCls:o,open:l,zIndex:x,mask:m,motion:b}),f__namespace.createElement(pr,{onResize:L,disabled:!l},function(fe){return f__namespace.createElement(go,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:R,onEnterPrepare:R,visible:l,onVisibleChanged:function(le){var ie;p==null||(ie=p.onVisibleChanged)===null||ie===void 0||ie.call(p,le),s(le);}}),function(J,le){var ie=J.className,se=J.style,oe=K(o,ie,r);return f__namespace.createElement("div",{ref:Wn(fe,t,le),className:oe,style:U(U(U(U({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},V),te),se),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:I,onClick:d},g&&f__namespace.createElement(V5,{prefixCls:o,arrow:g,arrowPos:h,align:v}),f__namespace.createElement(G5,{cache:!l&&!u},F))})}))}),X5=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ro(n),a=f__namespace.useCallback(function(s){Dg(t,r?r(s):s);},[r]),i=aa(a,n.ref);return o?f__namespace.cloneElement(n,{ref:i}):n}),Bp=f__namespace.createContext(null);function Hp(e){return e?Array.isArray(e)?e:[e]:[]}function q5(e,t,n,r){return f__namespace.useMemo(function(){var o=Hp(n??t),a=Hp(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}const Vg=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return !0}}return !1};function Y5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Q5(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ri(e){return cs(parseFloat(e),0)}function Vp(e,t){var n=U({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ks(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,v=r.clientWidth,p=Ri(s),b=Ri(l),y=Ri(c),C=Ri(u),w=cs(Math.round(d.width/h*1e3)/1e3),E=cs(Math.round(d.height/m*1e3)/1e3),x=(h-v-y-C)*w,S=(m-g-p-b)*E,$=p*E,I=b*E,O=y*w,_=C*w,M=0,k=0;if(a==="clip"){var A=Ri(i);M=A*w,k=A*E;}var L=d.x+O-M,R=d.y+$-k,P=L+d.width+2*M-O-_-x,T=R+d.height+2*k-$-I-S;n.left=Math.max(n.left,L),n.top=Math.max(n.top,R),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,T);}}),n}function Kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Gp(e,t){var n=t||[],r=Y(n,2),o=r[0],a=r[1];return [Kp(e.width,o),Kp(e.height,a)]}function Up(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ma(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function vo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function Z5(e,t,n,r,o,a,i){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=Y(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?Gf(t):[]},[t]),g=f__namespace.useRef({}),h=function(){g.current={};};e||h();var v=Tn(function(){if(t&&n&&e){let dr=function(eo,ko){var ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:se,da=z.x+eo,Ei=z.y+ko,Ii=da+V,sl=Ei+ee,ld=Math.max(da,ua.left),cd=Math.max(Ei,ua.top),ud=Math.min(Ii,ua.right),dd=Math.min(sl,ua.bottom);return Math.max(0,(ud-ld)*(dd-cd))},il=function(){wt=z.y+Re,bt=wt+ee,dt=z.x+we,ke=dt+V;};var y,C,w=t,E=w.ownerDocument,x=ks(w),S=x.getComputedStyle(w),$=S.width,I=S.height,O=S.position,_=w.style.left,M=w.style.top,k=w.style.right,A=w.style.bottom,L=U(U({},o[r]),a),R=E.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(R),R.style.left="".concat(w.offsetLeft,"px"),R.style.top="".concat(w.offsetTop,"px"),R.style.position=O,R.style.height="".concat(w.offsetHeight,"px"),R.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else {var T=n.getBoundingClientRect();P={x:T.x,y:T.y,width:T.width,height:T.height};}var z=w.getBoundingClientRect(),F=E.documentElement,H=F.clientWidth,B=F.clientHeight,W=F.scrollWidth,G=F.scrollHeight,X=F.scrollTop,Q=F.scrollLeft,ee=z.height,V=z.width,q=P.height,re=P.width,ue={left:0,top:0,right:H,bottom:B},de={left:-Q,top:-X,right:W-Q,bottom:G-X},Z=L.htmlRegion,te="visible",fe="visibleFirst";Z!=="scroll"&&Z!==fe&&(Z=te);var J=Z===fe,le=Vp(de,m),ie=Vp(ue,m),se=Z===te?ie:le,oe=J?ie:se;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var he=w.getBoundingClientRect();w.style.left=_,w.style.top=M,w.style.right=k,w.style.bottom=A,(C=w.parentElement)===null||C===void 0||C.removeChild(R);var be=cs(Math.round(V/parseFloat($)*1e3)/1e3),Me=cs(Math.round(ee/parseFloat(I)*1e3)/1e3);if(be===0||Me===0||ac(n)&&!Vg(n))return;var ze=L.offset,qe=L.targetOffset,Oe=Gp(z,ze),Te=Y(Oe,2),Ve=Te[0],je=Te[1],Ke=Gp(P,qe),Be=Y(Ke,2),He=Be[0],Ae=Be[1];P.x-=He,P.y-=Ae;var rt=L.points||[],Ue=Y(rt,2),Ze=Ue[0],mt=Ue[1],ut=Up(mt),nt=Up(Ze),Ot=ma(P,ut),St=ma(z,nt),Ee=U({},L),we=Ot.x-St.x+Ve,Re=Ot.y-St.y+je,ye=dr(we,Re),Fe=dr(we,Re,ie),ge=ma(P,["t","l"]),ae=ma(z,["t","l"]),ne=ma(P,["b","r"]),ve=ma(z,["b","r"]),Ce=L.overflow||{},_e=Ce.adjustX,Ye=Ce.adjustY,Qe=Ce.shiftX,$t=Ce.shiftY,ht=function(ko){return typeof ko=="boolean"?ko:ko>=0},wt,bt,dt,ke;il();var Ie=ht(Ye),Se=nt[0]===ut[0];if(Ie&&nt[0]==="t"&&(bt>oe.bottom||g.current.bt)){var $e=Re;Se?$e-=ee-q:$e=ge.y-ve.y-je;var Le=dr(we,$e),vt=dr(we,$e,ie);Le>ye||Le===ye&&(!J||vt>=Fe)?(g.current.bt=!0,Re=$e,je=-je,Ee.points=[vo(nt,0),vo(ut,0)]):g.current.bt=!1;}if(Ie&&nt[0]==="b"&&(wtye||Jt===ye&&(!J||dn>=Fe)?(g.current.tb=!0,Re=at,je=-je,Ee.points=[vo(nt,0),vo(ut,0)]):g.current.tb=!1;}var en=ht(_e),cn=nt[1]===ut[1];if(en&&nt[1]==="l"&&(ke>oe.right||g.current.rl)){var pn=we;cn?pn-=V-re:pn=ge.x-ve.x-Ve;var Ln=dr(pn,Re),Zr=dr(pn,Re,ie);Ln>ye||Ln===ye&&(!J||Zr>=Fe)?(g.current.rl=!0,we=pn,Ve=-Ve,Ee.points=[vo(nt,1),vo(ut,1)]):g.current.rl=!1;}if(en&&nt[1]==="r"&&(dtye||cr===ye&&(!J||zr>=Fe)?(g.current.lr=!0,we=Xn,Ve=-Ve,Ee.points=[vo(nt,1),vo(ut,1)]):g.current.lr=!1;}il();var Vn=Qe===!0?0:Qe;typeof Vn=="number"&&(dtie.right&&(we-=ke-ie.right-Ve,P.x>ie.right-Vn&&(we+=P.x-ie.right+Vn)));var $r=$t===!0?0:$t;typeof $r=="number"&&(wtie.bottom&&(Re-=bt-ie.bottom-je,P.y>ie.bottom-$r&&(Re+=P.y-ie.bottom+$r)));var wr=z.x+we,Dr=wr+V,qn=z.y+Re,Jr=qn+ee,Yn=P.x,ct=Yn+re,De=P.y,ot=De+q,gt=Math.max(wr,Yn),yt=Math.min(Dr,ct),Tt=(gt+yt)/2,Yt=Tt-wr,zn=Math.max(qn,De),Dn=Math.min(Jr,ot),jr=(zn+Dn)/2,ur=jr-qn;i==null||i(t,Ee);var No=he.right-z.x-(we+z.width),sd=he.bottom-z.y-(Re+z.height);u({ready:!0,offsetX:we/be,offsetY:Re/Me,offsetR:No/be,offsetB:sd/Me,arrowX:Yt/be,arrowY:ur/Me,scaleX:be,scaleY:Me,align:Ee});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v();});},b=function(){u(function(C){return U(U({},C),{},{ready:!1})});};return Ht(b,[r]),Ht(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function J5(e,t,n,r,o){Ht(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=Gf(a),l=Gf(i),c=ks(i),u=new Set([c].concat(Pe(s),Pe(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function e6(e,t,n,r,o,a,i,s){var l=f__namespace.useRef(e),c=f__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),f__namespace.useEffect(function(){var u=It(function(){c.current=!1;});return function(){It.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var x=!1,S=function(O){var _=O.target;x=i(_);},$=function(O){var _=O.target;!c.current&&l.current&&!x&&!i(_)&&s(!1);};return [S,$]},d=u(),m=Y(d,2),g=m[0],h=m[1],v=u(),p=Y(v,2),b=p[0],y=p[1],C=ks(r);C.addEventListener("mousedown",g,!0),C.addEventListener("click",h,!0),C.addEventListener("contextmenu",h,!0);var w=sc(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",g,!0),C.removeEventListener("click",h,!0),C.removeEventListener("contextmenu",h,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var t6=["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 n6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hC,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,w=n.mask,E=n.maskClosable,x=E===void 0?!0:E,S=n.getPopupContainer,$=n.forceRender,I=n.autoDestroy,O=n.destroyPopupOnHide,_=n.popup,M=n.popupClassName,k=n.popupStyle,A=n.popupPlacement,L=n.builtinPlacements,R=L===void 0?{}:L,P=n.popupAlign,T=n.zIndex,z=n.stretch,F=n.getPopupClassNameFromAlign,H=n.fresh,B=n.alignPoint,W=n.onPopupClick,G=n.onPopupAlign,X=n.arrow,Q=n.popupMotion,ee=n.maskMotion,V=n.popupTransitionName,q=n.popupAnimation,re=n.maskTransitionName,ue=n.maskAnimation,de=n.className,Z=n.getTriggerDOMNode,te=Je(n,t6),fe=I||O||!1,J=f__namespace.useState(!1),le=Y(J,2),ie=le[0],se=le[1];Ht(function(){se(bu());},[]);var oe=f__namespace.useRef({}),he=f__namespace.useContext(Bp),be=f__namespace.useMemo(function(){return {registerSubPopup:function(Ct,tn){oe.current[Ct]=tn,he==null||he.registerSubPopup(Ct,tn);}}},[he]),Me=W5(),ze=f__namespace.useState(null),qe=Y(ze,2),Oe=qe[0],Te=qe[1],Ve=Tn(function(Xe){ac(Xe)&&Oe!==Xe&&Te(Xe),he==null||he.registerSubPopup(Me,Xe);}),je=f__namespace.useState(null),Ke=Y(je,2),Be=Ke[0],He=Ke[1],Ae=f__namespace.useRef(null),rt=Tn(function(Xe){ac(Xe)&&Be!==Xe&&(He(Xe),Ae.current=Xe);}),Ue=f__namespace.Children.only(i),Ze=(Ue==null?void 0:Ue.props)||{},mt={},ut=Tn(function(Xe){var Ct,tn,fn=Be;return (fn==null?void 0:fn.contains(Xe))||((Ct=sc(fn))===null||Ct===void 0?void 0:Ct.host)===Xe||Xe===fn||(Oe==null?void 0:Oe.contains(Xe))||((tn=sc(Oe))===null||tn===void 0?void 0:tn.host)===Xe||Xe===Oe||Object.values(oe.current).some(function(nn){return (nn==null?void 0:nn.contains(Xe))||Xe===nn})}),nt=Wp(a,Q,q,V),Ot=Wp(a,ee,ue,re),St=f__namespace.useState(m||!1),Ee=Y(St,2),we=Ee[0],Re=Ee[1],ye=d??we,Fe=Tn(function(Xe){d===void 0&&Re(Xe);});Ht(function(){Re(d||!1);},[d]);var ge=f__namespace.useRef(ye);ge.current=ye;var ae=Tn(function(Xe){uy.flushSync(function(){ye!==Xe&&(Fe(Xe),g==null||g(Xe));});}),ne=f__namespace.useRef(),ve=function(){clearTimeout(ne.current);},Ce=function(Ct){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ve(),tn===0?ae(Ct):ne.current=setTimeout(function(){ae(Ct);},tn*1e3);};f__namespace.useEffect(function(){return ve},[]);var _e=f__namespace.useState(!1),Ye=Y(_e,2),Qe=Ye[0],$t=Ye[1];Ht(function(Xe){(!Xe||ye)&&$t(!0);},[ye]);var ht=f__namespace.useState(null),wt=Y(ht,2),bt=wt[0],dt=wt[1],ke=f__namespace.useState([0,0]),Ie=Y(ke,2),Se=Ie[0],$e=Ie[1],Le=function(Ct){$e([Ct.clientX,Ct.clientY]);},vt=Z5(ye,Oe,B?Se:Be,A,R,P,G),at=Y(vt,11),Jt=at[0],dn=at[1],en=at[2],cn=at[3],pn=at[4],Ln=at[5],Zr=at[6],Xn=at[7],cr=at[8],zr=at[9],Vn=at[10],$r=q5(ie,l,c,u),wr=Y($r,2),Dr=wr[0],qn=wr[1],Jr=Dr.has("click"),Yn=qn.has("click")||qn.has("contextMenu"),ct=Tn(function(){Qe||Vn();}),De=function(){ge.current&&B&&Yn&&Ce(!1);};J5(ye,Be,Oe,ct,De),Ht(function(){ct();},[Se,A]),Ht(function(){ye&&!(R!=null&&R[A])&&ct();},[JSON.stringify(P)]);var ot=f__namespace.useMemo(function(){var Xe=Q5(R,a,zr,B);return K(Xe,F==null?void 0:F(zr))},[zr,F,R,a,B]);f__namespace.useImperativeHandle(r,function(){return {nativeElement:Ae.current,forceAlign:ct}});var gt=f__namespace.useState(0),yt=Y(gt,2),Tt=yt[0],Yt=yt[1],zn=f__namespace.useState(0),Dn=Y(zn,2),jr=Dn[0],ur=Dn[1],No=function(){if(z&&Be){var Ct=Be.getBoundingClientRect();Yt(Ct.width),ur(Ct.height);}},sd=function(){No(),ct();},dr=function(Ct){$t(!1),Vn(),h==null||h(Ct);},il=function(){return new Promise(function(Ct){No(),dt(function(){return Ct});})};Ht(function(){bt&&(Vn(),bt(),dt(null));},[bt]);function eo(Xe,Ct,tn,fn){mt[Xe]=function(nn){var ll;fn==null||fn(nn),Ce(Ct,tn);for(var fd=arguments.length,fv=new Array(fd>1?fd-1:0),cl=1;cl1?tn-1:0),nn=1;nn1?tn-1:0),nn=1;nn({height:0,opacity:0}),Xp=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},u6=e=>({height:e?e.offsetHeight:0}),Td=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",yC=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:_d,onEnterStart:_d,onAppearActive:Xp,onEnterActive:Xp,onLeaveStart:u6,onLeaveActive:_d,onAppearEnd:Td,onEnterEnd:Td,onLeaveEnd:Td,motionDeadline:500}},Cu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,CC=8;function Gg(e){const t=CC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Cl(e,t){return e?t:{}}function Ug(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:g}=Gg({contentRadius:l,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},HL(r,o,a,s,i)),{"&:before":{background:s}})]},Cl(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),Cl(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),Cl(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},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:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),Cl(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},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:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function d6(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const qp={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"]}},f6={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"]}},m6=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function SC(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(qp).forEach(c=>{const u=r&&f6[c]||qp[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,m6.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const m=Gg({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+s;break}d.overflow=d6(c,m,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:uo}=f__namespace;function $C(e){return e&&uo(e)&&e.type===f__namespace.Fragment}function g6(e,t,n){return uo(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Bn(e,t){return g6(e,e,t)}const h6=e=>{const t=f.useContext(iu);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Un=h6,v6=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},p6=v6,b6=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},y6=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},wC=Ft("Space",e=>{const t=pt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [b6(t),y6(t),p6(t)]},()=>({}),{resetStyle:!1});var xC=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=f__namespace.useContext(Su),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return K(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Xa=e=>{let{children:t}=e;return f__namespace.createElement(Su.Provider,{value:null},t)},C6=e=>{var{children:t}=e,n=xC(e,["children"]);return f__namespace.createElement(Su.Provider,{value:n},t)},S6=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(et),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=xC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Un(C=>r??C),m=t("space-compact",i),[g,h]=wC(m),v=K(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(Su),b=ar(c),y=f__namespace.useMemo(()=>b.map((C,w)=>{const E=C&&C.key||`${m}-item-${w}`;return f__namespace.createElement(C6,{key:E,compactSize:d,compactDirection:o,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:g(f__namespace.createElement("div",Object.assign({className:v},u),y))},$6=S6,w6=e=>({animationDuration:e,animationFillMode:"both"}),x6=e=>({animationDuration:e,animationFillMode:"both"}),Xg=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[` ${a}${e}-enter, ${a}${e}-appear `]:Object.assign(Object.assign({},w6(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},x6(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},E6=new Mt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I6=new Mt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),O6=new Mt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P6=new Mt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),M6=new Mt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R6=new Mt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_6=new Mt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T6=new Mt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),N6={"move-up":{inKeyframes:_6,outKeyframes:T6},"move-down":{inKeyframes:E6,outKeyframes:I6},"move-left":{inKeyframes:O6,outKeyframes:P6},"move-right":{inKeyframes:M6,outKeyframes:R6}},lc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=N6[t];return [Xg(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qg=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Yg=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qg=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Zg=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),k6=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),A6=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),L6=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),z6=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),D6={"slide-up":{inKeyframes:qg,outKeyframes:Yg},"slide-down":{inKeyframes:Qg,outKeyframes:Zg},"slide-left":{inKeyframes:k6,outKeyframes:A6},"slide-right":{inKeyframes:L6,outKeyframes:z6}},Po=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=D6[t];return [Xg(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},j6=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),F6=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Yp=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Qp=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),B6=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),H6=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),W6=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),V6=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),K6=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),G6=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),U6=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),X6=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),q6={zoom:{inKeyframes:j6,outKeyframes:F6},"zoom-big":{inKeyframes:Yp,outKeyframes:Qp},"zoom-big-fast":{inKeyframes:Yp,outKeyframes:Qp},"zoom-left":{inKeyframes:W6,outKeyframes:V6},"zoom-right":{inKeyframes:K6,outKeyframes:G6},"zoom-up":{inKeyframes:B6,outKeyframes:H6},"zoom-down":{inKeyframes:U6,outKeyframes:X6}},$u=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=q6[t];return [Xg(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Y6=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),EC=Y6,Q6=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,CC)}},[`${t}-content`]:{position:"relative"}}),pu(e,(m,g)=>{let{darkColor:h}=g;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Ug(pt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},IC=(e,t)=>Ft("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=pt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [Q6(l),$u(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),Z6=ls.map(e=>`${e}-inverse`),J6=["success","processing","error","default","warning"];function wu(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Pe(Z6),Pe(ls)).includes(e):ls.includes(e)}function ez(e){return J6.includes(e)}function OC(e,t){const n=wu(t),r=K({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const tz=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=f__namespace.useContext(et),l=s("tooltip",t),[c,u]=IC(l,!0),d=OC(l,a),m=d.arrowStyle,g=Object.assign(Object.assign({},i),d.overlayStyle),h=K(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(f__namespace.createElement("div",{className:h,style:m},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(Wg,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:g}),o)))},nz=tz;var rz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:h=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,w=!!h,[,E]=Gn(),{getPopupContainer:x,getPrefixCls:S,direction:$}=f__namespace.useContext(et),I=x1(),O=f__namespace.useRef(null),_=()=>{var be;(be=O.current)===null||be===void 0||be.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:_,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),_();}}));const[M,k]=Wt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!v&&!p&&v!==0,L=be=>{var Me,ze;k(A?!1:be),A||((Me=e.onOpenChange)===null||Me===void 0||Me.call(e,be),(ze=e.onVisibleChange)===null||ze===void 0||ze.call(e,be));},R=f__namespace.useMemo(()=>{var be,Me;let ze=y;return typeof h=="object"&&(ze=(Me=(be=h.pointAtCenter)!==null&&be!==void 0?be:h.arrowPointAtCenter)!==null&&Me!==void 0?Me:y),b||SC({arrowPointAtCenter:ze,autoAdjustOverflow:C,arrowWidth:w?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[y,h,b,E]),P=f__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),T=f__namespace.createElement(Xa,null,typeof P=="function"?P():P),{getPopupContainer:z,placement:F="top",mouseEnterDelay:H=.1,mouseLeaveDelay:B=.1,overlayStyle:W,rootClassName:G}=e,X=rz(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=S("tooltip",o),ee=S(),V=e["data-popover-inject"];let q=M;!("open"in e)&&!("visible"in e)&&A&&(q=!1);const re=uo(u)&&!$C(u)?u:f__namespace.createElement("span",null,u),ue=re.props,de=!ue.className||typeof ue.className=="string"?K(ue.className,a||`${Q}-open`):ue.className,[Z,te]=IC(Q,!V),fe=OC(Q,l),J=fe.arrowStyle,le=Object.assign(Object.assign({},c),fe.overlayStyle),ie=K(s,{[`${Q}-rtl`]:$==="rtl"},fe.className,G,te),[se,oe]=As("Tooltip",X.zIndex),he=f__namespace.createElement(i6,Object.assign({},X,{zIndex:V?X.zIndex:se,showArrow:w,placement:F,mouseEnterDelay:H,mouseLeaveDelay:B,prefixCls:Q,overlayClassName:ie,overlayStyle:Object.assign(Object.assign({},J),W),getTooltipContainer:z||i||x,ref:O,builtinPlacements:R,overlay:T,visible:q,onVisibleChange:L,afterVisibleChange:d??m,overlayInnerStyle:le,arrowContent:f__namespace.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Cu(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),q?Bn(re,{className:de}):re);return Z(f__namespace.createElement(Kg.Provider,{value:oe},he))});PC._InternalPanelDoNotUseOrYouWillBeFired=nz;const Ls=PC,oz=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function a(){It.cancel(o.current),o.current=null;}function i(){o.current=It(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),f__namespace.createElement(Ls,Object.assign({ref:Wn(r,t)},e))}),az=oz,iz=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Lt(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new qt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},MC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart",d=(r*3-o)/2,m=(o-r)/2,g=t?{borderWidth:`${m}px 0`,transform:`translateY(-${m}px)`}:{borderWidth:`0 ${m}px`,transform:`translateX(-${m}px)`};return {[i]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[c]:d},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-a)/2}}},sz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},MC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},lz=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},MC(e,!1)),{height:"100%"})}},cz=Ft("Slider",e=>{const t=pt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [iz(t),sz(t),lz(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var uz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof n=="number"?n.toString():""}const fz=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,g=uz(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:v,getPrefixCls:p,getPopupContainer:b}=f.useContext(et),y=f.useContext(Yr),C=s??y,[w,E]=f.useState({}),x=(R,P)=>{E(T=>Object.assign(Object.assign({},T),{[R]:P}));},S=(R,P)=>R||(P?h==="rtl"?"left":"right":"top"),$=p("slider",n),[I,O]=cz($),_=K(o,v==null?void 0:v.className,a,{[`${$}-rtl`]:h==="rtl"},O);h==="rtl"&&!g.vertical&&(g.reverse=!g.reverse);const[M,k]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),A=(R,P)=>{var T;const{index:z,dragging:F}=P,{tooltip:H={},vertical:B}=e,W=Object.assign({},H),{open:G,placement:X,getPopupContainer:Q,prefixCls:ee,formatter:V}=W,q=dz(V,c),re=q?w[z]||F:!1,ue=(T=G??u)!==null&&T!==void 0?T:G===void 0&&re,de=Object.assign(Object.assign({},R.props),{onMouseEnter:()=>x(z,!0),onMouseLeave:()=>x(z,!1),onFocus:Z=>{var te;x(z,!0),(te=g.onFocus)===null||te===void 0||te.call(g,Z);},onBlur:Z=>{var te;x(z,!1),(te=g.onBlur)===null||te===void 0||te.call(g,Z);}});return f.createElement(az,Object.assign({},W,{prefixCls:p("tooltip",ee??l),title:q?q(P.value):"",open:ue,placement:S(X??m,B),key:z,overlayClassName:`${$}-tooltip`,getPopupContainer:Q||d||b}),f.cloneElement(R,de))},L=Object.assign(Object.assign({},v==null?void 0:v.style),i);return I(f.createElement(eA,Object.assign({},g,{step:g.step,range:M,draggableTrack:k,className:_,style:L,disabled:C,ref:t,prefixCls:$,handleRender:A})))}),mz=fz;var gz=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],RC=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,m=d===void 0?"checkbox":d,g=e.title,h=e.onChange,v=Je(e,gz),p=f.useRef(null),b=Wt(u,{value:s}),y=Y(b,2),C=y[0],w=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var $;($=p.current)===null||$===void 0||$.focus();},blur:function(){var $;($=p.current)===null||$===void 0||$.blur();},input:p.current}});var E=K(o,a,(n={},D(n,"".concat(o,"-checked"),C),D(n,"".concat(o,"-disabled"),l),n)),x=function($){l||("checked"in e||w($.target.checked),h==null||h({target:U(U({},e),{},{type:m,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation();},preventDefault:function(){$.preventDefault();},nativeEvent:$.nativeEvent}));};return f__namespace.createElement("span",{className:E,title:g,style:i},f__namespace.createElement("input",xe({},v,{className:"".concat(o,"-input"),ref:p,onChange:x,disabled:l,checked:!!C,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const hz=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},vz=Ft("Wave",e=>[hz(e)]);function Hn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(R,P,T){R[P]=T.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(R,P,T){return Object.defineProperty(R,P,{value:T,enumerable:!0,configurable:!0,writable:!0}),R[P]}try{c({},"");}catch{c=function(T,z,F){return T[z]=F};}function u(R,P,T,z){var F=P&&P.prototype instanceof b?P:b,H=Object.create(F.prototype),B=new A(z||[]);return o(H,"_invoke",{value:O(R,T,B)}),H}function d(R,P,T){try{return {type:"normal",arg:R.call(P,T)}}catch(z){return {type:"throw",arg:z}}}t.wrap=u;var m="suspendedStart",g="suspendedYield",h="executing",v="completed",p={};function b(){}function y(){}function C(){}var w={};c(w,i,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(L([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=C.prototype=b.prototype=Object.create(w);function $(R){["next","throw","return"].forEach(function(P){c(R,P,function(T){return this._invoke(P,T)});});}function I(R,P){function T(F,H,B,W){var G=d(R[F],R,H);if(G.type!=="throw"){var X=G.arg,Q=X.value;return Q&<(Q)=="object"&&r.call(Q,"__await")?P.resolve(Q.__await).then(function(ee){T("next",ee,B,W);},function(ee){T("throw",ee,B,W);}):P.resolve(Q).then(function(ee){X.value=ee,B(X);},function(ee){return T("throw",ee,B,W)})}W(G.arg);}var z;o(this,"_invoke",{value:function(H,B){function W(){return new P(function(G,X){T(H,B,G,X);})}return z=z?z.then(W,W):W()}});}function O(R,P,T){var z=m;return function(F,H){if(z===h)throw new Error("Generator is already running");if(z===v){if(F==="throw")throw H;return {value:e,done:!0}}for(T.method=F,T.arg=H;;){var B=T.delegate;if(B){var W=_(B,T);if(W){if(W===p)continue;return W}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(z===m)throw z=v,T.arg;T.dispatchException(T.arg);}else T.method==="return"&&T.abrupt("return",T.arg);z=h;var G=d(R,P,T);if(G.type==="normal"){if(z=T.done?v:g,G.arg===p)continue;return {value:G.arg,done:T.done}}G.type==="throw"&&(z=v,T.method="throw",T.arg=G.arg);}}}function _(R,P){var T=P.method,z=R.iterator[T];if(z===e)return P.delegate=null,T==="throw"&&R.iterator.return&&(P.method="return",P.arg=e,_(R,P),P.method==="throw")||T!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+T+"' method")),p;var F=d(z,R.iterator,P.arg);if(F.type==="throw")return P.method="throw",P.arg=F.arg,P.delegate=null,p;var H=F.arg;return H?H.done?(P[R.resultName]=H.value,P.next=R.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,p):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,p)}function M(R){var P={tryLoc:R[0]};1 in R&&(P.catchLoc=R[1]),2 in R&&(P.finallyLoc=R[2],P.afterLoc=R[3]),this.tryEntries.push(P);}function k(R){var P=R.completion||{};P.type="normal",delete P.arg,R.completion=P;}function A(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(M,this),this.reset(!0);}function L(R){if(R||R===""){var P=R[i];if(P)return P.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var T=-1,z=function F(){for(;++T=0;--F){var H=this.tryEntries[F],B=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var W=r.call(H,"catchLoc"),G=r.call(H,"finallyLoc");if(W&&G){if(this.prev=0;--z){var F=this.tryEntries[z];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--T){var z=this.tryEntries[T];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),k(z),p}},catch:function(P){for(var T=this.tryEntries.length-1;T>=0;--T){var z=this.tryEntries[T];if(z.tryLoc===P){var F=z.completion;if(F.type==="throw"){var H=F.arg;k(z);}return H}}throw new Error("illegal catch attempt")},delegateYield:function(P,T,z){return this.delegate={iterator:L(P),resultName:T,nextLoc:z},this.method==="next"&&(this.arg=e),p}},t}function Zp(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){Zp(a,r,o,i,s,"next",l);}function s(l){Zp(a,r,o,i,s,"throw",l);}i(void 0);})}}var zs=U({},uy__namespace),pz=zs.version,bz=zs.render,yz=zs.unmountComponentAtNode,xu;try{var Cz=Number((pz||"").split(".")[0]);Cz>=18&&(xu=zs.createRoot);}catch{}function Jp(e){var t=zs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&<(t)==="object"&&(t.usingClientEntryPoint=e);}var cc="__rc_react_root__";function Sz(e,t){Jp(!0);var n=t[cc]||xu(t);Jp(!1),n.render(e),t[cc]=n;}function $z(e,t){bz(e,t);}function wz(e,t){if(xu){Sz(e,t);return}$z(e,t);}function xz(e){return Uf.apply(this,arguments)}function Uf(){return Uf=sa(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[cc])===null||o===void 0||o.unmount(),delete t[cc];}));case 1:case"end":return r.stop()}},e)})),Uf.apply(this,arguments)}function Ez(e){yz(e);}function Iz(e){return Xf.apply(this,arguments)}function Xf(){return Xf=sa(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(xu===void 0){r.next=2;break}return r.abrupt("return",xz(t));case 2:Ez(t);case 3:case"end":return r.stop()}},e)})),Xf.apply(this,arguments)}function Oz(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Nd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Oz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Pz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Nd(t)?t:Nd(n)?n:Nd(r)?r:null}const Eu="ant-wave-target";function kd(e){return Number.isNaN(e)?0:e}const Mz=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[a,i]=f__namespace.useState(null),[s,l]=f__namespace.useState([]),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,h]=f__namespace.useState(0),[v,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),C={left:c,top:d,width:g,height:v,borderRadius:s.map(x=>`${x}px`).join(" ")};a&&(C["--wave-color"]=a);function w(){const x=getComputedStyle(n);i(Pz(n));const S=x.position==="static",{borderLeftWidth:$,borderTopWidth:I}=x;u(S?n.offsetLeft:kd(-parseFloat($))),m(S?n.offsetTop:kd(-parseFloat(I))),h(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:_,borderBottomLeftRadius:M,borderBottomRightRadius:k}=x;l([O,_,k,M].map(A=>kd(parseFloat(A))));}if(f__namespace.useEffect(()=>{if(n){const x=It(()=>{w(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{It.cancel(x),S==null||S.disconnect();}}},[]),!b)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Eu));return f__namespace.createElement(go,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,S)=>{var $;if(S.deadline||S.propertyName==="opacity"){const I=($=o.current)===null||$===void 0?void 0:$.parentElement;Iz(I).then(()=>{I==null||I.remove();});}return !1}},x=>{let{className:S}=x;return f__namespace.createElement("div",{ref:o,className:K(t,{"wave-quick":E},S),style:C})})},Rz=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),wz(f__namespace.createElement(Mz,Object.assign({},t,{target:e})),o);},_z=Rz;function Tz(e,t,n){const{wave:r}=f__namespace.useContext(et),[,o,a]=Gn(),i=Tn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Eu}`)||u,{showEffect:m}=r||{};(m||_z)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=f__namespace.useRef();return c=>{It.cancel(s.current),s.current=It(()=>{i(c);});}}const Nz=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(et),a=f.useRef(null),i=o("wave"),[,s]=vz(i),l=Tz(a,K(i,s),r);if(f.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!Vg(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(m);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const c=Ro(t)?Wn(t.ref,a):a;return Bn(t,{ref:c})},Ds=Nz;var Ho="RC_FORM_INTERNAL_HOOKS",jt=function(){bn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},qa=f__namespace.createContext({getFieldValue:jt,getFieldsValue:jt,getFieldError:jt,getFieldWarning:jt,getFieldsError:jt,isFieldsTouched:jt,isFieldTouched:jt,isFieldValidating:jt,isFieldsValidating:jt,resetFields:jt,setFields:jt,setFieldValue:jt,setFieldsValue:jt,validateFields:jt,submit:jt,getInternalHooks:function(){return jt(),{dispatch:jt,initEntityValue:jt,registerField:jt,useSubscribe:jt,setInitialValues:jt,destroyForm:jt,setCallbacks:jt,registerWatch:jt,getFields:jt,setValidateMessages:jt,setPreserve:jt,getInitialValue:jt}}}),uc=f__namespace.createContext(null);function qf(e){return e==null?[]:Array.isArray(e)?e:[e]}function kz(e){return e&&!!e._init}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function Dl(e,t,n){return Lz()?Dl=Reflect.construct.bind():Dl=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&us(c,i.prototype),c},Dl.apply(null,arguments)}function zz(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Qf(e){var t=typeof Map=="function"?new Map:void 0;return Qf=function(r){if(r===null||!zz(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return Dl(r,arguments,Yf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),us(o,r)},Qf(e)}var Dz=/%[sdj%]/g,jz=function(){};typeof process<"u"&&process.env;function Zf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function nr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return i}return e}function Fz(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function mn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Fz(t)&&typeof e=="string"&&!e)}function Bz(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,s||[]),o++,o===a&&n(r);}e.forEach(function(s){t(s,i);});}function eb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s()\[\]\\.,;:\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},Fi={integer:function(t){return Fi.number(t)&&parseInt(t,10)===t},float:function(t){return Fi.number(t)&&!Fi.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 typeof t=="object"&&!Fi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ob.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Uz())},hex:function(t){return typeof t=="string"&&!!t.match(ob.hex)}},Xz=function(t,n,r,o,a){if(t.required&&n===void 0){_C(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Fi[s](n)||o.push(nr(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(nr(a.messages.types[s],t.fullField,t.type));},qz=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,m=typeof n=="number",g=typeof n=="string",h=Array.isArray(n);if(m?d="number":g?d="string":h&&(d="array"),!d)return !1;h&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(nr(a.messages[d].len,t.fullField,t.len)):s&&!l&&ut.max?o.push(nr(a.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(nr(a.messages[d].range,t.fullField,t.min,t.max));},va="enum",Yz=function(t,n,r,o,a){t[va]=Array.isArray(t[va])?t[va]:[],t[va].indexOf(n)===-1&&o.push(nr(a.messages[va],t.fullField,t[va].join(", ")));},Qz=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(nr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(nr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Et={required:_C,whitespace:Gz,type:Xz,range:qz,enum:Yz,pattern:Qz},Zz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,"string")&&!t.required)return r();Et.required(t,n,o,i,a,"string"),mn(n,"string")||(Et.type(t,n,o,i,a),Et.range(t,n,o,i,a),Et.pattern(t,n,o,i,a),t.whitespace===!0&&Et.whitespace(t,n,o,i,a));}r(i);},Jz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&Et.type(t,n,o,i,a);}r(i);},eD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&(Et.type(t,n,o,i,a),Et.range(t,n,o,i,a));}r(i);},tD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&Et.type(t,n,o,i,a);}r(i);},nD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),mn(n)||Et.type(t,n,o,i,a);}r(i);},rD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&(Et.type(t,n,o,i,a),Et.range(t,n,o,i,a));}r(i);},oD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&(Et.type(t,n,o,i,a),Et.range(t,n,o,i,a));}r(i);},aD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Et.required(t,n,o,i,a,"array"),n!=null&&(Et.type(t,n,o,i,a),Et.range(t,n,o,i,a));}r(i);},iD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&Et.type(t,n,o,i,a);}r(i);},sD="enum",lD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a),n!==void 0&&Et[sD](t,n,o,i,a);}r(i);},cD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,"string")&&!t.required)return r();Et.required(t,n,o,i,a),mn(n,"string")||Et.pattern(t,n,o,i,a);}r(i);},uD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,"date")&&!t.required)return r();if(Et.required(t,n,o,i,a),!mn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Et.type(t,l,o,i,a),l&&Et.range(t,l.getTime(),o,i,a);}}r(i);},dD=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;Et.required(t,n,o,i,a,s),r(i);},Ad=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n,i)&&!t.required)return r();Et.required(t,n,o,s,a,i),mn(n,i)||Et.type(t,n,o,s,a);}r(s);},fD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();Et.required(t,n,o,i,a);}r(i);},Ui={string:Zz,method:Jz,number:eD,boolean:tD,regexp:nD,integer:rD,float:oD,array:aD,object:iD,enum:lD,pattern:cD,date:uD,url:Ad,hex:Ad,email:Ad,required:dD,any:fD};function Jf(){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 em=Jf(),js=function(){function e(n){this.rules=null,this._messages=em,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i];});},t.messages=function(r){return r&&(this._messages=rb(Jf(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(v){var p=[],b={};function y(w){if(Array.isArray(w)){var E;p=(E=p).concat.apply(E,w);}else p.push(w);}for(var C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return NC(t,r,n)})}function NC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return !e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function pD(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||lt(e)!=="object"||lt(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Pe(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function bD(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&<(t.target)==="object"&&e in t.target?t.target[e]:t}function lb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Pe(e.slice(0,n)),[o],Pe(e.slice(n,t)),Pe(e.slice(t+1,r))):a<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[o],Pe(e.slice(n+1,r))):e}var yD=["name"],mr=[];function cb(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Jg=function(e){_o(n,e);var t=To(n);function n(r){var o;if(Cn(this,n),o=t.call(this,r),D(We(o),"state",{resetCount:0}),D(We(o),"cancelRegisterFunc",null),D(We(o),"mounted",!1),D(We(o),"touched",!1),D(We(o),"dirty",!1),D(We(o),"validatePromise",void 0),D(We(o),"prevValidating",void 0),D(We(o),"errors",mr),D(We(o),"warnings",mr),D(We(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,an(d)),o.cancelRegisterFunc=null;}),D(We(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,m=d===void 0?[]:d;return c!==void 0?[].concat(Pe(m),Pe(c)):[]}),D(We(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(d):m})}),D(We(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),D(We(o),"metaCache",null),D(We(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=U(U({},o.getMeta()),{},{destroy:l});_s(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),D(We(o),"onStoreChange",function(l,c,u){var d=o.props,m=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,v=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(p),w=c&&Fa(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=mr,o.warnings=mr,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var E=u.data;if(w){"touched"in E&&(o.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(o.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(o.errors=E.errors||mr),"warnings"in E&&(o.warnings=E.warnings||mr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&Fa(c,b,!0)){o.reRender();return}if(m&&!b.length&&cb(m,l,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var x=h.map(an);if(x.some(function(S){return Fa(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!h.length||b.length||m)&&cb(m,l,p,y,C,u)){o.reRender();return}break}m===!0&&o.reRender();}),D(We(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},m=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,v=Promise.resolve().then(sa(Hn().mark(function p(){var b,y,C,w,E,x,S;return Hn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(o.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,w=b.messageVariables,E=b.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(O){return O}).filter(function(O){var _=O.validateTrigger;if(!_)return !0;var M=qf(_);return M.includes(m)})),!(E&&m)){I.next=10;break}return I.next=8,new Promise(function(O){setTimeout(O,E);});case 8:if(o.validatePromise===v){I.next=10;break}return I.abrupt("return",[]);case 10:return S=gD(c,u,x,l,C,w),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr;if(o.validatePromise===v){var _;o.validatePromise=null;var M=[],k=[];(_=O.forEach)===null||_===void 0||_.call(O,function(A){var L=A.rule.warningOnly,R=A.errors,P=R===void 0?mr:R;L?k.push.apply(k,Pe(P)):M.push.apply(M,Pe(P));}),o.errors=M,o.warnings=k,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",S);case 13:case"end":return I.stop()}},p)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),o.reRender()),v}),D(We(o),"isFieldValidating",function(){return !!o.validatePromise}),D(We(o),"isFieldTouched",function(){return o.touched}),D(We(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(Ho),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),D(We(o),"getErrors",function(){return o.errors}),D(We(o),"getWarnings",function(){return o.warnings}),D(We(o),"isListField",function(){return o.props.isListField}),D(We(o),"isList",function(){return o.props.isList}),D(We(o),"isPreserve",function(){return o.props.preserve}),D(We(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),D(We(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return U(U({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ar(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),D(We(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return _r(l||c(!0),u)}),D(We(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,g=c.normalize,h=c.valuePropName,v=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,E=C(Ho),x=E.dispatch,S=o.getValue(),$=v||function(M){return D({},h,M)},I=l[u],O=U(U({},l),$(S));O[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,k=arguments.length,A=new Array(k),L=0;L=0&&O<=_.length?(u.keys=[].concat(Pe(u.keys.slice(0,O)),[u.id],Pe(u.keys.slice(O))),C([].concat(Pe(_.slice(0,O)),[I],Pe(_.slice(O))))):(u.keys=[].concat(Pe(u.keys),[u.id]),C([].concat(Pe(_),[I]))),u.id+=1;},remove:function(I){var O=E(),_=new Set(Array.isArray(I)?I:[I]);_.size<=0||(u.keys=u.keys.filter(function(M,k){return !_.has(k)}),C(O.filter(function(M,k){return !_.has(k)})));},move:function(I,O){if(I!==O){var _=E();I<0||I>=_.length||O<0||O>=_.length||(u.keys=lb(u.keys,I,O),C(lb(_,I,O)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function($,I){var O=u.keys[I];return O===void 0&&(u.keys[I]=u.id,O=u.keys[I],u.id+=1),{name:I,key:O,isListField:!0}}),x,p)})))}function SD(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var AC="__@field_split__";function Ld(e){return e.map(function(t){return "".concat(lt(t),":").concat(t)}).join(AC)}var pa=function(){function e(){Cn(this,e),D(this,"kvs",new Map);}return Sn(e,[{key:"set",value:function(n,r){this.kvs.set(Ld(n),r);}},{key:"get",value:function(n){return this.kvs.get(Ld(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Ld(n));}},{key:"map",value:function(n){return Pe(this.kvs.entries()).map(function(r){var o=Y(r,2),a=o[0],i=o[1],s=a.split(AC);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Y(c,3),d=u[1],m=u[2];return d==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),$D=["name"],wD=Sn(function e(t){var n=this;Cn(this,e),D(this,"formHooked",!1),D(this,"forceRootUpdate",void 0),D(this,"subscribable",!0),D(this,"store",{}),D(this,"fieldEntities",[]),D(this,"initialValues",{}),D(this,"callbacks",{}),D(this,"validateMessages",null),D(this,"preserve",null),D(this,"lastValidatePromise",null),D(this,"getForm",function(){return {getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),D(this,"getInternalHooks",function(r){return r===Ho?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(bn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),D(this,"useSubscribe",function(r){n.subscribable=r;}),D(this,"prevWithoutPreserves",null),D(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Na(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Or(i,l,_r(r,l));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),D(this,"destroyForm",function(){var r=new pa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),D(this,"getInitialValue",function(r){var o=_r(n.initialValues,r);return r.length?Na(o):o}),D(this,"setCallbacks",function(r){n.callbacks=r;}),D(this,"setValidateMessages",function(r){n.validateMessages=r;}),D(this,"setPreserve",function(r){n.preserve=r;}),D(this,"watchList",[]),D(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),D(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r);});}}),D(this,"timeoutId",null),D(this,"warningUnhooked",function(){}),D(this,"updateStore",function(r){n.store=r;}),D(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),D(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new pa;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),D(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=an(a);return o.get(i)||{INVALIDATE_NAME_PATH:an(a)}})}),D(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&<(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,m,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!a&&(d=(m=u).isListField)!==null&&d!==void 0&&d.call(m))return;if(!i)c.push(g);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(g);}}),sb(n.store,c.map(an))}),D(this,"getFieldValue",function(r){n.warningUnhooked();var o=an(r);return _r(n.store,o)}),D(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:an(r[i]),errors:[],warnings:[]}})}),D(this,"getFieldError",function(r){n.warningUnhooked();var o=an(r),a=n.getFieldsError([o])[0];return a.errors}),D(this,"getFieldWarning",function(r){n.warningUnhooked();var o=an(r),a=n.getFieldsError([o])[0];return a.warnings}),D(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new pa,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var m=u.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)bn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else {var h=o.get(m);if(h&&h.size>1)bn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=n.getFieldValue(m),p=u.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(Or(n.store,m,Pe(h)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Pe(Pe(c).map(function(d){return d.entity})));}})):s=a,i(s);}),D(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Na(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(an);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Or(n.store,i,s));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),D(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=Je(i,$D),c=an(s);a.push(c),"value"in l&&n.updateStore(Or(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i});}),n.notifyWatch(a);}),D(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=U(U({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),D(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=_r(n.store,a);i===void 0&&n.updateStore(Or(n.store,a,o));}}),D(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),D(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !NC(d.getNamePath(),o)})){var u=n.store;n.updateStore(Or(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),D(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),D(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=U(U({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i);});}else n.forceRootUpdate();}),D(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Pe(a))}),a}),D(this,"updateValue",function(r,o){var a=an(r),i=n.store;n.updateStore(Or(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=sb(n.store,[a]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Pe(s)));}),D(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Na(n.store,r);n.updateStore(a);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();}),D(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),D(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new pa;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=an(u);i.update(d,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m});});});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var m=d.getNamePath();d.isFieldDirty()&&m.length&&(a.push(m),l(m));}});};return s(r),a}),D(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new pa;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=i.filter(function(c){var u=c.name;return Fa(r,u)});l.length&&a(l,i);}}),D(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(an):[],c=[],u=String(Date.now()),d=new Set,m=i||{},g=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!s||Fa(l,C,g)){var w=y.validateRules(U({validateMessages:U(U({},TC),n.validateMessages)},i));c.push(w.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(E){var x,S=[],$=[];return (x=E.forEach)===null||x===void 0||x.call(E,function(I){var O=I.rule.warningOnly,_=I.errors;O?$.push.apply($,Pe(_)):S.push.apply(S,Pe(_));}),S.length?Promise.reject({name:C,errors:S,warnings:$}):{name:C,errors:S,warnings:$}}));}}});var v=SD(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function(w){var E=w.name;return E});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y);});var p=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==v})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),D(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(a){console.error(a);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});}),this.forceRootUpdate=t;});function LC(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=Y(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new wD(a);t.current=i.getForm();}return [t.current]}var am=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),xD=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=f__namespace.useContext(am),s=f__namespace.useRef({});return f__namespace.createElement(am.Provider,{value:U(U({},i),{},{validateMessages:U(U({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=U(U({},s.current),{},D({},c,u))),i.registerForm(c,u);},unregisterForm:function(c){var u=U({},s.current);delete u[c],s.current=u,i.unregisterForm(c);}})},a)},ED=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],ID=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,h=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=Je(t,ED),C=f__namespace.useContext(am),w=LC(i),E=Y(w,1),x=E[0],S=x.getInternalHooks(Ho),$=S.useSubscribe,I=S.setInitialValues,O=S.setCallbacks,_=S.setValidateMessages,M=S.setPreserve,k=S.destroyForm;f__namespace.useImperativeHandle(n,function(){return x}),f__namespace.useEffect(function(){return C.registerForm(r,x),function(){C.unregisterForm(r);}},[C,x,r]),_(U(U({},C.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(B){if(C.triggerFormChange(r,B),v){for(var W=arguments.length,G=new Array(W>1?W-1:0),X=1;X{let{children:t,status:n,override:r}=e;const o=f.useContext(yr),a=f.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return f__namespace.createElement(yr.Provider,{value:a},t)},MD=f.createContext(null),zC=MD,RD=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Lt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Lt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Lt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Zo(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function _D(e,t){const n=pt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [RD(n)]}const DC=Ft("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [_D(n,e)]});var TD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,g=TD(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:p}=f__namespace.useContext(et),b=f__namespace.useContext(zC),{isFormItemInput:y}=f__namespace.useContext(yr),C=f__namespace.useContext(Yr),w=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:C,E=f__namespace.useRef(g.value);f__namespace.useEffect(()=>{b==null||b.registerValue(g.value);},[]),f__namespace.useEffect(()=>{if(!d)return g.value!==E.current&&(b==null||b.cancelValue(E.current),b==null||b.registerValue(g.value),E.current=g.value),()=>b==null?void 0:b.cancelValue(g.value)},[g.value]);const x=h("checkbox",r),[S,$]=DC(x),I=Object.assign({},g);b&&!d&&(I.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:i,value:g.value});},I.name=b.name,I.checked=b.value.includes(g.value));const O=K(`${x}-wrapper`,{[`${x}-rtl`]:v==="rtl",[`${x}-wrapper-checked`]:I.checked,[`${x}-wrapper-disabled`]:w,[`${x}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,$),_=K({[`${x}-indeterminate`]:s},Eu,$),M=s?"mixed":void 0;return S(f__namespace.createElement(Ds,{component:"Checkbox",disabled:w},f__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(RC,Object.assign({"aria-checked":M},I,{prefixCls:x,className:_,disabled:w,ref:t})),i!==void 0&&f__namespace.createElement("span",null,i))))},kD=f__namespace.forwardRef(ND),jC=kD;var AD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=AD(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(et),[g,h]=f__namespace.useState(u.value||n||[]),[v,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&h(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),y=k=>{p(A=>A.filter(L=>L!==k));},C=k=>{p(A=>[].concat(Pe(A),[k]));},w=k=>{const A=g.indexOf(k.value),L=Pe(g);A===-1?L.push(k.value):L.splice(A,1),"value"in u||h(L),c==null||c(L.filter(R=>v.includes(R)).sort((R,P)=>{const T=b.findIndex(F=>F.value===R),z=b.findIndex(F=>F.value===P);return T-z}));},E=d("checkbox",a),x=`${E}-group`,[S,$]=DC(E),I=An(u,["value","disabled"]),O=o.length?b.map(k=>f__namespace.createElement(jC,{prefixCls:E,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:g.includes(k.value),onChange:k.onChange,className:`${x}-item`,style:k.style,title:k.title,id:k.id},k.label)):r,_={toggleOption:w,value:g,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},M=K(x,{[`${x}-rtl`]:m==="rtl"},i,s,$);return S(f__namespace.createElement("div",Object.assign({className:M,style:l},I,{ref:t}),f__namespace.createElement(zC.Provider,{value:_},O)))},zD=f__namespace.forwardRef(LD),DD=f__namespace.memo(zD),eh=jC;eh.Group=DD;eh.__ANT_CHECKBOX=!0;const Iu=eh;var jD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const FD=jD;function BD(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function HD(e,t){bn(e,"[@ant-design/icons] ".concat(t));}function db(e){return lt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(lt(e.icon)==="object"||typeof e.icon=="function")}function fb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[BD(n)]=r;}return t},{})}function im(e,t,n){return n?f.createElement(e.tag,U(U({key:t},fb(e.attrs)),n),(e.children||[]).map(function(r,o){return im(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,U({key:t},fb(e.attrs)),(e.children||[]).map(function(r,o){return im(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function FC(e){return co(e)[0]}function BC(e){return e?Array.isArray(e)?e:[e]:[]}var WD=` .anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,VD=function(t){var n=f.useContext(_g),r=n.csp,o=n.prefixCls,a=WD;o&&(a=a.replace(/anticon/g,o)),f.useEffect(function(){var i=t.current,s=sc(i);Ga(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},KD=["icon","className","onClick","style","primaryColor","secondaryColor"],Xi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function GD(e){var t=e.primaryColor,n=e.secondaryColor;Xi.primaryColor=t,Xi.secondaryColor=n||FC(t),Xi.calculated=!!n;}function UD(){return U({},Xi)}var Ou=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,KD),c=f__namespace.useRef(),u=Xi;if(i&&(u={primaryColor:i,secondaryColor:s||FC(i)}),VD(c),HD(db(n),"icon should be icon definiton, but got ".concat(n)),!db(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),im(d.icon,"svg-".concat(d.name),U(U({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ou.displayName="IconReact";Ou.getTwoToneColors=UD;Ou.setTwoToneColors=GD;const th=Ou;function HC(e){var t=BC(e),n=Y(t,2),r=n[0],o=n[1];return th.setTwoToneColors({primaryColor:r,secondaryColor:o})}function XD(){var e=th.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var qD=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];HC(yL.primary);var Pu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Je(e,qD),d=f__namespace.useContext(_g),m=d.prefixCls,g=m===void 0?"anticon":m,h=d.rootClassName,v=K(h,g,(n={},D(n,"".concat(g,"-").concat(o.name),!!o.name),D(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=BC(c),C=Y(y,2),w=C[0],E=C[1];return f__namespace.createElement("span",xe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),f__namespace.createElement(th,{icon:o,primaryColor:w,secondaryColor:E,style:b}))});Pu.displayName="AntdIcon";Pu.getTwoToneColor=XD;Pu.setTwoToneColor=HC;const On=Pu;var YD=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:FD}))};const WC=f__namespace.forwardRef(YD),Ya=e=>e?typeof e=="function"?e():e:null,QD=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Ug(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},ZD=e=>{const{componentCls:t}=e;return {[t]:ls.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},JD=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:s,lineHeight:l,padding:c}=e,u=i-Math.round(s*l),d=u/2,m=u/2-n,g=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${g}px`}}}},VC=Ft("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=pt(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [QD(o),ZD(o),r&&JD(o),$u(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var ej=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},Ya(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},Ya(n)))},nj=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=e;return f__namespace.createElement("div",{className:K(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(Wg,Object.assign({},e,{className:t,prefixCls:n}),l||tj(n,i,s)))},rj=e=>{const{prefixCls:t}=e,n=ej(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(et),o=r("popover",t),[a,i]=VC(o);return a(f__namespace.createElement(nj,Object.assign({},n,{prefixCls:o,hashId:i})))},KC=rj;var oj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},Ya(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},Ya(n)))},GC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=oj(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(et),g=m("popover",n),[h,v]=VC(g),p=m(),b=K(a,v);return h(f__namespace.createElement(Ls,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:g,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(aj,{prefixCls:g,title:r,content:o}):null,transitionName:Cu(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});GC._InternalPanelDoNotUseOrYouWillBeFired=KC;const Mu=GC;var ij=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f__namespace.useContext(et),{prefixCls:r,size:o,className:a}=e,i=ij(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Gn();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=K(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return f__namespace.createElement(UC.Provider,{value:o},f__namespace.createElement("div",Object.assign({},i,{className:u})))},lj=sj,mb=/^[\u4e00-\u9fa5]{2}$/,sm=mb.test.bind(mb);function XC(e){return e==="danger"?{danger:!0}:{type:e}}function gb(e){return typeof e=="string"}function zd(e){return e==="text"||e==="link"}function cj(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&gb(e.type)&&sm(e.props.children)?Bn(e,{children:e.props.children.split("").join(n)}):gb(e)?sm(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):$C(e)?f.createElement("span",null,e):e}function uj(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=i;}),f.Children.map(r,o=>cj(o,t))}const dj=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=K(`${a}-icon`,n);return f.createElement("span",{ref:t,className:i,style:r},o)}),qC=dj;var fj={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"};const mj=fj;var gj=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:mj}))};const nh=f__namespace.forwardRef(gj),hb=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=K(`${n}-loading-icon`,r);return f.createElement(qC,{prefixCls:n,className:i,style:o,ref:t},f.createElement(nh,{className:a}))}),Dd=()=>({width:0,opacity:0,transform:"scale(0)"}),jd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),hj=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?f.createElement(hb,{prefixCls:t,className:o,style:a}):f.createElement(go,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Dd,onAppearActive:jd,onEnterStart:Dd,onEnterActive:jd,onLeaveStart:jd,onLeaveActive:Dd},(s,l)=>{let{className:c,style:u}=s;return f.createElement(hb,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},vj=hj,vb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),pj=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},vb(`${t}-primary`,o),vb(`${t}-danger`,a)]}},bj=pj,yj=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Jo(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},fo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Cj=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Sj=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),$j=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),fs=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},fo(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),rh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},$j(e))}),YC=e=>Object.assign({},rh(e)),dc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),QC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YC(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),fo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),fs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},fo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),rh(e))}),wj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YC(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),fo(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),fs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},fo(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rh(e))}),xj=e=>Object.assign(Object.assign({},QC(e)),{borderStyle:"dashed"}),Ej=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},fo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),dc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},fo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),dc(e))}),Ij=e=>Object.assign(Object.assign(Object.assign({},fo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),dc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e)),fo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Oj=e=>{const{componentCls:t}=e;return {[`${t}-default`]:QC(e),[`${t}-primary`]:wj(e),[`${t}-dashed`]:xj(e),[`${t}-link`]:Ej(e),[`${t}-text`]:Ij(e),[`${t}-ghost`]:fs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},oh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*a)/2-i),d=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${l}px`,borderRadius:s,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Cj(e)},{[`${n}${n}-round${t}`]:Sj(e)}]},Pj=e=>oh(pt(e,{fontSize:e.contentFontSize})),Mj=e=>{const t=pt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return oh(t,`${e.componentCls}-sm`)},Rj=e=>{const t=pt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return oh(t,`${e.componentCls}-lg`)},_j=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},ZC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return pt(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},JC=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),Tj=Ft("Button",e=>{const t=ZC(e);return [yj(t),Mj(t),Pj(t),Rj(t),_j(t),Oj(t),bj(t)]},JC);function Nj(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function kj(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ru(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},Nj(e,r,t)),kj(n,r,t))}}function Aj(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Lj(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function zj(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},Aj(e,t)),Lj(e.componentCls,t))}}const Dj=jg(["Button","compact"],e=>{const t=ZC(e);return [Ru(t),zj(t)]},JC);var jj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:m,rootClassName:g,children:h,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:w={}}=e,E=jj(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:x,autoInsertSpaceInButton:S,direction:$,button:I}=f.useContext(et),O=x("btn",a),[_,M]=Tj(O),k=f.useContext(Yr),A=d??k,L=f.useContext(UC),R=f.useMemo(()=>Fj(o),[o]),[P,T]=f.useState(R.loading),[z,F]=f.useState(!1),B=Wn(t,f.createRef()),W=f.Children.count(h)===1&&!v&&!zd(i);f.useEffect(()=>{let oe=null;R.delay>0?oe=setTimeout(()=>{oe=null,T(!0);},R.delay):T(R.loading);function he(){oe&&(clearTimeout(oe),oe=null);}return he},[R]),f.useEffect(()=>{if(!B||!B.current||S===!1)return;const oe=B.current.textContent;W&&sm(oe)?z||F(!0):z&&F(!1);},[B]);const G=oe=>{const{onClick:he}=e;if(P||A){oe.preventDefault();return}he==null||he(oe);},X=S!==!1,{compactSize:Q,compactItemClassnames:ee}=yi(O,$),V={large:"lg",small:"sm",middle:void 0},q=Un(oe=>{var he,be;return (be=(he=c??Q)!==null&&he!==void 0?he:L)!==null&&be!==void 0?be:oe}),re=q&&V[q]||"",ue=P?"loading":v,de=An(E,["navigate"]),Z=K(O,M,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${i}`]:i,[`${O}-${re}`]:re,[`${O}-icon-only`]:!h&&h!==0&&!!ue,[`${O}-background-ghost`]:p&&!zd(i),[`${O}-loading`]:P,[`${O}-two-chinese-chars`]:z&&X&&!P,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:$==="rtl"},ee,m,g,I==null?void 0:I.className),te=Object.assign(Object.assign({},I==null?void 0:I.style),w),fe=K(C==null?void 0:C.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),J=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),le=v&&!P?f.createElement(qC,{prefixCls:O,className:fe,style:J},v):f.createElement(vj,{existIcon:!!v,prefixCls:O,loading:!!P}),ie=h||h===0?uj(h,W&&X):null;if(de.href!==void 0)return _(f.createElement("a",Object.assign({},de,{className:K(Z,{[`${O}-disabled`]:A}),style:te,onClick:G,ref:B}),le,ie));let se=f.createElement("button",Object.assign({},E,{type:y,className:Z,style:te,onClick:G,disabled:A,ref:B}),le,ie,ee&&f.createElement(Dj,{key:"compact",prefixCls:O}));return zd(i)||(se=f.createElement(Ds,{component:"Button",disabled:!!P},se)),_(se)},ah=f.forwardRef(Bj);ah.Group=lj;ah.__ANT_BUTTON=!0;const Ut=ah;function pb(e){return !!(e&&e.then)}const Hj=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[g,h]=Go(!1),v=function(){a==null||a.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{pb(y)&&(h(!0),y.then(function(){h(!1,!0),v.apply(void 0,arguments),d.current=!1;},C=>{if(h(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(y),c&&!pb(C)){d.current=!1,v(y);return}}else if(u.length)C=u(a),d.current=!1;else if(C=u(),!C){v();return}p(C);};return f__namespace.createElement(Ut,Object.assign({},XC(t),{onClick:b,loading:g,prefixCls:r},o,{ref:m}),n)},Wj=Hj,Vj=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},eS=Ft("Popconfirm",e=>Vj(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var Kj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=f__namespace.createElement(WC,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:v}=f__namespace.useContext(et),[p]=pi("Popconfirm",lo.Popconfirm),b=Ya(o),y=Ya(a);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:h},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:K(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Ut,Object.assign({onClick:g,size:"small"},r),i??(p==null?void 0:p.cancelText)),f__namespace.createElement(Wj,{buttonProps:Object.assign(Object.assign({size:"small"},XC(l)),n),actionFn:m,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},Gj=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=Kj(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=f__namespace.useContext(et),s=i("popconfirm",t),[l]=eS(s);return l(f__namespace.createElement(KC,{placement:n,className:K(s,r),style:o,content:f__namespace.createElement(tS,Object.assign({prefixCls:s},a))}))},Uj=Gj;var Xj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,placement:r="top",trigger:o="click",okType:a="primary",icon:i=f__namespace.createElement(WC,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=Xj(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(et),[g,h]=Wt(!1,{value:e.open,defaultValue:e.defaultOpen}),v=($,I)=>{h($,!0),u==null||u($),c==null||c($,I);},p=$=>{v(!1,$);},b=$=>{var I;return (I=e.onConfirm)===null||I===void 0?void 0:I.call(globalThis,$)},y=$=>{var I;v(!1,$),(I=e.onCancel)===null||I===void 0||I.call(globalThis,$);},C=$=>{$.keyCode===me.ESC&&g&&v(!1,$);},w=$=>{const{disabled:I=!1}=e;I||v($);},E=m("popconfirm",n),x=K(E,l),[S]=eS(E);return S(f__namespace.createElement(Mu,Object.assign({},An(d,["title"]),{trigger:o,placement:r,onOpenChange:w,open:g,ref:t,overlayClassName:x,content:f__namespace.createElement(tS,Object.assign({okType:a,icon:i},e,{prefixCls:E,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),Bn(s,{onKeyDown:$=>{var I,O;f__namespace.isValidElement(s)&&((O=s==null?void 0:(I=s.props).onKeyDown)===null||O===void 0||O.call(I,$)),C($);}})))});nS._InternalPanelDoNotUseOrYouWillBeFired=Uj;const bb=nS;function yb(e){return ["small","middle","large"].includes(e)}function Cb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const rS=f.createContext({latestIndex:0}),qj=rS.Provider,Yj=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=f__namespace.useContext(rS);return r==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=f__namespace.useContext(et),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:g,split:h,style:v,wrap:p=!1,classNames:b,styles:y}=e,C=Zj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,E]=Array.isArray(s)?s:[s,s],x=yb(E),S=yb(w),$=Cb(E),I=Cb(w),O=ar(d,{keepEmpty:!0}),_=l===void 0&&m==="horizontal"?"center":l,M=o("space",g),[k,A]=wC(M),L=K(M,a==null?void 0:a.className,A,`${M}-${m}`,{[`${M}-rtl`]:i==="rtl",[`${M}-align-${_}`]:_,[`${M}-gap-row-${E}`]:x,[`${M}-gap-col-${w}`]:S},c,u),R=K(`${M}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let P=0;const T=O.map((H,B)=>{var W,G;H!=null&&(P=B);const X=H&&H.key||`${R}-${B}`;return f__namespace.createElement(Qj,{className:R,key:X,index:B,split:h,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(G=a==null?void 0:a.styles)===null||G===void 0?void 0:G.item},H)}),z=f__namespace.useMemo(()=>({latestIndex:P}),[P]);if(O.length===0)return null;const F={};return p&&(F.flexWrap="wrap"),!S&&I&&(F.columnGap=w),!x&&$&&(F.rowGap=E),k(f__namespace.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},F),a==null?void 0:a.style),v)},C),f__namespace.createElement(qj,{value:z},T)))}),oS=Jj;oS.Compact=$6;const Bs=oS;var e8={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const t8=e8;var n8=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:t8}))};const _u=f__namespace.forwardRef(n8);function r8(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function o8(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(_u,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!r8(e,t,o))return [!1,null];const i=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(i):i]}const a8=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},Lt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},ih=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return pt(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},sh=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}),aS=Ft("Tag",e=>{const t=ih(e);return a8(t)},sh);var i8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=i8(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=f__namespace.useContext(et),d=p=>{i==null||i(!a),s==null||s(p);},m=c("tag",n),[g,h]=aS(m),v=K(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},u==null?void 0:u.className,o,h);return g(f__namespace.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),l8=s8,c8=e=>pu(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),u8=jg(["Tag","preset"],e=>{const t=ih(e);return c8(t)},sh);function d8(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const $l=(e,t,n)=>{const r=d8(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},f8=jg(["Tag","status"],e=>{const t=ih(e);return [$l(t,"success","Success"),$l(t,"processing","Info"),$l(t,"error","Error"),$l(t,"warning","Warning")]},sh);var m8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:m=!0}=e,g=m8(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:v,tag:p}=f__namespace.useContext(et),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in g&&y(g.visible);},[g.visible]);const C=wu(l),w=ez(l),E=C||w,x=Object.assign(Object.assign({backgroundColor:l&&!E?l:void 0},p==null?void 0:p.style),a),S=h("tag",n),[$,I]=aS(S),O=K(S,p==null?void 0:p.className,{[`${S}-${l}`]:E,[`${S}-has-color`]:l&&!E,[`${S}-hidden`]:!b,[`${S}-rtl`]:v==="rtl",[`${S}-borderless`]:!m},r,o,I),_=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&y(!1);},[,M]=o8(d,u,P=>P===null?f__namespace.createElement(_u,{className:`${S}-close-icon`,onClick:_}):f__namespace.createElement("span",{className:`${S}-close-icon`,onClick:_},P),null,!1),k=typeof g.onClick=="function"||i&&i.type==="a",A=s||null,L=A?f__namespace.createElement(f__namespace.Fragment,null,A,i&&f__namespace.createElement("span",null,i)):i,R=f__namespace.createElement("span",Object.assign({},g,{ref:t,className:O,style:x}),L,M,C&&f__namespace.createElement(u8,{key:"preset",prefixCls:S}),w&&f__namespace.createElement(f8,{key:"status",prefixCls:S}));return $(k?f__namespace.createElement(Ds,{component:"Tag"},R):R)},iS=f__namespace.forwardRef(g8);iS.CheckableTag=l8;const yo=iS;var h8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const v8=h8;var p8=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:v8}))};const lh=f__namespace.forwardRef(p8);var b8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const y8=b8;var C8=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:y8}))};const S8=f__namespace.forwardRef(C8);function lm(){return typeof BigInt=="function"}function qo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function ch(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function ms(e){var t=String(e);if(ch(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&uh(t)?t.length-t.indexOf(".")-1:0}function Tu(e){var t=String(e);if(ch(e)){if(e>Number.MAX_SAFE_INTEGER)return String(lm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Tu(this.number):this.origin}}]),e}(),w8=function(){function e(t){if(Cn(this,e),D(this,"origin",""),D(this,"negative",void 0),D(this,"integer",void 0),D(this,"decimal",void 0),D(this,"decimalLen",void 0),D(this,"empty",void 0),D(this,"nan",void 0),sS(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(ch(n)&&(n=Number(n)),n=typeof n=="string"?n:Tu(n),uh(n)){var r=qo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length;}else this.nan=!0;}return Sn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(o),i=r.alignDecimal(o),s=(a+i).toString(),l=qo(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":qo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Ir(e){return lm()?new w8(e):new $8(e)}function jl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=qo(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Ir(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return jl(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ba(e){return !!(e.addonBefore||e.addonAfter)}function Fd(e){return !!(e.prefix||e.suffix||e.allowClear)}function fc(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function lS(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}var dh=function(t){var n,r,o=t.inputElement,a=t.prefixCls,i=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,m=t.disabled,g=t.readOnly,h=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,w=t.classes,E=t.classNames,x=t.dataAttrs,S=t.styles,$=t.components,I=($==null?void 0:$.affixWrapper)||"span",O=($==null?void 0:$.groupWrapper)||"span",_=($==null?void 0:$.wrapper)||"span",M=($==null?void 0:$.groupAddon)||"span",k=f.useRef(null),A=function(Q){var ee;(ee=k.current)!==null&&ee!==void 0&&ee.contains(Q.target)&&(v==null||v());},L=function(){var Q;if(!p)return null;var ee=!m&&!g&&b,V="".concat(a,"-clear-icon"),q=lt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:K(V,(Q={},D(Q,"".concat(V,"-hidden"),!ee),D(Q,"".concat(V,"-has-suffix"),!!s),Q)),role:"button",tabIndex:-1},q)},R=f.cloneElement(o,{value:b,hidden:C,className:K((n=o.props)===null||n===void 0?void 0:n.className,!Fd(t)&&!ba(t)&&u)||null,style:U(U({},(r=o.props)===null||r===void 0?void 0:r.style),!Fd(t)&&!ba(t)?d:{})});if(Fd(t)){var P,T="".concat(a,"-affix-wrapper"),z=K(T,(P={},D(P,"".concat(T,"-disabled"),m),D(P,"".concat(T,"-focused"),h),D(P,"".concat(T,"-readonly"),g),D(P,"".concat(T,"-input-with-clear-btn"),s&&p&&b),P),!ba(t)&&u,w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper),F=(s||p)&&f.createElement("span",{className:K("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:S==null?void 0:S.suffix},L(),s);R=f.createElement(I,xe({className:z,style:U(U({},ba(t)?void 0:d),S==null?void 0:S.affixWrapper),hidden:!ba(t)&&C,onClick:A},x==null?void 0:x.affixWrapper,{ref:k}),i&&f.createElement("span",{className:K("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:S==null?void 0:S.prefix},i),f.cloneElement(o,{value:b,hidden:null}),F);}if(ba(t)){var H="".concat(a,"-group"),B="".concat(H,"-addon"),W=K("".concat(a,"-wrapper"),H,w==null?void 0:w.wrapper),G=K("".concat(a,"-group-wrapper"),u,w==null?void 0:w.group);return f.createElement(O,{className:G,style:d,hidden:C},f.createElement(_,{className:W},l&&f.createElement(M,{className:B},l),f.cloneElement(R,{hidden:null}),c&&f.createElement(M,{className:B},c)))}return R},x8=["show"];function cS(e,t){return f__namespace.useMemo(function(){var n={};t&&(n.show=lt(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=Je(r,x8);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var E8=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],I8=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,m=e.className,g=e.maxLength,h=e.suffix,v=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,w=e.classNames,E=e.styles,x=e.onCompositionStart,S=e.onCompositionEnd,$=Je(e,E8),I=f.useState(!1),O=Y(I,2),_=O[0],M=O[1],k=f.useRef(!1),A=f.useRef(null),L=function(oe){A.current&&lS(A.current,oe);},R=Wt(e.defaultValue,{value:e.value}),P=Y(R,2),T=P[0],z=P[1],F=T==null?"":String(T),H=f.useState(null),B=Y(H,2),W=B[0],G=B[1],X=cS(p,v),Q=X.max||g,ee=X.strategy(F),V=!!Q&&ee>Q;f.useImperativeHandle(t,function(){return {focus:L,blur:function(){var oe;(oe=A.current)===null||oe===void 0||oe.blur();},setSelectionRange:function(oe,he,be){var Me;(Me=A.current)===null||Me===void 0||Me.setSelectionRange(oe,he,be);},select:function(){var oe;(oe=A.current)===null||oe===void 0||oe.select();},input:A.current}}),f.useEffect(function(){M(function(se){return se&&u?!1:se});},[u]);var q=function(oe,he){var be=he;if(!k.current&&X.exceedFormatter&&X.max&&X.strategy(he)>X.max&&(be=X.exceedFormatter(he,{max:X.max}),he!==be)){var Me,ze;G([((Me=A.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((ze=A.current)===null||ze===void 0?void 0:ze.selectionEnd)||0]);}z(be),A.current&&fc(A.current,oe,r,be);};f.useEffect(function(){if(W){var se;(se=A.current)===null||se===void 0||se.setSelectionRange.apply(se,Pe(W));}},[W]);var re=function(oe){q(oe,oe.target.value);},ue=function(oe){k.current=!1,q(oe,oe.currentTarget.value),S==null||S(oe);},de=function(oe){i&&oe.key==="Enter"&&i(oe),s==null||s(oe);},Z=function(oe){M(!0),o==null||o(oe);},te=function(oe){M(!1),a==null||a(oe);},fe=function(oe){z(""),L(),A.current&&fc(A.current,oe,r);},J=V&&"".concat(c,"-out-of-range"),le=function(){var oe=An(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return f.createElement("input",xe({autoComplete:n},oe,{onChange:re,onFocus:Z,onBlur:te,onKeyDown:de,className:K(c,D({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:A,size:d,type:y,onCompositionStart:function(be){k.current=!0,x==null||x(be);},onCompositionEnd:ue}))},ie=function(){var oe=Number(Q)>0;if(h||X.show){var he=X.showFormatter?X.showFormatter({value:F,count:ee,maxLength:Q}):"".concat(ee).concat(oe?" / ".concat(Q):"");return f.createElement(f.Fragment,null,X.show&&f.createElement("span",{className:K("".concat(c,"-show-count-suffix"),D({},"".concat(c,"-show-count-has-suffix"),!!h),w==null?void 0:w.count),style:U({},E==null?void 0:E.count)},he),h)}return null};return f.createElement(dh,xe({},$,{prefixCls:c,className:K(m,J),inputElement:le(),handleReset:fe,value:F,focused:_,triggerFocus:L,suffix:ie(),disabled:u,classes:C,classNames:w,styles:E}))});function O8(e,t){var n=f.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else if(a.startsWith(s))u=s.length;else {var d=s[c-1],m=a.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(g){bn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [r,o]}var P8=function(){var t=f.useState(!1),n=Y(t,2),r=n[0],o=n[1];return Ht(function(){o(bu());},[]),r},M8=200,R8=600;function _8(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef([]),c=f__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(C,w){C.preventDefault(),u(),c.current(w);function E(){c.current(w),s.current=setTimeout(E,M8);}s.current=setTimeout(E,R8);};f__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return It.cancel(y)});}},[]);var m=P8();if(m)return null;var g="".concat(t,"-handler"),h=K(g,"".concat(g,"-up"),D({},"".concat(g,"-up-disabled"),o)),v=K(g,"".concat(g,"-down"),D({},"".concat(g,"-down-disabled"),a)),p=function(){return l.current.push(It(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(g,"-wrap")},f__namespace.createElement("span",xe({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",xe({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Sb(e){var t=typeof e=="number"?Tu(e):qo(e).fullStr,n=t.includes(".");return n?qo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const T8=function(){var e=f.useRef(0),t=function(){It.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=It(function(){n();});}};var N8=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],k8=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],$b=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},wb=function(t){var n=Ir(t);return n.isInvalidate()?null:n},A8=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,m=e.value,g=e.disabled,h=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,w=e.classNames,E=e.stringMode,x=e.parser,S=e.formatter,$=e.precision,I=e.decimalSeparator,O=e.onChange,_=e.onInput,M=e.onPressEnter,k=e.onStep,A=e.changeOnBlur,L=A===void 0?!0:A,R=Je(e,N8),P="".concat(o,"-input"),T=f__namespace.useRef(null),z=f__namespace.useState(!1),F=Y(z,2),H=F[0],B=F[1],W=f__namespace.useRef(!1),G=f__namespace.useRef(!1),X=f__namespace.useRef(!1),Q=f__namespace.useState(function(){return Ir(m??d)}),ee=Y(Q,2),V=ee[0],q=ee[1];function re(Ee){m===void 0&&q(Ee);}var ue=f__namespace.useCallback(function(Ee,we){if(!we)return $>=0?$:Math.max(ms(Ee),ms(u))},[$,u]),de=f__namespace.useCallback(function(Ee){var we=String(Ee);if(x)return x(we);var Re=we;return I&&(Re=Re.replace(I,".")),Re.replace(/[^\w.-]+/g,"")},[x,I]),Z=f__namespace.useRef(""),te=f__namespace.useCallback(function(Ee,we){if(S)return S(Ee,{userTyping:we,input:String(Z.current)});var Re=typeof Ee=="number"?Tu(Ee):Ee;if(!we){var ye=ue(Re,we);if(uh(Re)&&(I||ye>=0)){var Fe=I||".";Re=jl(Re,Fe,ye);}}return Re},[S,ue,I]),fe=f__namespace.useState(function(){var Ee=d??m;return V.isInvalidate()&&["string","number"].includes(lt(Ee))?Number.isNaN(Ee)?"":Ee:te(V.toString(),!1)}),J=Y(fe,2),le=J[0],ie=J[1];Z.current=le;function se(Ee,we){ie(te(Ee.isInvalidate()?Ee.toString(!1):Ee.toString(!we),we));}var oe=f__namespace.useMemo(function(){return wb(l)},[l,$]),he=f__namespace.useMemo(function(){return wb(s)},[s,$]),be=f__namespace.useMemo(function(){return !oe||!V||V.isInvalidate()?!1:oe.lessEquals(V)},[oe,V]),Me=f__namespace.useMemo(function(){return !he||!V||V.isInvalidate()?!1:V.lessEquals(he)},[he,V]),ze=O8(T.current,H),qe=Y(ze,2),Oe=qe[0],Te=qe[1],Ve=function(we){return oe&&!we.lessEquals(oe)?oe:he&&!he.lessEquals(we)?he:null},je=function(we){return !Ve(we)},Ke=function(we,Re){var ye=we,Fe=je(ye)||ye.isEmpty();if(!ye.isEmpty()&&!Re&&(ye=Ve(ye)||ye,Fe=!0),!h&&!g&&Fe){var ge=ye.toString(),ae=ue(ge,Re);return ae>=0&&(ye=Ir(jl(ge,".",ae)),je(ye)||(ye=Ir(jl(ge,".",ae,!0)))),ye.equals(V)||(re(ye),O==null||O(ye.isEmpty()?null:$b(E,ye)),m===void 0&&se(ye,Re)),ye}return V},Be=T8(),He=function Ee(we){if(Oe(),Z.current=we,ie(we),!G.current){var Re=de(we),ye=Ir(Re);ye.isNaN()||Ke(ye,!0);}_==null||_(we),Be(function(){var Fe=we;x||(Fe=we.replace(/。/g,".")),Fe!==we&&Ee(Fe);});},Ae=function(){G.current=!0;},rt=function(){G.current=!1,He(T.current.value);},Ue=function(we){He(we.target.value);},Ze=function(we){var Re;if(!(we&&be||!we&&Me)){W.current=!1;var ye=Ir(X.current?Sb(u):u);we||(ye=ye.negate());var Fe=(V||Ir(0)).add(ye.toString()),ge=Ke(Fe,!1);k==null||k($b(E,ge),{offset:X.current?Sb(u):u,type:we?"up":"down"}),(Re=T.current)===null||Re===void 0||Re.focus();}},mt=function(we){var Re=Ir(de(le)),ye=Re;Re.isNaN()?ye=Ke(V,we):ye=Ke(Re,we),m!==void 0?se(V,!1):ye.isNaN()||se(ye,!1);},ut=function(){W.current=!0;},nt=function(we){var Re=we.key,ye=we.shiftKey;W.current=!0,X.current=ye,Re==="Enter"&&(G.current||(W.current=!1),mt(!1),M==null||M(we)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Re)&&(Ze(Re==="Up"||Re==="ArrowUp"),we.preventDefault());},Ot=function(){W.current=!1,X.current=!1;},St=function(){L&&mt(!1),B(!1),W.current=!1;};return ja(function(){V.isInvalidate()||se(V,!1);},[$,S]),ja(function(){var Ee=Ir(m);q(Ee);var we=Ir(de(le));(!Ee.equals(we)||!W.current||S)&&se(Ee,W.current);},[m]),ja(function(){S&&Te();},[le]),f__namespace.createElement("div",{className:K(o,w==null?void 0:w.input,a,(n={},D(n,"".concat(o,"-focused"),H),D(n,"".concat(o,"-disabled"),g),D(n,"".concat(o,"-readonly"),h),D(n,"".concat(o,"-not-a-number"),V.isNaN()),D(n,"".concat(o,"-out-of-range"),!V.isInvalidate()&&!je(V)),n)),style:i,onFocus:function(){B(!0);},onBlur:St,onKeyDown:nt,onKeyUp:Ot,onCompositionStart:Ae,onCompositionEnd:rt,onBeforeInput:ut},C&&f__namespace.createElement(_8,{prefixCls:o,upNode:v,downNode:p,upDisabled:be,downDisabled:Me,onStep:Ze}),f__namespace.createElement("div",{className:"".concat(P,"-wrap")},f__namespace.createElement("input",xe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:u},R,{ref:Wn(T,t),className:P,value:le,onChange:Ue,disabled:g,readOnly:h}))))}),uS=f__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,m=e.classNames,g=Je(e,k8),h=f__namespace.useRef(null),v=function(b){h.current&&lS(h.current,b);};return f__namespace.createElement(dh,{inputElement:f__namespace.createElement(A8,xe({prefixCls:o,disabled:n,classNames:m,ref:Wn(h,t)},g)),className:d,triggerFocus:v,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});uS.displayName="InputNumber";function Nr(e,t,n){return K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Hs=(e,t)=>t||e,dS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),fS=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),cm=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),fh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},fS(pt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),mS=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return {padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},mh=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Nu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},cm(pt(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},cm(pt(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Ws=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},dS(e.colorTextPlaceholder)),{"&:hover":Object.assign({},fS(e)),"&:focus, &:focus-within":Object.assign({},cm(e)),"&-disabled, &[disabled]":Object.assign({},fh(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},mS(e)),"&-sm":Object.assign({},mh(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),gS=e=>{const{componentCls:t,antCls:n}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},mS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},mh(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Df()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${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}}}})}},L8=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),Ws(e)),Nu(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},z8=e=>{const{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin: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 ${e.inputAffixPadding}px`}}}},D8=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ws(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),z8(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Nu(e,`${t}-affix-wrapper`))}},j8=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Lt(e)),gS(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},fh(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}}}})}},F8=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},B8=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},H8=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function gh(e){return pt(e,{inputAffixPadding:e.paddingXXS})}const hh=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:v,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:m,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:"",activeBg:""}},vh=Ft("Input",e=>{const t=pt(e,gh(e));return [L8(t),B8(t),D8(t),j8(t),F8(t),H8(t),Ru(t)]},hh),xb=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},W8=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:v,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:C,borderRadiusLG:w,controlWidth:E,handleVisible:x,handleBorderColor:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),Ws(e)),Nu(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Lt(e)),gS(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},fh(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{width:"100%",padding:`${v}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),dS(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:x===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${S}`,transition:`all ${m} linear`,"&:active":{background:b},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ia()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},xb(e,"lg")),xb(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},V8=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Ws(e)),Nu(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},K8=Ft("InputNumber",e=>{const t=pt(e,gh(e));return [W8(t),V8(t),Ru(t)]},e=>Object.assign(Object.assign({},hh(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder}));var G8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=f__namespace.useContext(et),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:m,bordered:g=!0,readOnly:h,status:v,controls:p}=e,b=G8(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,w]=K8(y),{compactSize:E,compactItemClassnames:x}=yi(y,r);let S=f__namespace.createElement(S8,{className:`${y}-handler-up-inner`}),$=f__namespace.createElement(lh,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:f__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),$=typeof p.downIcon>"u"?$:f__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:O,status:_,isFormItemInput:M,feedbackIcon:k}=f__namespace.useContext(yr),A=Hs(_,v),L=Un(B=>{var W;return (W=s??E)!==null&&W!==void 0?W:B}),R=f__namespace.useContext(Yr),P=l??R,T=K({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!g,[`${y}-in-form-item`]:M},Nr(y,A),w),z=`${y}-group`,F=O&&f__namespace.createElement(f__namespace.Fragment,null,k),H=f__namespace.createElement(uS,Object.assign({ref:o,disabled:P,className:K(a,i,x),upHandler:S,downHandler:$,prefixCls:y,readOnly:h,controls:I,prefix:m,suffix:F,addonAfter:d&&f__namespace.createElement(Xa,null,f__namespace.createElement(ds,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Xa,null,f__namespace.createElement(ds,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:K(Nr(`${y}-affix-wrapper`,A,O),{[`${y}-affix-wrapper-sm`]:L==="small",[`${y}-affix-wrapper-lg`]:L==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!g},w),wrapper:K({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:P},w),group:K({[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},Nr(`${y}-group-wrapper`,A,O),w)}},b));return C(H)}),vS=hS,U8=e=>f__namespace.createElement(Hg,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(hS,Object.assign({},e)));vS._InternalPanelDoNotUseOrYouWillBeFired=U8;const um=vS;var X8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const q8=X8;var Y8=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:q8}))};const ph=f__namespace.forwardRef(Y8);var Q8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Z8=Q8;var J8=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:Z8}))};const eF=f__namespace.forwardRef(J8),ku=f.createContext(null);var pS=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:K(n,i&&"".concat(n,"-active"),r),ref:t},l)}),tF=["key","forceRender","style","className","destroyInactiveTabPane"];function nF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=f__namespace.useContext(ku),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:K("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:K("".concat(s,"-content"),"".concat(s,"-content-").concat(o),D({},"".concat(s,"-content-animated"),c))},l.map(function(d){var m=d.key,g=d.forceRender,h=d.style,v=d.className,p=d.destroyInactiveTabPane,b=Je(d,tF),y=m===n;return f__namespace.createElement(go,xe({key:m,visible:y,forceRender:g,removeOnLeave:!!(a||p),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(C,w){var E=C.style,x=C.className;return f__namespace.createElement(pS,xe({},b,{prefixCls:u,id:t,tabKey:m,animated:c,active:y,style:U(U({},h),E),className:K(v,x),ref:w}))})})))}var rF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=f.useState(),s=Y(i,2),l=s[0],c=s[1],u=f.useRef(),d=function(h){return typeof a=="function"?a(h):typeof a=="number"?a:h};function m(){It.cancel(u.current);}return f.useEffect(function(){var g={};return n&&(r?(o?(g.right=n.right+n.width/2,g.transform="translateX(50%)"):(g.left=n.left+n.width/2,g.transform="translateX(-50%)"),g.width=d(n.width)):(g.top=n.top+n.height/2,g.transform="translateY(-50%)",g.height=d(n.height))),m(),u.current=It(function(){c(g);}),m},[n,r,o,a]),{style:l}},Eb={width:0,height:0,left:0,top:0};function oF(e,t,n){return f.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Eb,i=a.left+a.width,s=0;sA?(M=O,x.current="x"):(M=_,x.current="y"),t(-M,-M)&&I.preventDefault();}var $=f.useRef(null);$.current={onTouchStart:C,onTouchMove:w,onTouchEnd:E,onWheel:S},f__namespace.useEffect(function(){function I(k){$.current.onTouchStart(k);}function O(k){$.current.onTouchMove(k);}function _(k){$.current.onTouchEnd(k);}function M(k){$.current.onWheel(k);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",_,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",M),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",_);}},[]);}function bS(e){var t=f.useState(0),n=Y(t,2),r=n[0],o=n[1],a=f.useRef(0),i=f.useRef();return i.current=e,ja(function(){var s;(s=i.current)===null||s===void 0||s.call(i);},[r]),function(){a.current===r&&(a.current+=1,o(a.current));}}function sF(e){var t=f.useRef([]),n=f.useState({}),r=Y(n,2),o=r[1],a=f.useRef(typeof e=="function"?e():e),i=bS(function(){var l=a.current;t.current.forEach(function(c){l=c(l);}),t.current=[],a.current=l,o({});});function s(l){t.current.push(l),i();}return [a.current,s]}var Mb={width:0,height:0,left:0,top:0,right:0};function lF(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.rtl,u,d,m;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var g=s.length,h=g,v=0;vm+t){h=v-1;break}}for(var b=0,y=g-1;y>=0;y-=1){var C=e.get(s[y].key)||Mb;if(C[d]=h?[0,0]:[b,h]},[e,t,r,o,a,m,l,s.map(function(g){return g.key}).join("_"),c])}function Rb(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var cF="TABS_DQ";function yS(e){return String(e).replace(/"/g,cF)}function CS(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function uF(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const SS=f__namespace.forwardRef(uF);var _b=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return lt(o)==="object"&&!f__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),dF=me.ESC,fF=me.TAB;function mF(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=f__namespace.useRef(!1),s=function(){if(t){var d,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1);}},l=function(){var d;return (d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case dF:s();break;case fF:{var m=!1;i.current||(m=l()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&It(l,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var gF=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Wn(t,a==null?void 0:a.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(a,{ref:Ro(a)?i:void 0}))}),ya={adjustX:1,adjustY:1},Ca=[0,0],hF={topLeft:{points:["bl","tl"],overflow:ya,offset:[0,-4],targetOffset:Ca},top:{points:["bc","tc"],overflow:ya,offset:[0,-4],targetOffset:Ca},topRight:{points:["br","tr"],overflow:ya,offset:[0,-4],targetOffset:Ca},bottomLeft:{points:["tl","bl"],overflow:ya,offset:[0,4],targetOffset:Ca},bottom:{points:["tc","bc"],overflow:ya,offset:[0,4],targetOffset:Ca},bottomRight:{points:["tr","br"],overflow:ya,offset:[0,4],targetOffset:Ca}},vF=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pF(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,m=e.placements,g=m===void 0?hF:m,h=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,w=e.trigger,E=w===void 0?["hover"]:w,x=e.autoFocus,S=e.overlay,$=e.children,I=e.onVisibleChange,O=Je(e,vF),_=f.useState(),M=Y(_,2),k=M[0],A=M[1],L="visible"in e?C:k,R=f.useRef(null),P=f.useRef(null),T=f.useRef(null);f.useImperativeHandle(t,function(){return R.current});var z=function(V){A(V),I==null||I(V);};mF({visible:L,triggerRef:T,onVisibleChange:z,autoFocus:x,overlayRef:P});var F=function(V){var q=e.onOverlayClick;A(!1),q&&q(V);},H=function(){return f.createElement(gF,{ref:P,overlay:S,prefixCls:i,arrow:o})},B=function(){return typeof S=="function"?H:H()},W=function(){var V=e.minOverlayWidthMatchTrigger,q=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?V:!q},G=function(){var V=e.openClassName;return V!==void 0?V:"".concat(i,"-open")},X=f.cloneElement($,{className:K((n=$.props)===null||n===void 0?void 0:n.className,L&&G()),ref:Ro($)?Wn(T,$.ref):void 0}),Q=p;return !Q&&E.indexOf("contextMenu")!==-1&&(Q=["click"]),f.createElement(yu,xe({builtinPlacements:g},O,{prefixCls:i,ref:R,popupClassName:K(b,D({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:E,showAction:v,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:L,stretch:W()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:F,getPopupContainer:h}),X)}const $S=f.forwardRef(pF);var bF=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Sa=void 0;function yF(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,m=e.children,g=e.display,h=e.order,v=e.component,p=v===void 0?"div":v,b=Je(e,bF),y=i&&!g;function C($){l(c,$);}f__namespace.useEffect(function(){return function(){C(null);}},[]);var w=a&&o!==Sa?a(o):m,E;r||(E={opacity:y?0:1,height:y?0:Sa,overflowY:y?"hidden":Sa,order:i?h:Sa,pointerEvents:y?"none":Sa,position:y?"absolute":Sa});var x={};y&&(x["aria-hidden"]=!0);var S=f__namespace.createElement(p,xe({className:K(!r&&n,u),style:U(U({},E),d)},x,b,{ref:t}),w);return i&&(S=f__namespace.createElement(pr,{onResize:function(I){var O=I.offsetWidth;C(O);},disabled:s},S)),S}var qi=f__namespace.forwardRef(yF);qi.displayName="Item";function CF(e){if(typeof MessageChannel>"u")It(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function SF(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],CF(function(){uy.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function _i(e,t){var n=f__namespace.useState(t),r=Y(n,2),o=r[0],a=r[1],i=Tn(function(s){e(function(){a(s);});});return [o,i]}var mc=f.createContext(null),$F=["component"],wF=["className"],xF=["className"],EF=function(t,n){var r=f__namespace.useContext(mc);if(!r){var o=t.component,a=o===void 0?"div":o,i=Je(t,$F);return f__namespace.createElement(a,xe({},i,{ref:n}))}var s=r.className,l=Je(r,wF),c=t.className,u=Je(t,xF);return f__namespace.createElement(mc.Provider,{value:null},f__namespace.createElement(qi,xe({ref:n,className:K(s,c)},l,u)))},wS=f__namespace.forwardRef(EF);wS.displayName="RawItem";var IF=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xS="responsive",ES="invalidate";function OF(e){return "+ ".concat(e.length," ...")}function PF(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,m=e.style,g=e.className,h=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,E=e.onVisibleChange,x=Je(e,IF),S=d==="full",$=SF(),I=_i($,null),O=Y(I,2),_=O[0],M=O[1],k=_||0,A=_i($,new Map),L=Y(A,2),R=L[0],P=L[1],T=_i($,0),z=Y(T,2),F=z[0],H=z[1],B=_i($,0),W=Y(B,2),G=W[0],X=W[1],Q=_i($,0),ee=Y(Q,2),V=ee[0],q=ee[1],re=f.useState(null),ue=Y(re,2),de=ue[0],Z=ue[1],te=f.useState(null),fe=Y(te,2),J=fe[0],le=fe[1],ie=f__namespace.useMemo(function(){return J===null&&S?Number.MAX_SAFE_INTEGER:J||0},[J,_]),se=f.useState(!1),oe=Y(se,2),he=oe[0],be=oe[1],Me="".concat(r,"-item"),ze=Math.max(F,G),qe=h===xS,Oe=a.length&&qe,Te=h===ES,Ve=Oe||typeof h=="number"&&a.length>h,je=f.useMemo(function(){var ge=a;return Oe?_===null&&S?ge=a:ge=a.slice(0,Math.min(a.length,k/u)):typeof h=="number"&&(ge=a.slice(0,h)),ge},[a,u,_,h,Oe]),Ke=f.useMemo(function(){return Oe?a.slice(ie+1):a.slice(je.length)},[a,je,Oe,ie]),Be=f.useCallback(function(ge,ae){var ne;return typeof l=="function"?l(ge):(ne=l&&(ge==null?void 0:ge[l]))!==null&&ne!==void 0?ne:ae},[l]),He=f.useCallback(i||function(ge){return ge},[i]);function Ae(ge,ae,ne){J===ge&&(ae===void 0||ae===de)||(le(ge),ne||(be(gek){Ae(ve-1,ge-Ce-V+G);break}}b&&ut(0)+V>k&&Z(null);}},[k,R,G,V,Be,je]);var nt=he&&!!Ke.length,Ot={};de!==null&&Oe&&(Ot={position:"absolute",left:de,top:0});var St={prefixCls:Me,responsive:Oe,component:w,invalidate:Te},Ee=s?function(ge,ae){var ne=Be(ge,ae);return f__namespace.createElement(mc.Provider,{key:ne,value:U(U({},St),{},{order:ae,item:ge,itemKey:ne,registerSize:Ue,display:ae<=ie})},s(ge,ae))}:function(ge,ae){var ne=Be(ge,ae);return f__namespace.createElement(qi,xe({},St,{order:ae,key:ne,item:ge,renderItem:He,itemKey:ne,registerSize:Ue,display:ae<=ie}))},we,Re={order:nt?ie:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:Ze,display:nt};if(p)p&&(we=f__namespace.createElement(mc.Provider,{value:U(U({},St),Re)},p(Ke)));else {var ye=v||OF;we=f__namespace.createElement(qi,xe({},St,Re),typeof ye=="function"?ye(Ke):ye);}var Fe=f__namespace.createElement(C,xe({className:K(!Te&&r,g),style:m,ref:t},x),je.map(Ee),Ve?we:null,b&&f__namespace.createElement(qi,xe({},St,{responsive:qe,responsiveDisabled:!Oe,order:ie,className:"".concat(Me,"-suffix"),registerSize:mt,display:!0,style:Ot}),b));return qe&&(Fe=f__namespace.createElement(pr,{onResize:rt,disabled:!Oe},Fe)),Fe}var Gr=f__namespace.forwardRef(PF);Gr.displayName="Overflow";Gr.Item=wS;Gr.RESPONSIVE=xS;Gr.INVALIDATE=ES;var IS=f__namespace.createContext(null);function bh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function OS(e){var t=f__namespace.useContext(IS);return bh(t,e)}var MF=["children","locked"],kr=f__namespace.createContext(null);function RF(e,t){var n=U({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function gs(e){var t=e.children,n=e.locked,r=Je(e,MF),o=f__namespace.useContext(kr),a=Ts(function(){return RF(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!_s(i[1],s[1],!0))});return f__namespace.createElement(kr.Provider,{value:a},t)}var _F=[],PS=f__namespace.createContext(null);function Au(){return f__namespace.useContext(PS)}var MS=f__namespace.createContext(_F);function Ci(e){var t=f__namespace.useContext(MS);return f__namespace.useMemo(function(){return e!==void 0?[].concat(Pe(t),[e]):t},[t,e])}var RS=f__namespace.createContext(null),yh=f__namespace.createContext({});function Tb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return !1}function TF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Pe(e.querySelectorAll("*")).filter(function(r){return Tb(r,t)});return Tb(e,t)&&n.unshift(e),n}var dm=me.LEFT,fm=me.RIGHT,mm=me.UP,Bl=me.DOWN,Hl=me.ENTER,_S=me.ESC,Ti=me.HOME,Ni=me.END,Nb=[mm,Bl,dm,fm];function NF(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Hl)return {inlineTrigger:!0};var m=(o={},D(o,mm,l),D(o,Bl,c),o),g=(a={},D(a,dm,n?c:l),D(a,fm,n?l:c),D(a,Bl,u),D(a,Hl,u),a),h=(i={},D(i,mm,l),D(i,Bl,c),D(i,Hl,u),D(i,_S,d),D(i,dm,n?u:d),D(i,fm,n?d:u),i),v={inline:m,horizontal:g,vertical:h,inlineSub:m,horizontalSub:h,verticalSub:h},p=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function kF(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function AF(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function TS(e,t){var n=TF(e,!0);return n.filter(function(r){return t.has(r)})}function kb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=TS(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function LF(e,t,n,r,o,a,i,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){It.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(g){var h=g.which;if([].concat(Nb,[Hl,_S,Ti,Ni]).includes(h)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var L=a();return L.forEach(function(R){var P=document.querySelector("[data-menu-id='".concat(bh(r,R),"']"));P&&(v.add(P),b.set(P,R),p.set(R,P));}),v};y();var C=p.get(t),w=AF(C,v),E=b.get(w),x=NF(e,i(E,!0).length===1,n,h);if(!x&&h!==Ti&&h!==Ni)return;(Nb.includes(h)||[Ti,Ni].includes(h))&&g.preventDefault();var S=function(L){if(L){var R=L,P=L.querySelector("a");P!=null&&P.getAttribute("href")&&(R=P);var T=b.get(L);s(T),m(),u.current=It(function(){d.current===T&&R.focus();});}};if([Ti,Ni].includes(h)||x.sibling||!w){var $;!w||e==="inline"?$=o.current:$=kF(w);var I,O=TS($,v);h===Ti?I=O[0]:h===Ni?I=O[O.length-1]:I=kb($,v,w,x.offset),S(I);}else if(x.inlineTrigger)l(E);else if(x.offset>0)l(E,!0),m(),u.current=It(function(){y();var A=w.getAttribute("aria-controls"),L=document.getElementById(A),R=kb(L,v);S(R);},5);else if(x.offset<0){var _=i(E,!0),M=_[_.length-2],k=p.get(M);l(M,!1),S(k);}}c==null||c(g);}}function zF(e){Promise.resolve().then(e);}var Ch="__RC_UTIL_PATH_SPLIT__",Ab=function(t){return t.join(Ch)},DF=function(t){return t.split(Ch)},gm="rc-menu-more";function jF(){var e=f__namespace.useState({}),t=Y(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),a=f__namespace.useState([]),i=Y(a,2),s=i[0],l=i[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(C,w){var E=Ab(w);o.current.set(E,C),r.current.set(C,E),c.current+=1;var x=c.current;zF(function(){x===c.current&&d();});},[]),g=f.useCallback(function(C,w){var E=Ab(w);o.current.delete(E),r.current.delete(C);},[]),h=f.useCallback(function(C){l(C);},[]),v=f.useCallback(function(C,w){var E=r.current.get(C)||"",x=DF(E);return w&&s.includes(x[0])&&x.unshift(gm),x},[s]),p=f.useCallback(function(C,w){return C.some(function(E){var x=v(E,!0);return x.includes(w)})},[v]),b=function(){var w=Pe(r.current.keys());return s.length&&w.push(gm),w},y=f.useCallback(function(C){var w="".concat(r.current.get(C)).concat(Ch),E=new Set;return Pe(o.current.keys()).forEach(function(x){x.startsWith(w)&&E.add(o.current.get(x));}),E},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function Bi(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return !m.current&&!w&&p(!0),C==null?void 0:C(w)},v?null:f__namespace.createElement(gs,{mode:a,locked:!m.current},f__namespace.createElement(go,xe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var E=w.className,x=w.style;return f__namespace.createElement(Sh,{id:t,className:E,style:x},o)}))}var nB=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rB=["active"],oB=function(t){var n,r=t.style,o=t.className,a=t.title,i=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,m=t.popupClassName,g=t.popupOffset,h=t.popupStyle,v=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,E=Je(t,nB),x=OS(i),S=f__namespace.useContext(kr),$=S.prefixCls,I=S.mode,O=S.openKeys,_=S.disabled,M=S.overflowDisabled,k=S.activeKey,A=S.selectedKeys,L=S.itemIcon,R=S.expandIcon,P=S.onItemClick,T=S.onOpenChange,z=S.onActive,F=f__namespace.useContext(yh),H=F._internalRenderSubMenuItem,B=f__namespace.useContext(RS),W=B.isSubPathKey,G=Ci(),X="".concat($,"-submenu"),Q=_||s,ee=f__namespace.useRef(),V=f__namespace.useRef(),q=u??L,re=d??R,ue=O.includes(i),de=!M&&ue,Z=W(A,i),te=NS(i,Q,C,w),fe=te.active,J=Je(te,rB),le=f__namespace.useState(!1),ie=Y(le,2),se=ie[0],oe=ie[1],he=function(Ze){Q||oe(Ze);},be=function(Ze){he(!0),p==null||p({key:i,domEvent:Ze});},Me=function(Ze){he(!1),b==null||b({key:i,domEvent:Ze});},ze=f__namespace.useMemo(function(){return fe||(I!=="inline"?se||W([k],i):!1)},[I,fe,k,se,i,W]),qe=kS(G.length),Oe=function(Ze){Q||(y==null||y({key:i,domEvent:Ze}),I==="inline"&&T(i,!ue));},Te=Bi(function(Ue){v==null||v(gc(Ue)),P(Ue);}),Ve=function(Ze){I!=="inline"&&T(i,Ze);},je=function(){z(i);},Ke=x&&"".concat(x,"-popup"),Be=f__namespace.createElement("div",xe({role:"menuitem",style:qe,className:"".concat(X,"-title"),tabIndex:Q?null:-1,ref:ee,title:typeof a=="string"?a:null,"data-menu-id":M&&x?null:x,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":Ke,"aria-disabled":Q,onClick:Oe,onFocus:je},J),a,f__namespace.createElement(AS,{icon:I!=="horizontal"?re:void 0,props:U(U({},t),{},{isOpen:de,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(X,"-arrow")}))),He=f__namespace.useRef(I);if(I!=="inline"&&G.length>1?He.current="vertical":He.current=I,!M){var Ae=He.current;Be=f__namespace.createElement(eB,{mode:Ae,prefixCls:X,visible:!l&&de&&I!=="inline",popupClassName:m,popupOffset:g,popupStyle:h,popup:f__namespace.createElement(gs,{mode:Ae==="horizontal"?"vertical":Ae},f__namespace.createElement(Sh,{id:Ke,ref:V},c)),disabled:Q,onVisibleChange:Ve},Be);}var rt=f__namespace.createElement(Gr.Item,xe({role:"none"},E,{component:"li",style:r,className:K(X,"".concat(X,"-").concat(I),o,(n={},D(n,"".concat(X,"-open"),de),D(n,"".concat(X,"-active"),ze),D(n,"".concat(X,"-selected"),Z),D(n,"".concat(X,"-disabled"),Q),n)),onMouseEnter:be,onMouseLeave:Me}),Be,!M&&f__namespace.createElement(tB,{id:Ke,open:de,keyPath:G},c));return H&&(rt=H(rt,t,{selected:Z,active:ze,open:de,disabled:Q})),f__namespace.createElement(gs,{onItemClick:Te,mode:I==="horizontal"?"vertical":I,itemIcon:q,expandIcon:re},rt)};function Lu(e){var t=e.eventKey,n=e.children,r=Ci(t),o=$h(n,r),a=Au();f__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=f__namespace.createElement(oB,e,o),f__namespace.createElement(MS.Provider,{value:r},i)}var aB=["className","title","eventKey","children"],iB=["children"],sB=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=Je(t,aB),i=f__namespace.useContext(kr),s=i.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",xe({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:K(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function zu(e){var t=e.children,n=Je(e,iB),r=Ci(n.eventKey),o=$h(t,r),a=Au();return a?o:f__namespace.createElement(sB,An(n,["warnKey"]),o)}function wh(e){var t=e.className,n=e.style,r=f__namespace.useContext(kr),o=r.prefixCls,a=Au();return a?null:f__namespace.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),t),style:n})}var lB=["label","children","key","type"];function hm(e){return (e||[]).map(function(t,n){if(t&<(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=Je(r,lB),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?f__namespace.createElement(zu,xe({key:c},l,{title:o}),hm(a)):f__namespace.createElement(Lu,xe({key:c},l,{title:o}),hm(a)):s==="divider"?f__namespace.createElement(wh,xe({key:c},l)):f__namespace.createElement(Vs,xe({key:c},l),o)}return null}).filter(function(t){return t})}function cB(e,t,n){var r=e;return t&&(r=hm(t)),$h(r,n)}var uB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],$a=[],dB=f__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,m=o.items,g=o.children,h=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,w=o.disabledOverflow,E=o.subMenuOpenDelay,x=E===void 0?.1:E,S=o.subMenuCloseDelay,$=S===void 0?.1:S,I=o.forceSubMenuRender,O=o.defaultOpenKeys,_=o.openKeys,M=o.activeKey,k=o.defaultActiveFirst,A=o.selectable,L=A===void 0?!0:A,R=o.multiple,P=R===void 0?!1:R,T=o.defaultSelectedKeys,z=o.selectedKeys,F=o.onSelect,H=o.onDeselect,B=o.inlineIndent,W=B===void 0?24:B,G=o.motion,X=o.defaultMotions,Q=o.triggerSubMenuAction,ee=Q===void 0?"hover":Q,V=o.builtinPlacements,q=o.itemIcon,re=o.expandIcon,ue=o.overflowedIndicator,de=ue===void 0?"...":ue,Z=o.overflowedIndicatorPopupClassName,te=o.getPopupContainer,fe=o.onClick,J=o.onOpenChange,le=o.onKeyDown;o.openAnimation,o.openTransitionName;var ie=o._internalRenderMenuItem,se=o._internalRenderSubMenuItem,oe=Je(o,uB),he=f__namespace.useMemo(function(){return cB(g,m,$a)},[g,m]),be=f__namespace.useState(!1),Me=Y(be,2),ze=Me[0],qe=Me[1],Oe=f__namespace.useRef(),Te=BF(v),Ve=h==="rtl",je=Wt(O,{value:_,postState:function(ot){return ot||$a}}),Ke=Y(je,2),Be=Ke[0],He=Ke[1],Ae=function(ot){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yt(){He(ot),J==null||J(ot);}gt?uy.flushSync(yt):yt();},rt=f__namespace.useState(Be),Ue=Y(rt,2),Ze=Ue[0],mt=Ue[1],ut=f__namespace.useRef(!1),nt=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Ot=Y(nt,2),St=Ot[0],Ee=Ot[1],we=St==="inline",Re=f__namespace.useState(St),ye=Y(Re,2),Fe=ye[0],ge=ye[1],ae=f__namespace.useState(Ee),ne=Y(ae,2),ve=ne[0],Ce=ne[1];f__namespace.useEffect(function(){ge(St),Ce(Ee),ut.current&&(we?He(Ze):Ae($a));},[St,Ee]);var _e=f__namespace.useState(0),Ye=Y(_e,2),Qe=Ye[0],$t=Ye[1],ht=Qe>=he.length-1||Fe!=="horizontal"||w;f__namespace.useEffect(function(){we&&mt(Be);},[Be]),f__namespace.useEffect(function(){return ut.current=!0,function(){ut.current=!1;}},[]);var wt=jF(),bt=wt.registerPath,dt=wt.unregisterPath,ke=wt.refreshOverflowKeys,Ie=wt.isSubPathKey,Se=wt.getKeyPath,$e=wt.getKeys,Le=wt.getSubPathKeys,vt=f__namespace.useMemo(function(){return {registerPath:bt,unregisterPath:dt}},[bt,dt]),at=f__namespace.useMemo(function(){return {isSubPathKey:Ie}},[Ie]);f__namespace.useEffect(function(){ke(ht?$a:he.slice(Qe+1).map(function(De){return De.key}));},[Qe,ht]);var Jt=Wt(M||k&&((n=he[0])===null||n===void 0?void 0:n.key),{value:M}),dn=Y(Jt,2),en=dn[0],cn=dn[1],pn=Bi(function(De){cn(De);}),Ln=Bi(function(){cn(void 0);});f.useImperativeHandle(t,function(){return {list:Oe.current,focus:function(ot){var gt,yt=en??((gt=he.find(function(Dn){return !Dn.props.disabled}))===null||gt===void 0?void 0:gt.key);if(yt){var Tt,Yt,zn;(Tt=Oe.current)===null||Tt===void 0||(Yt=Tt.querySelector("li[data-menu-id='".concat(bh(Te,yt),"']")))===null||Yt===void 0||(zn=Yt.focus)===null||zn===void 0||zn.call(Yt,ot);}}}});var Zr=Wt(T||[],{value:z,postState:function(ot){return Array.isArray(ot)?ot:ot==null?$a:[ot]}}),Xn=Y(Zr,2),cr=Xn[0],zr=Xn[1],Vn=function(ot){if(L){var gt=ot.key,yt=cr.includes(gt),Tt;P?yt?Tt=cr.filter(function(zn){return zn!==gt}):Tt=[].concat(Pe(cr),[gt]):Tt=[gt],zr(Tt);var Yt=U(U({},ot),{},{selectedKeys:Tt});yt?H==null||H(Yt):F==null||F(Yt);}!P&&Be.length&&Fe!=="inline"&&Ae($a);},$r=Bi(function(De){fe==null||fe(gc(De)),Vn(De);}),wr=Bi(function(De,ot){var gt=Be.filter(function(Tt){return Tt!==De});if(ot)gt.push(De);else if(Fe!=="inline"){var yt=Le(De);gt=gt.filter(function(Tt){return !yt.has(Tt)});}_s(Be,gt,!0)||Ae(gt,!0);}),Dr=function(ot,gt){var yt=gt??!Be.includes(ot);wr(ot,yt);},qn=LF(Fe,en,Ve,Te,Oe,$e,Se,cn,Dr,le);f__namespace.useEffect(function(){qe(!0);},[]);var Jr=f__namespace.useMemo(function(){return {_internalRenderMenuItem:ie,_internalRenderSubMenuItem:se}},[ie,se]),Yn=Fe!=="horizontal"||w?he:he.map(function(De,ot){return f__namespace.createElement(gs,{key:De.key,overflowDisabled:ot>Qe},De)}),ct=f__namespace.createElement(Gr,xe({id:v,ref:Oe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Vs,className:K(i,"".concat(i,"-root"),"".concat(i,"-").concat(Fe),c,(r={},D(r,"".concat(i,"-inline-collapsed"),ve),D(r,"".concat(i,"-rtl"),Ve),r),s),dir:h,style:l,role:"menu",tabIndex:d,data:Yn,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var gt=ot.length,yt=gt?he.slice(-gt):null;return f__namespace.createElement(Lu,{eventKey:gm,title:de,disabled:ht,internalPopupClose:gt===0,popupClassName:Z},yt)},maxCount:Fe!=="horizontal"||w?Gr.INVALIDATE:Gr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){$t(ot);},onKeyDown:qn},oe));return f__namespace.createElement(yh.Provider,{value:Jr},f__namespace.createElement(IS.Provider,{value:Te},f__namespace.createElement(gs,{prefixCls:i,rootClassName:s,mode:Fe,openKeys:Be,rtl:Ve,disabled:C,motion:ze?G:null,defaultMotions:ze?X:null,activeKey:en,onActive:pn,onInactive:Ln,selectedKeys:cr,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:$,forceSubMenuRender:I,builtinPlacements:V,triggerSubMenuAction:ee,getPopupContainer:te,itemIcon:q,expandIcon:re,onItemClick:$r,onOpenChange:wr},f__namespace.createElement(RS.Provider,{value:at},ct),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(PS.Provider,{value:vt},he)))))}),Si=dB;Si.Item=Vs;Si.SubMenu=Lu;Si.ItemGroup=zu;Si.Divider=wh;function fB(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,m=e.editable,g=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=f.useState(!1),w=Y(C,2),E=w[0],x=w[1],S=f.useState(null),$=Y(S,2),I=$[0],O=$[1],_="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),k=I!==null?"".concat(_,"-").concat(I):null,A=a==null?void 0:a.dropdownAriaLabel;function L(B,W){B.preventDefault(),B.stopPropagation(),m.onEdit("remove",{key:W,event:B});}var R=f__namespace.createElement(Si,{onClick:function(W){var G=W.key,X=W.domEvent;p(G,X),x(!1);},prefixCls:"".concat(M,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[I],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(B){var W=B.closable,G=B.disabled,X=B.closeIcon,Q=B.key,ee=B.label,V=CS(W,X,m,G);return f__namespace.createElement(Vs,{key:Q,id:"".concat(_,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:G},f__namespace.createElement("span",null,ee),V&&f__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),L(re,Q);}},X||m.removeIcon||"×"))}));function P(B){for(var W=o.filter(function(V){return !V.disabled}),G=W.findIndex(function(V){return V.key===I})||0,X=W.length,Q=0;QIe?"left":"right"});}),A=Y(k,2),L=A[0],R=A[1],P=Ib(0,function(ke,Ie){!M&&C&&C({direction:ke>Ie?"top":"bottom"});}),T=Y(P,2),z=T[0],F=T[1],H=f.useState([0,0]),B=Y(H,2),W=B[0],G=B[1],X=f.useState([0,0]),Q=Y(X,2),ee=Q[0],V=Q[1],q=f.useState([0,0]),re=Y(q,2),ue=re[0],de=re[1],Z=f.useState([0,0]),te=Y(Z,2),fe=te[0],J=te[1],le=sF(new Map),ie=Y(le,2),se=ie[0],oe=ie[1],he=oF(a,se,ee[0]),be=wl(W,M),Me=wl(ee,M),ze=wl(ue,M),qe=wl(fe,M),Oe=beKe?Ke:ke}var He=f.useRef(),Ae=f.useState(),rt=Y(Ae,2),Ue=rt[0],Ze=rt[1];function mt(){Ze(Date.now());}function ut(){window.clearTimeout(He.current);}iF($,function(ke,Ie){function Se($e,Le){$e(function(vt){var at=Be(vt+Le);return at});}return Oe?(M?Se(R,ke):Se(F,Ie),ut(),mt(),!0):!1}),f.useEffect(function(){return ut(),Ue&&(He.current=window.setTimeout(function(){Ze(0);},100)),ut},[Ue]);var nt=lF(he,Te,M?L:z,Me,ze,qe,U(U({},e),{},{tabs:a})),Ot=Y(nt,2),St=Ot[0],Ee=Ot[1],we=Tn(function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ie=he.get(ke)||{width:0,height:0,left:0,right:0,top:0};if(M){var Se=L;d?Ie.rightL+Te&&(Se=Ie.right+Ie.width-Te):Ie.left<-L?Se=-Ie.left:Ie.left+Ie.width>-L+Te&&(Se=-(Ie.left+Ie.width-Te)),F(0),R(Be(Se));}else {var $e=z;Ie.top<-z?$e=-Ie.top:Ie.top+Ie.height>-z+Te&&($e=-(Ie.top+Ie.height-Te)),R(0),F(Be($e));}}),Re={};v==="top"||v==="bottom"?Re[d?"marginRight":"marginLeft"]=p:Re.marginTop=p;var ye=a.map(function(ke,Ie){var Se=ke.key;return f__namespace.createElement(gB,{id:l,prefixCls:o,key:Se,tab:ke,style:Ie===0?void 0:Re,closable:ke.closable,editable:g,active:Se===u,renderWrapper:b,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(Le){y(Se,Le);},onFocus:function(){we(Se),mt(),$.current&&(d||($.current.scrollLeft=0),$.current.scrollTop=0);}})}),Fe=function(){return oe(function(){var Ie,Se=new Map,$e=(Ie=I.current)===null||Ie===void 0?void 0:Ie.getBoundingClientRect();return a.forEach(function(Le){var vt,at=Le.key,Jt=(vt=I.current)===null||vt===void 0?void 0:vt.querySelector('[data-node-key="'.concat(yS(at),'"]'));if(Jt){var dn=hB(Jt,$e),en=Y(dn,4),cn=en[0],pn=en[1],Ln=en[2],Zr=en[3];Se.set(at,{width:cn,height:pn,left:Ln,top:Zr});}}),Se})};f.useEffect(function(){Fe();},[a.map(function(ke){return ke.key}).join("_")]);var ge=bS(function(){var ke=wa(E),Ie=wa(x),Se=wa(S);G([ke[0]-Ie[0]-Se[0],ke[1]-Ie[1]-Se[1]]);var $e=wa(_);de($e);var Le=wa(O);J(Le);var vt=wa(I);V([vt[0]-$e[0],vt[1]-$e[1]]),Fe();}),ae=a.slice(0,St),ne=a.slice(Ee+1),ve=[].concat(Pe(ae),Pe(ne)),Ce=he.get(u),_e=rF({activeTabOffset:Ce,horizontal:M,rtl:d,indicatorSize:w}),Ye=_e.style;f.useEffect(function(){we();},[u,je,Ke,Rb(Ce),Rb(he),M]),f.useEffect(function(){ge();},[d]);var Qe=!!ve.length,$t="".concat(o,"-nav-wrap"),ht,wt,bt,dt;return M?d?(wt=L>0,ht=L!==Ke):(ht=L<0,wt=L!==je):(bt=z<0,dt=z!==je),f__namespace.createElement(pr,{onResize:ge},f__namespace.createElement("div",{ref:aa(t,E),role:"tablist",className:K("".concat(o,"-nav"),i),style:s,onKeyDown:function(){mt();}},f__namespace.createElement(_b,{ref:x,position:"left",extra:m,prefixCls:o}),f__namespace.createElement(pr,{onResize:ge},f__namespace.createElement("div",{className:K($t,(n={},D(n,"".concat($t,"-ping-left"),ht),D(n,"".concat($t,"-ping-right"),wt),D(n,"".concat($t,"-ping-top"),bt),D(n,"".concat($t,"-ping-bottom"),dt),n)),ref:$},f__namespace.createElement(pr,{onResize:ge},f__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(z,"px)"),transition:Ue?"none":void 0}},ye,f__namespace.createElement(SS,{ref:_,prefixCls:o,locale:h,editable:g,style:U(U({},ye.length===0?void 0:Re),{},{visibility:Qe?"hidden":null})}),f__namespace.createElement("div",{className:K("".concat(o,"-ink-bar"),D({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ye}))))),f__namespace.createElement(mB,xe({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:O,prefixCls:o,tabs:ve,className:!Qe&&Ve,tabMoving:!!Ue})),f__namespace.createElement(_b,{ref:S,position:"right",extra:m,prefixCls:o})))}const zb=f__namespace.forwardRef(vB);var pB=["renderTabBar"],bB=["label","key"];function yB(e){var t=e.renderTabBar,n=Je(e,pB),r=f__namespace.useContext(ku),o=r.tabs;if(t){var a=U(U({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=Je(i,bB);return f__namespace.createElement(pS,xe({tab:s,key:l,tabKey:l},c))})});return t(a,zb)}return f__namespace.createElement(zb,n)}function CB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=U({inkBar:!0},lt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var SB=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Db=0;function $B(e,t){var n,r=e.id,o=e.prefixCls,a=o===void 0?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,m=e.animated,g=e.tabPosition,h=g===void 0?"top":g,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,w=e.moreTransitionName,E=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,$=e.onTabClick,I=e.onTabScroll,O=e.getPopupContainer,_=e.popupClassName,M=e.indicatorSize,k=Je(e,SB),A=f__namespace.useMemo(function(){return (s||[]).filter(function(J){return J&<(J)==="object"&&"key"in J})},[s]),L=l==="rtl",R=CB(m),P=f.useState(!1),T=Y(P,2),z=T[0],F=T[1];f.useEffect(function(){F(bu());},[]);var H=Wt(function(){var J;return (J=A[0])===null||J===void 0?void 0:J.key},{value:c,defaultValue:u}),B=Y(H,2),W=B[0],G=B[1],X=f.useState(function(){return A.findIndex(function(J){return J.key===W})}),Q=Y(X,2),ee=Q[0],V=Q[1];f.useEffect(function(){var J=A.findIndex(function(ie){return ie.key===W});if(J===-1){var le;J=Math.max(0,Math.min(ee,A.length-1)),G((le=A[J])===null||le===void 0?void 0:le.key);}V(J);},[A.map(function(J){return J.key}).join("_"),W,ee]);var q=Wt(null,{value:r}),re=Y(q,2),ue=re[0],de=re[1];f.useEffect(function(){r||(de("rc-tabs-".concat(Db)),Db+=1);},[]);function Z(J,le){$==null||$(J,le);var ie=J!==W;G(J),ie&&(S==null||S(J));}var te={id:ue,activeKey:W,animated:R,tabPosition:h,rtl:L,mobile:z},fe=U(U({},te),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:w,tabBarGutter:v,onTabClick:Z,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:O,popupClassName:_,indicatorSize:M});return f__namespace.createElement(ku.Provider,{value:{tabs:A,prefixCls:a}},f__namespace.createElement("div",xe({ref:t,id:r,className:K(a,"".concat(a,"-").concat(h),(n={},D(n,"".concat(a,"-mobile"),z),D(n,"".concat(a,"-editable"),d),D(n,"".concat(a,"-rtl"),L),n),i)},k),f__namespace.createElement(yB,xe({},fe,{renderTabBar:x})),f__namespace.createElement(nF,xe({destroyInactiveTabPane:E},te,{animated:R}))))}var wB=f__namespace.forwardRef($B);const xB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function EB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},xB),{motionName:Cu(e,"switch")})),n}var IB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function PB(e,t){if(e)return e;const n=ar(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=IB(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return OB(n)}const MB=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Po(e,"slide-up"),Po(e,"slide-down")]]},RB=MB,_B=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},TB=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Qo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},NB=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},kB=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},AB=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Jo(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},LB=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},zB=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},Jo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),AB(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},DB=Ft("Tabs",e=>{const t=pt(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return [kB(t),LB(t),NB(t),TB(t),_B(t),zB(t),RB(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),jB=()=>null,FB=jB;var BB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:m,style:g,indicatorSize:h}=e,v=BB(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=f__namespace.createElement(ph,null)}=v,{direction:y,tabs:C,getPrefixCls:w,getPopupContainer:E}=f__namespace.useContext(et),x=w("tabs",p),[S,$]=DB(x);let I;t==="editable-card"&&(I={onEdit:(L,R)=>{let{key:P,event:T}=R;a==null||a(L==="add"?T:P,L);},removeIcon:f__namespace.createElement(_u,null),addIcon:l||f__namespace.createElement(eF,null),showAdd:i!==!0});const O=w(),_=PB(d,u),M=EB(x,m),k=Un(o),A=Object.assign(Object.assign({},C==null?void 0:C.style),g);return S(f__namespace.createElement(wB,Object.assign({direction:y,getPopupContainer:E,moreTransitionName:`${O}-slide-up`},v,{items:_,className:K({[`${x}-${k}`]:k,[`${x}-card`]:["card","editable-card"].includes(t),[`${x}-editable-card`]:t==="editable-card",[`${x}-centered`]:s},C==null?void 0:C.className,n,r,$),popupClassName:K(c,$),style:A,editable:I,moreIcon:b,prefixCls:x,animated:M,indicatorSize:h??(C==null?void 0:C.indicatorSize)})))};zS.TabPane=FB;const HB=zS;function WB(e){return function(n){return f__namespace.createElement(Hg,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f__namespace.createElement(e,Object.assign({},n)))}}function xh(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,h]=Wt(!1,{value:a.open}),{getPrefixCls:v}=f__namespace.useContext(et),p=v(t||"select",i);f__namespace.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(w=>{const E=w[0].target;u(E.offsetHeight+8),m(E.offsetWidth);}),C=setInterval(()=>{var w;const E=n?`.${n(p)}`:`.${p}-dropdown`,x=(w=l.current)===null||w===void 0?void 0:w.querySelector(E);x&&(clearInterval(C),y.observe(x));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b)))}return WB(o)}const VB=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},Lt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`${i*100}%`},"&::after":{width:`${100-i*100}%`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`${100-i*100}%`},"&::after":{width:`${i*100}%`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},KB=Ft("Divider",e=>{const t=pt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [VB(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var GB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=f__namespace.useContext(et),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:m,style:g}=e,h=GB(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=KB(v),y=i.length>0?`-${i}`:i,C=!!u,w=i==="left"&&s!=null,E=i==="right"&&s!=null,x=K(v,r==null?void 0:r.className,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text${y}`]:C,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:E},l,c),S=f__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},w&&{marginLeft:S}),E&&{marginRight:S});return p(f__namespace.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r==null?void 0:r.style),g)},h,{role:"separator"}),u&&a!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:$},u)))},XB=UB;var qB=["b"],YB=["v"],Bd=function(t){return Math.round(Number(t||0))},QB=function(t){if(t&<(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Je(n,qB);return U(U({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},hc=function(e){_o(n,e);var t=To(n);function n(r){return Cn(this,n),t.call(this,QB(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Bd(o.s*100),i=Bd(o.b*100),s=Bd(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();lt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=Je(a,YB);return U(U({},i),{},{b:o.v})}}]),n}(qt),ZB="rc-color-picker",Eo=function(t){return t instanceof hc?t:new hc(t)},JB=Eo("#1677ff"),DS=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,m=u.height,g=d/2,h=m/2,v=(n.x+g)/l,p=1-(n.y+h)/c,b=a.toHsb(),y=v,C=(n.x+g)/l*360;if(i)switch(i){case"hue":return Eo(U(U({},b),{},{h:C<=0?0:C}));case"alpha":return Eo(U(U({},b),{},{a:y<=0?0:y}))}return Eo({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},jS=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,s=a.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,m=u/2,g=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:g.h/360*i-d,y:-m/3};case"alpha":return {x:g.a/1*i-d,y:-m/3}}return {x:g.s*i-d,y:(1-g.b)*s-m}}},Eh=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:K(s,o),style:a,onClick:i},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function eH(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return {pageX:t.pageX-n,pageY:t.pageY-r}}function FS(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=Y(u,2),m=d[0],g=d[1],h=f.useRef(null),v=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var E=s==null?void 0:s(r);E&&g(E);}},[l,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null;}},[]);var b=function(x){var S=eH(x),$=S.pageX,I=S.pageY,O=r.current.getBoundingClientRect(),_=O.x,M=O.y,k=O.width,A=O.height,L=n.current.getBoundingClientRect(),R=L.width,P=L.height,T=R/2,z=P/2,F=Math.max(0,Math.min($-_,k))-T,H=Math.max(0,Math.min(I-M,A))-z,B={x:F,y:o==="x"?m.y:H};if(R===0&&P===0||R!==P)return !1;g(B),a==null||a(B);},y=function(x){x.preventDefault(),b(x);},C=function(x){x.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null,i==null||i();},w=function(x){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),!c&&(b(x),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),h.current=y,v.current=C);};return [m,w]}var BS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return f.createElement("div",{className:K("".concat(a,"-handler"),D({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},HS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:U({position:"relative"},r)},n)},WS=f.forwardRef(function(e,t){var n=e.children,r=e.offset;return f.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),tH=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=f.useRef(),l=f.useRef(),c=f.useRef(n),u=FS({color:n,containerRef:s,targetRef:l,calculate:function(v){return jS(v,l,n)},onDragChange:function(v){var p=DS({offset:v,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=Y(u,2),m=d[0],g=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},f.createElement(HS,{prefixCls:o},f.createElement(WS,{offset:m,ref:l},f.createElement(BS,{color:n.toRgbString(),prefixCls:o})),f.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},nH=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=Eo(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},jb=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,m=f.useRef(),g=f.useRef(),h=f.useRef(i),v=FS({color:i,targetRef:g,containerRef:m,calculate:function(w){return jS(w,g,i,a)},onDragChange:function(w){var E=DS({offset:w,targetRef:g,containerRef:m,color:i,type:a});h.current=E,l(E);},onDragChangeComplete:function(){c==null||c(h.current,a);},direction:"x",disabledDrag:u}),p=Y(v,2),b=p[0],y=p[1];return f.createElement("div",{ref:m,className:K("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},f.createElement(HS,{prefixCls:d},f.createElement(WS,{offset:b,ref:g},f.createElement(BS,{size:"small",color:s,prefixCls:d})),f.createElement(nH,{colors:n,direction:r,type:a,prefixCls:d})))};function Fb(e){return e!==void 0}var rH=function(t,n){var r=n.defaultValue,o=n.value,a=f.useState(function(){var c;return Fb(o)?c=o:Fb(r)?c=r:c=t,Eo(c)}),i=Y(a,2),s=i[0],l=i[1];return f.useEffect(function(){o&&l(Eo(o));},[o]),[s,l]},oH=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const aH=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?ZB:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,g=e.disabled,h=g===void 0?!1:g,v=rH(JB,{value:n,defaultValue:r}),p=Y(v,2),b=p[0],y=p[1],C=f.useMemo(function(){var $=Eo(b.toRgbString());return $.setAlpha(1),$.toRgbString()},[b]),w=K("".concat(a,"-panel"),l,D({},"".concat(a,"-panel-disabled"),h)),E={prefixCls:a,onChangeComplete:s,disabled:h},x=function(I,O){n||y(I),i==null||i(I,O);},S=f.createElement(f.Fragment,null,f.createElement(tH,xe({color:b,onChange:x},E)),f.createElement("div",{className:"".concat(a,"-slider-container")},f.createElement("div",{className:K("".concat(a,"-slider-group"),D({},"".concat(a,"-slider-group-disabled-alpha"),m))},f.createElement(jb,xe({gradientColors:oH,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return x(I,"hue")}},E)),!m&&f.createElement(jb,xe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(I){return x(I,"alpha")}},E))),f.createElement(Eh,{color:b.toRgbString(),prefixCls:a})));return f.createElement("div",{className:w,style:c,ref:t},typeof u=="function"?u(S):S)}),VS=f.createContext({}),KS=f.createContext({}),{Provider:iH}=VS,{Provider:sH}=KS,Wl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",lH=(e,t)=>e?Wl(e,t):"";let Bb=function(){function e(t){Cn(this,e),this.metaColor=new hc(t),t||this.metaColor.setAlpha(0);}return Sn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return lH(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const cH="ant-color-picker",kn=e=>e instanceof Bb?e:new Bb(e),Vl=e=>Math.round(Number(e||0)),vc=e=>Vl(e.toHsb().a*100),Hd=(e,t)=>{const n=e.toHsb();return n.a=t||1,kn(n)},uH=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const s=kn(i);o==null||o(s);}};return f.createElement("div",{className:`${t}-clear`,onClick:a})},GS=uH;var Du=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,i=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a&&a(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:K(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function dH(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=f.useMemo(function(){if(lt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=f.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:f.createElement(Du,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var US=f__namespace.createContext(null);function fH(){return f__namespace.useContext(US)}function mH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=Y(t,2),r=n[0],o=n[1],a=f__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};f__namespace.useEffect(function(){return i},[]);var s=function(c,u){i(),a.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,i]}function XS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f__namespace.useRef(null),n=f__namespace.useRef(null);f__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function gH(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var hH=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,vH=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,pH="".concat(hH," ").concat(vH).split(/[\s\n]+/),bH="aria-",yH="data-";function Hb(e,t){return e.indexOf(t)===0}function Qa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Hb(o,bH))||n.data&&Hb(o,yH)||n.attr&&pH.includes(o))&&(r[o]=e[o]);}),r}var CH=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,m=t.activeDescendantId,g=t.value,h=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,w=t.onCompositionEnd,E=t.open,x=t.attrs,S=i||f__namespace.createElement("input",null),$=S,I=$.ref,O=$.props,_=O.onKeyDown,M=O.onChange,k=O.onMouseDown,A=O.onCompositionStart,L=O.onCompositionEnd,R=O.style;return "maxLength"in S.props,S=f__namespace.cloneElement(S,U(U(U({type:"search"},O),{},{id:a,ref:Wn(n,I),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:K("".concat(o,"-selection-search-input"),(r=S)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":E||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":E?m:void 0},x),{},{value:d?g:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:U(U({},R),{},{opacity:d?null:0}),onKeyDown:function(T){v(T),_&&_(T);},onMouseDown:function(T){p(T),k&&k(T);},onChange:function(T){b(T),M&&M(T);},onCompositionStart:function(T){C(T),A&&A(T);},onCompositionEnd:function(T){w(T),L&&L(T);},onPaste:y})),S},Ih=f__namespace.forwardRef(CH);Ih.displayName="Input";function qS(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var SH=typeof window<"u"&&window.document&&window.document.documentElement,$H=SH;function wH(e){return e!=null}function xH(e){return !e&&e!==0}function Wb(e){return ["string","number"].includes(lt(e))}function YS(e){var t=void 0;return e&&(Wb(e.title)?t=e.title.toString():Wb(e.label)&&(t=e.label.toString())),t}function EH(e,t){$H?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function IH(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Vb=function(t){t.preventDefault(),t.stopPropagation();},OH=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,m=t.showSearch,g=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,E=w===void 0?function(Z){return "+ ".concat(Z.length," ...")}:w,x=t.tagRender,S=t.onToggleOpen,$=t.onRemove,I=t.onInputChange,O=t.onInputPaste,_=t.onInputKeyDown,M=t.onInputMouseDown,k=t.onInputCompositionStart,A=t.onInputCompositionEnd,L=f__namespace.useRef(null),R=f.useState(0),P=Y(R,2),T=P[0],z=P[1],F=f.useState(!1),H=Y(F,2),B=H[0],W=H[1],G="".concat(r,"-selection"),X=a||d==="multiple"&&s===!1||d==="tags"?i:"",Q=d==="tags"||d==="multiple"&&s===!1||m&&(a||B);EH(function(){z(L.current.scrollWidth);},[X]);function ee(Z,te,fe,J,le){return f__namespace.createElement("span",{className:K("".concat(G,"-item"),D({},"".concat(G,"-item-disabled"),fe)),title:YS(Z)},f__namespace.createElement("span",{className:"".concat(G,"-item-content")},te),J&&f__namespace.createElement(Du,{className:"".concat(G,"-item-remove"),onMouseDown:Vb,onClick:le,customizeIcon:b},"×"))}function V(Z,te,fe,J,le){var ie=function(oe){Vb(oe),S(!a);};return f__namespace.createElement("span",{onMouseDown:ie},x({label:te,value:Z,disabled:fe,closable:J,onClose:le}))}function q(Z){var te=Z.disabled,fe=Z.label,J=Z.value,le=!u&&!te,ie=fe;if(typeof C=="number"&&(typeof fe=="string"||typeof fe=="number")){var se=String(ie);se.length>C&&(ie="".concat(se.slice(0,C),"..."));}var oe=function(be){be&&be.stopPropagation(),$(Z);};return typeof x=="function"?V(J,ie,te,le,oe):ee(Z,ie,te,le,oe)}function re(Z){var te=typeof E=="function"?E(Z):E;return ee({title:te},te,!1)}var ue=f__namespace.createElement("div",{className:"".concat(G,"-search"),style:{width:T},onFocus:function(){W(!0);},onBlur:function(){W(!1);}},f__namespace.createElement(Ih,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:g,autoComplete:h,editable:Q,activeDescendantId:v,value:X,onKeyDown:_,onMouseDown:M,onChange:I,onPaste:O,onCompositionStart:k,onCompositionEnd:A,tabIndex:p,attrs:Qa(t,!0)}),f__namespace.createElement("span",{ref:L,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},X," ")),de=f__namespace.createElement(Gr,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:q,renderRest:re,suffix:ue,itemKey:IH,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,de,!o.length&&!X&&f__namespace.createElement("span",{className:"".concat(G,"-placeholder")},c))},PH=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,m=t.values,g=t.placeholder,h=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,E=t.onInputChange,x=t.onInputPaste,S=t.onInputCompositionStart,$=t.onInputCompositionEnd,I=t.title,O=f__namespace.useState(!1),_=Y(O,2),M=_[0],k=_[1],A=u==="combobox",L=A||v,R=m[0],P=p||"";A&&b&&!M&&(P=b),f__namespace.useEffect(function(){A&&k(!1);},[A,b]);var T=u!=="combobox"&&!d&&!v?!1:!!P,z=I===void 0?YS(R):I,F=function(){if(R)return null;var B=T?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},g)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(Ih,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:L,activeDescendantId:c,value:P,onKeyDown:C,onMouseDown:w,onChange:function(B){k(!0),E(B);},onPaste:x,onCompositionStart:S,onCompositionEnd:$,tabIndex:h,attrs:Qa(t,!0),maxLength:A?y:void 0})),!A&&R?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:T?{visibility:"hidden"}:void 0},R.label):null,F())};function MH(e){return ![me.ESC,me.SHIFT,me.BACKSPACE,me.TAB,me.WIN_KEY,me.ALT,me.META,me.WIN_KEY_RIGHT,me.CTRL,me.SEMICOLON,me.EQUALS,me.CAPS_LOCK,me.CONTEXT_MENU,me.F1,me.F2,me.F3,me.F4,me.F5,me.F6,me.F7,me.F8,me.F9,me.F10,me.F11,me.F12].includes(e)}var RH=function(t,n){var r=f.useRef(null),o=f.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,h=t.onInputKeyDown,v=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=XS(0),b=Y(p,2),y=b[0],C=b[1],w=function(P){var T=P.which;(T===me.UP||T===me.DOWN)&&P.preventDefault(),h&&h(P),T===me.ENTER&&s==="tags"&&!o.current&&!i&&(m==null||m(P.target.value)),MH(T)&&g(!0);},E=function(){C(!0);},x=f.useRef(null),S=function(P){d(P,!0,o.current)!==!1&&g(!0);},$=function(){o.current=!0;},I=function(P){o.current=!1,s!=="combobox"&&S(P.target.value);},O=function(P){var T=P.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var z=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");T=T.replace(z,x.current);}x.current=null,S(T);},_=function(P){var T=P.clipboardData,z=T.getData("text");x.current=z;},M=function(P){var T=P.target;if(T!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},k=function(P){var T=y();P.target!==r.current&&!T&&s!=="combobox"&&P.preventDefault(),(s!=="combobox"&&(!l||!T)||!i)&&(i&&u!==!1&&d("",!0,!1),g());},A={inputRef:r,onInputKeyDown:w,onInputMouseDown:E,onInputChange:O,onInputPaste:_,onInputCompositionStart:$,onInputCompositionEnd:I},L=s==="multiple"||s==="tags"?f__namespace.createElement(OH,xe({},t,A)):f__namespace.createElement(PH,xe({},t,A));return f__namespace.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:M,onMouseDown:k},L)},QS=f__namespace.forwardRef(RH);QS.displayName="Selector";var _H=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],TH=function(t){var n=t===!0?0:1;return {bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},NH=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,g=t.placement,h=t.builtinPlacements,v=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,E=t.onPopupVisibleChange,x=t.onPopupMouseEnter,S=Je(t,_H),$="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var O=f__namespace.useMemo(function(){return h||TH(v)},[h,v]),_=s?"".concat($,"-").concat(s):l,M=typeof v=="number",k=f__namespace.useMemo(function(){return M?null:v===!1?"minWidth":"width"},[v,M]),A=c;M&&(A=U(U({},A),{},{width:v}));var L=f__namespace.useRef(null);return f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return L.current}}}),f__namespace.createElement(yu,xe({},S,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:$,popupTransitionName:_,popup:f__namespace.createElement("div",{ref:L,onMouseEnter:x},I),stretch:k,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:K(u,D({},"".concat($,"-empty"),C)),popupStyle:A,getTriggerDOMNode:w,onPopupVisibleChange:E}),a)},ZS=f__namespace.forwardRef(NH);ZS.displayName="SelectTrigger";function Kb(e,t){var n=e.key,r;return "value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function JS(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function kH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=JS(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,m){d.forEach(function(g){if(m||!(l in g)){var h=g[s];o.push({key:Kb(g,o.length),groupOption:m,data:g,label:g[i],value:h});}else {var v=g[c];v===void 0&&r&&(v=g.label),o.push({key:Kb(g,o.length),group:!0,data:g,label:v}),u(g[l],!0);}});}return u(e,!1),o}function vm(e){var t=U({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return bn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function AH(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=L1(i),l=s[0],c=s.slice(1);if(!l)return [a];var u=a.split(l);return n=n||u.length>1,u.reduce(function(d,m){return [].concat(Pe(d),Pe(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var LH=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],zH=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function pm(e){return e==="tags"||e==="multiple"}var DH=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,h=e.notFoundContent,v=h===void 0?"Not Found":h,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,E=e.getRawInputElement,x=e.open,S=e.defaultOpen,$=e.onDropdownVisibleChange,I=e.activeValue,O=e.onActiveValueChange,_=e.activeDescendantId,M=e.searchValue,k=e.autoClearSearchValue,A=e.onSearch,L=e.onSearchSplit,R=e.tokenSeparators,P=e.allowClear,T=e.suffixIcon,z=e.clearIcon,F=e.OptionList,H=e.animation,B=e.transitionName,W=e.dropdownStyle,G=e.dropdownClassName,X=e.dropdownMatchSelectWidth,Q=e.dropdownRender,ee=e.dropdownAlign,V=e.placement,q=e.builtinPlacements,re=e.getPopupContainer,ue=e.showAction,de=ue===void 0?[]:ue,Z=e.onFocus,te=e.onBlur,fe=e.onKeyUp,J=e.onKeyDown,le=e.onMouseDown,ie=Je(e,LH),se=pm(b),oe=(s!==void 0?s:se)||b==="combobox",he=U({},ie);zH.forEach(function(ct){delete he[ct];}),u==null||u.forEach(function(ct){delete he[ct];});var be=f__namespace.useState(!1),Me=Y(be,2),ze=Me[0],qe=Me[1];f__namespace.useEffect(function(){qe(bu());},[]);var Oe=f__namespace.useRef(null),Te=f__namespace.useRef(null),Ve=f__namespace.useRef(null),je=f__namespace.useRef(null),Ke=f__namespace.useRef(null),Be=f__namespace.useRef(!1),He=mH(),Ae=Y(He,3),rt=Ae[0],Ue=Ae[1],Ze=Ae[2];f__namespace.useImperativeHandle(t,function(){var ct,De;return {focus:(ct=je.current)===null||ct===void 0?void 0:ct.focus,blur:(De=je.current)===null||De===void 0?void 0:De.blur,scrollTo:function(gt){var yt;return (yt=Ke.current)===null||yt===void 0?void 0:yt.scrollTo(gt)}}});var mt=f__namespace.useMemo(function(){var ct;if(b!=="combobox")return M;var De=(ct=d[0])===null||ct===void 0?void 0:ct.value;return typeof De=="string"||typeof De=="number"?String(De):""},[M,b,d]),ut=b==="combobox"&&typeof w=="function"&&w()||null,nt=typeof E=="function"&&E(),Ot=aa(Te,nt==null||(n=nt.props)===null||n===void 0?void 0:n.ref),St=f__namespace.useState(!1),Ee=Y(St,2),we=Ee[0],Re=Ee[1];Ht(function(){Re(!0);},[]);var ye=Wt(!1,{defaultValue:S,value:x}),Fe=Y(ye,2),ge=Fe[0],ae=Fe[1],ne=we?ge:!1,ve=!v&&g;(y||ve&&ne&&b==="combobox")&&(ne=!1);var Ce=ve?!1:ne,_e=f__namespace.useCallback(function(ct){var De=ct!==void 0?ct:!ne;y||(ae(De),ne!==De&&($==null||$(De)));},[y,ne,ae,$]),Ye=f__namespace.useMemo(function(){return (R||[]).some(function(ct){return [` `,`\r `].includes(ct)})},[R]),Qe=function(De,ot,gt){var yt=!0,Tt=De;O==null||O(null);var Yt=gt?null:AH(De,R);return b!=="combobox"&&Yt&&(Tt="",L==null||L(Yt),_e(!1),yt=!1),A&&mt!==Tt&&A(Tt,{source:ot?"typing":"effect"}),yt},$t=function(De){!De||!De.trim()||A(De,{source:"submit"});};f__namespace.useEffect(function(){!ne&&!se&&b!=="combobox"&&Qe("",!1,!1);},[ne]),f__namespace.useEffect(function(){ge&&y&&ae(!1),y&&!Be.current&&Ue(!1);},[y]);var ht=XS(),wt=Y(ht,2),bt=wt[0],dt=wt[1],ke=function(De){var ot=bt(),gt=De.which;if(gt===me.ENTER&&(b!=="combobox"&&De.preventDefault(),ne||_e(!0)),dt(!!mt),gt===me.BACKSPACE&&!ot&&se&&!mt&&d.length){for(var yt=Pe(d),Tt=null,Yt=yt.length-1;Yt>=0;Yt-=1){var zn=yt[Yt];if(!zn.disabled){yt.splice(Yt,1),Tt=zn;break}}Tt&&m(yt,{type:"remove",values:[Tt]});}for(var Dn=arguments.length,jr=new Array(Dn>1?Dn-1:0),ur=1;ur1?ot-1:0),yt=1;yt1?Yt-1:0),Dn=1;Dn0,W=f__namespace.useMemo(function(){if(a===0||F===0)return 0;var de=a/F;return de*H},[a,F,H]),G=function(Z){Z.stopPropagation(),Z.preventDefault();},X=f__namespace.useRef({top:W,dragging:b,pageY:E,startTop:I});X.current={top:W,dragging:b,pageY:E,startTop:I};var Q=function(Z){y(!0),x(Gb(Z,u)),O(X.current.top),s(),Z.stopPropagation(),Z.preventDefault();};f__namespace.useEffect(function(){var de=function(J){J.preventDefault();},Z=M.current,te=k.current;return Z.addEventListener("touchstart",de),te.addEventListener("touchstart",Q),function(){Z.removeEventListener("touchstart",de),te.removeEventListener("touchstart",Q);}},[]);var ee=f__namespace.useRef();ee.current=F;var V=f__namespace.useRef();V.current=H,f__namespace.useEffect(function(){if(b){var de,Z=function(J){var le=X.current,ie=le.dragging,se=le.pageY,oe=le.startTop;if(It.cancel(de),ie){var he=Gb(J,u)-se,be=oe;!_&&u?be-=he:be+=he;var Me=ee.current,ze=V.current,qe=ze?be/ze:0,Oe=Math.ceil(qe*Me);Oe=Math.max(Oe,0),Oe=Math.min(Oe,Me),de=It(function(){c(Oe,u);});}},te=function(){y(!1),l();};return window.addEventListener("mousemove",Z),window.addEventListener("touchmove",Z),window.addEventListener("mouseup",te),window.addEventListener("touchend",te),function(){window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",te),window.removeEventListener("touchend",te),It.cancel(de);}}},[b]),f__namespace.useEffect(function(){z();},[a]),f__namespace.useImperativeHandle(t,function(){return {delayHidden:z}});var q="".concat(r,"-scrollbar"),re={position:"absolute",visibility:R&&B?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(re.height=8,re.left=0,re.right=0,re.bottom=0,ue.height="100%",ue.width=d,_?ue.left=W:ue.right=W):(re.width=8,re.top=0,re.bottom=0,_?re.right=0:re.left=0,ue.width="100%",ue.height=d,ue.top=W),f__namespace.createElement("div",{ref:M,className:K(q,(n={},D(n,"".concat(q,"-horizontal"),u),D(n,"".concat(q,"-vertical"),!u),D(n,"".concat(q,"-visible"),R),n)),style:U(U({},re),g),onMouseDown:G,onMouseMove:z},f__namespace.createElement("div",{ref:k,className:K("".concat(q,"-thumb"),D({},"".concat(q,"-thumb-moving"),b)),style:U(U({},ue),h),onMouseDown:Q}))});function jH(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function FH(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map(function(l,c){var u=t+c,d=a(l,u,{style:{width:r}}),m=s(l);return f__namespace.createElement(jH,{key:m,setRef:function(h){return o(l,h)}},d)})}var BH=function(){function e(){Cn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return Sn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function HH(e,t,n){var r=f__namespace.useState(0),o=Y(r,2),a=o[0],i=o[1],s=f.useRef(new Map),l=f.useRef(new BH),c=f.useRef();function u(){It.cancel(c.current);}function d(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=Gi(p),C=y.offsetHeight;l.current.get(b)!==C&&l.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};g?h():c.current=It(h);}function m(g,h){var v=e(g),p=s.current.get(v);h?(s.current.set(v,h),d()):s.current.delete(v),!p!=!h&&(h?t==null||t(g):n==null||n(g));}return f.useEffect(function(){return u},[]),[m,d,l.current,a]}var WH=10;function VH(e,t,n,r,o,a,i,s){var l=f__namespace.useRef(),c=f__namespace.useState(null),u=Y(c,2),d=u[0],m=u[1];return Ht(function(){if(d&&d.times=0;A-=1){var L=o(t[A]),R=n.get(L);if(R===void 0){y=!0;break}if(k-=R,k<=0)break}switch(E){case"top":w=S-p;break;case"bottom":w=$-b+p;break;default:{var P=e.current.scrollTop,T=P+b;ST&&(C="bottom");}}w!==null&&i(w),w!==d.lastTop&&(y=!0);}y&&m(function(z){return U(U({},z),{},{times:z.times+1,targetAlign:C,lastTop:w})});}},[d,e.current]),function(g){if(g==null){s();return}if(It.cancel(l.current),typeof g=="number")i(g);else if(g&<(g)==="object"){var h,v=g.align;"index"in g?h=g.index:h=t.findIndex(function(y){return o(y)===g.key});var p=g.offset,b=p===void 0?0:p;m({times:0,index:h,offset:b,originAlign:v});}}}function KH(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r"u"?"undefined":lt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const t$=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var a=f.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i<0&&a.current.top||i>0&&a.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function UH(e,t,n,r,o){var a=f.useRef(0),i=f.useRef(null),s=f.useRef(null),l=f.useRef(!1),c=t$(t,n);function u(p,b){It.cancel(i.current),a.current+=b,s.current=b,!c(b)&&(Xb||p.preventDefault(),i.current=It(function(){var y=l.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),Xb||p.preventDefault();}var m=f.useRef(null),g=f.useRef(null);function h(p){if(e){It.cancel(g.current),g.current=It(function(){m.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,w=b,E=y;(m.current==="sx"||!m.current&&C&&y&&!b)&&(w=y,E=0,m.current="sx");var x=Math.abs(w),S=Math.abs(E);m.current===null&&(m.current=r&&x>S?"x":"y"),m.current==="y"?u(p,E):d(p,w);}}function v(p){e&&(l.current=p.detail===s.current);}return [h,v]}var XH=14/15;function qH(e,t,n){var r=f.useRef(!1),o=f.useRef(0),a=f.useRef(null),i=f.useRef(null),s,l=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),h=o.current-g;o.current=g,n(h)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){h*=XH,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(i.current);},16);}},c=function(){r.current=!1,s();},u=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c));};s=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c));},Ht(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(i.current);}},[e]);}var YH=20;function qb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,YH),n=Math.min(n,e/2),Math.floor(n)}function QH(e,t,n,r){var o=f__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=Y(o,2),i=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,m=i.get(u),g=i.get(d);if(m===void 0||g===void 0)for(var h=e.length,v=s.length;va||!!v),_=h==="rtl",M=K(r,D({},"".concat(r,"-rtl"),_),o),k=u||JH,A=f.useRef(),L=f.useRef(),R=f.useState(0),P=Y(R,2),T=P[0],z=P[1],F=f.useState(0),H=Y(F,2),B=H[0],W=H[1],G=f.useState(!1),X=Y(G,2),Q=X[0],ee=X[1],V=function(){ee(!0);},q=function(){ee(!1);},re=f__namespace.useCallback(function(Se){return typeof m=="function"?m(Se):Se==null?void 0:Se[m]},[m]),ue={getKey:re};function de(Se){z(function($e){var Le;typeof Se=="function"?Le=Se($e):Le=Se;var vt=Ot(Le);return A.current.scrollTop=vt,vt});}var Z=f.useRef({start:0,end:k.length}),te=f.useRef(),fe=GH(k,re),J=Y(fe,1),le=J[0];te.current=le;var ie=HH(re,null,null),se=Y(ie,4),oe=se[0],he=se[1],be=se[2],Me=se[3],ze=f__namespace.useMemo(function(){if(!I)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!O){var Se;return {scrollHeight:((Se=L.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var $e=0,Le,vt,at,Jt=k.length,dn=0;dn=T&&Le===void 0&&(Le=dn,vt=$e),Ln>T+a&&at===void 0&&(at=dn),$e=Ln;}return Le===void 0&&(Le=0,vt=0,at=Math.ceil(a/i)),at===void 0&&(at=k.length-1),at=Math.min(at+1,k.length-1),{scrollHeight:$e,start:Le,end:at,offset:vt}},[O,I,T,k,Me,a]),qe=ze.scrollHeight,Oe=ze.start,Te=ze.end,Ve=ze.offset;Z.current.start=Oe,Z.current.end=Te;var je=f__namespace.useState({width:0,height:a}),Ke=Y(je,2),Be=Ke[0],He=Ke[1],Ae=function($e){He($e);},rt=f.useRef(),Ue=f.useRef(),Ze=f__namespace.useMemo(function(){return qb(Be.width,v)},[Be.width,v]),mt=f__namespace.useMemo(function(){return qb(Be.height,qe)},[Be.height,qe]),ut=qe-a,nt=f.useRef(ut);nt.current=ut;function Ot(Se){var $e=Se;return Number.isNaN(nt.current)||($e=Math.min($e,nt.current)),$e=Math.max($e,0),$e}var St=T<=0,Ee=T>=ut,we=t$(St,Ee),Re=function(){return {x:_?-B:B,y:T}},ye=f.useRef(Re()),Fe=Tn(function(){if(C){var Se=Re();(ye.current.x!==Se.x||ye.current.y!==Se.y)&&(C(Se),ye.current=Se);}});function ge(Se,$e){var Le=Se;$e?(uy.flushSync(function(){W(Le);}),Fe()):de(Le);}function ae(Se){var $e=Se.currentTarget.scrollTop;$e!==T&&de($e),y==null||y(Se),Fe();}var ne=function($e){var Le=$e,vt=v-Be.width;return Le=Math.max(Le,0),Le=Math.min(Le,vt),Le},ve=Tn(function(Se,$e){$e?(uy.flushSync(function(){W(function(Le){var vt=Le+(_?-Se:Se);return ne(vt)});}),Fe()):de(function(Le){var vt=Le+Se;return vt});}),Ce=UH(I,St,Ee,!!v,ve),_e=Y(Ce,2),Ye=_e[0],Qe=_e[1];qH(I,A,function(Se,$e){return we(Se,$e)?!1:(Ye({preventDefault:function(){},deltaY:Se}),!0)}),Ht(function(){function Se(Le){I&&Le.preventDefault();}var $e=A.current;return $e.addEventListener("wheel",Ye),$e.addEventListener("DOMMouseScroll",Qe),$e.addEventListener("MozMousePixelScroll",Se),function(){$e.removeEventListener("wheel",Ye),$e.removeEventListener("DOMMouseScroll",Qe),$e.removeEventListener("MozMousePixelScroll",Se);}},[I]),Ht(function(){v&&W(function(Se){return ne(Se)});},[Be.width,v]);var $t=function(){var $e,Le;($e=rt.current)===null||$e===void 0||$e.delayHidden(),(Le=Ue.current)===null||Le===void 0||Le.delayHidden();},ht=VH(A,k,be,i,re,function(){return he(!0)},de,$t);f__namespace.useImperativeHandle(t,function(){return {getScrollInfo:Re,scrollTo:function($e){function Le(vt){return vt&<(vt)==="object"&&("left"in vt||"top"in vt)}Le($e)?($e.left!==void 0&&W(ne($e.left)),ht($e.top)):ht($e);}}}),Ht(function(){if(w){var Se=k.slice(Oe,Te+1);w(Se,k);}},[Oe,Te,k]);var wt=QH(k,re,be,i),bt=x==null?void 0:x({start:Oe,end:Te,virtual:O,offsetX:B,offsetY:Ve,rtl:_,getSize:wt}),dt=FH(k,Oe,Te,v,oe,d,ue),ke=null;a&&(ke=U(D({},l?"height":"maxHeight",a),e9),I&&(ke.overflowY="hidden",v&&(ke.overflowX="hidden"),Q&&(ke.pointerEvents="none")));var Ie={};return _&&(Ie.dir="rtl"),f__namespace.createElement("div",xe({style:U(U({},c),{},{position:"relative"}),className:M},Ie,$),f__namespace.createElement(pr,{onResize:Ae},f__namespace.createElement(b,{className:"".concat(r,"-holder"),style:ke,ref:A,onScroll:ae,onMouseEnter:$t},f__namespace.createElement(e$,{prefixCls:r,height:qe,offsetX:B,offsetY:Ve,scrollWidth:v,onInnerResize:he,ref:L,innerProps:E,rtl:_,extra:bt},dt))),O&&qe>a&&f__namespace.createElement(Ub,{ref:rt,prefixCls:r,scrollOffset:T,scrollRange:qe,rtl:_,onScroll:ge,onStartMove:V,onStopMove:q,spinSize:mt,containerSize:Be.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),O&&v&&f__namespace.createElement(Ub,{ref:Ue,prefixCls:r,scrollOffset:B,scrollRange:v,rtl:_,onScroll:ge,onStartMove:V,onStopMove:q,spinSize:Ze,containerSize:Be.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var n$=f__namespace.forwardRef(t9);n$.displayName="List";var r$=f__namespace.createContext(null);function n9(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var r9=["disabled","title","children","style","className"];function Yb(e){return typeof e=="string"||typeof e=="number"}var o9=function(t,n){var r=fH(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,g=f__namespace.useContext(r$),h=g.flattenOptions,v=g.onActiveValue,p=g.defaultActiveFirstOption,b=g.onSelect,y=g.menuItemSelectedIcon,C=g.rawValues,w=g.fieldNames,E=g.virtual,x=g.direction,S=g.listHeight,$=g.listItemHeight,I=g.optionRender,O="".concat(o,"-item"),_=Ts(function(){return h},[i,h],function(V,q){return q[0]&&V[1]!==q[1]}),M=f__namespace.useRef(null),k=function(q){q.preventDefault();},A=function(q){M.current&&M.current.scrollTo(typeof q=="number"?{index:q}:q);},L=function(q){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=_.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;z(q);var ue={source:re?"keyboard":"mouse"},de=_[q];if(!de){v(null,-1,ue);return}v(de.value,q,ue);};f.useEffect(function(){F(p!==!1?L(0):-1);},[_.length,c]);var H=f__namespace.useCallback(function(V){return C.has(V)&&l!=="combobox"},[l,Pe(C).toString(),C.size]);f.useEffect(function(){var V=setTimeout(function(){if(!s&&i&&C.size===1){var re=Array.from(C)[0],ue=_.findIndex(function(de){var Z=de.data;return Z.value===re});ue!==-1&&(F(ue),A(ue));}});if(i){var q;(q=M.current)===null||q===void 0||q.scrollTo(void 0);}return function(){return clearTimeout(V)}},[i,c]);var B=function(q){q!==void 0&&b(q,{selected:!C.has(q)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(q){var re=q.which,ue=q.ctrlKey;switch(re){case me.N:case me.P:case me.UP:case me.DOWN:{var de=0;if(re===me.UP?de=-1:re===me.DOWN?de=1:n9()&&ue&&(re===me.N?de=1:re===me.P&&(de=-1)),de!==0){var Z=L(T+de,de);A(Z),F(Z,!0);}break}case me.ENTER:{var te=_[T];te&&!te.data.disabled?B(te.value):B(void 0),i&&q.preventDefault();break}case me.ESC:u(!1),i&&q.stopPropagation();}},onKeyUp:function(){},scrollTo:function(q){A(q);}}}),_.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(O,"-empty"),onMouseDown:k},d);var W=Object.keys(w).map(function(V){return w[V]}),G=function(q){return q.label};function X(V,q){var re=V.group;return {role:re?"presentation":"option",id:"".concat(a,"_list_").concat(q)}}var Q=function(q){var re=_[q];if(!re)return null;var ue=re.data||{},de=ue.value,Z=re.group,te=Qa(ue,!0),fe=G(re);return re?f__namespace.createElement("div",xe({"aria-label":typeof fe=="string"&&!Z?fe:null},te,{key:q},X(re,q),{"aria-selected":H(de)}),de):null},ee={role:"listbox",id:"".concat(a,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,E&&f__namespace.createElement("div",xe({},ee,{style:{height:0,width:0,overflow:"hidden"}}),Q(T-1),Q(T),Q(T+1)),f__namespace.createElement(n$,{itemKey:"key",ref:M,data:_,height:S,itemHeight:$,fullHeight:!1,onMouseDown:k,onScroll:m,virtual:E,direction:x,innerProps:E?null:ee},function(V,q){var re,ue=V.group,de=V.groupOption,Z=V.data,te=V.label,fe=V.value,J=Z.key;if(ue){var le,ie=(le=Z.title)!==null&&le!==void 0?le:Yb(te)?te.toString():void 0;return f__namespace.createElement("div",{className:K(O,"".concat(O,"-group")),title:ie},te!==void 0?te:J)}var se=Z.disabled,oe=Z.title;Z.children;var he=Z.style,be=Z.className,Me=Je(Z,r9),ze=An(Me,W),qe=H(fe),Oe="".concat(O,"-option"),Te=K(O,Oe,be,(re={},D(re,"".concat(Oe,"-grouped"),de),D(re,"".concat(Oe,"-active"),T===q&&!se),D(re,"".concat(Oe,"-disabled"),se),D(re,"".concat(Oe,"-selected"),qe),re)),Ve=G(V),je=!y||typeof y=="function"||qe,Ke=typeof Ve=="number"?Ve:Ve||fe,Be=Yb(Ke)?Ke.toString():void 0;return oe!==void 0&&(Be=oe),f__namespace.createElement("div",xe({},Qa(ze),E?{}:X(V,q),{"aria-selected":qe,className:Te,title:Be,onMouseMove:function(){T===q||se||F(q);},onClick:function(){se||B(fe);},style:he}),f__namespace.createElement("div",{className:"".concat(Oe,"-content")},typeof I=="function"?I(V,{index:q}):Ke),f__namespace.isValidElement(y)||qe,je&&f__namespace.createElement(Du,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:fe,disabled:se,isSelected:qe}},qe?"✓":null))}))},o$=f__namespace.forwardRef(o9);o$.displayName="OptionList";const a9=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var m;return U(U({},d),{},{label:(m=i.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=f__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function Wd(e,t){return qS(e).join("").toUpperCase().includes(t)}const i9=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(g,h){return o?Wd(h[o],u):h[a]?Wd(h[i!=="children"?i:"label"],u):Wd(h[s],u)},m=c?function(g){return vm(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var h=d(n,m(g));if(h)l.push(g);else {var v=g[a].filter(function(p){return d(n,m(p))});v.length&&l.push(U(U({},g),{},D({},a,v)));}return}d(n,m(g))&&l.push(g);}),l},[e,r,o,n,t])};var Qb=0,s9=Fn();function l9(){var e;return s9?(e=Qb,Qb+=1):e="TEST_OR_SSR",e}function c9(e){var t=f__namespace.useState(),n=Y(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(l9()));},[]),e||r}var u9=["children","value"],d9=["children"];function f9(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Je(r,u9);return U({key:n,value:a!==void 0?a:n,children:o},i)}function a$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ar(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=Je(s,d9);return t||!a?f9(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:a$(l)})}).filter(function(n){return n})}function m9(e,t,n,r,o){return f__namespace.useMemo(function(){var a=e,i=!e;i&&(a=a$(t));var s=new Map,l=new Map,c=function(m,g,h){h&&typeof h=="string"&&m.set(g[h],g);};function u(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g2&&arguments[2]!==void 0?arguments[2]:{},_e=Ce.source,Ye=_e===void 0?"keyboard":_e;Ot(ve),i&&r==="combobox"&&ne!==null&&Ye==="keyboard"&&Ze(String(ne));},[i,r]),we=function(ve,Ce,_e){var Ye=function(){var $e,Le=Me(ve);return [T?{label:Le==null?void 0:Le[X.label],value:ve,key:($e=Le==null?void 0:Le.key)!==null&&$e!==void 0?$e:ve}:ve,vm(Le)]};if(Ce&&g){var Qe=Ye(),$t=Y(Qe,2),ht=$t[0],wt=$t[1];g(ht,wt);}else if(!Ce&&h&&_e!=="clear"){var bt=Ye(),dt=Y(bt,2),ke=dt[0],Ie=dt[1];h(ke,Ie);}},Re=Zb(function(ne,ve){var Ce,_e=B?ve.selected:!0;_e?Ce=B?[].concat(Pe(be),[ne]):[ne]:Ce=be.filter(function(Ye){return Ye.value!==ne}),He(Ce),we(ne,_e),r==="combobox"?Ze(""):(!pm||m)&&(q(""),Ze(""));}),ye=function(ve,Ce){He(ve);var _e=Ce.type,Ye=Ce.values;(_e==="remove"||_e==="clear")&&Ye.forEach(function(Qe){we(Qe.value,!1,_e);});},Fe=function(ve,Ce){if(q(ve),Ze(null),Ce.source==="submit"){var _e=(ve||"").trim();if(_e){var Ye=Array.from(new Set([].concat(Pe(qe),[_e])));He(Ye),we(_e,!0),q("");}return}Ce.source!=="blur"&&(r==="combobox"&&He(ve),u==null||u(ve));},ge=function(ve){var Ce=ve;r!=="tags"&&(Ce=ve.map(function(Ye){var Qe=de.get(Ye);return Qe==null?void 0:Qe.value}).filter(function(Ye){return Ye!==void 0}));var _e=Array.from(new Set([].concat(Pe(qe),Pe(Ce))));He(_e),_e.forEach(function(Ye){we(Ye,!0);});},ae=f__namespace.useMemo(function(){var ne=O!==!1&&p!==!1;return U(U({},re),{},{flattenOptions:Be,onActiveValue:Ee,defaultActiveFirstOption:St,onSelect:Re,menuItemSelectedIcon:I,rawValues:qe,fieldNames:X,virtual:ne,direction:_,listHeight:k,listItemHeight:L,childrenAsData:W,optionRender:x})},[re,Be,Ee,St,Re,I,qe,X,O,p,k,L,W,x]);return f__namespace.createElement(r$.Provider,{value:ae},f__namespace.createElement(DH,xe({},F,{id:H,prefixCls:a,ref:t,omitDomProps:h9,mode:r,displayValues:ze,onDisplayValuesChange:ye,direction:_,searchValue:V,onSearch:Fe,autoClearSearchValue:m,onSearchSplit:ge,dropdownMatchSelectWidth:p,OptionList:o$,emptyOptions:!Be.length,activeValue:Ue,activeDescendantId:"".concat(H,"_list_").concat(nt)})))}),Mh=p9;Mh.Option=Ph;Mh.OptGroup=Oh;const b9=()=>{const[,e]=Gn(),n=new qt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},f__namespace.createElement("g",{transform:"translate(24 31.67)"},f__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},y9=b9,C9=()=>{const[,e]=Gn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=f.useMemo(()=>({borderColor:new qt(t).onBackground(o).toHexShortString(),shadowColor:new qt(n).onBackground(o).toHexShortString(),contentColor:new qt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f__namespace.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:a},f__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},S9=C9,$9=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return {[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},w9=Ft("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=pt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [$9(r)]});var x9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=i$,description:a,children:i,imageStyle:s,style:l}=e,c=x9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(et),g=u("empty",r),[h,v]=w9(g),[p]=pi("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=f__namespace.createElement("img",{alt:y,src:o}):C=o,h(f__namespace.createElement("div",Object.assign({className:K(v,g,m==null?void 0:m.className,{[`${g}-normal`]:o===s$,[`${g}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),l)},c),f__namespace.createElement("div",{className:`${g}-image`,style:s},C),b&&f__namespace.createElement("div",{className:`${g}-description`},b),i&&f__namespace.createElement("div",{className:`${g}-footer`},i)))};Rh.PRESENTED_IMAGE_DEFAULT=i$;Rh.PRESENTED_IMAGE_SIMPLE=s$;const ki=Rh,E9=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(et),r=n("empty");switch(t){case"Table":case"List":return f.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(ki,null)}},l$=E9,I9=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},O9=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${o}${s}bottomLeft, ${a}${s}bottomLeft `]:{animationName:qg},[` ${o}${s}topLeft, ${a}${s}topLeft, ${o}${s}topRight, ${a}${s}topRight `]:{animationName:Qg},[`${i}${s}bottomLeft`]:{animationName:Yg},[` ${i}${s}topLeft, ${i}${s}topRight `]:{animationName:Zg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},I9(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Qo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Po(e,"slide-up"),Po(e,"slide-down"),lc(e,"move-up"),lc(e,"move-down")]},P9=O9,xa=2,c$=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function Vd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=c$(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${i-xa}px ${xa*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${xa}px 0`,lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:xa,marginBottom:xa,lineHeight:`${a-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:xa*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ia()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const M9=e=>{const{componentCls:t}=e,n=pt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=c$(e);return [Vd(e),Vd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},Vd(r,"lg")]},R9=M9;function Kd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Lt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function _9(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Kd(e),Kd(pt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},Kd(pt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const T9=e=>{const{componentCls:t,selectorBg:n}=e;return {position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Gd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},N9=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},k9=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},T9(e)),N9(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Qo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Qo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ia()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},A9=e=>{const{componentCls:t}=e;return [{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},k9(e),_9(e),R9(e),P9(e),{[`${t}-rtl`]:{direction:"rtl"}},Gd(t,pt(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),Gd(`${t}-status-error`,pt(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),Gd(`${t}-status-warning`,pt(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Ru(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},L9=Ft("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=pt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [A9(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:m,controlHeightSM:g,colorBgContainerDisabled:h,colorTextDisabled:v}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:m,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent"}}),z9=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function D9(e,t){return e||z9(t)}var j9={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"};const F9=j9;var B9=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:F9}))};const H9=f__namespace.forwardRef(B9);var W9={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"};const V9=W9;var K9=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:V9}))};const _h=f__namespace.forwardRef(K9);var G9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const U9=G9;var X9=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:U9}))};const Th=f__namespace.forwardRef(X9);function q9(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:m}=e;const g=n??f__namespace.createElement(_h,null),h=y=>t===null&&!s&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=h(t);else if(a)v=h(f__namespace.createElement(nh,{spin:!0}));else {const y=`${l}-suffix`;v=C=>{let{open:w,showSearch:E}=C;return h(w&&E?f__namespace.createElement(Th,{className:y}):f__namespace.createElement(lh,{className:y}))};}let p=null;r!==void 0?p=r:i?p=f__namespace.createElement(H9,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(_u,null),{clearIcon:g,suffixIcon:v,itemIcon:p,removeIcon:b}}function Y9(e,t){return t!==void 0?t:e!==null}var Q9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:m,listItemHeight:g=24,size:h,disabled:v,notFoundContent:p,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:w,direction:E,style:x,allowClear:S}=e,$=Q9(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:O,renderEmpty:_,direction:M,virtual:k,popupMatchSelectWidth:A,popupOverflow:L,select:R}=f__namespace.useContext(et),P=O("select",o),T=O(),z=E??M,{compactSize:F,compactItemClassnames:H}=yi(P,z),[B,W]=L9(P),G=f__namespace.useMemo(()=>{const{mode:Ve}=$;if(Ve!=="combobox")return Ve===u$?"combobox":Ve},[$.mode]),X=G==="multiple"||G==="tags",Q=Y9($.suffixIcon,$.showArrow),ee=(n=w??C)!==null&&n!==void 0?n:A,{status:V,hasFeedback:q,isFormItemInput:re,feedbackIcon:ue}=f__namespace.useContext(yr),de=Hs(V,b);let Z;p!==void 0?Z=p:G==="combobox"?Z=null:Z=(_==null?void 0:_("Select"))||f__namespace.createElement(l$,{componentName:"Select"});const{suffixIcon:te,itemIcon:fe,removeIcon:J,clearIcon:le}=q9(Object.assign(Object.assign({},$),{multiple:X,hasFeedback:q,feedbackIcon:ue,showSuffixIcon:Q,prefixCls:P,showArrow:$.showArrow,componentName:"Select"})),ie=S===!0?{clearIcon:le}:S,se=An($,["suffixIcon","itemIcon"]),oe=K(c||u,{[`${P}-dropdown-${z}`]:z==="rtl"},s,W),he=Un(Ve=>{var je;return (je=h??F)!==null&&je!==void 0?je:Ve}),be=f__namespace.useContext(Yr),Me=v??be,ze=K({[`${P}-lg`]:he==="large",[`${P}-sm`]:he==="small",[`${P}-rtl`]:z==="rtl",[`${P}-borderless`]:!a,[`${P}-in-form-item`]:re},Nr(P,de,q),H,R==null?void 0:R.className,i,s,W),qe=f__namespace.useMemo(()=>m!==void 0?m:z==="rtl"?"bottomRight":"bottomLeft",[m,z]),Oe=D9(y,L),[Te]=As("SelectLike",(r=$.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return B(f__namespace.createElement(Mh,Object.assign({ref:t,virtual:k,showSearch:R==null?void 0:R.showSearch},se,{style:Object.assign(Object.assign({},R==null?void 0:R.style),x),dropdownMatchSelectWidth:ee,builtinPlacements:Oe,transitionName:Cu(T,"slide-up",$.transitionName),listHeight:d,listItemHeight:g,mode:G,prefixCls:P,placement:qe,direction:z,suffixIcon:te,menuItemSelectedIcon:fe,removeIcon:J,allowClear:ie,notFoundContent:Z,className:ze,getPopupContainer:l||I,dropdownClassName:oe,disabled:Me,dropdownStyle:Object.assign(Object.assign({},$==null?void 0:$.dropdownStyle),{zIndex:Te})})))},$i=f__namespace.forwardRef(Z9),J9=xh($i);$i.SECRET_COMBOBOX_MODE_DO_NOT_USE=u$;$i.Option=Ph;$i.OptGroup=Oh;$i._InternalPanelDoNotUseOrYouWillBeFired=J9;const Ks=$i;var ao;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(ao||(ao={}));const e7=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(um,{className:K(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},Yo=e7,t7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=f.useState(kn(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=kn(c);n||i(u),r==null||r(u);};return f.createElement(Yo,{value:vc(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},n7=t7,r7=e=>{const{getPrefixCls:t,direction:n}=f.useContext(et),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=vh(i),c=K(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=f.useContext(yr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(yr.Provider,{value:d},e.children)))},o7=r7;function d$(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function a7(e){return !!(e.prefix||e.suffix||e.allowClear)}var i7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:g,className:h,style:v,styles:p,rootClassName:b,onChange:y,classNames:C}=e,w=i7(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:E,direction:x,input:S}=f.useContext(et),$=E("input",r),I=f.useRef(null),[O,_]=vh($),{compactSize:M,compactItemClassnames:k}=yi($,x),A=Un(V=>{var q;return (q=i??M)!==null&&q!==void 0?q:V}),L=f.useContext(Yr),R=s??L,{status:P,hasFeedback:T,feedbackIcon:z}=f.useContext(yr),F=Hs(P,a),H=a7(e)||!!T;f.useRef(H);const B=d$(I,!0),W=V=>{B(),l==null||l(V);},G=V=>{B(),c==null||c(V);},X=V=>{B(),y==null||y(V);},Q=(T||u)&&f.createElement(f.Fragment,null,u,T&&z);let ee;return typeof d=="object"&&(d!=null&&d.clearIcon)?ee=d:d&&(ee={clearIcon:f.createElement(_h,null)}),O(f.createElement(I8,Object.assign({ref:Wn(t,I),prefixCls:$,autoComplete:S==null?void 0:S.autoComplete},w,{disabled:R,onBlur:W,onFocus:G,style:Object.assign(Object.assign({},S==null?void 0:S.style),v),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:Q,allowClear:ee,className:K(h,b,k,S==null?void 0:S.className),onChange:X,addonAfter:m&&f.createElement(Xa,null,f.createElement(ds,{override:!0,status:!0},m)),addonBefore:g&&f.createElement(Xa,null,f.createElement(ds,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},C),S==null?void 0:S.classNames),{input:K({[`${$}-sm`]:A==="small",[`${$}-lg`]:A==="large",[`${$}-rtl`]:x==="rtl",[`${$}-borderless`]:!o},!H&&Nr($,F),C==null?void 0:C.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,_)}),classes:{affixWrapper:K({[`${$}-affix-wrapper-sm`]:A==="small",[`${$}-affix-wrapper-lg`]:A==="large",[`${$}-affix-wrapper-rtl`]:x==="rtl",[`${$}-affix-wrapper-borderless`]:!o},Nr(`${$}-affix-wrapper`,F,T),_),wrapper:K({[`${$}-group-rtl`]:x==="rtl"},_),group:K({[`${$}-group-wrapper-sm`]:A==="small",[`${$}-group-wrapper-lg`]:A==="large",[`${$}-group-wrapper-rtl`]:x==="rtl",[`${$}-group-wrapper-disabled`]:R},Nr(`${$}-group-wrapper`,F,T),_)}})))}),Nh=l7;var c7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const u7=c7;var d7=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:u7}))};const f7=f__namespace.forwardRef(d7);var m7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const g7=m7;var h7=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:g7}))};const v7=f__namespace.forwardRef(h7);var p7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?f__namespace.createElement(v7,null):f__namespace.createElement(f7,null),y7={click:"onClick",hover:"onMouseOver"},C7=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=f.useState(()=>r?n.visible:!1),i=f.useRef(null);f__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=d$(i),l=()=>{const{disabled:E}=e;E||(o&&s(),a(x=>{var S;const $=!x;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,$)),$}));},c=E=>{const{action:x="click",iconRender:S=b7}=e,$=y7[x]||"",I=S(o),O={[$]:l,className:`${E}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault();},onMouseUp:_=>{_.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(I)?I:f__namespace.createElement("span",null,I),O)},{className:u,prefixCls:d,inputPrefixCls:m,size:g}=e,h=p7(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=f__namespace.useContext(et),p=v("input",m),b=v("input-password",d),y=n&&c(b),C=K(b,u,{[`${b}-${g}`]:!!g}),w=Object.assign(Object.assign({},An(h,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return g&&(w.size=g),f__namespace.createElement(Nh,Object.assign({ref:Wn(t,i)},w))}),S7=C7;var $7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:m,onCompositionStart:g,onCompositionEnd:h}=e,v=$7(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(et),y=f__namespace.useRef(!1),C=p("input-search",n),w=p("input",r),{compactSize:E}=yi(C,b),x=Un(F=>{var H;return (H=a??E)!==null&&H!==void 0?H:F}),S=f__namespace.useRef(null),$=F=>{F&&F.target&&F.type==="click"&&d&&d(F.target.value,F,{source:"clear"}),m&&m(F);},I=F=>{var H;document.activeElement===((H=S.current)===null||H===void 0?void 0:H.input)&&F.preventDefault();},O=F=>{var H,B;d&&d((B=(H=S.current)===null||H===void 0?void 0:H.input)===null||B===void 0?void 0:B.value,F,{source:"input"});},_=F=>{y.current||c||O(F);},M=typeof s=="boolean"?f__namespace.createElement(Th,null):null,k=`${C}-button`;let A;const L=s||{},R=L.type&&L.type.__ANT_BUTTON===!0;R||L.type==="button"?A=Bn(L,Object.assign({onMouseDown:I,onClick:F=>{var H,B;(B=(H=L==null?void 0:L.props)===null||H===void 0?void 0:H.onClick)===null||B===void 0||B.call(H,F),O(F);},key:"enterButton"},R?{className:k,size:x}:{})):A=f__namespace.createElement(Ut,{className:k,type:s?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:I,onClick:O,loading:c,icon:M},s),l&&(A=[A,Bn(l,{key:"addonAfter"})]);const P=K(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!s},o),T=F=>{y.current=!0,g==null||g(F);},z=F=>{y.current=!1,h==null||h(F);};return f__namespace.createElement(Nh,Object.assign({ref:Wn(S,t),onPressEnter:_},v,{size:x,onCompositionStart:T,onCompositionEnd:z,prefixCls:w,addonAfter:A,suffix:i,onChange:$,className:P,disabled:u}))}),x7=w7;var E7=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,I7=["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"],Ud={},gr;function O7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ud[n])return Ud[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=I7.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Ud[n]=l),l}function P7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;gr||(gr=document.createElement("textarea"),gr.setAttribute("tab-index","-1"),gr.setAttribute("aria-hidden","true"),document.body.appendChild(gr)),e.getAttribute("wrap")?gr.setAttribute("wrap",e.getAttribute("wrap")):gr.removeAttribute("wrap");var o=O7(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;gr.setAttribute("style","".concat(l,";").concat(E7)),gr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=gr.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){gr.value=" ";var g=gr.scrollHeight-a;n!==null&&(c=g*n,s==="border-box"&&(c=c+a+i),m=Math.max(c,m)),r!==null&&(u=g*r,s==="border-box"&&(u=u+a+i),d=m>u?"":"hidden",m=Math.min(u,m));}var h={height:m,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var M7=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Xd=0,qd=1,Yd=2,R7=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=Je(n,M7),g=Wt(o,{value:a,postState:function(G){return G??""}}),h=Y(g,2),v=h[0],p=h[1],b=function(G){p(G.target.value),d==null||d(G);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=f__namespace.useMemo(function(){return i&<(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=Y(C,2),E=w[0],x=w[1],S=!!i,$=function(){try{if(document.activeElement===y.current){var G=y.current,X=G.selectionStart,Q=G.selectionEnd,ee=G.scrollTop;y.current.setSelectionRange(X,Q),y.current.scrollTop=ee;}}catch{}},I=f__namespace.useState(Yd),O=Y(I,2),_=O[0],M=O[1],k=f__namespace.useState(),A=Y(k,2),L=A[0],R=A[1],P=function(){M(Xd);};Ht(function(){S&&P();},[a,E,x,S]),Ht(function(){if(_===Xd)M(qd);else if(_===qd){var W=P7(y.current,!1,E,x);M(Yd),R(W);}else $();},[_]);var T=f__namespace.useRef(),z=function(){It.cancel(T.current);},F=function(G){_===Yd&&(s==null||s(G),i&&(z(),T.current=It(function(){P();})));};f__namespace.useEffect(function(){return z},[]);var H=S?L:null,B=U(U({},c),H);return (_===Xd||_===qd)&&(B.overflowY="hidden",B.overflowX="hidden"),f__namespace.createElement(pr,{onResize:F,disabled:!(i||s)},f__namespace.createElement("textarea",xe({},m,{ref:y,style:B,className:K(r,l,D({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),_7=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],T7=f.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,p=e.classes,b=e.showCount,y=e.count,C=e.className,w=e.style,E=e.disabled,x=e.hidden,S=e.classNames,$=e.styles,I=e.onResize,O=Je(e,_7),_=Wt(o,{value:a,defaultValue:o}),M=Y(_,2),k=M[0],A=M[1],L=k==null?"":String(k),R=f.useState(!1),P=Y(R,2),T=P[0],z=P[1],F=f.useState(!1),H=Y(F,2);H[0],H[1];var B=f.useRef(!1);f.useRef(),f.useRef(0);var W=f.useState(null),G=Y(W,2),X=G[0],Q=G[1],ee=f.useRef(null),V=function(){var Ae;return (Ae=ee.current)===null||Ae===void 0?void 0:Ae.textArea},q=function(){V().focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:ee.current,focus:q,blur:function(){V().blur();}}}),f.useEffect(function(){z(function(He){return !E&&He});},[E]);var re=f.useState(null),ue=Y(re,2),de=ue[0],Z=ue[1];f.useEffect(function(){if(de){var He;(He=V()).setSelectionRange.apply(He,Pe(de));}},[de]);var te=cS(y,b),fe=(n=te.max)!==null&&n!==void 0?n:u,J=Number(fe)>0,le=te.strategy(L),ie=!!fe&&le>fe,se=function(Ae,rt){var Ue=rt;!B.current&&te.exceedFormatter&&te.max&&te.strategy(rt)>te.max&&(Ue=te.exceedFormatter(rt,{max:te.max}),rt!==Ue&&Z([V().selectionStart||0,V().selectionEnd||0])),A(Ue),fc(Ae.currentTarget,Ae,l,Ue);},oe=function(Ae){B.current=!0,d==null||d(Ae);},he=function(Ae){B.current=!1,se(Ae,Ae.currentTarget.value),m==null||m(Ae);},be=function(Ae){se(Ae,Ae.target.value);},Me=function(Ae){var rt=O.onPressEnter,Ue=O.onKeyDown;Ae.key==="Enter"&&rt&&rt(Ae),Ue==null||Ue(Ae);},ze=function(Ae){z(!0),i==null||i(Ae);},qe=function(Ae){z(!1),s==null||s(Ae);},Oe=function(Ae){A(""),q(),fc(V(),Ae,l);},Te=g,Ve;te.show&&(te.showFormatter?Ve=te.showFormatter({value:L,count:le,maxLength:fe}):Ve="".concat(le).concat(J?" / ".concat(fe):""),Te=f.createElement(f.Fragment,null,Te,f.createElement("span",{className:K("".concat(v,"-data-count"),S==null?void 0:S.count),style:$==null?void 0:$.count},Ve)));var je=function(Ae){I==null||I(Ae),V().style.height&&Q(!0);},Ke=!O.autoSize&&!b&&!c,Be=f.createElement(dh,{value:L,allowClear:c,handleReset:Oe,suffix:Te,prefixCls:v,classes:{affixWrapper:K(p==null?void 0:p.affixWrapper,(r={},D(r,"".concat(v,"-show-count"),b),D(r,"".concat(v,"-textarea-allow-clear"),c),r))},disabled:E,focused:T,className:K(C,ie&&"".concat(v,"-out-of-range")),style:U(U({},w),X&&!Ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ve=="string"?Ve:void 0}},hidden:x,inputElement:f.createElement(R7,xe({},O,{onKeyDown:Me,onChange:be,onFocus:ze,onBlur:qe,onCompositionStart:oe,onCompositionEnd:he,className:K(S==null?void 0:S.textarea),style:U(U({},$==null?void 0:$.textarea),{},{resize:w==null?void 0:w.resize}),disabled:E,prefixCls:v,onResize:je,ref:ee}))});return Be}),N7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d}=e,m=N7(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:g,direction:h}=f__namespace.useContext(et),v=Un(a),p=f__namespace.useContext(Yr),b=i??p,{status:y,hasFeedback:C,feedbackIcon:w}=f__namespace.useContext(yr),E=Hs(y,s),x=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var _;return {resizableTextArea:(_=x.current)===null||_===void 0?void 0:_.resizableTextArea,focus:M=>{var k,A;s7((A=(k=x.current)===null||k===void 0?void 0:k.resizableTextArea)===null||A===void 0?void 0:A.textArea,M);},blur:()=>{var M;return (M=x.current)===null||M===void 0?void 0:M.blur()}}});const S=g("input",r);let $;typeof l=="object"&&(l!=null&&l.clearIcon)?$=l:l&&($={clearIcon:f__namespace.createElement(_h,null)});const[I,O]=vh(S);return I(f__namespace.createElement(T7,Object.assign({},m,{disabled:b,allowClear:$,className:K(d,u),classes:{affixWrapper:K(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:h==="rtl",[`${S}-affix-wrapper-borderless`]:!o,[`${S}-affix-wrapper-sm`]:v==="small",[`${S}-affix-wrapper-lg`]:v==="large",[`${S}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},Nr(`${S}-affix-wrapper`,E),O)},classNames:Object.assign(Object.assign({},c),{textarea:K({[`${S}-borderless`]:!o,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},Nr(S,E),O,c==null?void 0:c.textarea)}),prefixCls:S,suffix:C&&f__namespace.createElement("span",{className:`${S}-textarea-suffix`},w),ref:x})))}),A7=k7,Gs=Nh;Gs.Group=o7;Gs.Search=x7;Gs.TextArea=A7;Gs.Password=S7;const f$=Gs,L7=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Jb=e=>L7.test(`#${e}`),z7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();Jb(l)&&n&&i(Wl(l));},[n]);const s=l=>{const c=l.target.value;i(Wl(c)),Jb(Wl(c,!0))&&(r==null||r(kn(c)));};return f.createElement(f$,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},D7=z7,j7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=f.useState(kn(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=kn(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Yo,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Vl(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(Yo,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Vl(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(Yo,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Vl(l||0)}%`,onChange:l=>s(Number(l),"b")}))},F7=j7,B7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=f.useState(kn(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=kn(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Yo,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(Yo,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(Yo,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},H7=B7,W7=[ao.hex,ao.hsb,ao.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),V7=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=Wt(ao.hex,{value:n,onChange:a}),c=`${t}-input`,u=m=>{l(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(s){case ao.hsb:return f.createElement(F7,Object.assign({},m));case ao.rgb:return f.createElement(H7,Object.assign({},m));case ao.hex:default:return f.createElement(D7,Object.assign({},m))}},[s,t,r,i]);return f.createElement("div",{className:`${c}-container`},f.createElement(Ks,{value:s,bordered:!1,getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:W7}),f.createElement("div",{className:c},d),!o&&f.createElement(n7,{prefixCls:t,value:r,onChange:i}))},K7=V7;var G7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const e=f.useContext(VS),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=G7(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(GS,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),f.createElement(aH,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),f.createElement(K7,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},e0=U7;var X7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const q7=X7;var Y7=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:q7}))};const Za=f__namespace.forwardRef(Y7);var m$=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=Y(u,2),m=d[0],g=d[1];return f.useEffect(function(){(o||l)&&g(!0);},[o,l]),m?f.createElement("div",{ref:t,className:K("".concat(r,"-content"),(n={},D(n,"".concat(r,"-content-active"),l),D(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});m$.displayName="PanelContent";var Q7=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],g$=f.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,m=e.collapsible,g=e.accordion,h=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,w=e.children,E=Je(e,Q7),x=m==="disabled",S=m==="header",$=m==="icon",I=v!=null&&typeof v!="boolean",O=function(){l==null||l(h);},_=function(P){(P.key==="Enter"||P.keyCode===me.ENTER||P.which===me.ENTER)&&O();},M=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});M&&(M=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?O:void 0},M));var k=K((n={},D(n,"".concat(d,"-item"),!0),D(n,"".concat(d,"-item-active"),s),D(n,"".concat(d,"-item-disabled"),x),n),u),A=K(i,(r={},D(r,"".concat(d,"-header"),!0),D(r,"".concat(d,"-header-collapsible-only"),S),D(r,"".concat(d,"-icon-collapsible-only"),$),r)),L={className:A,"aria-expanded":s,"aria-disabled":x,onKeyDown:_};return !S&&!$&&(L.onClick=O,L.role=g?"tab":"button",L.tabIndex=x?-1:0),f.createElement("div",xe({},E,{ref:t,className:k}),f.createElement("div",L,a&&M,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?O:void 0},p),I&&f.createElement("div",{className:"".concat(d,"-extra")},v)),f.createElement(go,xe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(R,P){var T=R.className,z=R.style;return f.createElement(m$,{ref:P,prefixCls:d,className:T,style:z,isActive:s,forceRender:c,role:g?"tabpanel":void 0},w)}))}),Z7=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],J7=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var g=d.children,h=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=Je(d,Z7),w=String(v??m),E=p??a,x=y??i,S=function(O){E!=="disabled"&&(s(O),b==null||b(O));},$=!1;return o?$=l[0]===w:$=l.indexOf(w)>-1,f.createElement(g$,xe({},C,{prefixCls:r,key:w,panelKey:w,isActive:$,accordion:o,openMotion:c,expandIcon:u,header:h,collapsible:E,onItemClick:S,destroyInactivePanel:x}),g)})},eW=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,m=t.key||String(n),g=t.props,h=g.header,v=g.headerClass,p=g.destroyInactivePanel,b=g.collapsible,y=g.onItemClick,C=!1;a?C=c[0]===m:C=c.indexOf(m)>-1;var w=b??i,E=function($){w!=="disabled"&&(l($),y==null||y($));},x={key:m,panelKey:m,header:h,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:E,expandIcon:d,collapsible:w};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(S){typeof x[S]>"u"&&delete x[S];}),f.cloneElement(t,x))};function tW(e,t,n){return Array.isArray(e)?J7(e,n):ar(t).map(function(r,o){return eW(r,o,n)})}function nW(e){var t=e;if(!Array.isArray(t)){var n=lt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var rW=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,m=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,v=e.onChange,p=e.items,b=K(r,l),y=Wt([],{value:g,onChange:function(I){return v==null?void 0:v(I)},defaultValue:h,postState:nW}),C=Y(y,2),w=C[0],E=C[1],x=function(I){return E(function(){if(s)return w[0]===I?[]:[I];var O=w.indexOf(I),_=O>-1;return _?w.filter(function(M){return M!==I}):[].concat(Pe(w),[I])})};bn(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=tW(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:a,onItemClick:x,activeKey:w});return f.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},S)});const kh=Object.assign(rW,{Panel:g$});kh.Panel;const oW=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(et),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=K({[`${i}-no-arrow`]:!a},o);return f__namespace.createElement(kh.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),aW=oW,iW=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:m,colorTextHeading:g,colorTextDisabled:h,fontSize:v,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:C,paddingLG:w,paddingXS:E,motionDurationSlow:x,fontSizeIcon:S,contentPadding:$}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},Lt(e)),{backgroundColor:o,border:I,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:g,lineHeight:b,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},ia()),{fontSize:S,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:E,[`> ${t}-expand-icon`]:{marginInlineStart:C-E}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},sW=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},lW=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},cW=e=>{const{componentCls:t,paddingSM:n}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},uW=Ft("Collapse",e=>{const t=pt(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [iW(t),lW(t),cW(t),sW(t),EC(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),dW=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(et),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:m="start",children:g,expandIcon:h}=e,v=Un(I=>{var O;return (O=d??I)!==null&&O!==void 0?O:"middle"}),p=n("collapse",a),b=n(),[y,C]=uW(p),w=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),E=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const O=h?h(I):f__namespace.createElement(Za,{rotate:I.isActive?90:void 0});return Bn(O,()=>({className:K(O.props.className,`${p}-arrow`)}))},x=K(`${p}-icon-position-${w}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,i,s,C),S=Object.assign(Object.assign({},yC(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),$=f__namespace.useMemo(()=>g?ar(g).map((I,O)=>{var _,M;if(!((_=I.props)===null||_===void 0)&&_.disabled){const k=(M=I.key)!==null&&M!==void 0?M:String(O),{disabled:A,collapsible:L}=I.props,R=Object.assign(Object.assign({},An(I.props,["disabled"])),{key:k,collapsible:L??(A?"disabled":void 0)});return Bn(I,R)}return I}):null,[g]);return y(f__namespace.createElement(kh,Object.assign({ref:t,openMotion:S},An(e,["rootClassName"]),{expandIcon:E,prefixCls:p,className:x,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),$))}),fW=Object.assign(dW,{Panel:aW}),Qd=e=>e.map(t=>(t.colors=t.colors.map(kn),t)),mW=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new hc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},t0=e=>{let{label:t}=e;return `panel-${t}`},gW=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=pi("ColorPicker"),[,i]=Gn(),[s]=Wt(Qd(n),{value:Qd(n),postState:Qd}),l=`${t}-presets`,c=f.useMemo(()=>s.reduce((m,g)=>{const{defaultOpen:h=!0}=g;return h&&m.push(t0(g)),m},[]),[s]),u=m=>{o==null||o(m);},d=s.map(m=>{var g;return {key:t0(m),label:f.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:f.createElement("div",{className:`${l}-items`},Array.isArray(m==null?void 0:m.colors)&&((g=m.colors)===null||g===void 0?void 0:g.length)>0?m.colors.map((h,v)=>f.createElement(Eh,{key:`preset-${v}-${h.toHexString()}`,color:kn(h).toRgbString(),prefixCls:t,className:K(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:mW(h,i.colorBgElevated)}),onClick:()=>u(h)})):f.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return f.createElement("div",{className:l},f.createElement(fW,{defaultActiveKey:c,ghost:!0,items:d}))},hW=gW,vW=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(KS);return Array.isArray(n)?f.createElement(hW,{value:t,presets:n,prefixCls:e,onChange:r}):null},n0=vW;var pW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=pW(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=f.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=f.createElement(f.Fragment,null,f.createElement(e0,null),Array.isArray(n)&&f.createElement(XB,{className:`${l}-divider`}),f.createElement(n0,null));return f.createElement(iH,{value:c},f.createElement(sH,{value:u},f.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:e0,Presets:n0}}):d)))},yW=bW;var CW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=CW(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>a?f.createElement(GS,{prefixCls:r}):f.createElement(Eh,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),g=()=>{const v=n.toHexString().toUpperCase(),p=vc(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},h=()=>{if(typeof c=="function")return c(n);if(c)return g()};return f.createElement("div",Object.assign({ref:t,className:K(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),m,c&&f.createElement("div",{className:`${d}-text`},h()))}),$W=SW;function r0(e){return e!==void 0}const wW=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=f.useState(()=>{let i;return r0(r)?i=r:r0(n)?i=n:i=e,kn(i||"")});return f.useEffect(()=>{r&&a(kn(r));},[r]),[o,a]},xW=wW,h$=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),EW=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},h$("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},o0=EW,IW=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:h}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${a}px`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+i,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${l-2*h}px`},[`${n}-input-prefix`]:{color:m}}}}}},OW=IW,PW=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":h$(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},MW=PW,RW=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:m,marginXXS:g,paddingXS:h}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:i*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${h}px 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:g*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:a+4*c,height:a+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:a/13*5,height:a/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},_W=RW,bm=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),TW=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},a0=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${a}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},NW=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},bm(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},bm(e,r,s))}}},kW=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l}}}},AW=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:m,controlHeightSM:g,colorBgTextActive:h,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:w,colorPrimaryHover:E,controlOutline:x}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${d}px 0 ${u}px`},[`${t}-panel`]:Object.assign({},MW(e))},o0(e,p)),OW(e)),_W(e)),a0(e,v,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:a,padding:C-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(C-b),fontSize:w,color:s},"&:hover":{borderColor:E},[`&${t}-trigger-active`]:Object.assign({},bm(e,r,x)),"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:h},[`${t}-trigger-text`]:{color:i}}},a0(e,g)),o0(e,g)),NW(e)),kW(e))},TW(e))}]},LW=Ft("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=pt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [AW(o)]});var zW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:s,trigger:l="click",open:c,disabled:u,placement:d="bottomLeft",arrow:m=!0,panelRender:g,showText:h,style:v,className:p,size:b,rootClassName:y,styles:C,disabledAlpha:w=!1,onFormatChange:E,onChange:x,onClear:S,onOpenChange:$,onChangeComplete:I,getPopupContainer:O,autoAdjustOverflow:_=!0,destroyTooltipOnHide:M}=e,k=zW(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:A,direction:L,colorPicker:R}=f.useContext(et),[,P]=Gn(),[T,z]=xW(P.colorPrimary,{value:t,defaultValue:n}),[F,H]=Wt(!1,{value:c,postState:ze=>!u&&ze,onChange:$}),[B,W]=Wt(r,{value:r,defaultValue:o,onChange:E}),[G,X]=f.useState(!1),Q=A("color-picker",cH),ee=f.useMemo(()=>vc(T)<100,[T]),{status:V}=f.useContext(yr),q=Un(b),[re,ue]=LW(Q),de={[`${Q}-rtl`]:L},Z=K(y,de),te=K(Nr(Q,V),{[`${Q}-sm`]:q==="small",[`${Q}-lg`]:q==="large"},R==null?void 0:R.className,Z,p,ue),fe=K(Q,de),J=f.useRef(!0),le=(ze,qe,Oe)=>{let Te=kn(ze);(G||(t===null||!t&&n===null))&&(X(!1),vc(T)===0&&qe!=="alpha"&&(Te=Hd(Te))),w&&ee&&(Te=Hd(Te)),Oe?J.current=!1:I==null||I(Te),z(Te),x==null||x(Te,Te.toHexString());},ie=()=>{X(!0),S==null||S();},se=ze=>{J.current=!0;let qe=kn(ze);w&&ee&&(qe=Hd(ze)),I==null||I(qe);},oe={open:F,trigger:l,placement:d,arrow:m,rootClassName:y,getPopupContainer:O,autoAdjustOverflow:_,destroyTooltipOnHide:M},he={prefixCls:Q,color:T,allowClear:a,colorCleared:G,disabled:u,disabledAlpha:w,presets:i,panelRender:g,format:B,onFormatChange:W,onChangeComplete:se},be=Object.assign(Object.assign({},R==null?void 0:R.style),v),[Me]=As("ColorPicker");return re(f.createElement(Mu,Object.assign({style:C==null?void 0:C.popup,overlayInnerStyle:C==null?void 0:C.popupOverlayInner,onOpenChange:ze=>{J.current&&!u&&H(ze);},content:f.createElement(ds,{override:!0,status:!0},f.createElement(yW,Object.assign({},he,{onChange:le,onChangeComplete:se,onClear:ie}))),overlayClassName:fe,zIndex:Me},oe),s||f.createElement($W,Object.assign({open:F,className:te,style:be,color:t?kn(t):T,prefixCls:Q,disabled:u,colorCleared:G,showText:h,format:B},k))))},DW=xh(Ah,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Ah._InternalPanelDoNotUseOrYouWillBeFired=DW;const jW=Ah;var FW=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function i0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function s0(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function WW(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}var VW={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function KW(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function GW(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],a=t.theme||n.theme;switch(a){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var v$=f.createContext(VW);v$.Provider;function Xt(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,m=HW(r,FW),g=f.useContext(v$),h=f.useMemo(KW,[]),v=GW(h,{size:o,strokeWidth:a,strokeLinecap:i,strokeLinejoin:s,theme:l,fill:c},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),d&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),f.createElement("span",s0(s0({},m),{},{className:p.join(" ")}),n(v))}}const UW=Xt("people-search",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),XW=Xt("people-minus",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),f.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qW=Xt("people-delete",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),YW=Xt("delete",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),QW=Xt("add-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZW=Xt("play-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),JW=Xt("unlike",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),eV=Xt("dislike-two",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),f.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),f.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),tV=Xt("copy",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),nV=Xt("efferent-four",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),rV=Xt("star",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),oV=Xt("file-cabinet",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),aV=Xt("tumblr",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),iV=Xt("concern",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),sV=Xt("iphone",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),lV=Xt("computer",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),cV=Xt("tips",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),uV=Xt("return",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),dV=Xt("loading-three",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),fV=Xt("loading",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),mV=Xt("info",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),f.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gV=Xt("help",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),hV=Xt("distraught-face",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vV=Xt("config",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),pV=Xt("close",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bV={Close:pV,Config:vV,DistraughtFace:hV,Help:gV,Info:mV,Loading:fV,LoadingThree:dV,Return:uV,Tips:cV,Computer:lV,Iphone:sV,Concern:iV,Tumblr:aV,FileCabinet:oV,Star:rV,EfferentFour:nV,Copy:tV,DislikeTwo:eV,Unlike:JW,PlayTwo:ZW,AddTwo:QW,Delete:YW,PeopleDelete:qW,PeopleMinus:XW,PeopleSearch:UW};function At({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=bV[e];return j(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}const yV=e=>{const t=e!=null&&e.algorithm?ss(e.algorithm):ss(Ns),n=Object.assign(Object.assign({},Ua),e==null?void 0:e.token);return T1(n,{override:e==null?void 0:e.token},t,kg)},CV=yV;function SV(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return {sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const $V=(e,t)=>{const n=t??Ns(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),SV(t??e)),K1(r)),{controlHeight:o}),W1(Object.assign(Object.assign({},n),{controlHeight:o})))},wV=$V,ro=(e,t)=>new qt(e).setAlpha(t).toRgbString(),Ea=(e,t)=>new qt(e).lighten(t).toHexString(),xV=e=>{const t=co(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},EV=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:ro(r,.85),colorTextSecondary:ro(r,.65),colorTextTertiary:ro(r,.45),colorTextQuaternary:ro(r,.25),colorFill:ro(r,.18),colorFillSecondary:ro(r,.12),colorFillTertiary:ro(r,.08),colorFillQuaternary:ro(r,.04),colorBgElevated:Ea(n,12),colorBgContainer:Ea(n,8),colorBgLayout:Ea(n,0),colorBgSpotlight:Ea(n,26),colorBgBlur:ro(r,.04),colorBorder:Ea(n,26),colorBorderSecondary:Ea(n,19)}},IV=(e,t)=>{const n=Object.keys(Ng).map(o=>{const a=co(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,l)=>(i[`${o}-${l+1}`]=a[l],i[`${o}${l+1}`]=a[l],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Ns(e);return Object.assign(Object.assign(Object.assign({},r),n),V1(e,{generateColorPalettes:xV,generateNeutralColorPalettes:EV}))},OV=IV;function PV(){const[e,t,n]=Gn();return {theme:e,token:t,hashId:n}}const l0={defaultConfig:oc,defaultSeed:oc.token,useToken:PV,defaultAlgorithm:Ns,darkAlgorithm:OV,compactAlgorithm:wV,getDesignToken:CV};var MV=f1,c0=1/0,RV=17976931348623157e292;function _V(e){if(!e)return e===0?e:0;if(e=MV(e),e===c0||e===-c0){var t=e<0?-1:1;return t*RV}return e===e?e:0}var TV=_V,NV=TV;function kV(e){var t=NV(e),n=t%1;return t===t?n?t-n:t:0}var AV=kV,LV=AV,zV="Expected a function";function DV(e,t){var n;if(typeof t!="function")throw new TypeError(zV);return e=LV(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var jV=DV,FV=jV;function BV(e){return FV(2,e)}var HV=BV;const p$=hn(HV),WV=Symbol(),Lh=Symbol(),Ai="a",Kl="w";let VV=(e,t)=>new Proxy(e,t);const ym=Object.getPrototypeOf,Cm=new WeakMap,b$=e=>e&&(Cm.has(e)?Cm.get(e):ym(e)===Object.prototype||ym(e)===Array.prototype),u0=e=>typeof e=="object"&&e!==null,KV=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0;}),Object.create(ym(e),t)},y$=e=>e[Lh]||e,C$=(e,t,n,r)=>{if(!b$(e))return e;let o=r&&r.get(e);if(!o){const l=y$(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,KV(l)]:[l],r==null||r.set(e,o);}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const u={f:c};let d=!1;const m=(h,v)=>{if(!d){let p=u[Ai].get(l);if(p||(p={},u[Ai].set(l,p)),h===Kl)p[Kl]=!0;else {let b=p[h];b||(b=new Set,p[h]=b),b.add(v);}}},g={get:(h,v)=>v===Lh?l:(m("k",v),C$(Reflect.get(h,v),u[Ai],u.c,u.t)),has:(h,v)=>v===WV?(d=!0,u[Ai].delete(l),!0):(m("h",v),Reflect.has(h,v)),getOwnPropertyDescriptor:(h,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(h,v)),ownKeys:h=>(m(Kl),Reflect.ownKeys(h))};return c&&(g.set=g.deleteProperty=()=>!1),[g,u]})(a,!!i),s[1].p=VV(i||a,s[0]),n&&n.set(a,s)),s[1][Ai]=t,s[1].c=n,s[1].t=r,s[1].p},S$=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!u0(e)||!u0(t))return !0;const o=n.get(y$(e));if(!o)return !0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1});}let a=null;try{for(const i of o.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(o[Kl]===!0){if(a=((i,s)=>{const l=Reflect.ownKeys(i),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=S$(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},GV=e=>b$(e)&&e[Lh]||null,d0=(e,t=!0)=>{Cm.set(e,t);};const Zd=e=>typeof e=="object"&&e!==null,bo=new WeakMap,xl=new WeakSet,UV=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Zd(c)&&!xl.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,a=(c,u,d=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===u)return m[1];const g=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return d0(g,!0),o.set(c,[u,g]),Reflect.ownKeys(c).forEach(h=>{if(Object.getOwnPropertyDescriptor(g,h))return;const v=Reflect.get(c,h),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,h),b={value:v,enumerable:p,configurable:!0};if(xl.has(v))d0(v,!1);else if(v instanceof Promise)delete b.value,b.get=()=>d(v);else if(bo.has(v)){const[y,C]=bo.get(v);b.value=a(y,C(),d);}Object.defineProperty(g,h,b);}),Object.preventExtensions(g)},i=new WeakMap,s=[1,1],l=c=>{if(!Zd(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const m=new Set,g=(I,O=++s[0])=>{d!==O&&(d=O,m.forEach(_=>_(I,O)));};let h=s[1];const v=(I=++s[1])=>(h!==I&&!m.size&&(h=I,b.forEach(([O])=>{const _=O[1](I);_>d&&(d=_);})),d),p=I=>(O,_)=>{const M=[...O];M[1]=[I,...M[1]],g(M,_);},b=new Map,y=(I,O)=>{if(m.size){const _=O[3](p(I));b.set(I,[O,_]);}else b.set(I,[O]);},C=I=>{var O;const _=b.get(I);_&&(b.delete(I),(O=_[1])==null||O.call(_));},w=I=>(m.add(I),m.size===1&&b.forEach(([_,M],k)=>{const A=_[3](p(k));b.set(k,[_,A]);}),()=>{m.delete(I),m.size===0&&b.forEach(([_,M],k)=>{M&&(M(),b.set(k,[_]));});}),E=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(E,{deleteProperty(I,O){const _=Reflect.get(I,O);C(O);const M=Reflect.deleteProperty(I,O);return M&&g(["delete",[O],_]),M},set(I,O,_,M){const k=Reflect.has(I,O),A=Reflect.get(I,O,M);if(k&&(e(A,_)||i.has(_)&&e(A,i.get(_))))return !0;C(O),Zd(_)&&(_=GV(_)||_);let L=_;if(_ instanceof Promise)_.then(R=>{_.status="fulfilled",_.value=R,g(["resolve",[O],R]);}).catch(R=>{_.status="rejected",_.reason=R,g(["reject",[O],R]);});else {!bo.has(_)&&n(_)&&(L=l(_));const R=!xl.has(L)&&bo.get(L);R&&y(O,R);}return Reflect.set(I,O,L,M),g(["set",[O],_,A]),!0}});i.set(c,S);const $=[E,v,a,w];return bo.set(S,$),Reflect.ownKeys(c).forEach(I=>{const O=Object.getOwnPropertyDescriptor(c,I);"value"in O&&(S[I]=c[I],delete O.value,delete O.writable),Object.defineProperty(E,I,O);}),S})=>[l,bo,xl,e,t,n,r,o,a,i,s],[XV]=UV();function ir(e={}){return XV(e)}function zh(e,t,n){const r=bo.get(e);let o;const a=[],i=r[3];let s=!1;const c=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0));}));});return s=!0,()=>{s=!1,c();}}function pc(e,t){const n=bo.get(e),[r,o,a]=n;return a(r,o(),t)}var $$={exports:{}},w$={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ja=f;function qV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YV=typeof Object.is=="function"?Object.is:qV,QV=Ja.useState,ZV=Ja.useEffect,JV=Ja.useLayoutEffect,eK=Ja.useDebugValue;function tK(e,t){var n=t(),r=QV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return JV(function(){o.value=n,o.getSnapshot=t,Jd(o)&&a({inst:o});},[e,n,t]),ZV(function(){return Jd(o)&&a({inst:o}),e(function(){Jd(o)&&a({inst:o});})},[e]),eK(n),n}function Jd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !YV(e,n)}catch{return !0}}function nK(e,t){return t()}var rK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nK:tK;w$.useSyncExternalStore=Ja.useSyncExternalStore!==void 0?Ja.useSyncExternalStore:rK;$$.exports=w$;var oK=$$.exports;const aK=hn(oK),{use:f0}=f,{useSyncExternalStore:iK}=aK;const sK=new WeakMap;function lr(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let a=!0;const i=iK(f.useCallback(c=>{const u=zh(e,c,n);return c(),u},[e,n]),()=>{const c=pc(e,f0);try{if(!a&&r.current&&o.current&&!S$(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>pc(e,f0));a=!1;const s=new WeakMap;f.useEffect(()=>{r.current=i,o.current=s;});const l=f.useMemo(()=>new WeakMap,[]);return C$(i,s,l,sK)}const ei=p$(()=>!!document.querySelectorAll(".bili-feed4").length),x$=()=>document.body.classList.contains("dark"),E$=ir({value:x$()});function Dh(){return lr(E$).value}const I$=new MutationObserver(function(){E$.value=x$();});I$.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{I$.disconnect();});const O$=Zx();var ly;const lK=((ly=O$.os.name)==null?void 0:ly.toLowerCase())==="mac os";var cy;const jh=((cy=O$.browser.name)==null?void 0:cy.toLowerCase())==="safari";var cK=Ty(function(e,t){var n=e.styles,r=Da([n],void 0,f__namespace.useContext(Ny)),o=f__namespace.useRef();return yv(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush();}},[t]),yv(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&og(t,r.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function Tr(){for(var e=arguments.length,t=new Array(e),n=0;n{const u=c.target.checked;Cr({[e]:u}),n==null||n(u);},[]);let l=j("span",{style:{userSelect:"none"},children:t||e});return r&&(l=j(Ls,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),j(Iu,{...o,checked:i,onChange:s,children:l})}var wK={name:"1qkltea",styles:"margin-left:5px"};const xK=function(){const e=wK;return pe(Rt,{children:[j(wn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),j(wn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Ku({tooltip:e,iconProps:t,tooltipProps:n}){return j(Rt,{children:e&&j(Vu,{...n,title:e,children:j(At,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const EK=[{id:"green",name:"绿意盎然",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 175, 124)",colorTheme:"rgb(77, 175, 124)"},{id:"blue",name:"蓝田生玉",isDark:!1,isCustom:!1,colorPrimary:"rgb(52, 152, 219)",colorTheme:"rgb(52, 152, 219)"},{id:"blue_plus",name:"蛋雅深蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 131, 175)",colorTheme:"rgb(77, 131, 175)"},{id:"orange",name:"橙黄橘绿",isDark:!1,isCustom:!1,colorPrimary:"rgb(245, 171, 53)",colorTheme:"rgb(245, 171, 53)"},{id:"red",name:"热情似火",isDark:!1,isCustom:!1,colorPrimary:"rgb(214, 69, 65)",colorTheme:"rgb(214, 69, 65)"},{id:"pink",name:"粉装玉琢",isDark:!1,isCustom:!1,colorPrimary:"rgb(241, 130, 141)",colorTheme:"rgb(241, 130, 141)"},{id:"purple",name:"重斤球紫",isDark:!1,isCustom:!1,colorPrimary:"rgb(155, 89, 182)",colorTheme:"rgb(155, 89, 182)"},{id:"grey",name:"灰常美丽",isDark:!1,isCustom:!1,colorPrimary:"rgb(108, 122, 137)",colorTheme:"rgb(108, 122, 137)"},{id:"ming",name:"青出于黑",isDark:!1,isCustom:!1,colorPrimary:"rgb(51, 110, 123)",colorTheme:"rgb(51, 110, 123)"},{id:"blue2",name:"清热板蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(79, 98, 208)",colorTheme:"rgb(79, 98, 208)"},{id:"black",name:"黑灯瞎火",isDark:!0,isCustom:!1,colorPrimary:"rgb(150, 150, 150)",colorTheme:"rgb(59,59,59)"},{id:"mid_autumn",name:"月里嫦娥",isDark:!1,isCustom:!1,colorPrimary:"rgb(74, 55, 82)",colorTheme:"rgb(74, 55, 82)"},{id:"naruto",name:"木叶之村",isDark:!1,isCustom:!1,colorPrimary:"rgb(87, 144, 167)",colorTheme:"rgb(87, 144, 167)"},{id:"china_ink",name:"近墨者黑",isDark:!1,isCustom:!1,colorPrimary:"rgba(47, 47, 47, 1)",colorTheme:"rgba(47, 47, 47, 1)"},{id:"happy_new_year",name:"新年快乐",isDark:!1,isCustom:!1,colorPrimary:"rgb(192, 57, 43)",colorTheme:"rgb(192, 57, 43)"}],bc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},_$={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function IK(e,t){return t.split(` `).map(n=>n.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:e+":"+o,name:o,colorPrimary:r}})}const T$="UP长期洗涤",OK=IK(T$,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),N$=[{name:"预设",themes:[bc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},_$]},{name:"移动端",themes:[{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"}]},{name:"LX Themes",themes:EK,tooltip:pe(Rt,{children:["提取自"," ",j("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),j("br",{}),"Apache License 2.0"]})},{name:T$,themes:OK,tooltip:pe(Rt,{children:["提取自"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],PK=N$.map(e=>e.themes).flat();function k$(){let{theme:e,colorPickerThemeSelectedColor:t}=In();return e||(e=bc.id),f.useMemo(()=>{const n=PK.find(r=>r.id===e)||bc;return n.id===_$.id&&t&&(n.colorPrimary=t),n},[e,t])}const A$=`--${xn}-color-primary`,mo=`var(${A$})`;var MK={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},RK={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},_K={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function TK(){const e=k$().id,{colorPickerThemeSelectedColor:t}=In(),[n,r]=f.useState(t||bc.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return j("div",{children:N$.map(({name:a,themes:i,tooltip:s})=>pe(f.Fragment,{children:[pe("div",{css:_K,children:[a,j(Ku,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),j("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:i.map(l=>{const c=e===l.id,u=l.isCustom,d=j("div",{className:"preview",css:Tr("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let m=j("div",{className:"preview-wrapper",css:[RK,c&&Tr("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=j(jW,{value:n,onChange:g=>r(g),onOpenChange:g=>{g||Cr({colorPickerThemeSelectedColor:o});},children:m})),pe("div",{css:MK,onClick:g=>{Cr({theme:l.id});},children:[m,l.name]},l.id)})})]},a))})}function m0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function g0(e,t,n){var r=[],o=rg(e,r,n);return r.length<2?n:o+t(r)}var NK=function(t){var n=wy(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;un.remove(),t);}const DK="请求失败, 请重试 !!!",L$="操作失败, 请重试 !!!";function z$(){return xt(DK)}function D$(){return xt(L$)}function Hh(){const e={};return document.cookie.split(";").map(t=>t.trim()).filter(Boolean).forEach(t=>{const[n,r]=t.split("=").map(o=>o.trim()).filter(Boolean);n&&(e[n]=r);}),e}function wi(){const e=Hh().bili_jct;if(!e)throw xt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function Gu(){return Hh().DedeUserID}function qs(){return !!Hh().DedeUserID}const Sm=ir({cookie:document.cookie,logined:qs()});function FK(){return Object.assign(Sm,{cookie:document.cookie,logined:qs()}),Sm.logined}function Wh(){return lr(Sm).logined}const h0=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},BK=new WeakMap;function HK({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(h0());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(h0());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,g)=>{i=()=>{u(),m(r);},s=g,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),BK.set(d,()=>{l(a),a=null,i();}),d}}const br=HK(),WK=vi.extend("utility:dom"),VK=10*1e3,KK=200;async function Yi(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+VK;for(;!r.length&&performance.now()r.remove(),t)}function Uu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var j$={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ra,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",m="quarter",g="year",h="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var L=["th","st","nd","rd"],R=A%100;return "["+A+(L[(R-20)%10]||L[R]||L[0])+"]"}},C=function(A,L,R){var P=String(A);return !P||P.length>=L?A:""+Array(L+1-P.length).join(R)+A},w={s:C,z:function(A){var L=-A.utcOffset(),R=Math.abs(L),P=Math.floor(R/60),T=R%60;return (L<=0?"+":"-")+C(P,2,"0")+":"+C(T,2,"0")},m:function A(L,R){if(L.date()1)return A(F[0])}else {var H=L.name;x[H]=L,T=H;}return !P&&T&&(E=T),T||!P&&E},O=function(A,L){if($(A))return A.clone();var R=typeof L=="object"?L:{};return R.date=A,R.args=arguments,new M(R)},_=w;_.l=I,_.i=$,_.w=function(A,L){return O(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function A(R){this.$L=I(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[S]=!0;}var L=A.prototype;return L.parse=function(R){this.$d=function(P){var T=P.date,z=P.utc;if(T===null)return new Date(NaN);if(_.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var F=T.match(p);if(F){var H=F[2]-1||0,B=(F[7]||"0").substring(0,3);return z?new Date(Date.UTC(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(T)}(R),this.init();},L.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds();},L.$utils=function(){return _},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(R,P){var T=O(R);return this.startOf(P)<=T&&T<=this.endOf(P)},L.isAfter=function(R,P){return O(R)Number(o)).reverse().reduce((o,a,i)=>o+a*t[i],0)}function Xu(e){return e||(e=0),la.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function ef(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Cc(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const XK=la().format("YYYY");function xo(e,t=!1){if(!e)return "";const n=la.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===XK?n.format("M-D"+r):n.format("YY-M-D"+r)}const qK={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function YK(e){if(!(typeof e>"u")&&!(e>=0))return qK[e]}var F$=function(e){return function(t,n){var r=f.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},Mr=function(){return Mr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function on(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value);}catch(s){i={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(i)throw i.error}}return a}function Nn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r-1&&(o=setTimeout(function(){Gl.delete(e);},t)),Gl.set(e,Mr(Mr({},n),{timer:o}));},oG=function(e){return Gl.get(e)},Ul=new Map,aG=function(e){return Ul.get(e)},iG=function(e,t){Ul.set(e,t),t.then(function(n){return Ul.delete(e),n}).catch(function(){Ul.delete(e);});},jo={},sG=function(e,t){jo[e]&&jo[e].forEach(function(n){return n(t)});},tf=function(e,t){return jo[e]||(jo[e]=[]),jo[e].push(t),function(){var r=jo[e].indexOf(t);jo[e].splice(r,1);}},lG=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(g,h){s?s(h):rG(g,o,h),sG(g,h.data);},m=function(g,h){return h===void 0&&(h=[]),l?l(h):oG(g)};return V$(function(){if(n){var g=m(n);g&&Object.hasOwnProperty.call(g,"data")&&(e.state.data=g.data,e.state.params=g.params,(i===-1||new Date().getTime()-g.time<=i)&&(e.state.loading=!1)),c.current=tf(n,function(h){e.setState({data:h});});}},[]),Ys(function(){var g;(g=c.current)===null||g===void 0||g.call(c);}),n?{onBefore:function(g){var h=m(n,g);return !h||!Object.hasOwnProperty.call(h,"data")?{}:i===-1||new Date().getTime()-h.time<=i?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(g,h){var v=aG(n);return v&&v!==u.current?{servicePromise:v}:(v=g.apply(void 0,Nn([],on(h),!1)),u.current=v,iG(n,v),{servicePromise:v})},onSuccess:function(g,h){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:g,params:h,time:new Date().getTime()}),c.current=tf(n,function(p){e.setState({data:p});}));},onMutate:function(g){var h;n&&((h=c.current)===null||h===void 0||h.call(c),d(n,{data:g,params:e.state.params,time:new Date().getTime()}),c.current=tf(n,function(v){e.setState({data:v});}));}}:{}};const cG=lG;var uG=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[r,o,a]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=Hk(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u-1&&Zi.splice(n,1);}}if(Qs){var v0=function(){if(!(!Vh()||!CG()))for(var e=0;es))return !1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,g=n&JG?new qG:void 0;for(a.set(e,t),a.set(t,e);++d{Hi++,document.body.style.overflow="hidden";},sX=()=>{Hi--,Hi<0&&(Hi=0),Hi===0&&(document.body.style.overflow="");};function Qu({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?iX():sX();},[e]);const u=f.useRef(null),d=Dh(),{bg:m,c:g}=f.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),h=f.useMemo(()=>d?{"--bg":m,"--c":g,backgroundColor:m,color:g}:{},[m,g,d]),v=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=st(y=>{var w;const C=y.target;(w=u.current)!=null&&w.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return sn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?uy.createPortal(j("div",{className:K(or.modalMask,o),style:r,onClick:b,children:j("div",{className:K(or.modal,i),style:{...h,width:s,...a},ref:u,children:n})}),p):null}const Zu=e=>j(At,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function Uh(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}let lX=class extends Error{constructor(t){super(t),this.name="TimeoutError";}},cX=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}};const M0=e=>globalThis.DOMException===void 0?new cX(e):new DOMException(e),R0=e=>{const t=e.reason===void 0?M0("This operation was aborted."):e.reason;return t instanceof Error?t:M0(t)};function uX(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:a={setTimeout,clearTimeout}}=t;let i;const l=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:m}=t;m.aborted&&u(R0(m)),m.addEventListener("abort",()=>{u(R0(m));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new lX;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(m){u(m);}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?u(o):(d.message=o??`Promise timed out after ${n} milliseconds`,u(d));},n),(async()=>{try{c(await e);}catch(m){u(m);}})();}).finally(()=>{l.clear();});return l.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},l}const dX=e=>{const t=e.on||e.addListener||e.addEventListener,n=e.off||e.removeListener||e.removeEventListener;if(!t||!n)throw new TypeError("Emitter is not compatible");return {addListener:t.bind(e),removeListener:n.bind(e)}};function fX(e,t,n){let r;const o=new Promise((a,i)=>{var g;if(n={rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1,...n},!(n.count>=0&&(n.count===Number.POSITIVE_INFINITY||Number.isInteger(n.count))))throw new TypeError("The `count` option should be at least 0 or more");(g=n.signal)==null||g.throwIfAborted();const s=[t].flat(),l=[],{addListener:c,removeListener:u}=dX(e),d=(...h)=>{const v=n.multiArgs?h:h[0];n.filter&&!n.filter(v)||(l.push(v),n.count===l.length&&(r(),a(l)));},m=h=>{r(),i(h);};r=()=>{for(const h of s)u(h,d);for(const h of n.rejectionEvents)u(h,m);};for(const h of s)c(h,d);for(const h of n.rejectionEvents)c(h,m);n.signal&&n.signal.addEventListener("abort",()=>{m(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(l);});if(o.cancel=r,typeof n.timeout=="number"){const a=uX(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function mX(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=fX(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var gX=Object.defineProperty,wc=Object.getOwnPropertySymbols,tw=Object.prototype.hasOwnProperty,nw=Object.prototype.propertyIsEnumerable,_0=(e,t,n)=>t in e?gX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hX=(e,t)=>{for(var n in t||(t={}))tw.call(t,n)&&_0(e,n,t[n]);if(wc)for(var n of wc(t))nw.call(t,n)&&_0(e,n,t[n]);return e},vX=(e,t)=>{var n={};for(var r in e)tw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wc)for(var r of wc(e))t.indexOf(r)<0&&nw.call(e,r)&&(n[r]=e[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT */var ea;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let m=[];for(let h=0;h7)throw new RangeError("Invalid value");let h,v;for(h=u;;h++){const C=t.getNumDataCodewords(h,c)*8,w=s.getTotalBits(l,h);if(w<=C){v=w;break}if(h>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])g&&v<=t.getNumDataCodewords(h,C)*8&&(c=C);let p=[];for(const C of l){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(h),p);for(const w of C.getData())p.push(w);}a(p.length==v);const b=t.getNumDataCodewords(h,c)*8;a(p.length<=b),r(0,Math.min(4,b-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let C=236;p.lengthy[w>>>3]|=C<<7-(w&7)),new t(h,c,y,m)}getModule(l,c){return 0<=l&&l>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let m=0;m<=5;m++)this.setFunctionModule(8,m,o(d,m));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let m=9;m<15;m++)this.setFunctionModule(14-m,8,o(d,m));for(let m=0;m<8;m++)this.setFunctionModule(this.size-1-m,8,o(d,m));for(let m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,o(d,m));this.setFunctionModule(8,this.size-8,!0);}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=o(c,u),m=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(m,g,d),this.setFunctionModule(g,m,d);}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const m=Math.max(Math.abs(d),Math.abs(u)),g=l+d,h=c+u;0<=g&&g{(C!=v-m||E>=h)&&y.push(w[C]);});return a(y.length==g),y}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d>>3],7-(c&7)),c++);}}a(c==l.length*8);}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c5&&l++):(this.finderPenaltyAddHistory(h,v),g||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),g=this.modules[m][p],h=1);l+=this.finderPenaltyTerminateAndCount(g,h,v)*t.PENALTY_N3;}for(let m=0;m5&&l++):(this.finderPenaltyAddHistory(h,v),g||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),g=this.modules[p][m],h=1);l+=this.finderPenaltyTerminateAndCount(g,h,v)*t.PENALTY_N3;}for(let m=0;mg+(h?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return [];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36);}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d0);for(const d of l){const m=d^u.shift();u.push(0),c.forEach((g,h)=>u[h]^=t.reedSolomonMultiply(g,m));}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return (u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l);}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1);}function o(l,c){return (l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice();}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new i(i.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u=1<{(t=>{const n=class{constructor(o,a){this.ordinal=o,this.formatBits=a;}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r;})(e.QrCode||(e.QrCode={}));})(ea||(ea={}));(e=>{(t=>{const n=class{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a;}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r;})(e.QrSegment||(e.QrSegment={}));})(ea||(ea={}));var Wi=ea;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC */var pX={L:Wi.QrCode.Ecc.LOW,M:Wi.QrCode.Ecc.MEDIUM,Q:Wi.QrCode.Ecc.QUARTILE,H:Wi.QrCode.Ecc.HIGH},bX=128,yX="L",CX="#FFFFFF",SX="#000000",$X=!1,rw=4,wX=.1;function xX(e,t=0){const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,s){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!i)return;a===null?n.push(`M${s+t},${o+t} h1v1H${s+t}z`):n.push(`M${a+t},${o+t} h${s+1-a}v1H${a+t}z`);return}i&&a===null&&(a=s);});}),n.join("")}function EX(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,a)=>a=t.x+t.w?o:!1))}function IX(e,t,n,r){if(r==null)return null;const o=n?rw:0,a=e.length+o*2,i=Math.floor(t*wX),s=a/t,l=(r.width||i)*s,c=(r.height||i)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let m=null;if(r.excavate){let g=Math.floor(u),h=Math.floor(d),v=Math.ceil(l+u-g),p=Math.ceil(c+d-h);m={x:g,y:h,w:v,h:p};}return {x:u,y:d,h:c,w:l,excavation:m}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function OX(e){const t=e,{value:n,size:r=bX,level:o=yX,bgColor:a=CX,fgColor:i=SX,includeMargin:s=$X,imageSettings:l}=t,c=vX(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=Wi.QrCode.encodeText(n,pX[o]).getModules();const d=s?rw:0,m=u.length+d*2,g=IX(u,r,s,l);let h=null;l!=null&&g!=null&&(g.excavation!=null&&(u=EX(u,g.excavation)),h=f.createElement("image",{xlinkHref:l.src,height:g.h,width:g.w,x:g.x+d,y:g.y+d,preserveAspectRatio:"none"}));const v=xX(u,d);return f.createElement("svg",hX({height:r,width:r,viewBox:`0 0 ${m} ${m}`},c),f.createElement("path",{fill:a,d:`M0,0 h${m}v${m}H0z`,shapeRendering:"crispEdges"}),f.createElement("path",{fill:i,d:v,shapeRendering:"crispEdges"}),h)}var Js,T0=uy;Js=T0.createRoot,T0.hydrateRoot;var ow={exports:{}},aw={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o>>6-a*2);return r}};aw.exports=t;})();var PX=aw.exports,Em={utf8:{stringToBytes:function(e){return Em.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Em.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n * @license MIT */var MX=function(e){return e!=null&&(iw(e)||RX(e)||!!e._isBuffer)};function iw(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function RX(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&iw(e.slice(0,0))}(function(){var e=PX,t=N0.utf8,n=MX,r=N0.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=e.bytesToWords(a),l=a.length*8,c=1732584193,u=-271733879,d=-1732584194,m=271733878,g=0;g>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var h=o._ff,v=o._gg,p=o._hh,b=o._ii,g=0;g>>0,u=u+C>>>0,d=d+w>>>0,m=m+E>>>0;}return e.endian([c,u,d,m])};o._ff=function(a,i,s,l,c,u,d){var m=a+(i&s|~i&l)+(c>>>0)+d;return (m<>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var m=a+(i&l|s&~l)+(c>>>0)+d;return (m<>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var m=a+(i^s^l)+(c>>>0)+d;return (m<>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var m=a+(s^(i|~l))+(c>>>0)+d;return (m<>>32-u)+i},o._blocksize=16,o._digestsize=16,ow.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var s=e.wordsToBytes(o(a,i));return i&&i.asBytes?s:i&&i.asString?r.bytesToString(s):e.bytesToHex(s)};})();var _X=ow.exports;const sw=hn(_X);var ni=1e3,ri=ni*60,oi=ri*60,ta=oi*24,TX=ta*7,NX=ta*365.25,kX=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return AX(e);if(n==="number"&&isFinite(e))return t.long?zX(e):LX(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function AX(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*NX;case"weeks":case"week":case"w":return n*TX;case"days":case"day":case"d":return n*ta;case"hours":case"hour":case"hrs":case"hr":case"h":return n*oi;case"minutes":case"minute":case"mins":case"min":case"m":return n*ri;case"seconds":case"second":case"secs":case"sec":case"s":return n*ni;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function LX(e){var t=Math.abs(e);return t>=ta?Math.round(e/ta)+"d":t>=oi?Math.round(e/oi)+"h":t>=ri?Math.round(e/ri)+"m":t>=ni?Math.round(e/ni)+"s":e+"ms"}function zX(e){var t=Math.abs(e);return t>=ta?Il(e,t,ta,"day"):t>=oi?Il(e,t,oi,"hour"):t>=ri?Il(e,t,ri,"minute"):t>=ni?Il(e,t,ni,"second"):e+" ms"}function Il(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const el=hn(kX),DX=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function jX(e){let t="";return DX.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function FX(e){const{img_key:t,sub_key:n}=await BX(),r=jX(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g;let i=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{i.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(a,""))}`);});const s=i.join("&"),l=sw(s+r);return {wts:o,w_rid:l}}let af,sf,lf;async function BX(){const e=()=>la().format("YYYYMMDD");if(af&&sf&&lf&&lf===e()&&Date.now()-sf<=el("6h"))return af;const r=(await Ym.get("/x/web-interface/nav",{baseURL:v1})).data,o=r.data.wbi_img.img_url,a=r.data.wbi_img.sub_url,i={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:a.slice(a.lastIndexOf("/")+1,a.lastIndexOf("."))};return af=i,lf=e(),sf=Date.now(),i}function lw(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),sw(r.toString()+n)}const vn=Ym.create({baseURL:v1,withCredentials:!0});vn.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await FX(e.params)}),e});function Qr(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const Ju=Ym.create({adapter:Jx}),k0=Ka.appkey,HX=Ka.appsec;Ju.interceptors.request.use(function(e){return e.params={appkey:k0,access_key:Pt.accessKey||"",...e.params},e.params.sign=lw(e.params,k0,HX),e});Ju.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});const cw=e=>{const t=lw(e,Ka.appkey,Ka.appsec);return new URLSearchParams({...e,sign:t})};async function WX(){const t=(await vn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",cw({appkey:Ka.appkey,local_id:"0",ts:"0"}))).data;if(!Qr(t)){xt((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function VX(e){const n=(await vn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",cw({appkey:Ka.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Qr(n)){const a=n.code.toString(),i=n.message||r[n.code.toString()]||"未知错误";return a==="86038"?{success:!1,message:i,action:"refresh"}:a==="86039"||a==="86090"?{success:!1,message:i,action:"wait"}:{success:!1,message:i,action:void 0}}return {success:!0,accessKey:n.data.access_token,message:"获取成功"}}async function KX(e){const n=(await vn.post("https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",new URLSearchParams({auth_code:e,scanning_type:"1",csrf:wi()}))).data;if(!Qr(n)){const r=n.message||"未知错误";return xt(r)}}const Xh={show:!1,qrcode:"",auth_code:"",message:""},hs=ir({...Xh}),Ia=hs;function Ji(e){JX(),Object.assign(hs,e);}function GX(e){Ji({...Xh,...e,show:!0});}function uw(){dw.emit("hide"),Ji({...Xh});}const dw=Uh();function UX(){return mX(dw,"hide")}async function XX(){hs.auth_code&&await KX(hs.auth_code);}var qX={name:"7zumh8",styles:"margin:10px 15px;text-align:right"},YX={name:"dbvn1l",styles:"height:30px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:5px"},QX={name:"1azakc",styles:"text-align:center"};function ZX(){const{qrcode:e,show:t,message:n}=lr(hs),r=uw,{runAsync:o,loading:a}=K$(XX,{manual:!0});return pe(Qu,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,styleModal:{width:"600px"},children:[pe("div",{className:or.modalHeader,children:[j("div",{className:or.modalTitle,children:"使用移动端 Bilibili App 扫码获取 access_key"}),j("div",{className:"space",style:{flex:1}}),j(Zu,{onClick:r})]}),pe("div",{className:or.modalBody,children:[pe("div",{className:"wrapper",css:QX,children:[j("div",{css:YX,children:n||""}),e?j(OX,{value:e,size:200}):j("div",{className:"qrcode-placeholder"})]}),j("div",{css:qX,children:j(Vu,{title:"可能会导致桌面端掉登录, 谨慎使用",children:j(Ut,{onClick:o,loading:a,children:"使用桌面端确认"})})})]})]})}const JX=p$(function(){const t=document.createElement("div");t.classList.add("tv-qrcode-auth"),document.body.appendChild(t),Js(t).render(j(Bh,{children:j(ZX,{})}));});async function A0(){const e=await WX();if(e)return GX({qrcode:e.url,auth_code:e.auth_code}),!0}window.getAccessKeyByQRCode=fw;async function fw(){if(!await A0())return;let t,n=Ia.auth_code;function r(){if(!Ia.show||!Ia.auth_code||n!==Ia.auth_code)return !0}for(;;){if(r())return;const o=br(1500),a=UX();if(await Promise.race([o,a]),a.cancel(),r())return;t=await VX(Ia.auth_code);const{success:i,accessKey:s,message:l,action:c}=t;if(Ji({message:l}),i)return await br(1e3),uw(),s;if(c==="refresh"){await br(2e3),await A0(),n=Ia.auth_code,Ji({message:"已刷新二维码"});continue}if(c!=="wait"){if(r())return;Ji({message:l}),xt(l);return}}}async function eq(){const e=await fw();if(e)return Pt.accessKey=e,xt("获取成功"),e}function tq(){Pt.accessKey="",xt("已删除 access_key");}const L0=j(Ut,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function mw({style:e,className:t}){const {runAsync:n,loading:r}=K$(eq,{manual:!0}),{accessKey:o}=In(),a=tq,s=l=>l;return j(Bs,{size:"small",style:e,className:t,children:o?pe(Rt,{children:[s(j(Ut,{onClick:n,disabled:r,children:j("span",{children:"重新获取 access_key"})})),j(Ut,{onClick:a,children:j("span",{children:"删除 access_key"})}),L0]}):pe(Rt,{children:[s(j(Ut,{onClick:n,disabled:r,size:"middle",children:j("span",{children:"获取 access_key"})})),L0]})})}const gw=f__namespace.createContext(null),nq=gw.Provider,hw=f__namespace.createContext(null),rq=hw.Provider,oq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Lt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},aq=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:m,colorTextDisabled:g,paddingXS:h,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Lt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${p} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},Zo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},iq=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:g,controlHeightSM:h,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:w,colorTextDisabled:E,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:$,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:_,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:A}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${a} ${i}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:v-o,paddingBlock:0,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},Zo(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:I,background:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:k,borderColor:k},"&:active":{color:w,background:A,borderColor:A}},"&-disabled":{color:E,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},z0=e=>e-4*2,vw=Ft("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=z0(r),s=pt(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [oq(s),aq(s),iq(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:g}=e,h=4,v=a,p=t?z0(v):v-(h+o)*2;return {radioSize:v,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var sq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=f__namespace.useContext(gw),a=f__namespace.useContext(hw),{getPrefixCls:i,direction:s,radio:l}=f__namespace.useContext(et),c=f__namespace.useRef(null),u=Wn(t,c),{isFormItemInput:d}=f__namespace.useContext(yr),m=_=>{var M,k;(M=e.onChange)===null||M===void 0||M.call(e,_),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,_);},{prefixCls:g,className:h,rootClassName:v,children:p,style:b}=e,y=sq(e,["prefixCls","className","rootClassName","children","style"]),C=i("radio",g),w=((o==null?void 0:o.optionType)||a)==="button",E=w?`${C}-button`:C,[x,S]=vw(C),$=Object.assign({},y),I=f__namespace.useContext(Yr);o&&($.name=o.name,$.onChange=m,$.checked=e.value===o.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:o.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:I;const O=K(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:d},l==null?void 0:l.className,h,v,S);return x(f__namespace.createElement(Ds,{component:"Radio",disabled:$.disabled},f__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(RC,Object.assign({},$,{className:K($.className,!w&&Eu),type:"radio",prefixCls:E,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},cq=f__namespace.forwardRef(lq),xc=cq,uq=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(et),[o,a]=Wt(e.defaultValue,{value:e.value}),i=M=>{const k=o,A=M.target.value;"value"in e||a(A);const{onChange:L}=e;L&&A!==k&&L(M);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:g,size:h,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w}=e,E=n("radio",s),x=`${E}-group`,[S,$]=vw(E);let I=g;u&&u.length>0&&(I=u.map(M=>typeof M=="string"||typeof M=="number"?f__namespace.createElement(xc,{key:M.toString(),prefixCls:E,disabled:m,value:M,checked:o===M},M):f__namespace.createElement(xc,{key:`radio-group-value-options-${M.value}`,prefixCls:E,disabled:M.disabled||m,value:M.value,checked:o===M.value,title:M.title,style:M.style,id:M.id},M.label)));const O=Un(h),_=K(x,`${x}-${d}`,{[`${x}-${O}`]:O,[`${x}-rtl`]:r==="rtl"},l,c,$);return S(f__namespace.createElement("div",Object.assign({},Qa(e,{aria:!0,data:!0}),{className:_,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w,id:p,ref:t}),f__namespace.createElement(nq,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),dq=f__namespace.memo(uq);var fq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=f__namespace.useContext(et),{prefixCls:r}=e,o=fq(e,["prefixCls"]),a=n("radio",r);return f__namespace.createElement(rq,{value:"button"},f__namespace.createElement(xc,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},gq=f__namespace.forwardRef(mq),ed=xc;ed.Button=gq;ed.Group=dq;ed.__ANT_RADIO=!0;const D0=ed;function hq(e,t){const n=Object.keys(e),r=Eg(JSON.parse(localStorage.getItem(t)||"{}"),n),o=ir({...e,...r});return zh(o,()=>{const a=pc(o);localStorage.setItem(t,JSON.stringify(a));}),o}const vq=`${xn}-video-source-tab`,qh=hq({value:"recommend-app"},vq),Im={name:"qamjgr",styles:"margin-right:4px"},tl=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"keep-follow-only",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic-feed",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],j0=tl.reduce((e,t)=>({...e,[t.key]:t}),{}),pq=tl.map(e=>e.key);function pw(){const{showingTabKeys:e}=In();return f.useMemo(()=>e.length?e:tl.map(t=>t.key),[e])}function bq(){const e=pw(),t=Wh();return f.useMemo(()=>tl.filter(n=>e.includes(n.key)||!t&&n.key==="recommend-app"),[e,t])}function bw(e,t){return pq.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function nl(){return bw(lr(qh).value,Wh())}function yq(){return bw(qh.value,qs())}function Cq(){return xt("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const Sq={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},$q={name:"s0vnfv",styles:"height:32px"};var wq={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},xq={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function yw({onRefresh:e}){const t=Wh(),n=nl(),{styleUseStandardVideoSourceTab:r}=In(),o=bq();return pe(Rt,{children:[j(D0.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:a=>{a.target.blur();},onChange:a=>{const i=a.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!FK())return Cq();qh.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>j(D0.Button,{css:[Sq,r&&$q,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:pe("span",{css:xq,children:[j(At,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Im}),i]})},a))}),j(Ku,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:j(Rt,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>pe("div",{css:wq,children:[j(At,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Im}),i,": ",c]},a))})})]})}async function Cw(){var n;return ((n=(await vn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Om(e){var a,i;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:wi(),...e}),n=(await vn.post("/x/article/creative/draft/addupdate",t)).data,r=(i=(a=n==null?void 0:n.data)==null?void 0:a.aid)==null?void 0:i.toString(),o=Qr(n);return o||xt(n.message||"addupdate error"),{success:o,aid:r}}async function Eq(e){var n;const t=(await vn.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function Iq(){const t=(await Cw()).find(i=>i.title===xn);if(!t){await Om({title:xn});return}const n=await Eq(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}async function Oq(e){const n=(await Cw()).find(i=>i.title===xn);let r="";if(n)r=n.id.toString();else {const{success:i,aid:s}=await Om({title:xn});if(!i)return !1;r=s;}const o=JSON.stringify(e),{success:a}=await Om({aid:r,title:xn,content:`

${o}

`,words:o.length.toString()});return a}const Pq="_config-icon_1xtyf_1",Mq="_settings-group_1xtyf_6",Rq="_settings-group-title_1xtyf_9",_q="_settings-group-sub-title_1xtyf_14",Tq="_settings-group-content_1xtyf_20",Nq="_row_1xtyf_26",kq="_check_1xtyf_34",Aq="_setting-tabs_1xtyf_39",Lq="_tab-pane_1xtyf_42",Ge={configIcon:Pq,settingsGroup:Mq,settingsGroupTitle:Rq,settingsGroupSubTitle:_q,settingsGroupContent:Tq,row:Nq,check:kq,settingTabs:Aq,tabPane:Lq};async function Yh(){xt("即将刷新网页"),await br(500),location.reload();}function zq(){return Yq(),Yh()}let Sw=!1;async function Dq(){const e=await Iq(),t=Eg(e||{},$w);return Object.keys(t).length?(Sw=!0,Cr({...t}),Yh()):xt("备份不存在或没有有效的配置")}function Ol(e,t,n){return sn(e,r=>{if(Uu())return;Pt[t]=!Pt[t];const o=!Pt[t];xt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function jq({show:e,onHide:t}){const{filterMinPlayCount:n,filterMinPlayCountEnabled:r,filterMinDuration:o,filterMinDurationEnabled:a,filterOutGotoTypePicture:i}=In();return Ol(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Ol(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Ol(["shift.c"],"useNarrowMode","居中模式"),Ol(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),pe(Qu,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[pe("div",{className:or.modalHeader,children:[pe("div",{className:or.modalTitle,children:[j(At,{name:"Config",className:Ge.configIcon}),"设置项"]}),j("div",{className:"space",style:{flex:1}}),j(Zu,{onClick:t})]}),j("main",{className:or.modalBody,style:{overflow:"hidden"},children:j(HB,{tabPosition:"left",size:"middle",defaultActiveKey:"basic",className:Ge.settingTabs,items:[{label:"常规设置",key:"basic",children:j(Fq,{})},{label:"内容过滤",key:"filter",children:j("div",{className:Ge.tabPane,children:pe("div",{className:Ge.settingsGroup,children:[pe("div",{className:Ge.settingsGroupTitle,children:["内容过滤",j(Ku,{iconProps:{name:"Tips"},tooltip:pe(Rt,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",j("br",{}),"仅推荐类 Tab 生效"]})})]}),pe("div",{className:K(Ge.settingsGroupContent),children:[j("div",{className:Ge.settingsGroupSubTitle,children:"视频"}),pe("div",{className:Ge.row,children:[j(wn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:j(Rt,{children:"不显示播放量很少的视频"})}),j(um,{size:"small",min:1,step:1e3,value:n,onChange:s=>s&&Cr({filterMinPlayCount:s}),disabled:!r})]}),pe("div",{className:Ge.row,style:{marginTop:3},children:[j(wn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:j(Rt,{children:"不显示短视频"})}),j(um,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:o,onChange:s=>s&&Cr({filterMinDuration:s}),disabled:!a})]}),j(wn,{className:Ge.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:j(Rt,{children:"默认不过滤「已关注」"})}),j("div",{className:Ge.settingsGroupSubTitle,children:"图文"}),j(wn,{className:Ge.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:j(Rt,{children:"过滤掉图文推荐"})}),j(wn,{className:Ge.row,disabled:!i,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:j(Rt,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:j("div",{className:Ge.tabPane,children:pe("div",{className:Ge.settingsGroup,children:[j("div",{className:Ge.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),pe("div",{className:K(Ge.settingsGroupContent),children:[j("div",{className:Ge.row,children:j(wn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:pe(Rt,{children:["增加卡片大小, 增大卡片间距",j("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+y"})]})})}),j("div",{className:Ge.row,style:{marginTop:5},children:j(wn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:j("div",{className:Ge.tabPane,children:pe("div",{className:Ge.settingsGroup,children:[j("div",{className:Ge.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),j("div",{className:K(Ge.settingsGroupContent),children:j(TK,{})})]})})},{label:"高级设置",key:"advance",children:j(Wq,{})}]})})]})}function Fq(){return pe("div",{className:Ge.tabPane,children:[pe("div",{className:Ge.settingsGroup,children:[pe("div",{className:Ge.settingsGroupTitle,children:["access_key",j(Ku,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:pe(Rt,{children:["用于「推荐」Tab",j("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),j("div",{className:K(Ge.settingsGroupContent),children:j("div",{className:Ge.row,style:{marginTop:5},children:j(mw,{})})})]}),pe("div",{className:Ge.settingsGroup,children:[j("div",{className:Ge.settingsGroupTitle,children:"开关"}),pe("div",{className:K(Ge.settingsGroupContent,Ge.row),children:[j(wn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:pe(Rt,{children:["首页只保留推荐",j("br",{}),"P.S 需要刷新网页~"]}),className:Ge.check,extraAction:Yh}),j(wn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ge.check,extraAction:e=>{e&&xt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),j(wn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:pe(Rt,{children:["居中两列",j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+c"})]}),className:Ge.check})]})]}),pe("div",{className:Ge.settingsGroup,children:[j("div",{className:Ge.settingsGroupTitle,children:"预览"}),pe("div",{className:K(Ge.settingsGroupContent,Ge.row),children:[j(wn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ge.check,tooltip:pe(Rt,{children:["手动预览快捷键: ",j(yo,{color:"green",children:"."})," or ",j(yo,{color:"green",children:"p"}),j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+p"})]})}),j(wn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ge.check,tooltip:pe(Rt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+m"})]})})]})]}),pe("div",{className:Ge.settingsGroup,children:[j("div",{className:Ge.settingsGroupTitle,children:"帮助"}),j("div",{className:K(Ge.settingsGroupContent),children:j("div",{className:Ge.row,children:pe(Bs,{size:"small",children:[j(Ut,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),j(Ut,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),j(Ut,{href:"https://github.com/magicdawn/bilibili-app-recommend#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"}),j(Ut,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),j(Ut,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}var Bq={name:"1yvqi6w",styles:"display:flex;align-items:center;margin-right:15px"},Hq={name:"1nwso5m",styles:".ant-checkbox-group-item{align-items:center;}"};function Wq(){const e=pw(),{autoPreviewUpdateInterval:t}=In();return j("div",{className:Ge.tabPane,children:pe("div",{className:Ge.settingsGroup,children:[j("div",{className:Ge.settingsGroupTitle,children:"设置项"}),j("div",{className:K(Ge.settingsGroupContent),children:j("div",{className:Ge.row,children:j(bb,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:zq,children:j(Ut,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),j("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),pe("div",{className:K(Ge.settingsGroupContent),children:[pe("div",{className:Ge.row,children:[j(wn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${xn}`}),pe("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[j(At,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),j("div",{className:Ge.row,style:{marginTop:5},children:j(bb,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:Dq,children:j(Ut,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),j("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),pe("div",{className:K(Ge.settingsGroupContent),children:[j("div",{className:Ge.row,children:j(wn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:j(Rt,{children:"不包括最近添加的「稍后再看」"})})}),j("div",{className:Ge.row,children:j(wn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),j("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"Tab 显示"}),pe("div",{className:K(Ge.settingsGroupContent),children:[j("div",{className:Ge.row,children:j(Iu.Group,{css:Hq,options:tl.map(({label:n,key:r,icon:o,iconProps:a})=>({label:pe("span",{css:Bq,children:[j(At,{name:o,...a,size:(a==null?void 0:a.size)||18,css:Im}),n]}),value:r})),value:e,onChange:n=>{if(!n.length)return xt("至少选择一项!");Cr({showingTabKeys:n});}})}),j(Ut,{style:{marginTop:5},onClick:()=>{Cr({showingTabKeys:[]});},children:"重置"})]}),j("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"预览"}),pe("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",j(mz,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:n=>Pt.autoPreviewUpdateInterval=n,value:t}),pe("span",{style:{width:"65px"},children:["(",t,"ms)"]})]})]})})}const Vq=vi.extend("settings"),Qh={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1,showingTabKeys:[]},Pt=ir({...Qh}),$w=Object.keys(Qh);function In(){return lr(Pt)}const Kq=xn,ww=`${Kq}.settings`;async function Gq(){const e=await GM.getValue(ww);e&&typeof e=="object"&&Object.assign(Pt,Eg(e,$w)),zh(Pt,()=>{Xq();});}const Uq=g1(Oq,el("5s"));async function Xq(){const e=pc(Pt);await GM.setValue(ww,e),await qq(e);}async function qq(e){if(!e.backupSettingsToArticleDraft||Sw)return;const t=yk(e,["accessKey"]);try{await Uq(t),Vq("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Cr(e){Object.assign(Pt,e);}function Yq(){return Cr(Qh)}await( Gq());var xw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ra,function(){var n,r,o=1e3,a=6e4,i=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},g=function(x){return x instanceof w},h=function(x,S,$){return new w(x,$,S.$l)},v=function(x){return r.p(x)+"s"},p=function(x){return x<0},b=function(x){return p(x)?Math.ceil(x):Math.floor(x)},y=function(x){return Math.abs(x)},C=function(x,S){return x?p(x)?{negative:!0,format:""+y(x)+S}:{negative:!1,format:""+x+S}:{negative:!1,format:""}},w=function(){function x($,I,O){var _=this;if(this.$d={},this.$l=O,$===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return h($*m[v(I)],this);if(typeof $=="number")return this.$ms=$,this.parseFromMilliseconds(),this;if(typeof $=="object")return Object.keys($).forEach(function(A){_.$d[v(A)]=$[A];}),this.calMilliseconds(),this;if(typeof $=="string"){var M=$.match(d);if(M){var k=M.slice(2).map(function(A){return A!=null?Number(A):0});return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var S=x.prototype;return S.calMilliseconds=function(){var $=this;this.$ms=Object.keys(this.$d).reduce(function(I,O){return I+($.$d[O]||0)*m[O]},0);},S.parseFromMilliseconds=function(){var $=this.$ms;this.$d.years=b($/c),$%=c,this.$d.months=b($/u),$%=u,this.$d.days=b($/s),$%=s,this.$d.hours=b($/i),$%=i,this.$d.minutes=b($/a),$%=a,this.$d.seconds=b($/o),$%=o,this.$d.milliseconds=$;},S.toISOString=function(){var $=C(this.$d.years,"Y"),I=C(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var _=C(O,"D"),M=C(this.$d.hours,"H"),k=C(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var L=C(A,"S"),R=$.negative||I.negative||_.negative||M.negative||k.negative||L.negative,P=M.format||k.format||L.format?"T":"",T=(R?"-":"")+"P"+$.format+I.format+_.format+P+M.format+k.format+L.format;return T==="P"||T==="-P"?"P0D":T},S.toJSON=function(){return this.toISOString()},S.format=function($){var I=$||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return I.replace(l,function(_,M){return M||String(O[_])})},S.as=function($){return this.$ms/m[v($)]},S.get=function($){var I=this.$ms,O=v($);return O==="milliseconds"?I%=1e3:I=O==="weeks"?b(I/m[O]):this.$d[O],I||0},S.add=function($,I,O){var _;return _=I?$*m[v(I)]:g($)?$.$ms:h($,this).$ms,h(this.$ms+_*(O?-1:1),this)},S.subtract=function($,I){return this.add($,I,!0)},S.locale=function($){var I=this.clone();return I.$l=$,I},S.clone=function(){return h(this.$ms,this)},S.humanize=function($){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!$)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},x}(),E=function(x,S,$){return x.add(S.years()*$,"y").add(S.months()*$,"M").add(S.days()*$,"d").add(S.hours()*$,"h").add(S.minutes()*$,"m").add(S.seconds()*$,"s").add(S.milliseconds()*$,"ms")};return function(x,S,$){n=$,r=$().$utils(),$.duration=function(_,M){var k=$.locale();return h(_,{$l:k},M)},$.isDuration=g;var I=S.prototype.add,O=S.prototype.subtract;S.prototype.add=function(_,M){return g(_)?E(this,_,1):I.bind(this)(_,M)},S.prototype.subtract=function(_,M){return g(_)?E(this,_,-1):O.bind(this)(_,M)};}});})(xw);var Qq=xw.exports;const Zq=hn(Qq);function Zh(e){const t=ir({data:Array.from(new Set(e)),has(n){return this.data.indexOf(n)!==-1},add(n){let r=!1;return typeof n=="object"&&n!==null&&(r=this.data.indexOf(ir(n))!==-1),this.data.indexOf(n)===-1&&!r&&this.data.push(n),this},delete(n){const r=this.data.indexOf(n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},forEach(n){this.data.forEach(r=>{n(r,r,this);});},get[Symbol.toStringTag](){return "Set"},toJSON(){return new Set(this.data)},[Symbol.iterator](){return this.data[Symbol.iterator]()},values(){return this.data.values()},keys(){return this.data.values()},entries(){return new Set(this.data).entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}function Jq(e){const t=ir({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(a=>a[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var vr,Vt,rn,Co,Ss,So,$s,Pm,tr,Er,kc,Ew,ws,Mm,xs,Rm,Es,_m,Ac,Iw,Is,Tm;class eY extends Map{constructor(n={}){super();jn(this,$s);jn(this,tr);jn(this,kc);jn(this,ws);jn(this,xs);jn(this,Es);jn(this,Ac);jn(this,Is);jn(this,vr,0);jn(this,Vt,new Map);jn(this,rn,new Map);jn(this,Co,void 0);jn(this,Ss,void 0);jn(this,So,void 0);if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");Pn(this,Co,n.maxSize),Pn(this,Ss,n.maxAge||Number.POSITIVE_INFINITY),Pn(this,So,n.onEviction);}get __oldCache(){return it(this,rn)}get(n){if(it(this,Vt).has(n)){const r=it(this,Vt).get(n);return Qt(this,ws,Mm).call(this,n,r)}if(it(this,rn).has(n)){const r=it(this,rn).get(n);if(Qt(this,tr,Er).call(this,n,r)===!1)return Qt(this,Ac,Iw).call(this,n,r),r.value}}set(n,r,{maxAge:o=it(this,Ss)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return it(this,Vt).has(n)?it(this,Vt).set(n,{value:r,expiry:a}):Qt(this,Es,_m).call(this,n,{value:r,expiry:a}),this}has(n){return it(this,Vt).has(n)?!Qt(this,tr,Er).call(this,n,it(this,Vt).get(n)):it(this,rn).has(n)?!Qt(this,tr,Er).call(this,n,it(this,rn).get(n)):!1}peek(n){if(it(this,Vt).has(n))return Qt(this,xs,Rm).call(this,n,it(this,Vt));if(it(this,rn).has(n))return Qt(this,xs,Rm).call(this,n,it(this,rn))}delete(n){const r=it(this,Vt).delete(n);return r&&gd(this,vr)._--,it(this,rn).delete(n)||r}clear(){it(this,Vt).clear(),it(this,rn).clear(),Pn(this,vr,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...Qt(this,Is,Tm).call(this)],o=r.length-n;o<0?(Pn(this,Vt,new Map(r)),Pn(this,rn,new Map),Pn(this,vr,r.length)):(o>0&&Qt(this,$s,Pm).call(this,r.slice(0,o)),Pn(this,rn,new Map(r.slice(o))),Pn(this,Vt,new Map),Pn(this,vr,0)),Pn(this,Co,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of it(this,Vt)){const[r,o]=n;Qt(this,tr,Er).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of it(this,rn)){const[r,o]=n;it(this,Vt).has(r)||Qt(this,tr,Er).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...it(this,Vt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;Qt(this,tr,Er).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...it(this,rn)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;it(this,Vt).has(a)||Qt(this,tr,Er).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of Qt(this,Is,Tm).call(this))yield [n,r.value];}get size(){if(!it(this,vr))return it(this,rn).size;let n=0;for(const r of it(this,rn).keys())it(this,Vt).has(r)||n++;return Math.min(it(this,vr)+n,it(this,Co))}get maxSize(){return it(this,Co)}entries(){return this.entriesAscending()}forEach(n,r=this){for(const[o,a]of this.entriesAscending())n.call(r,a,o,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}vr=new WeakMap,Vt=new WeakMap,rn=new WeakMap,Co=new WeakMap,Ss=new WeakMap,So=new WeakMap,$s=new WeakSet,Pm=function(n){if(typeof it(this,So)=="function")for(const[r,o]of n)it(this,So).call(this,r,o.value);},tr=new WeakSet,Er=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof it(this,So)=="function"&&it(this,So).call(this,n,r.value),this.delete(n)):!1},kc=new WeakSet,Ew=function(n,r){if(Qt(this,tr,Er).call(this,n,r)===!1)return r.value},ws=new WeakSet,Mm=function(n,r){return r.expiry?Qt(this,kc,Ew).call(this,n,r):r.value},xs=new WeakSet,Rm=function(n,r){const o=r.get(n);return Qt(this,ws,Mm).call(this,n,o)},Es=new WeakSet,_m=function(n,r){it(this,Vt).set(n,r),gd(this,vr)._++,it(this,vr)>=it(this,Co)&&(Pn(this,vr,0),Qt(this,$s,Pm).call(this,it(this,rn)),Pn(this,rn,it(this,Vt)),Pn(this,Vt,new Map));},Ac=new WeakSet,Iw=function(n,r){it(this,rn).delete(n),Qt(this,Es,_m).call(this,n,r);},Is=new WeakSet,Tm=function*(){for(const n of it(this,rn)){const[r,o]=n;it(this,Vt).has(r)||Qt(this,tr,Er).call(this,r,o)===!1&&(yield n);}for(const n of it(this,Vt)){const[r,o]=n;Qt(this,tr,Er).call(this,r,o)===!1&&(yield n);}};async function tY(e){return (await vn.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function nY(e){return []}const cf=new eY({maxSize:1e3});async function rY(e){if(cf.has(e))return cf.get(e);const[t,n]=await Promise.all([tY(e),nY()]);return cf.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Ow(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:wi()}),a=(await vn.post("/x/v2/history/toview/"+e,r)).data,i=Qr(a);return i||xt((a==null?void 0:a.message)||"出错了"),i}}const Pl=Ow("add"),F0=Ow("del"),Pw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await Ju.get(p1+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Qr(a)}},oY=Pw("dislike"),aY=Pw("cancel"),iY="_modal_1rloz_1",sY="_title-desc_1rloz_4",lY="_reason-list_1rloz_8",cY="_reason_1rloz_8",uY="_active_1rloz_29",dY="_reason-no_1rloz_33",fY="_tips-container_1rloz_47",mY="_tips_1rloz_47",hr={modal:iY,titleDesc:sY,reasonList:lY,reason:cY,active:uY,reasonNo:dY,tipsContainer:fY,tips:mY},td=Jq();function gY(){return lr(td)}function hY(e){const t=gY();if(e)return t.get(e)}function vY({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),a=st(async g=>{if(!n)return;let h=!1,v;try{o(!0),h=await oY(n,g.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),z$();h?xt("已标记不想看"):D$(),h&&(td.set(n.param,{...g}),t());}),i=f.useMemo(()=>{var g;return ((g=n==null?void 0:n.three_point)==null?void 0:g.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];sn(l,g=>{if(!s()||!l.includes(g.key))return;const h=Number(g.key)-1;u(h);const v=document.querySelectorAll(`.${hr.reason}`)[h]||null;v==null||v.click();});const[c,u]=f.useState(i.length-1);JU(()=>{u(i.length-1);},[i]);const d=g=>()=>{if(!s())return;const h=c+g;h<0||h>i.length-1||u(h);};sn("leftarrow",d(-1),{exactMatch:!0}),sn("rightarrow",d(1),{exactMatch:!0}),sn("uparrow",d(-2),{exactMatch:!0}),sn("downarrow",d(2),{exactMatch:!0}),sn("enter",g=>{var h;s()&&(c<0||c>i.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(h=document.querySelector(`.${hr.reason}.${hr.active}`))==null||h.click()));},{exactMatch:!0});const m=f.useMemo(()=>{var g;return ((g=i[c])==null?void 0:g.name)||""},[i,c]);return pe(Qu,{show:e,onHide:t,clsModal:hr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[pe("div",{className:or.modalHeader,children:[pe("div",{className:or.modalTitle,children:["我不想看",j("span",{className:hr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),j("div",{className:"space",style:{flex:1}}),j(Zu,{onClick:t})]}),pe("div",{className:or.modalBody,children:[j("div",{className:hr.reasonList,children:i.map((g,h)=>pe("button",{className:K(hr.reason,{[hr.active]:h===c}),style:{...h===c&&{borderColor:mo}},"data-id":g.id,onClick:()=>{u(h),a(g);},disabled:r,children:[j("span",{className:hr.reasonNo,style:{backgroundColor:mo},children:h+1}),g.name]},g.id))}),pe("div",{className:hr.tipsContainer,children:[pe("div",{className:hr.tips,children:[j(At,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&pe("div",{className:hr.tips,children:[j(At,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Xl={show:!1,onHide:Rw,item:null},Mw=ir({value:Xl.show}),pY=function(){return lr(Mw).value};function Rw(){setTimeout(()=>{_w({show:!1,item:null});});}function _w(e){Object.assign(Xl,e),Mw.value=Xl.show,bY().render(j(vY,{...Xl,onHide:Rw}));}let B0;function bY(){return B0||(B0=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container"),document.body.appendChild(e),Js(e)})()),B0}function yY(e){e!=null&&e.param&&td.has(e.param)||_w({show:!0,item:e});}var CY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const SY=CY;var $Y=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:SY}))};const Ec=f__namespace.forwardRef($Y);const Tw=f__namespace.createContext({});var wY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=wY(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=f__namespace.useContext(et),i=a("menu",t),s=K({[`${i}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(wh,Object.assign({className:s},o))},Nw=xY,EY=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ic=EY,IY=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(Ic),m=y=>{const C=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||uo(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:g}=f__namespace.useContext(Tw);let h=a;typeof a>"u"?h=l?r:"":a===!1&&(h="");const v={title:h};!g&&!d&&(v.title=null,v.open=!1);const p=ar(r).length;let b=f__namespace.createElement(Vs,Object.assign({},An(e,["title","icon","danger"]),{className:K({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),Bn(o,{className:K(uo(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(Ls,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},kw=IY,OY=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=f__namespace.useContext(Ic),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=Ci();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=uo(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,Bn(r,{className:K(uo(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:f__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=As("Menu");return f__namespace.createElement(Ic.Provider,{value:m},f__namespace.createElement(Lu,Object.assign({},An(e,["icon"]),{title:d,popupClassName:K(s,n,`${s}-${a||c}`),popupStyle:{zIndex:g}})))},Aw=OY;var PY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=PY(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?f__namespace.createElement(zu,Object.assign({key:c},l,{title:o}),Nm(a)):f__namespace.createElement(Aw,Object.assign({key:c},l,{title:o}),Nm(a)):s==="divider"?f__namespace.createElement(Nw,Object.assign({key:c},l)):f__namespace.createElement(kw,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function MY(e){return f__namespace.useMemo(()=>e&&Nm(e),[e])}var RY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=RY(e,["children"]),o=f__namespace.useContext(Oc),a=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=BL(n),s=aa(t,i?n.ref:null);return f__namespace.createElement(Oc.Provider,{value:a},f__namespace.createElement(Xa,null,i?f__namespace.cloneElement(n,{ref:s}):n))}),TY=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},NY=TY,kY=e=>{let{componentCls:t,menuArrowOffset:n}=e;return {[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},AY=kY,H0=e=>Object.assign({},Zo(e)),LY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:w,dangerItemColor:E,dangerItemHoverColor:x,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:I,itemHoverBg:O,itemActiveBg:_,menuSubMenuBg:M,horizontalItemSelectedColor:k,horizontalItemSelectedBg:A,horizontalItemBorderRadius:L,horizontalItemHoverBg:R,popupBg:P}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},H0(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},H0(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(",")}}}}}},W0=LY,V0=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e,l=o+a+i;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:l}}},zY=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:v,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},V0(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},V0(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Qo),{paddingInline:g})}}]},DY=zY,K0=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ia()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},G0=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},jY=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},Df()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),Df()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),K0(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},K0(e)),G0(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),G0(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},FY=(e,t)=>Ft("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:h,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:x}=r,S=l/7*5,$=pt(r,{menuArrowSize:S,menuHorizontalHeight:s*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=pt($,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:g,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:w,dangerItemSelectedColor:E,dangerItemActiveBg:x,dangerItemSelectedBg:v,menuSubMenuBg:m,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [jY($),NY($),DY($),W0($,"light"),W0(I,"dark"),AY($),EC($),Po($,"slide-up"),Po($,"slide-down"),$u($,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:w,padding:E,fontSize:x,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:I,colorErrorHover:O}=r,_=new qt(I).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:g,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:E,horizontalLineHeight:`${b*1.15}px`,iconSize:x,iconMarginInlineEnd:S-x,collapsedIconSize:$,groupTitleFontSize:x,darkItemDisabledColor:new qt(I).setAlpha(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:I,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:a}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var BY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=f__namespace.useContext(Oc),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=f__namespace.useContext(et),u=i(),{prefixCls:d,className:m,style:g,theme:h="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:w,rootClassName:E,mode:x,selectable:S,onClick:$,overflowedIndicatorPopupClassName:I}=e,O=BY(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=An(O,["collapsedWidth"]),M=MY(C)||w;(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const k=Tn(function(){var G;$==null||$.apply(void 0,arguments),(G=a.onClick)===null||G===void 0||G.call(a);}),A=a.mode||x,L=S??a.selectable,R=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:yC(u),other:{motionName:`${u}-zoom-big`}},T=i("menu",d||a.prefixCls),[z,F]=FY(T,!o),H=K(`${T}-${h}`,c==null?void 0:c.className,m);let B;if(typeof v=="function")B=v;else if(v===null||v===!1)B=null;else if(a.expandIcon===null||a.expandIcon===!1)B=null;else {const G=v??a.expandIcon;B=Bn(G,{className:K(`${T}-submenu-expand-icon`,uo(G)?(r=G.props)===null||r===void 0?void 0:r.className:"")});}const W=f__namespace.useMemo(()=>({prefixCls:T,inlineCollapsed:R||!1,direction:l,firstLevel:!0,theme:h,mode:A,disableMenuItemTitleTooltip:p}),[T,R,l,p,h]);return z(f__namespace.createElement(Oc.Provider,{value:null},f__namespace.createElement(Ic.Provider,{value:W},f__namespace.createElement(Si,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(ph,null),overflowedIndicatorPopupClassName:K(T,`${T}-${h}`,I),mode:A,selectable:L,onClick:k},_,{inlineCollapsed:R,style:Object.assign(Object.assign({},c==null?void 0:c.style),g),className:H,prefixCls:T,direction:l,defaultMotions:P,expandIcon:B,ref:t,rootClassName:K(E,F)}),M))))}),WY=HY,rl=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(Tw);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),f__namespace.createElement(WY,Object.assign({ref:n},e,r))});rl.Item=kw;rl.SubMenu=Aw;rl.Divider=Nw;rl.ItemGroup=zu;const VY=rl,KY=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},GY=KY,UY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:qg},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Qg},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Yg},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Zg}})},Ug(e,{colorBg:v,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Jo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${h}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Jo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Po(e,"slide-up"),Po(e,"slide-down"),lc(e,"move-up"),lc(e,"move-down"),$u(e,"zoom-big")]]},Lw=Ft("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(a-i*s)/2,{dropdownArrowOffset:m}=Gg({contentRadius:u}),g=pt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [UY(g),GY(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Jh=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,overlayStyle:d,open:m,onOpenChange:g,visible:h,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:w,transitionName:E}=e,{getPopupContainer:x,getPrefixCls:S,direction:$,dropdown:I}=f__namespace.useContext(et);x1();const O=f__namespace.useMemo(()=>{const q=S();return E!==void 0?E:C.includes("top")?`${q}-slide-down`:`${q}-slide-up`},[S,C,E]),_=f__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:$==="rtl"?"bottomRight":"bottomLeft",[C,$]),M=S("dropdown",r),[k,A]=Lw(M),[,L]=Gn(),R=f__namespace.Children.only(o),P=Bn(R,{className:K(`${M}-trigger`,{[`${M}-rtl`]:$==="rtl"},R.props.className),disabled:i}),T=i?[]:a;let z;T&&T.includes("contextMenu")&&(z=!0);const[F,H]=Wt(!1,{value:m??h}),B=Tn(q=>{g==null||g(q,{source:"trigger"}),v==null||v(q),H(q);}),W=K(c,u,A,I==null?void 0:I.className,{[`${M}-rtl`]:$==="rtl"}),G=SC({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),X=f__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),H(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),Q=()=>{let q;return t!=null&&t.items?q=f__namespace.createElement(VY,Object.assign({},t)):typeof w=="function"?q=w():q=w,s&&(q=s(q)),q=f__namespace.Children.only(typeof q=="string"?f__namespace.createElement("span",null,q):q),f__namespace.createElement(_Y,{prefixCls:`${M}-menu`,expandIcon:f__namespace.createElement("span",{className:`${M}-menu-submenu-arrow`},f__namespace.createElement(Za,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:re=>{}},q)},[ee,V]=As("Dropdown",d==null?void 0:d.zIndex);return k(f__namespace.createElement(Kg.Provider,{value:V},f__namespace.createElement($S,Object.assign({alignPoint:z},An(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:F,builtinPlacements:G,arrow:!!n,overlayClassName:W,prefixCls:M,getPopupContainer:l||x,transitionName:O,trigger:T,overlay:Q,placement:_,onVisibleChange:B,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),d),{zIndex:ee})}),P)))};function XY(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const qY=xh(Jh,"dropdown",e=>e,XY),YY=e=>f__namespace.createElement(qY,Object.assign({},e),f__namespace.createElement("span",null));Jh._InternalPanelDoNotUseOrYouWillBeFired=YY;const zw=Jh;var QY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(et),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:m,menu:g,arrow:h,autoFocus:v,overlay:p,trigger:b,align:y,open:C,onOpenChange:w,placement:E,getPopupContainer:x,href:S,icon:$=f__namespace.createElement(ph,null),title:I,buttonsRender:O=re=>re,mouseEnterDelay:_,mouseLeaveDelay:M,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:R}=e,P=QY(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=n("dropdown",o),z=`${T}-button`,[F,H]=Lw(T),B={menu:g,arrow:h,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:x||t,mouseEnterDelay:_,mouseLeaveDelay:M,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:R},{compactSize:W,compactItemClassnames:G}=yi(T,r),X=K(z,G,m,H);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=E:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=f__namespace.createElement(Ut,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:S,title:I},d),ee=f__namespace.createElement(Ut,{type:a,danger:i,icon:$}),[V,q]=O([Q,ee]);return F(f__namespace.createElement(Bs.Compact,Object.assign({className:X,size:W,block:!0},P),V,f__namespace.createElement(zw,Object.assign({},B),q)))};Dw.__ANT_BUTTON=!0;const ZY=Dw,jw=zw;jw.Button=ZY;const ev=jw;function Ma(e,t,n){const r=st(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const JY=new Mt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),eQ=new Mt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),tQ=new Mt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),nQ=new Mt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),rQ=new Mt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),oQ=new Mt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),aQ=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:m,marginXS:g}=e,h=`${r}-scroll-number`,v=pu(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:`${d}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:d/2,boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:s,lineHeight:`${m}px`,borderRadius:m/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${h}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:oQ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:JY,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:eQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:tQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:rQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${h}`]:{overflow:"hidden",[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Fw=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,marginXS:o,colorBorderBg:a}=e,i=Math.round(t*n),s=r,l=e.colorBgContainer,c=e.colorError,u=e.colorErrorHover;return pt(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Bw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},iQ=Ft("Badge",e=>{const t=Fw(e);return [aQ(t)]},Bw),sQ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=pu(e,(l,c)=>{let{darkColor:u}=c;return {[`&${a}-color-${l}`]:{background:u,color:u}}});return {[`${i}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:r,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${o/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:-o,borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:-o,borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},lQ=Ft(["Badge","Ribbon"],e=>{const t=Fw(e);return [sQ(t)]},Bw),cQ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=f__namespace.useContext(et),d=c("ribbon",n),m=wu(o,!1),g=K(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:m},t),[h,v]=lQ(d),p={},b={};return o&&!m&&(p.background=o,b.color=o),h(f__namespace.createElement("div",{className:K(`${d}-wrapper`,l,v)},a,f__namespace.createElement("div",{className:K(g,v),style:Object.assign(Object.assign({},p),r)},f__namespace.createElement("span",{className:`${d}-text`},i),f__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},uQ=cQ;function U0(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),f__namespace.createElement("span",{style:a,className:K(`${t}-only-unit`,{current:r})},n)}function dQ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function fQ(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=f__namespace.useState(o),[l,c]=f__namespace.useState(a),u=()=>{s(o),c(a);};f__namespace.useEffect(()=>{const g=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(g);}},[o]);let d,m;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[f__namespace.createElement(U0,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const g=o+10,h=[];for(let b=o;b<=g;b+=1)h.push(b);const v=h.findIndex(b=>b%10===i);d=h.map((b,y)=>{const C=b%10;return f__namespace.createElement(U0,Object.assign({},e,{key:b,value:C,offset:y-v,current:y===v}))});const p=l{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,d=mQ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(et),g=m("scroll-number",n),h=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:K(g,o,a),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(fQ,{prefixCls:g,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Bn(u,p=>({className:K(`${g}-custom-component`,p==null?void 0:p.className,a)})):f__namespace.createElement(c,Object.assign({},h,{ref:t}),v)}),hQ=gQ;var vQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:m,count:g=null,overflowCount:h=99,dot:v=!1,size:p="default",title:b,offset:y,style:C,className:w,rootClassName:E,classNames:x,styles:S,showZero:$=!1}=e,I=vQ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:_,badge:M}=f__namespace.useContext(et),k=O("badge",s),[A,L]=iQ(k),R=g>h?`${h}+`:g,P=R==="0"||R===0,T=g===null||P&&!$,z=(u!=null||m!=null)&&T,F=v&&!P,H=F?"":R,B=f.useMemo(()=>(H==null||H===""||P&&!$)&&!F,[H,P,$,F]),W=f.useRef(g);B||(W.current=g);const G=W.current,X=f.useRef(H);B||(X.current=H);const Q=X.current,ee=f.useRef(F);B||(ee.current=F);const V=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),C);const J={marginTop:y[1]};return _==="rtl"?J.left=parseInt(y[0],10):J.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},J),M==null?void 0:M.style),C)},[_,y,C,M==null?void 0:M.style]),q=b??(typeof G=="string"||typeof G=="number"?G:void 0),re=B||!d?null:f__namespace.createElement("span",{className:`${k}-status-text`},d),ue=!G||typeof G!="object"?void 0:Bn(G,J=>({style:Object.assign(Object.assign({},V),J.style)})),de=wu(m,!1),Z=K(x==null?void 0:x.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:z,[`${k}-status-${u}`]:!!u,[`${k}-color-${m}`]:de}),te={};m&&!de&&(te.color=m,te.background=m);const fe=K(k,{[`${k}-status`]:z,[`${k}-not-a-wrapper`]:!c,[`${k}-rtl`]:_==="rtl"},w,E,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,x==null?void 0:x.root,L);if(!c&&z){const J=V.color;return A(f__namespace.createElement("span",Object.assign({},I,{className:fe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),V)}),f__namespace.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),te)}),d&&f__namespace.createElement("span",{style:{color:J},className:`${k}-status-text`},d)))}return A(f__namespace.createElement("span",Object.assign({ref:t},I,{className:fe,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,f__namespace.createElement(go,{visible:!B,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},J=>{let{className:le,ref:ie}=J;var se,oe;const he=O("scroll-number",l),be=ee.current,Me=K(x==null?void 0:x.indicator,(se=M==null?void 0:M.classNames)===null||se===void 0?void 0:se.indicator,{[`${k}-dot`]:be,[`${k}-count`]:!be,[`${k}-count-sm`]:p==="small",[`${k}-multiple-words`]:!be&&Q&&Q.toString().length>1,[`${k}-status-${u}`]:!!u,[`${k}-color-${m}`]:de});let ze=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(oe=M==null?void 0:M.styles)===null||oe===void 0?void 0:oe.indicator),V);return m&&!de&&(ze=ze||{},ze.background=m),f__namespace.createElement(hQ,{prefixCls:he,show:!B,motionClassName:le,className:Me,count:Q,title:q,style:ze,key:"scrollNumber",ref:ie},ue)}),re))},Hw=f__namespace.forwardRef(pQ);Hw.Ribbon=uQ;const bQ=Hw,Ww=["xxl","xl","lg","md","sm","xs"],yQ=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),CQ=e=>{const t=e,n=[].concat(Ww).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister();},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(a=>{const i=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function $Q(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}function Vw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=$Q(),r=SQ();return Ht(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const wQ=f__namespace.createContext({}),km=wQ,xQ=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:g,borderRadiusSM:h,lineWidth:v,lineType:p}=e,b=(y,C,w)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,c,m)),{"&-lg":Object.assign({},b(s,u,g)),"&-sm":Object.assign({},b(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},EQ=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Kw=Ft("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=pt(e,{avatarBg:n,avatarColor:t});return [xQ(r),EQ(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var IQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=f__namespace.useState(1),[o,a]=f__namespace.useState(!1),[i,s]=f__namespace.useState(!0),l=f__namespace.useRef(null),c=f__namespace.useRef(null),u=Wn(t,l),{getPrefixCls:d,avatar:m}=f__namespace.useContext(et),g=f__namespace.useContext(km),h=()=>{if(!c.current||!l.current)return;const Q=c.current.offsetWidth,ee=l.current.offsetWidth;if(Q!==0&&ee!==0){const{gap:V=4}=e;V*2{a(!0);},[]),f__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),f__namespace.useEffect(h,[e.gap]);const v=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:w,icon:E,className:x,rootClassName:S,alt:$,draggable:I,children:O,crossOrigin:_}=e,M=IQ(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=Un(Q=>{var ee,V;return (V=(ee=y??(g==null?void 0:g.size))!==null&&ee!==void 0?ee:Q)!==null&&V!==void 0?V:"default"}),A=Object.keys(typeof k=="object"?k||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),L=Vw(A),R=f__namespace.useMemo(()=>{if(typeof k!="object")return {};const Q=Ww.find(V=>L[V]),ee=k[Q];return ee?{width:ee,height:ee,lineHeight:`${ee}px`,fontSize:ee&&(E||O)?ee/2:18}:{}},[L,k]),P=d("avatar",p),[T,z]=Kw(P),F=K({[`${P}-lg`]:k==="large",[`${P}-sm`]:k==="small"}),H=f__namespace.isValidElement(C),B=b||(g==null?void 0:g.shape)||"circle",W=K(P,F,m==null?void 0:m.className,`${P}-${B}`,{[`${P}-image`]:H||C&&i,[`${P}-icon`]:!!E},x,S,z),G=typeof k=="number"?{width:k,height:k,lineHeight:`${k}px`,fontSize:E?k/2:18}:{};let X;if(typeof C=="string"&&i)X=f__namespace.createElement("img",{src:C,draggable:I,srcSet:w,onError:v,alt:$,crossOrigin:_});else if(H)X=C;else if(E)X=E;else if(o||n!==1){const Q=`scale(${n}) translateX(-50%)`,ee={msTransform:Q,WebkitTransform:Q,transform:Q},V=typeof k=="number"?{lineHeight:`${k}px`}:{};X=f__namespace.createElement(pr,{onResize:h},f__namespace.createElement("span",{className:`${P}-string`,ref:c,style:Object.assign(Object.assign({},V),ee)},O));}else X=f__namespace.createElement("span",{className:`${P}-string`,style:{opacity:0},ref:c},O);return delete M.onError,delete M.gap,T(f__namespace.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),R),m==null?void 0:m.style),M.style),className:W,ref:u}),X))},PQ=f__namespace.forwardRef(OQ),Gw=PQ,X0=e=>{const{size:t,shape:n}=f__namespace.useContext(km),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(km.Provider,{value:r},e.children)},MQ=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(et),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:g}=e,h=t("avatar",r),v=`${h}-group`,[p,b]=Kw(h),y=K(v,{[`${v}-rtl`]:n==="rtl"},o,a,b),C=ar(g).map((E,x)=>Bn(E,{key:`avatar-key-${x}`})),w=C.length;if(s&&s{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+r*2}px - ${i*2}px)`,marginInlineEnd:`calc(100% - ${s+r*2}px + ${i*2}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+r*2}px + ${i*2}px)`,marginInlineEnd:`calc(-100% + ${s+r*2}px - ${i*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},iZ=e=>{const{componentCls:t,handleSize:n}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},sZ=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return {[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},lZ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${i+r*2}px - ${a*2}px)`,marginInlineEnd:`calc(100% - ${i+r*2}px + ${a*2}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+r*2}px + ${a*2}px)`,marginInlineEnd:`calc(-100% + ${i+r*2}px - ${a*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:r*2,marginInlineEnd:-r*2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-r*2,marginInlineEnd:r*2}}}}}},cZ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Jo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},uZ=Ft("Switch",e=>{const t=pt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [cZ(t),lZ(t),sZ(t),iZ(t),aZ(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new qt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var dZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=dZ(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:m}=f__namespace.useContext(et),g=f__namespace.useContext(Yr),h=(o??g)||a,v=u("switch",n),p=f__namespace.createElement("div",{className:`${v}-handle`},a&&f__namespace.createElement(nh,{className:`${v}-loading-icon`})),[b,y]=uZ(v),C=Un(r),w=K(m==null?void 0:m.className,{[`${v}-small`]:C==="small",[`${v}-loading`]:a,[`${v}-rtl`]:d==="rtl"},i,s,y),E=Object.assign(Object.assign({},m==null?void 0:m.style),l);return b(f__namespace.createElement(Ds,{component:"Switch"},f__namespace.createElement(qw,Object.assign({},c,{prefixCls:v,className:w,style:E,disabled:h,ref:t,loadingIcon:p}))))});Yw.__ANT_SWITCH=!0;const Qw=Yw;function Y0(e){const[t,n]=f.useState(null);return [f.useCallback((a,i,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=i.slice(c,u+1).map(h=>e(h)),m=d.some(h=>!s.has(h)),g=[];return d.forEach(h=>{m?(s.has(h)||g.push(h),s.add(h)):(s.delete(h),g.push(h));}),n(m?u:null),g},[t]),a=>{n(a);}]}const Pc=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},fZ=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t};function mZ(e,t,n){const r=f__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=f__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),l=Pc(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:i.push(c);}),[i,s]},[r,n,t]);return [r,o,a]}const gZ=[];function Oa(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Q0(e){return Array.from(e).join(";")}function hZ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gZ;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=f__namespace.useState(()=>Oa(n,r)),[s,l]=f__namespace.useState(()=>Oa(n,o));return f__namespace.useEffect(()=>{i(Oa(n,r)),l(Oa(n,o));},[n]),f__namespace.useEffect(()=>{i(Oa(a,r)),l(Oa(s,o));},[Q0(r),Q0(o)]),[a,s,i,l]}var vZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const pZ=vZ;var bZ=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:pZ}))};const Z0=f__namespace.forwardRef(bZ);var yZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const CZ=yZ;var SZ=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:CZ}))};const J0=f__namespace.forwardRef(SZ);var zo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const $Z={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Lm=function(e){_o(n,e);var t=To(n);function n(){var r;Cn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));}),D(We(r),"go",function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===zo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));}),r}return Sn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,i=o.pageSizeOptions;return i.some(function(s){return s.toString()===a.toString()})?i:i.concat([a.toString()]).sort(function(s,l){var c=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(l))?0:Number(l);return c-u})}},{key:"render",value:function(){var o=this,a=this.props,i=a.pageSize,s=a.locale,l=a.rootPrefixCls,c=a.changeSize,u=a.quickGo,d=a.goButton,m=a.selectComponentClass,g=a.buildOptionText,h=a.selectPrefixCls,v=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=m,C=null,w=null,E=null;if(!c&&!u)return null;var x=this.getPageSizeOptions();if(c&&y){var S=x.map(function($,I){return f.createElement(y.Option,{key:I,value:$.toString()},(g||o.buildOptionText)($))});C=f.createElement(y,{disabled:v,prefixCls:h,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||x[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":s.page_size,defaultOpen:!1},S);}return u&&(d&&(E=typeof d=="boolean"?f.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):f.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),w=f.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,f.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,E)),f.createElement("li",{className:"".concat(b)},C,w)}}]),n}(f.Component);D(Lm,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var Li=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=K(d,"".concat(d,"-").concat(o),(n={},D(n,"".concat(d,"-active"),a),D(n,"".concat(d,"-disabled"),!o),D(n,t.className,i),n)),g=function(){l(o);},h=function(b){c(b,l,o);},v=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return v?f.createElement("li",{title:s?o.toString():null,className:m,onClick:g,onKeyPress:h,tabIndex:0},v):null};function zm(){}function ey(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var wZ=function(t,n,r){return r};function po(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Zw=function(e){_o(n,e);var t=To(n);function n(r){var o;Cn(this,n),o=t.call(this,r),D(We(o),"paginationNode",f.createRef()),D(We(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),D(We(o),"getJumpNextPage",function(){return Math.min(po(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),D(We(o),"getItemIcon",function(c,u){var d=o.props.prefixCls,m=c||f.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(m=f.createElement(c,U({},o.props))),m}),D(We(o),"isValid",function(c){var u=o.props.total;return ey(c)&&c!==o.state.current&&ey(u)&&u>0}),D(We(o),"shouldDisplayQuickJumper",function(){var c=o.props,u=c.showQuickJumper,d=c.total,m=o.state.pageSize;return d<=m?!1:u}),D(We(o),"handleKeyDown",function(c){(c.keyCode===zo.ARROW_UP||c.keyCode===zo.ARROW_DOWN)&&c.preventDefault();}),D(We(o),"handleKeyUp",function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===zo.ENTER?o.handleChange(u):c.keyCode===zo.ARROW_UP?o.handleChange(u-1):c.keyCode===zo.ARROW_DOWN&&o.handleChange(u+1);}),D(We(o),"handleBlur",function(c){var u=o.getValidValue(c);o.handleChange(u);}),D(We(o),"changePageSize",function(c){var u=o.state.current,d=po(c,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,c);}),D(We(o),"handleChange",function(c){var u=o.props,d=u.disabled,m=u.onChange,g=o.state,h=g.pageSize,v=g.current,p=g.currentInputValue;if(o.isValid(c)&&!d){var b=po(void 0,o.state,o.props),y=c;return c>b?y=b:c<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),m(y,h),y}return v}),D(We(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1);}),D(We(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1);}),D(We(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage());}),D(We(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage());}),D(We(o),"hasPrev",function(){return o.state.current>1}),D(We(o),"hasNext",function(){return o.state.current2?d-2:0),g=2;g=i?l=i:l=Number(a),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,i=o.total,s=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:i>s}},{key:"render",value:function(){var o=this.props,a=o.prefixCls,i=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,m=o.showQuickJumper,g=o.showLessItems,h=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,w=o.jumpNextIcon,E=o.selectComponentClass,x=o.selectPrefixCls,S=o.pageSizeOptions,$=this.state,I=$.current,O=$.pageSize,_=$.currentInputValue;if(c===!0&&u<=O)return null;var M=po(void 0,this.state,this.props),k=[],A=null,L=null,R=null,P=null,T=null,z=m&&m.goButton,F=g?1:2,H=I-1>0?I-1:0,B=I+1u?u:I*O]));if(p){z&&(typeof z=="boolean"?T=f.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):T=f.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),T=f.createElement("li",{title:h?"".concat(d.jump_to).concat(I,"/").concat(M):null,className:"".concat(a,"-simple-pager")},T));var X=this.renderPrev(H);return f.createElement("ul",xe({className:K(a,"".concat(a,"-simple"),D({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},W),G,X?f.createElement("li",{title:h?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:K("".concat(a,"-prev"),D({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,f.createElement("li",{title:h?"".concat(I,"/").concat(M):null,className:"".concat(a,"-simple-pager")},f.createElement("input",{type:"text",value:_,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),f.createElement("span",{className:"".concat(a,"-slash")},"/"),M),f.createElement("li",{title:h?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:K("".concat(a,"-next"),D({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),f.createElement(Lm,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:E,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:T}))}if(M<=3+F*2){var Q={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:h,itemRender:b};M||k.push(f.createElement(Li,xe({},Q,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var ee=1;ee<=M;ee+=1){var V=I===ee;k.push(f.createElement(Li,xe({},Q,{key:ee,page:ee,active:V})));}}else {var q=g?d.prev_3:d.prev_5,re=g?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),de=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page"));y&&(A=ue?f.createElement("li",{title:h?q:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:K("".concat(a,"-jump-prev"),D({},"".concat(a,"-jump-prev-custom-icon"),!!C))},ue):null,L=de?f.createElement("li",{title:h?re:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:K("".concat(a,"-jump-next"),D({},"".concat(a,"-jump-next-custom-icon"),!!w))},de):null),P=f.createElement(Li,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:h,itemRender:b}),R=f.createElement(Li,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:h,itemRender:b});var Z=Math.max(1,I-F),te=Math.min(I+F,M);I-1<=F&&(te=1+F*2),M-I<=F&&(Z=M-F*2);for(var fe=Z;fe<=te;fe+=1){var J=I===fe;k.push(f.createElement(Li,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:fe,page:fe,active:J,showTitle:h,itemRender:b}));}I-1>=F*2&&I!==1+2&&(k[0]=f.cloneElement(k[0],{className:"".concat(a,"-item-after-jump-prev")}),k.unshift(A)),M-I>=F*2&&I!==M-2&&(k[k.length-1]=f.cloneElement(k[k.length-1],{className:"".concat(a,"-item-before-jump-next")}),k.push(L)),Z!==1&&k.unshift(R),te!==M&&k.push(P);}var le=!this.hasPrev()||!M,ie=!this.hasNext()||!M,se=this.renderPrev(H),oe=this.renderNext(B);return f.createElement("ul",xe({className:K(a,i,D({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},W),G,se?f.createElement("li",{title:h?d.prev_page:null,onClick:this.prev,tabIndex:le?null:0,onKeyPress:this.runIfEnterPrev,className:K("".concat(a,"-prev"),D({},"".concat(a,"-disabled"),le)),"aria-disabled":le},se):null,k,oe?f.createElement("li",{title:h?d.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:K("".concat(a,"-next"),D({},"".concat(a,"-disabled"),ie)),"aria-disabled":ie},oe):null,f.createElement(Lm,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:E,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i={};if("current"in o&&(i.current=o.current,o.current!==a.current&&(i.currentInputValue=i.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var s=a.current,l=po(o.pageSize,a,o);s=s>l?l:s,"current"in o||(i.current=s,i.currentInputValue=s),i.pageSize=o.pageSize;}return i}}]),n}(f.Component);D(Zw,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:zm,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:zm,locale:$Z,style:{},itemRender:wZ,totalBoundaryShowSizeChanger:50});const Jw=e=>f__namespace.createElement(Ks,Object.assign({},e,{showSearch:!0,size:"small"})),ex=e=>f__namespace.createElement(Ks,Object.assign({},e,{showSearch:!0,size:"middle"}));Jw.Option=Ks.Option;ex.Option=Ks.Option;const xZ=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},EZ=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},mh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},IZ=e=>{const{componentCls:t}=e;return {[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},OZ=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},Ws(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},PZ=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},MZ=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),PZ(e)),OZ(e)),IZ(e)),EZ(e)),xZ(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},RZ=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},_Z=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Jo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Zo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Zo(e))}}}},TZ=Ft("Pagination",e=>{const t=pt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},gh(e),hh(e));return [MZ(t),_Z(t),e.wireframe&&RZ(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}));var NZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=NZ(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=Vw(c),{getPrefixCls:g,direction:h,pagination:v={}}=f__namespace.useContext(et),p=g("pagination",t),[b,y]=TZ(p),C=u??v.showSizeChanger,w=f__namespace.useMemo(()=>{const M=f__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),k=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?f__namespace.createElement(Za,null):f__namespace.createElement(Ec,null)),A=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?f__namespace.createElement(Ec,null):f__namespace.createElement(Za,null)),L=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},h==="rtl"?f__namespace.createElement(J0,{className:`${p}-item-link-icon`}):f__namespace.createElement(Z0,{className:`${p}-item-link-icon`}),M)),R=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},h==="rtl"?f__namespace.createElement(Z0,{className:`${p}-item-link-icon`}):f__namespace.createElement(J0,{className:`${p}-item-link-icon`}),M));return {prevIcon:k,nextIcon:A,jumpPrevIcon:L,jumpNextIcon:R}},[h,p]),[E]=pi("Pagination",D1),x=Object.assign(Object.assign({},E),s),S=Un(i),$=S==="small"||!!(m&&!S&&c),I=g("select",n),O=K({[`${p}-mini`]:$,[`${p}-rtl`]:h==="rtl"},v==null?void 0:v.className,r,o,y),_=Object.assign(Object.assign({},v==null?void 0:v.style),a);return b(f__namespace.createElement(Zw,Object.assign({},w,d,{style:_,prefixCls:p,selectPrefixCls:I,className:O,selectComponentClass:l||($?Jw:ex),locale:x,showSizeChanger:C})))},AZ=kZ;var LZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const zZ=LZ;var DZ=function(t,n){return f__namespace.createElement(On,xe({},t,{ref:n,icon:zZ}))};const jZ=f__namespace.forwardRef(DZ);var FZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=c=>{const{keyCode:u}=c;u===me.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===me.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=FZ(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},BZ)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),f__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),WZ=HZ,VZ=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=e,u=K(`${i}-content-item`,{[`${i}-content-item-disabled`]:a||r.disabled,[`${i}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[m]=pi("Transfer",lo.Transfer),g={className:u,title:d},h=f__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?f__namespace.createElement("li",Object.assign({},g),h,f__namespace.createElement(WZ,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{l==null||l(r);}},f__namespace.createElement(jZ,null))):(g.onClick=a||r.disabled?void 0:v=>s(r,v),f__namespace.createElement("li",Object.assign({},g),f__namespace.createElement(Iu,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),h))},KZ=f__namespace.memo(VZ),GZ=["handleFilter","handleClear","checkedKeys"],UZ=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),XZ=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),g=f__namespace.useMemo(()=>s?UZ(typeof s=="object"?s:{}):null,[s]),[h,v]=Wt(10,{value:g==null?void 0:g.pageSize});f__namespace.useEffect(()=>{if(g){const S=Math.ceil(r.length/h);m(Math.min(d,S));}},[r,g,h]);const p=(S,$)=>{c(S.key,!o.includes(S.key),$);},b=S=>{u==null||u([S.key]);},y=S=>{m(S);},C=(S,$)=>{m(S),v($);},w=f__namespace.useMemo(()=>g?r.slice((d-1)*h,d*h):r,[d,r,g,h]);f__namespace.useImperativeHandle(t,()=>({items:w}));const E=g?f__namespace.createElement(AZ,{size:"small",disabled:a,simple:g.simple,pageSize:h,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,x=K(`${n}-content`,{[`${n}-content-show-remove`]:i});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:x,onScroll:l},(w||[]).map(S=>{let{renderedEl:$,renderedText:I,item:O}=S;return f__namespace.createElement(KZ,{key:O.key,item:O,renderedText:I,renderedEl:$,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(O.key),disabled:a||O.disabled})})),E)},qZ=f__namespace.forwardRef(XZ),YZ=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=f__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return f__namespace.createElement(f$,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:f__namespace.createElement(Th,null)})},tx=YZ,QZ=()=>null;function ZZ(e){return !!(e&&!uo(e)&&Object.prototype.toString.call(e)==="[object Object]")}function zi(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const JZ=e=>e!==void 0,eJ=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:g,removeCurrent:h,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:w,selectAllLabel:E,selectionsIcon:x,footer:S,renderList:$,onItemSelectAll:I,onItemRemove:O,handleFilter:_,handleClear:M,filterOption:k,render:A=QZ}=e,[L,R]=f.useState(""),P=f.useRef({}),T=J=>{R(J.target.value),_(J);},z=()=>{R(""),M();},F=(J,le)=>k?k(L,le,y):J.includes(L),H=J=>{let le=$?$(Object.assign(Object.assign({},J),{onItemSelect:(se,oe)=>J.onItemSelect(se,oe)})):null;const ie=!!le;return ie||(le=f.createElement(qZ,Object.assign({ref:P},J))),{customize:ie,bodyContent:le}},B=J=>{const le=A(J),ie=ZZ(le);return {item:J,renderedEl:ie?le.label:le,renderedText:ie?le.value:le}},W=f.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[G,X]=f.useMemo(()=>{const J=[],le=[];return n.forEach(ie=>{const se=B(ie);L&&!F(se.renderedText,ie)||(J.push(ie),le.push(se));}),[J,le]},[n,L]),Q=f.useMemo(()=>{if(o.length===0)return "none";const J=Pc(o);return G.every(le=>J.has(le.key)||!!le.disabled)?"all":"part"},[o,G]),ee=f.useMemo(()=>{const J=i?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(tx,{prefixCls:`${t}-search`,onChange:T,handleClear:z,placeholder:l,value:L,disabled:a})):null,{customize:le,bodyContent:ie}=H(Object.assign(Object.assign({},An(e,GZ)),{filteredItems:G,filteredRenderItems:X,selectedKeys:o}));let se;return le?se=f.createElement("div",{className:`${t}-body-customize-wrapper`},ie):se=G.length?ie:f.createElement("div",{className:`${t}-body-not-found`},W),f.createElement("div",{className:K(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},J,se)},[i,t,l,L,a,o,G,X,W]),V=f.createElement(Iu,{disabled:n.length===0||a,checked:Q==="all",indeterminate:Q==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(G.filter(J=>!J.disabled).map(J=>{let{key:le}=J;return le}),Q!=="all");}}),q=(J,le)=>{if(E)return typeof E=="function"?E({selectedCount:J,totalCount:le}):E;const ie=le>1?C:w;return f.createElement(f.Fragment,null,(J>0?`${J}/`:"")+le," ",ie)},re=S&&(S.length<2?S(e):S(e,{direction:y})),ue=K(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!re}),de=re?f.createElement("div",{className:`${t}-footer`},re):null,Z=!p&&!b&&V;let te;p?te=[b?{key:"removeCurrent",label:h,onClick(){var J;const le=zi((((J=P.current)===null||J===void 0?void 0:J.items)||[]).map(ie=>ie.item));O==null||O(le);}}:null,{key:"removeAll",label:g,onClick(){O==null||O(zi(G));}}].filter(Boolean):te=[{key:"selectAll",label:u,onClick(){const J=zi(G);I==null||I(J,J.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var J;const le=((J=P.current)===null||J===void 0?void 0:J.items)||[];I==null||I(zi(le.map(ie=>ie.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var J;const le=zi(b?(((J=P.current)===null||J===void 0?void 0:J.items)||[]).map(oe=>oe.item):G),ie=new Set(o),se=[];le.forEach(oe=>{ie.has(oe)||se.push(oe);}),I==null||I(se,"replace");}}];const fe=f.createElement(ev,{className:`${t}-header-dropdown`,menu:{items:te},disabled:a},JZ(x)?x:f.createElement(lh,null));return f.createElement("div",{className:ue,style:s},f.createElement("div",{className:`${t}-header`},v?f.createElement(f.Fragment,null,Z,fe):null,f.createElement("span",{className:`${t}-header-selected`},q(o.length,G.length)),f.createElement("span",{className:`${t}-header-title`},r)),ee,de)},Dm=eJ,tJ=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:l,style:c},f__namespace.createElement(Ut,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?f__namespace.createElement(Za,null):f__namespace.createElement(Ec,null)},a),!d&&f__namespace.createElement(Ut,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?f__namespace.createElement(Ec,null):f__namespace.createElement(Za,null)},o))},nx=tJ,nJ=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,s=`${t}-table`,l=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${i}px 0 ${a}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},ty=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},rJ=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},ty(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},ty(e,e.colorWarning))}},oJ=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:g,fontSizeIcon:h,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:w,controlItemBgHover:E,borderRadiusLG:x,colorBgContainer:S,colorText:$,controlItemBgActiveHover:I}=e;return {display:"flex",flexDirection:"column",width:m,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:g,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:$,background:S,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${x}px ${x}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Qo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},ia()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${l}px ${p}px`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Qo),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:E,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:I}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`},"&-checkbox":{lineHeight:1}}},aJ=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:oJ(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},iJ=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},sJ=Ft("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=pt(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [aJ(i),nJ(i),rJ(i),iJ(i)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,a=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2}}),rd=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:g,oneWay:h,pagination:v,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:w,filterOption:E,render:x,footer:S,children:$,rowKey:I,onScroll:O,onChange:_,onSearch:M,onSelectChange:k}=e,{getPrefixCls:A,renderEmpty:L,direction:R,transfer:P}=f.useContext(et),T=A("transfer",b),[z,F]=sJ(T),[H,B,W]=mZ(t,I,n),[G,X,Q,ee]=hZ(B,W,r),[V,q]=Y0(ae=>ae.key),[re,ue]=Y0(ae=>ae.key),de=f.useCallback((ae,ne)=>{if(ae==="left"){const ve=typeof ne=="function"?ne(G||[]):ne;Q(ve);}else {const ve=typeof ne=="function"?ne(X||[]):ne;ee(ve);}},[G,X]),Z=(ae,ne)=>{(ae==="left"?q:ue)(ne);},te=f.useCallback((ae,ne)=>{ae==="left"?k==null||k(ne,X):k==null||k(G,ne);},[G,X]),fe=ae=>{var ne;return (ne=c??ae.titles)!==null&&ne!==void 0?ne:[]},J=ae=>{O==null||O("left",ae);},le=ae=>{O==null||O("right",ae);},ie=ae=>{const ne=ae==="right"?G:X,ve=fZ(H),Ce=ne.filter($t=>!ve.has($t)),_e=Pc(Ce),Ye=ae==="right"?Ce.concat(n):n.filter($t=>!_e.has($t)),Qe=ae==="right"?"left":"right";de(Qe,[]),te(Qe,[]),_==null||_(Ye,ae,Ce);},se=()=>{ie("left"),Z("left",null);},oe=()=>{ie("right"),Z("right",null);},he=(ae,ne,ve)=>{de(ae,Ce=>{let _e=[];if(ve==="replace")_e=ne;else if(ve)_e=Array.from(new Set([].concat(Pe(Ce),Pe(ne))));else {const Ye=Pc(ne);_e=Ce.filter(Qe=>!Ye.has(Qe));}return te(ae,_e),_e}),Z(ae,null);},be=(ae,ne)=>{he("left",ae,ne);},Me=(ae,ne)=>{he("right",ae,ne);},ze=ae=>M==null?void 0:M("left",ae.target.value),qe=ae=>M==null?void 0:M("right",ae.target.value),Oe=()=>M==null?void 0:M("left",""),Te=()=>M==null?void 0:M("right",""),Ve=(ae,ne,ve,Ce,_e)=>{ne.has(ve)&&(ne.delete(ve),Z(ae,null)),Ce&&(ne.add(ve),Z(ae,_e));},je=(ae,ne,ve,Ce)=>{(ae==="left"?V:re)(Ce,ne,ve);},Ke=(ae,ne,ve,Ce)=>{const _e=ae==="left",Ye=Pe(_e?G:X),Qe=new Set(Ye),$t=Pe(_e?B:W).filter(bt=>!bt.disabled),ht=$t.findIndex(bt=>bt.key===ne);Ce&&Ye.length>0?je(ae,$t,Qe,ht):Ve(ae,Qe,ne,ve,ht);const wt=Array.from(Qe);te(ae,wt),e.selectedKeys||de(ae,wt);},Be=(ae,ne,ve)=>{Ke("left",ae,ne,ve==null?void 0:ve.shiftKey);},He=(ae,ne,ve)=>{Ke("right",ae,ne,ve==null?void 0:ve.shiftKey);},Ae=ae=>{de("right",[]),_==null||_(n.filter(ne=>!ae.includes(ne)),"left",Pe(ae));},rt=ae=>typeof s=="function"?s({direction:ae}):s||{},Ue=f.useContext(yr),{hasFeedback:Ze,status:mt}=Ue,ut=ae=>Object.assign(Object.assign(Object.assign({},ae),{notFoundContent:(L==null?void 0:L("Transfer"))||f.createElement(l$,{componentName:"Transfer"})}),l),nt=Hs(mt,p),Ot=!$&&v,St=X.length>0,Ee=G.length>0,we=K(T,{[`${T}-disabled`]:u,[`${T}-customize-list`]:!!$,[`${T}-rtl`]:R==="rtl"},Nr(T,nt,Ze),P==null?void 0:P.className,y,C,F),[Re]=pi("Transfer",lo.Transfer),ye=ut(Re),[Fe,ge]=fe(ye);return z(f.createElement("div",{className:we,style:Object.assign(Object.assign({},P==null?void 0:P.style),i)},f.createElement(Dm,Object.assign({prefixCls:`${T}-list`,titleText:Fe,dataSource:B,filterOption:E,style:rt("left"),checkedKeys:G,handleFilter:ze,handleClear:Oe,onItemSelect:Be,onItemSelectAll:be,render:x,showSearch:d,renderList:$,footer:S,onScroll:J,disabled:u,direction:R==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:o[0],pagination:Ot,selectionsIcon:w},ye)),f.createElement(nx,{className:`${T}-operation`,rightActive:Ee,rightArrowText:a[0],moveToRight:oe,leftActive:St,leftArrowText:a[1],moveToLeft:se,style:m,disabled:u,direction:R,oneWay:h}),f.createElement(Dm,Object.assign({prefixCls:`${T}-list`,titleText:ge,dataSource:W,filterOption:E,style:rt("right"),checkedKeys:X,handleFilter:qe,handleClear:Te,onItemSelect:He,onItemSelectAll:Me,onItemRemove:Ae,render:x,showSearch:d,renderList:$,footer:S,onScroll:le,disabled:u,direction:R==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:o[1],showRemove:h,pagination:Ot,selectionsIcon:w},ye))))};rd.List=Dm;rd.Search=tx;rd.Operation=nx;const lJ=rd;function rx(e){return `https://space.bilibili.com/${Gu()}/favlist?fid=${e}`}const za=class za{constructor(){_t(this,"useShuffle");_t(this,"allFolderServices",[]);_t(this,"folderServices",[]);_t(this,"bufferQueue",[]);_t(this,"total",0);_t(this,"returnedItems",[]);_t(this,"foldersLoaded",!1);this.useShuffle=Pt.shuffleForFav;}doReturnItems(t){return this.returnedItems=this.returnedItems.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnedItems,...this.bufferQueue],this.returnedItems=[];}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return j(dJ,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,za.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(za.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.lengtha.hasMore),r=Am(n).slice(0,5),o=(await Promise.all(r.map(async a=>await a.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Am(this.bufferQueue);}return t()}async getAllFolders(){const r=(await vn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Gu()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new cJ(o)),this.folderServices=this.allFolderServices.filter(o=>!Pt.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,a)=>o+a.entry.media_count,0);}};_t(za,"PAGE_SIZE",20);let vs=za;class cJ{constructor(t){_t(this,"entry");_t(this,"hasMore");_t(this,"info");_t(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await vn.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!Qr(n)){xt(n.message);return}this.hasMore=n.data.has_more,this.info=n.data.info;let r=n.data.medias;return r=r.filter(o=>o.title!=="已失效视频"),r.map(o=>{var a;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(a=this.info)==null?void 0:a.id}-${o.bvid}`}})}}var uJ={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function dJ({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=In(),r=nv(),[o,a]=f.useState(!1),i=st((u,d,m)=>{a(!0),Cr({excludeFavFolderIds:u});}),s=e.length-t.length,l=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=st(u=>{u?a(!1):o&&(r==null||r());});return pe(Rt,{children:[j(Mu,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:j(Rt,{children:j(lJ,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:pe(yo,{color:"success",css:uJ,children:["收藏夹(",s,") 收藏(",l,")"]})}),j(Qw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{Cr({shuffleForFav:u}),setTimeout(()=>{r==null||r();});}})]})}var fJ=cg,mJ=Gh,gJ=1,hJ=2;function vJ(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o-1}var See=Cee;function $ee(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=zee){var c=t?null:Aee(e);if(c)return Lee(c);i=!1,o=kee,l=new _ee;}else l=t?[]:s;e:for(;++r{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=od(r,a=>a.id),r.forEach(a=>{var i,s;((i=a.rcmd_reason)==null?void 0:i.reason_type)===1&&((s=a.rcmd_reason).content||(s.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};_t(Lc,"PAGE_SIZE",14);let ps=Lc;var Vee=a1,Kee=1,Gee=4;function Uee(e){return Vee(e,Kee|Gee)}var Xee=Uee;const qee=hn(Xee),Ba=ir({updatedAt:0,bvidSet:Zh()});function Yee(e){return lr(Ba).bvidSet.has(e)}qs()&&setTimeout(()=>{new bs().loadMore();});const oo=class oo{constructor(t){_t(this,"loaded",!1);_t(this,"page",-1);_t(this,"hasMore",!0);_t(this,"count",0);_t(this,"items",[]);_t(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await vn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>Ba.updatedAt&&(Ba.updatedAt=Date.now(),Ba.bvidSet=Zh(r.map(i=>i.bvid)));const o=la().subtract(2,"days").unix(),a=r.findIndex(i=>i.add_at({item:l,index:oo.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):Pt.shuffleForWatchLater&&(r=[...i,...Am(s)]);}this.count=n.data.count,this.items=r,oo.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return j(Qee,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*oo.PAGE_SIZE,n=t+oo.PAGE_SIZE,r=qee(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};_t(oo,"PAGE_SIZE",15),_t(oo,"LAST_ITEMS",[]);let bs=oo;function Qee({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=In(),o=nv();return pe(Rt,{children:[pe(yo,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{xt(`稍后再看: ${n}`);},children:[e," / 100"]}),j(Qw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:a=>{Cr({shuffleForWatchLater:a}),setTimeout(()=>{o==null||o();});}})]})}const tv=f.createContext(void 0);function nv(){return f.useContext(tv)}function ix({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=yq(),l=_Q(()=>({})),[c,u]=f.useState(!0),[d,m]=f.useState([]),[g,h]=f.useState(()=>new ps),[v,p]=f.useState(()=>new jm(Rr.upMid)),[b,y]=f.useState(()=>new bs),[C,w]=f.useState(()=>new vs),[E,x]=f.useState(!1),[S,$,I]=Z$(()=>Date.now()),[O,_]=f.useState(s),[M,k]=f.useState(()=>new AbortController),[A,L]=f.useState(!1),[R,P]=f.useState(void 0),T=st(async(z=!1,F)=>{var le;const H=performance.now();if(E)if(s===O){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",O,s),M.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const B=ie=>{x(ie),i==null||i(ie);};B(!0),$(Date.now()),_(s),m([]),P(void 0),u(!0),await(r==null?void 0:r());let W=[],G;const X=!!(z&&((le=l.current[s])!=null&&le.length)),Q=!!(X&&(j0[s].swr||s==="fav"));L(Q);const ee=X&&(Q||s==="fav"),V=async()=>{try{W=await n(fe);}catch(ie){G=ie;}},q=t?new ps:g;t&&h(q);let re=v;s==="dynamic-feed"&&(re=new jm(Rr.upMid),p(re));let ue=b;s==="watchlater"&&(ue=new bs(F==null?void 0:F.watchlaterKeepOrder),y(ue));let de=C;s==="fav"&&(X?de.restore():(de=new vs,w(de)));const Z=new AbortController,te=Z.signal;k(Z);const fe={tab:s,pcRecService:q,dynamicFeedService:re,watchLaterService:ue,favService:de,abortSignal:te};if(e("refresh(): shouldReuse=%s swr=%s",X,Q),X?(W=l.current[s]||[],m(W),ee&&await V()):(l.current[s]=[],await V()),te.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),G){console.error(G),P(G);return}m(W),j0[s].swr?l.current[s]=W.slice(0,30):l.current[s]=W,s==="dynamic-feed"&&u(re.hasMore),s==="watchlater"&&u(ue.hasMore),s==="fav"&&u(de.hasMore),await(o==null?void 0:o());const J=performance.now()-H;e("refresh(): [success] cost %s ms",J.toFixed(0));});return {items:d,itemsCache:l,setItems:m,error:R,refreshedAt:S,setRefreshedAt:$,getRefreshedAt:I,refreshing:E,setRefreshing:x,refreshFor:O,setRefreshFor:_,refreshAbortController:M,setRefreshAbortController:k,hasMore:c,setHasMore:u,swr:A,setSwr:L,pcRecService:g,dynamicFeedService:v,watchLaterService:b,favService:C,setPcRecService:h,setDynamicFeedService:p,setWatchLaterService:y,setFavService:w,refresh:T}}async function Zee(){const t=(await vn.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class jm{constructor(t){_t(this,"offset","");_t(this,"page",0);_t(this,"hasMore",!0);_t(this,"upMid");this.upMid=t;}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset),this.upMid&&(n.host_mid=this.upMid);const o=(await vn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.filter(s=>s.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return j(tte,{})}}_t(jm,"PAGE_SIZE",15);const Rr=ir({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});setTimeout(()=>{Rr.upList.length||requestIdleCallback(()=>{sx();});},el("5s"));async function sx(e=!1){if(!e&&Rr.upList.length&&Rr.upListUpdatedAt&&Rr.upListUpdatedAt-Date.now()n.mid===e.upMid);t&&(t.has_update=!1);}}var Jee={name:"dhit8z",styles:"margin-left:15px"},ete={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function tte(){const e=nv(),{upName:t,upList:n}=lr(Rr);Zs(()=>{sx();});const r=st(async i=>{lx(i),await br(100),e==null||e();}),o=st(()=>{r({upMid:void 0,upName:void 0});}),a=f.useMemo(()=>{const i={key:"all",icon:j(q0,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=j(q0,{size:"small",src:l.face});return l.has_update&&(c=j(bQ,{dot:!0,children:c})),{key:l.mid,icon:c,label:j("span",{title:l.uname,css:ete,children:l.uname}),onClick(){r({upMid:l.mid,upName:l.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return j("div",{css:Jee,children:pe(Bs,{children:[j(ev,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:j(Ut,{children:t?`UP: ${t}`:"全部"})}),!!t&&pe(Ut,{onClick:o,css:[nd,"",""],children:[j(At,{name:"Return",size:14,style:{marginRight:5}}),"清除"]})]})})}const df={removeFav:nte,addFav:ate,getVideoFavState:rte};async function nte(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:wi()}),o=(await vn.post("/x/v3/fav/resource/batch-del",n)).data,a=Qr(o);return a||xt(o.message||L$),a}async function rte(e){if(!qs())return;const r=(await vn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Gu(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>rx(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function ote({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:wi()}),a=(await vn.post("/x/v3/fav/resource/deal",r)).data,i=Qr(a);return i||xt((a==null?void 0:a.message)||"fav deal api fail"),i}let ff=0,Fm="";async function ate(e){if(!ff||!Fm){const t=new vs;await t.getAllFolders(),ff=t.folderServices[0].entry.id,Fm=t.folderServices[0].entry.title;}return await ote({avid:e,add_media_ids:ff.toString()})}async function cx(e,t){const n=Gu(),r=wi(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:ite()}),csrf:r}),i=(await vn.post("/x/relation/modify",o)).data,s=Qr(i);return s||xt(i.message||"未知错误"),s}function ite(){let e,t,n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{},r="empty";return n&&(r=n.webdriver+""+n.screenResolution+""+n.platform+""+n.hardwareConcurrency+""+n.deviceMemory+""+n.colorDepth+""+n.indexedDb+""+n.language+""+n.openDatabase+""+n.touchSupport+""+n.userAgent),decodeURIComponent(r)}const ste=dx("follow"),lte=dx("remove"),ux={add:ste,remove:lte},Bm=Zh();function cte(e){const t=lr(Bm);return e&&t.has(e)}function dx(e){const t=e==="follow"?5:6;return async function(r){const o=await cx(r,t);return o&&(e==="follow"?Bm.add(r):e==="remove"&&Bm.delete(r)),o}}const ute=fx("follow"),dte=fx("unfollow"),fte={follow:ute,unfollow:dte};function fx(e){const t=e==="follow"?1:2;return async function(r){return await cx(r,t)}}const mte="_bili-video-card_mnvtu_1",gte="_preview-card-wrapper_mnvtu_4",hte="_preview-card-inner_mnvtu_17",vte="_watch-later_mnvtu_21",pte="_badge_mnvtu_24",bte="_recommend-reason_mnvtu_33",yte="_bangumi-desc_mnvtu_48",Cte="_btn-dislike_mnvtu_51",Ste="_btn-dislike-icon_mnvtu_66",$te="_btn-dislike-tip_mnvtu_73",wte="_disliked-wrapper_mnvtu_88",xte="_dislike-content-cover_mnvtu_102",Ete="_dislike-content-cover-inner_mnvtu_108",Ite="_dislike-icon_mnvtu_119",Ote="_dislike-reason_mnvtu_122",Pte="_dislike-desc_mnvtu_126",Mte="_dislike-content-action_mnvtu_130",Rte="_skeleton-active_mnvtu_147",_te="_ant-skeleton-loading_mnvtu_1",Gt={biliVideoCard:mte,previewCardWrapper:gte,previewCardInner:hte,watchLater:vte,badge:pte,recommendReason:bte,bangumiDesc:yte,btnDislike:Cte,btnDislikeIcon:Ste,btnDislikeTip:$te,dislikedWrapper:wte,dislikeContentCover:xte,dislikeContentCoverInner:Ete,dislikeIcon:Ite,dislikeReason:Ote,dislikeDesc:Pte,dislikeContentAction:Mte,skeletonActive:Rte,antSkeletonLoading:_te};function Tte(...e){for(const t of e)if(!isNaN(t))return t;return 0}function Nte({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=f.useRef(null),i=YU(a),[s,l]=f.useState(()=>({width:0,height:0}));Zs(()=>{var m;const d=(m=a.current)==null?void 0:m.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=Tte(i.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return j("div",{ref:a,className:K(Gt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&j(kte,{...u})})}function kte({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var E;const a=Math.floor((e||0)*o);let i=f.useMemo(()=>{const x=(t==null?void 0:t.index)||[];let S=Lte(x,a);return S!==-1?S:a>x[x.length-1]?(S=Math.floor(x.length*o)-1,S<0&&(S=0),S):0},[t,a]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;i=i+1;const m=Math.floor(i/d),g=i-m*d,h=((E=t.image)==null?void 0:E[m])||"",v=Math.floor(g/s)+1,p=g-(v-1)*s,b=n*s,y=r*l,C=(v-1)*r,w=(p-1)*n;return j("div",{className:Gt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${h})`,backgroundPosition:`-${w}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:j(Ate,{progress:o})})}function Ate({progress:e}){return j("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:j("div",{className:"bar",style:{backgroundColor:mo,height:"100%",width:`${e*100}%`}})})}function Lte(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l{const t=ys[e]||ys[1];return Vi[t]},jte=e=>{const t=ys[e];if(t)return zte[t]};function ny(e){return {iconSvgName:Dte(e),iconSvgScale:jte(e)}}var so=class{static av2bv(t){const n=(t^this.XOR)+this.ADD,r=["B","V","1",,,"4",,"1",,"7"];for(let o=0;o<6;o++)r[this.S[o]]=this.TABEL[Math.floor(n/58**o)%58];return r.join("")}static bv2av(t){let n=0;for(let r=0;r<6;r++)n+=this.TR[t[this.S[r]]]*58**r;return n-this.ADD^this.XOR}};so.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";so.TR={};so.S=[11,10,3,8,4,6];so.XOR=177451812;so.ADD=8728348608;(()=>{const e=so.TABEL.length;for(let t=0;t{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&ys[c]===l)return Cc(u);if(d&&ys[d]===l)return Cc(m)},n=e.param,r=Cs.av2bv(Number(e.param)),o=(()=>{var l;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${xn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:Xu((i=e.player_args)==null?void 0:i.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function Hte(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=la().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:xo(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:UK(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Cc(t.stat.play),danmaku:Cc(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function Wte(e){const t=YK(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?j(Vu,{title:pe(Rt,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:pe("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:xo(e.pubdate),pubdateDisplayTitle:`${xo(e.pubdate,!0)} 发布, ${xo(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Xu(e.duration),recommendReason:`${xo(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Vte(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:pe(Rt,{children:["【",j(At,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",mo],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:xo(e.pubtime),duration:e.duration,durationStr:Xu(e.duration),recommendReason:`${xo(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}const Kte=e=>(e||"").replace(/^http:\/\//,"https://");function ry(e){GM.setClipboard(e),xt(`已复制: ${e}`);}const hx=Uh(),Gte="--video-card-border-radius",vx=`var(${Gte})`,px={borderRadius:vx},Mc=f.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l,emitter:c,...u}){o=o??!r;const d=pe("div",{className:K("bili-video-card__skeleton",{hide:!o,[Gt.skeletonActive]:o}),children:[j("div",{className:"bili-video-card__skeleton--cover",style:px}),j("div",{className:"bili-video-card__skeleton--info",children:pe("div",{className:"bili-video-card__skeleton--right",children:[j("p",{className:"bili-video-card__skeleton--text"}),j("p",{className:"bili-video-card__skeleton--text short"}),j("p",{className:"bili-video-card__skeleton--light"})]})})]}),m=hY((r==null?void 0:r.api)==="app"&&r.param),g=f.useMemo(()=>r&&gx(r),[r]),h=cte(g==null?void 0:g.authorMid);return pe("div",{style:t,className:K("bili-video-card",Gt.biliVideoCard,n),...u,children:[d,!o&&r&&g&&(m?j(Ute,{item:r,emitter:c,dislikedReason:m}):h?j(Xte,{cardData:g}):j(qte,{item:r,cardData:g,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))]})}),Ute=f.memo(function({dislikedReason:t,item:n,emitter:r=hx}){const o=st(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await aY(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),z$();a?xt("已撤销"):D$(),a&&td.delete(n.param);});return Ma(r,"cancel-dislike",o),pe("div",{className:K(Gt.dislikedWrapper),children:[j("div",{className:Gt.dislikeContentCover,children:pe("div",{className:Gt.dislikeContentCoverInner,children:[j(At,{name:"DistraughtFace",size:32,className:Gt.dislikeIcon}),j("div",{className:Gt.dislikeReason,children:t==null?void 0:t.name}),j("div",{className:Gt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),j("div",{className:Gt.dislikeContentAction,children:pe("button",{onClick:o,children:[j(At,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),Xte=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=st(async()=>{if(!n)return;await ux.remove(n)&&xt(`已移出黑名单: ${o}`);});return pe("div",{className:K(Gt.dislikedWrapper),children:[j("div",{className:Gt.dislikeContentCover,children:pe("div",{className:Gt.dislikeContentCoverInner,children:[j(At,{name:"PeopleDelete",size:32,className:Gt.dislikeIcon}),j("div",{className:Gt.dislikeReason,children:"已拉黑"}),pe("div",{className:Gt.dislikeDesc,children:["UP: ",o]})]})}),j("div",{className:Gt.dislikeContentAction,children:pe("button",{onClick:a,children:[j(At,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),qte=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=hx}){var ye,Fe;const l=t.api==="pc",c=t.api==="app";t.api,t.api,t.api;const{avid:u,bvid:d,goto:m,href:g,title:h,titleRender:v,coverRaw:p,pubdateDisplay:b,pubdateDisplayTitle:y,duration:C,durationStr:w,recommendReason:E,invalidReason:x,play:S,like:$,coin:I,danmaku:O,favorite:_,authorName:M,authorFace:k,authorMid:A,appBadge:L,appBadgeDesc:R}=n,P=m==="av";["av","bangumi","picture"].includes(m)||console.warn(`[${xn}]: none (av,bangumi,picture) goto type %s`,m,t);const T=f.useMemo(()=>Kte(p),[p]),[z,F]=f.useState(null),H=f.useRef(!1),B=st(async()=>{if(!z&&!H.current)try{H.current=!0,F(await rY(u));}finally{H.current=!1;}}),W=f.useRef(null),[G,X]=f.useState(void 0);Io("mouseenter",ge=>{var Ce;const ae=(Ce=W.current)==null?void 0:Ce.getBoundingClientRect();if(!ae)return;const{x:ne}=ae,ve=ge.pageX-window.pageXOffset-ne;X(ve);},{target:W});const Q=of(W),{autoPreviewWhenHover:ee}=In(),{onStartPreviewAnimation:V,onHotkeyPreviewAnimation:q,previewAnimationProgress:re}=Yte({bvid:d,title:h,autoPreviewWhenHover:ee,active:r,tryFetchVideoData:B,videoPreviewWrapperRef:W});Sc(()=>{if(r){try{unsafeWindow[`${_4}_activeItem`]=t;}catch(ge){console.warn("set unsafeWindow activeItem error"),console.warn(ge.stack||ge);}Pt.autoPreviewWhenKeyboardSelect&&V();}},[r]);const ue=f.useRef(null),de=of(ue),Z=Yee(d),{accessKey:te}=In(),fe=!!te;f.useEffect(()=>{Q&&B();},[Q]);const J=t.api!=="app"||t.api==="app"&&t.goto==="av",le=f.useRef(!1),ie=st(async(ge,ae)=>{if(ge==null||ge.preventDefault(),ae??(ae=Z?F0:Pl),ae!==Pl&&ae!==F0)throw new Error("unexpected usingAction provided");if(le.current)return {success:!1};le.current=!0;let ne=!1;try{ne=await ae(u);}finally{le.current=!1;}const ve=ae===Pl;return ne&&(ve?Ba.bvidSet.add(d):Ba.bvidSet.delete(d),t.api==="watchlater"?ve||(await br(100),o==null||o(t,n)):xt(`已${ve?"添加":"移除"}稍后再看`)),{success:ne,targetState:ve}}),se=f.useRef(null),oe=of(se),he=st(ge=>{if(ge==null||ge.stopPropagation(),ge==null||ge.preventDefault(),!Ae)return t.api!=="app"?xt("当前视频不支持提交「我不想看」"):fe?void 0:xt("请先获取 access_key");yY(t);}),be=f.useMemo(()=>ef(S),[S]),Me=f.useMemo(()=>ef($),[$]),ze=f.useMemo(()=>ef(_),[_]),qe=l?Me:ze,Oe=({text:ge,iconSvgName:ae,iconSvgScale:ne})=>pe("span",{className:"bili-video-card__stats--item",children:[j("svg",{className:"bili-video-card__stats--icon",style:{transform:ne?`scale(${ne})`:void 0},children:j("use",{href:ae})}),j("span",{className:"bili-video-card__stats--text",children:ge})]}),[Te,Ve]=f.useState(void 0),[je,Ke]=f.useState(void 0),Be=st(async()=>{if(t.api!=="watchlater")return;const ge=await df.getVideoFavState(u);if(ge){const{favFolderNames:ae,favFolderUrls:ne}=ge;Ve(ae),Ke(ne);}}),He=st(()=>{window.open(g,"_blank");});Ma(s,"open",He),Ma(s,"toggle-watch-later",()=>ie()),Ma(s,"trigger-dislike",()=>he()),Ma(s,"start-preview-animation",V),Ma(s,"hotkey-preview-animation",q);const Ae=c&&fe&&!!((Fe=(ye=t.three_point)==null?void 0:ye.dislike_reasons)!=null&&Fe.length),rt=st(()=>{let ge=g;g.startsWith("/")&&(ge=new URL(g,location.href).href),ry(ge);}),Ue=st(()=>{let ge=g;t.api==="watchlater"&&(ge=`/video/${t.bvid}`);const ae=new URL(ge,location.href).href,ne=`iina://open?url=${encodeURIComponent(ae)}`;window.open(ne,"_self");}),Ze=nl(),mt=Ze==="recommend-app"||Ze==="recommend-pc",ut=st(async()=>{if(!A)return xt("UP mid 为空!");await ux.add(A)&&xt(`已加入黑名单: ${M}`);}),nt=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&E==="已关注",Ot=st(async()=>{if(!A)return;await fte.unfollow(A)&&xt("已取消关注");}),St=t.api==="dynamic"&&!!i,Ee=st(async()=>{!A||!M||(lx({upMid:Number(A),upName:M}),await br(100),await(i==null?void 0:i()));}),we=f.useMemo(()=>{const ge=Z?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:j(At,{name:"EfferentFour",size:15}),onClick:He},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:j(At,{name:"Copy",size:15}),onClick:rt},{key:"copy-bvid",label:"复制 BVID",icon:j(At,{name:"Copy",size:15}),onClick(){ry(d);}},{type:"divider"},Ae&&{key:"dislike",label:"我不想看",icon:j(At,{name:"DislikeTwo",size:15}),onClick(){he();}},St&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:j(At,{name:"PeopleSearch",size:15}),onClick:Ee},nt&&{key:"unfollow-up",label:"取消关注",icon:j(At,{name:"PeopleMinus",size:15}),onClick:Ot},mt&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:j(At,{name:"PeopleDelete",size:15}),onClick:ut},t.api==="watchlater"&&{key:"add-fav",icon:j(At,{name:"Star",size:15,...Te!=null&&Te.length?{theme:"two-tone",fill:["currentColor",mo]}:void 0}),label:Te!=null&&Te.length?`已收藏 ${Te.map(ae=>`「${ae}」`).join("")}`:"快速收藏",async onClick(){!!(Te!=null&&Te.length)?je==null||je.forEach(ne=>{window.open(ne,"_blank");}):await df.addFav(u)&&xt(`已加入收藏夹「${Fm}」`);}},J&&{key:"watchlater",label:ge,icon:j(At,{name:Z?"Delete":"FileCabinet",size:15}),onClick(){ie();}},t.api==="watchlater"&&Z&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:j(At,{name:"AddTwo",size:15}),async onClick(){const{success:ae}=await ie(void 0,Pl);ae&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:j(At,{name:"EfferentFour",size:15}),onClick(){const{id:ae}=t.folder,ne=rx(ae);window.open(ne,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:j(At,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await df.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...lK?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:j(At,{name:"PlayTwo",size:15}),onClick:Ue}]:[]].filter(Boolean)},[t,J,Z,Ae,nt,mt,St,Te,je]),Re=st(ge=>{ge&&Be();});return pe("div",{className:"bili-video-card__wrap __scale-wrap",children:[j(ev,{menu:{items:we},trigger:["contextMenu"],onOpenChange:Re,children:j("a",{href:g,target:"_blank",children:pe("div",{className:"bili-video-card__image __scale-player-wrap",ref:W,style:{...px,aspectRatio:"16 / 9"},children:[pe("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[pe("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!jh&&j("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),j("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),j("img",{src:`${T}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(Q||typeof re=="number")&&j(Nte,{videoDuration:C,pvideo:z==null?void 0:z.pvideoData,mouseEnterRelativeX:G,previewAnimationProgress:re}),J&&pe("div",{className:`bili-watch-later ${Gt.watchLater}`,style:{display:Q||r?"flex":"none"},ref:ue,onClick:ie,children:[j("svg",{className:"bili-watch-later__icon",children:j("use",{href:Z?"#widget-watch-save":"#widget-watch-later"})}),j("span",{className:"bili-watch-later__tip",style:{display:de?"block":"none"},children:Z?"移除稍后再看":"稍后再看"})]}),Ae&&pe("div",{ref:se,className:Gt.btnDislike,onClick:he,style:{display:Q?"flex":"none"},children:[j("svg",{className:Gt.btnDislikeIcon,children:j("use",{href:"#widget-close"})}),j("span",{className:Gt.btnDislikeTip,style:{display:oe?"block":"none"},children:"我不想看"})]})]}),j("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:pe("div",{className:"bili-video-card__stats",children:[j("div",{className:"bili-video-card__stats--left",children:l?pe(Rt,{children:[Oe({text:be,iconSvgName:Vi.play}),Oe({text:m==="av"?Me:qe,iconSvgName:Vi.like})]}):c?pe(Rt,{children:[!!t.cover_left_text_1&&Oe({...ny(t.cover_left_icon_1),text:t.cover_left_text_1}),!!t.cover_left_text_2&&Oe({...ny(t.cover_left_icon_2),text:t.cover_left_text_2})]}):pe(Rt,{children:[Oe({text:be,iconSvgName:Vi.play}),Oe({text:(O||0).toString(),iconSvgName:Vi.danmaku})]})}),j("span",{className:"bili-video-card__stats__duration",children:P&&w})]})})]})})}),j("div",{className:"bili-video-card__info __scale-disable",children:pe("div",{className:"bili-video-card__info--right",children:[j("a",{href:g,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:j("h3",{className:"bili-video-card__info--tit",title:h,children:v??h})}),j("p",{className:"bili-video-card__info--bottom",children:P?pe("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${A}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${M} ${y||b}`,children:[E?j("span",{className:Gt.recommendReason,children:E}):j("svg",{className:"bili-video-card__info--owner__up",children:j("use",{href:"#widget-up"})}),j("span",{className:"bili-video-card__info--author",children:M}),b&&pe("span",{className:"bili-video-card__info--date",children:["· ",b]})]}):L||R?pe("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[j("span",{className:Gt.badge,children:L||""}),j("span",{className:Gt.bangumiDesc,children:R||""})]}):null})]})})]})});function Yte({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=ew(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);Io("mouseenter",$=>{d.current=!0,n&&!h.current&&S(!0);},{target:a}),Io("mouseleave",$=>{d.current=!1;},{target:a}),Io("mousemove",$=>{u(!0),n||p();},{target:a});const g=ZU(),h=f.useRef(void 0),v=st(()=>{if(g.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=st(($=!1)=>{h.current&&cancelAnimationFrame(h.current),h.current=void 0,l(void 0),y(!1);}),[b,y,C]=Z$(!1),w=f.useRef(),E=st(()=>{var $;if(!h.current){S();return}y(I=>!I),b&&(($=w.current)==null||$.call(w,s||0));}),x=st(()=>s||0),S=st(($=!1)=>{m.current=$,u(!1),y(!1),o(),p(!0),l(A=>typeof A>"u"?0:A);const I=8e3,O=()=>typeof Pt.autoPreviewUpdateInterval=="number"?Pt.autoPreviewUpdateInterval:400;let _=performance.now(),M=0;w.current=()=>{_=performance.now()-x()*I;};function k(A){if(v()){p();return}const L=()=>{const R=performance.now()-_,P=Math.min(R%I/I,1);l(P);};C()||(O()?(!M||performance.now()-M>=O())&&(M=performance.now(),L()):L()),h.current=requestAnimationFrame(k);}h.current=requestAnimationFrame(k);});return {onHotkeyPreviewAnimation:E,onStartPreviewAnimation:S,previewAnimationProgress:s}}const Qte=()=>document.querySelector(".bili-header__bar");function Zte(){const e=Qte();return !!(e&&window.getComputedStyle(e).display==="none")}function Hm(){if(!Zte())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const t=document.documentElement.style.getPropertyValue("--navbar-height");if(!t)return 50;const n=Number(t.replace("px",""));return isNaN(n)?50:n}const Rc=ir({value:Hm()});function Jte(){return lr(Rc).value}function bx(){return Rc.value}setTimeout(()=>{Rc.value=Hm();const e=new MutationObserver(()=>{Rc.value=Hm();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const rv="_video-grid_t2sr7_9",yx="_video-grid-new-homepage_t2sr7_17",ene="_limit-two-lines_t2sr7_20",Cx="_video-grid-internal-testing_t2sr7_52";const oy="_video-grid-container_t2sr7_80",tne="_video-grid-youtube-like_t2sr7_84",nne="_narrow-mode_t2sr7_112";function rne({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=f.useState(void 0),u=st(()=>!(!e||Uu())),d=st(()=>{var S;if(typeof l!="number"||!o.current)return !1;const E=a(),x=(S=o.current.querySelector(`.${Wa.card}.${Wa.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!E||!x||x.top-E.top<-(E.height+x.height)||x.top-E.top>E.height*2+x.height)}),m=E=>x=>{if(!u())return;x==null||x.preventDefault();let S=typeof E=="number"?E:E();const $=d()?l+S:p();if($r){w(r);return}c($),w($);};sn("leftarrow",m(-1),{exactMatch:!0}),sn("rightarrow",m(1),{exactMatch:!0}),sn("tab",m(1),{exactMatch:!0}),sn("shift.tab",m(-1),{exactMatch:!0});const g=()=>ov(o.current);sn("uparrow",m(()=>-g()),{exactMatch:!0}),sn("downarrow",m(g),{exactMatch:!0});const h=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};sn("esc",h),sn("enter",()=>{var E;!u()||typeof l!="number"||(E=v())==null||E.emit("open");}),sn("backspace",()=>{var E;!u()||typeof l!="number"||(E=v())==null||E.emit("trigger-dislike");}),sn(["s","w"],()=>{var E;!u()||typeof l!="number"||(E=v())==null||E.emit("toggle-watch-later");},{exactMatch:!0}),sn(["period","p"],()=>{var E;!u()||typeof l!="number"||(E=v())==null||E.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const E=a();if(!E)return 0;const x=y();for(let S=0;S=E.top)return S;return 0}const b=`.${Wa.card}`;function y(){var E;return [...((E=o.current)==null?void 0:E.querySelectorAll(b))||[]]}function C(E){return y()[E]}function w(E){var I;const x=C(E);(I=x==null?void 0:x.scrollIntoViewIfNeeded)==null||I.call(x,!1);const S=a(),$=x.getBoundingClientRect();if(!(!S||!$)){if($.top<=S.top){const O=-(S.top-$.top+10);i==null||i({offset:O});return}if(S.bottom-$.bottom<10){const O=10-(S.bottom-$.bottom);i==null||i({offset:O});return}}}return {activeIndex:l,clearActiveIndex:h}}const one=new Map,ane=new Map;function ov(e,t=!0){if(t&&Pt.useNarrowMode)return 2;const n=Pt.styleUseYoutubeLikeCard?one:ane;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${rv}`)),!e)return 0;const o=window.getComputedStyle(e);return o.display!=="grid"?0:(r=o.gridTemplateColumns.split(" ").length,n.set(window.innerWidth,r),r)}function Sx(e){return e==="keep-follow-only"||Pt.filterMinDurationEnabled||Pt.filterMinPlayCountEnabled||Pt.filterOutGotoTypePicture}function $x(e,t){return Sx(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=gx(n),s=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!s)return !1;const l=i==="av",c=i==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!Pt.enableFilterForFollowedVideo?!0:!(Pt.filterMinPlayCountEnabled&&Pt.filterMinPlayCount&&typeof r=="number"&&r1)for(var n=1;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),i=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),id(t)?n.showHidden=t:t&&uv(n,t),Vr(n.showHidden)&&(n.showHidden=!1),Vr(n.depth)&&(n.depth=2),Vr(n.colors)&&(n.colors=!1),Vr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=une),_c(n,e,n.depth)}Ur.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ur.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function une(e,t){var n=Ur.styles[t];return n?"\x1B["+Ur.colors[n][0]+"m"+e+"\x1B["+Ur.colors[n][1]+"m":e}function dne(e,t){return e}function fne(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function _c(e,t,n){if(e.customInspect&&t&&ns(t.inspect)&&t.inspect!==Ur&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return al(r)||(r=_c(e,r,n)),r}var o=mne(e,t);if(o)return o;var a=Object.keys(t),i=fne(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),ts(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return hf(t);if(a.length===0){if(ns(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(es(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Tc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ts(t))return hf(t)}var l="",c=!1,u=["{","}"];if(sv(t)&&(c=!0,u=["[","]"]),ns(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(es(t)&&(l=" "+RegExp.prototype.toString.call(t)),Tc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ts(t)&&(l=" "+hf(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return es(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=gne(e,t,n,i,a):m=a.map(function(g){return Gm(e,t,n,i,g,c)}),e.seen.pop(),hne(m,l,u)}function mne(e,t){if(Vr(t))return e.stylize("undefined","undefined");if(al(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(lv(t))return e.stylize(""+t,"number");if(id(t))return e.stylize(""+t,"boolean");if(ol(t))return e.stylize("null","null")}function hf(e){return "["+Error.prototype.toString.call(e)+"]"}function gne(e,t,n,r,o){for(var a=[],i=0,s=t.length;i-1&&(a?s=s.split(` `).map(function(c){return " "+c}).join(` `).substr(2):s=` `+s.split(` `).map(function(c){return " "+c}).join(` `))):s=e.stylize("[Circular]","special")),Vr(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"));}return i+": "+s}function hne(e,t,n){var r=e.reduce(function(o,a){return a.indexOf(` `)>=0,o+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function sv(e){return Array.isArray(e)}function id(e){return typeof e=="boolean"}function ol(e){return e===null}function Mx(e){return e==null}function lv(e){return typeof e=="number"}function al(e){return typeof e=="string"}function Rx(e){return typeof e=="symbol"}function Vr(e){return e===void 0}function es(e){return ca(e)&&cv(e)==="[object RegExp]"}function ca(e){return typeof e=="object"&&e!==null}function Tc(e){return ca(e)&&cv(e)==="[object Date]"}function ts(e){return ca(e)&&(cv(e)==="[object Error]"||e instanceof Error)}function ns(e){return typeof e=="function"}function _x(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Tx(e){return Buffer.isBuffer(e)}function cv(e){return Object.prototype.toString.call(e)}function vf(e){return e<10?"0"+e.toString(10):e.toString(10)}var vne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pne(){var e=new Date,t=[vf(e.getHours()),vf(e.getMinutes()),vf(e.getSeconds())].join(":");return [e.getDate(),vne[e.getMonth()],t].join(" ")}function Nx(){console.log("%s - %s",pne(),ai.apply(null,arguments));}function uv(e,t){if(!t||!ca(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function kx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const bne={inherits:Ox,_extend:uv,log:Nx,isBuffer:Tx,isPrimitive:_x,isFunction:ns,isError:ts,isDate:Tc,isObject:ca,isRegExp:es,isUndefined:Vr,isSymbol:Rx,isString:al,isNumber:lv,isNullOrUndefined:Mx,isNull:ol,isBoolean:id,isArray:sv,inspect:Ur,deprecate:iv,format:ai,debuglog:Px},yne=Object.freeze(Object.defineProperty({__proto__:null,_extend:uv,debuglog:Px,default:bne,deprecate:iv,format:ai,inherits:Ox,inspect:Ur,isArray:sv,isBoolean:id,isBuffer:Tx,isDate:Tc,isError:ts,isFunction:ns,isNull:ol,isNullOrUndefined:Mx,isNumber:lv,isObject:ca,isPrimitive:_x,isRegExp:es,isString:al,isSymbol:Rx,isUndefined:Vr,log:Nx},Symbol.toStringTag,{value:"Module"})),Cne=eE(yne);var Sne=Cne.format;function $ne(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function wne(e,t){return function(){var n=this,r=[].slice.call(arguments);$ne();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new Ax(t);i(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),a(l);},function(l){clearTimeout(s),i(l);});})}}let Ax=class Lx extends Error{constructor(t){super(),this.timeout=t,this.message=Sne("timeout of %sms exceed",t),Error.captureStackTrace(this,Lx);}};av.exports=wne;av.exports.TimeoutError=Ax;var xne=av.exports;const zx=xne,Ene=zx.TimeoutError;ad.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=zx(t,a));const i=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class Ine extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t;}}var One=ad.exports.RetryError=Dx;ad.exports.TimeoutError=Ene;var Pne=ad.exports;const Mne=hn(Pne);class dv extends Error{constructor(n){super();_t(this,"json");Error.captureStackTrace(this,dv),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Rne(){var r;const t=(await Ju.get(p1+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new dv(t);return xt(`${xn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const _ne=Mne(Rne,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",xn,t,e);}});async function Tne(){try{return await _ne()}catch(e){if(e instanceof One){console.error(e.errors);const t=[ai("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ai(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);xt(t,5e3);}throw e}}class Nc{constructor(){_t(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[];return await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>Tne()))).flat();})(),n=od(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}_t(Nc,"PAGE_SIZE",10);const Rl=vi.extend("service"),Yl=e=>mx(e,{pc:t=>t.id,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.aid,watchlater:t=>t.bvid,fav:t=>t.bvid});function Nne(e,t){const n=e.map(Yl);return t=od(t,Yl),e.concat(t.filter(r=>!n.includes(Yl(r))))}const Um=e=>e==="keep-follow-only"||e==="recommend-pc";async function jx(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:a,favService:i,tab:s,abortSignal:l}=t,c=new Nc;let u=[],d=!0;const m=async g=>{let h=[];if(s==="dynamic-feed"){h=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(h);return}if(s==="watchlater"){h=await a.loadMore()||[],d=a.hasMore,u=u.concat(h);return}if(s==="fav"){h=await i.loadMore()||[],d=i.hasMore,u=u.concat(h);return}let v;if(s==="keep-follow-only")v=8,Rl("getMinCount: addMore(restCount = %s) times=%s",g,v);else {const p=Um(s)?ps.PAGE_SIZE:Nc.PAGE_SIZE,b=Sx(s)?n:1.2;v=Math.ceil(g*b/p),Rl("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",g,b,p,v);}h=Um(s)?await r.getRecommendTimes(v,l):await c.getRecommendTimes(v),h=$x(h,s),u=u.concat(h),u=od(u,Yl);};for(await m(e);;){if(l!=null&&l.aborted){Rl("getMinCount: break for abortSignal");break}if(!d){Rl("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await m(e-u.length);}return u}async function kne(e){let t=await jx(ov(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Ane(e){return jx(ov()*3+1,e,5)}async function Lne(e,t,n){let r=Um(t)?await n.getRecommendTimes(e):await new Nc().getRecommendTimes(e);return r=$x(r,t),r}var Xm=new Map,_l=new WeakMap,ay=0,zne=void 0;function Dne(e){return e?(_l.has(e)||(ay+=1,_l.set(e,ay.toString())),_l.get(e)):"0"}function jne(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Dne(e.root):e[t]}`).toString()}function Fne(e){let t=jne(e),n=Xm.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.forEach(s=>{var l;const c=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=c),(l=r.get(s.target))==null||l.forEach(u=>{u(c,s);});});},e);o=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},Xm.set(t,n);}return n}function Bne(e,t,n={},r=zne){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:a,elements:i}=Fne(n);let s=i.get(e)||[];return i.has(e)||i.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(i.delete(e),a.unobserve(e)),i.size===0&&(a.disconnect(),Xm.delete(o));}}function Hne({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,m]=f__namespace.useState(null),g=f__namespace.useRef(),[h,v]=f__namespace.useState({inView:!!s,entry:void 0});g.current=c,f__namespace.useEffect(()=>{if(i||!d)return;let C;return C=Bne(d,(w,E)=>{v({inView:w,entry:E}),g.current&&g.current(w,E),E.isIntersecting&&a&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,l,t]);const p=(u=h.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[m,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Di=vi.extend("components:RecGrid"),Wa={card:yc({name:"pqxyg1",styles:"border:2px solid transparent;.bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px);}"}),cardActive:yc("border-color:",mo,";border-radius:",vx,";overflow:hidden;","")};var Wne={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const Fx=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:a,setExtraInfo:i},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=In(),u=nl(),[d,m]=f.useState(0),g=st(async()=>{W(),i==null||i();}),h=st(()=>{W(),m(1),u==="watchlater"&&(i==null||i(_.usageInfo)),u==="fav"&&(i==null||i(M.usageInfo)),u==="dynamic-feed"&&(i==null||i(O.usageInfo)),R();}),{refresh:v,items:p,setItems:b,error:y,refreshing:C,refreshedAt:w,getRefreshedAt:E,swr:x,hasMore:S,setHasMore:$,pcRecService:I,dynamicFeedService:O,watchLaterService:_,favService:M}=ix({tab:u,debug:Di,fetcher:Ane,recreateService:!0,preAction:g,postAction:h,onScrollToTop:n,setUpperRefreshing:a});Zs(v),f.useImperativeHandle(s,()=>({refresh:v}),[]);const k=f.useRef();Io("visibilitychange",Z=>{if(!(document.visibilityState==="visible")){k.current=Date.now();return}C||A.current[w]||u==="watchlater"&&k.current&&Date.now()-k.current>el("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const A=f.useRef({}),L=st(async()=>{if(!S||C)return;const Z=w;if(A.current[Z])return;A.current={[Z]:!0};let te=p,fe=!0;try{if(u==="dynamic-feed")te=te.concat(await O.loadMore()||[]),fe=O.hasMore;else if(u==="watchlater")te=te.concat(await _.loadMore()||[]),fe=_.hasMore;else if(u==="fav")te=te.concat(await M.loadMore()||[]),fe=M.hasMore;else for(;!(te.length>p.length);){const le=await Lne(u==="keep-follow-only"?5:2,u,I);te=Nne(te,le);}}catch(J){throw A.current[Z]=!1,J}if(Z!==E()){Di("loadMore: skip update for mismatch refreshedAt, %s != %s",Z,E());return}Di("loadMore: seq(%s) len %s -> %s",d+1,p.length,te.length),$(fe),b(te),m(J=>J+1),A.current[Z]=!1,R();}),R=st(async()=>{await br(jh?100:50),Di("checkShouldLoadMore(): footerInView = %s",q.current),q.current&&L();}),P=f.useRef(null),T=st(()=>{var Z;if(e){const te=bx()+50;return new DOMRect(0,te,window.innerWidth,window.innerHeight-te)}else return (Z=o==null?void 0:o.current)==null?void 0:Z.getBoundingClientRect()}),z=pY(),F=f.useMemo(()=>new Map,[w]),H=f.useMemo(()=>p.map(({uniqId:Z})=>F.get(Z)||(()=>{const te=Uh();return F.set(Z,te),te})()),[p]),{activeIndex:B,clearActiveIndex:W}=rne({enabled:t&&!z,refresh:v,maxIndex:p.length-1,containerRef:P,getScrollerRect:T,videoCardEmitters:H,changeScrollY:e?function({offset:Z,absolute:te}){const fe=document.documentElement;if(typeof Z=="number"){fe.scrollTop+=Z;return}if(typeof te=="number"){fe.scrollTop=te;return}}:void 0}),G=ei(),X=st((Z,te)=>{b(fe=>{const J=fe.findIndex(ie=>ie.uniqId===Z.uniqId);if(J===-1)return fe;let le=fe.slice();return le.splice(J,1),xt(`已移除: ${te.title}`,4e3),u==="watchlater"&&(_.count--,i==null||i(_.usageInfo)),u==="fav"&&(M.total--,i==null||i(M.usageInfo)),le});}),Q=st((Z,te)=>{b(fe=>{const J=fe.find(se=>se.uniqId===Z.uniqId);if(!J)return fe;const le=fe.indexOf(J),ie=fe.slice();return ie.splice(le,1),ie.unshift(J),ie});}),{ref:ee,inView:V}=Hne({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(Z){Z&&(Di("footerInView change to visible",Z),L());}}),q=ti(V),re=j("div",{ref:ee,css:Wne,children:!C&&j(Rt,{children:S?pe(Rt,{children:[j(At,{name:"Loading",fill:mo,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=K(`${xn}-video-grid`,rv,c?tne:G?Cx:yx,l&&nne,r);return !p.length||y||C&&!x?j("div",{className:oy,children:j("div",{className:ue,children:new Array(28).fill(void 0).map((Z,te)=>j(Mc,{loading:!0,className:Wa.card},te))})}):pe("div",{style:{minHeight:"100%"},className:oy,children:[j("div",{ref:P,className:ue,children:p.map((Z,te)=>{const fe=te===B;return j(Mc,{className:K(Wa.card,{[Wa.cardActive]:fe}),item:Z,active:fe,onRemoveCurrent:X,onMoveToFirst:Q,onRefresh:v,emitter:H[te]},Z.uniqId)})}),re]})});function Vne(){const e=f.useRef(null),[t,n]=f.useState(!1);return f.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,a=parseInt(getComputedStyle(e.current).top),i=o<=a;n(i);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const Kne="_expand-btn_wdzp9_1",Gne="_expanded_wdzp9_12",iy={expandBtn:Kne,expanded:Gne},Une=f.forwardRef(function({children:t},n){const[r,o]=G$(!1);f.useImperativeHandle(n,()=>o,[o]);const a=j("button",{className:K("primary-btn",iy.expandBtn),onClick:o.toggle,children:j("svg",{className:K({[iy.expanded]:r}),children:j("use",{href:"#widget-arrow"})})});return pe(Rt,{children:[a,r&&t]})}),Xne="_modal-mask_7bwzz_1",qne="_narrow-mode_7bwzz_1",Yne="_modal_7bwzz_1",Qne="_modal-header_7bwzz_18",Zne="_modal-body_7bwzz_19",Jne="_btn-refresh_7bwzz_22",ji={modalMask:Xne,narrowMode:qne,modal:Yne,modalHeader:Qne,modalBody:Zne,btnRefresh:Jne};var ere={name:"1q4vxyr",styles:"margin-left:8px"};const tre=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:a}=In(),i=f.useMemo(()=>({[ji.narrowMode]:a}),[a]),s=st((...v)=>{var p;return (p=o.current)==null?void 0:p.refresh(...v)}),[l,c]=f.useState(null),u=st(()=>{r.current&&(r.current.scrollTop=0);}),d=Dh(),m=f.useMemo(()=>d?{border:`1px solid ${mo}`}:void 0,[d]),[g,h]=f.useState(!1);return j(Qu,{show:t,onHide:n,clsModalMask:K(i),clsModal:K(ji.modal,i),styleModal:{...m},children:pe(tv.Provider,{value:s,children:[pe("div",{className:K(or.modalHeader,ji.modalHeader),children:[j(yw,{onRefresh:s}),l,j("div",{className:"space",style:{flex:1}}),j(Une,{children:j(xK,{})}),j(Hx,{css:ere,refreshing:g,onRefresh:s,className:ji.btnRefresh,refreshHotkeyEnabled:t}),j(Zu,{onClick:n})]}),j("div",{className:K(or.modalBody,ji.modalBody),ref:r,children:j(Fx,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:h,setExtraInfo:c})})]})})}),nre=vi.extend("RecHeader"),sy={btn:Tr` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${nd} `,icon:Tr` svg { width: 14px; height: 14px; } `},Oo=ir({modalFeedVisible:Pt.initialShowMore,modalConfigVisible:!1}),rre=function(){return lr(Oo)},ore=()=>{Oo.modalFeedVisible=!0;},are=()=>{Oo.modalFeedVisible=!1;},ire=()=>{Oo.modalConfigVisible=!0;},sre=()=>{Oo.modalConfigVisible=!1;},Bx=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s}=In(),{modalFeedVisible:l,modalConfigVisible:c}=lr(Oo);sn(["shift.comma"],h=>{Uu()||(Oo.modalConfigVisible=!Oo.modalConfigVisible);},{exactMatch:!0});const[u,d]=Vne(),m=st(()=>{var b;if(!s)return;const h=(b=u.current)==null?void 0:b.parentElement;if(!h)return;const v=h.getBoundingClientRect(),p=bx();if(v.top({scroll:m}));const g=Jte();return j(Rt,{children:pe(tv.Provider,{value:t,children:[pe("div",{ref:u,className:"area-header",css:[Tr` margin-bottom: 0; height: 50px; `,s&&Tr` position: sticky; top: ${g-1}px; // 有缝隙, 故 -1 px z-index: 1000; `,s&&d&&Tr` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[pe("div",{className:"left",children:[j("svg",{className:"icon",children:j("use",{href:"#channel-cinephile"})}),j(yw,{onRefresh:t}),r]}),j("div",{className:"right",children:pe(Bs,{size:"small",children:[o,!i&&j(mw,{style:{marginLeft:5}}),j(Ut,{onClick:ire,css:sy.btn,children:j(At,{name:"Config",css:sy.icon})}),j(Hx,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&pe(Ut,{css:nd,onClick:ore,children:[j("span",{children:"查看更多"}),j("svg",{css:Tr` width: 12px; height: 12px; margin-left: 2px; `,children:j("use",{href:"#widget-arrow"})})]})]})})]}),j(tre,{show:l,onHide:are}),j(jq,{show:c,onHide:sre})]})})}),Hx=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0);const[i,s]=f.useState(0),l=f.useRef(null),c=st(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(a,()=>({click:c}),[]),sn("r",()=>{Uu()||r&&c();},{exactMatch:!0});const u=nl(),{shuffleForFav:d,shuffleForWatchLater:m}=In(),g=u==="dynamic-feed"||u==="watchlater"&&!m||u==="fav"&&!d?"刷新":"换一换",h=st(v=>(s(p=>p+360),e==null?void 0:e()));return pe(Ut,{disabled:o,className:t,style:n,css:Tr` ${nd} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:l,onClick:h,children:[j("svg",{style:{transform:`rotate(${i}deg)`,width:"11px",height:"11px",marginRight:5,transition:i===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:j("use",{href:"#widget-roll"})}),j("span",{children:g})]})}),lre={grid:Tr` /* card=360 col-gap=16 */ width: ${360*2+20}px; margin: 0 auto; `};function cre(){const{useNarrowMode:e}=In(),{modalFeedVisible:t,modalConfigVisible:n}=rre(),r=f.useRef(null),o=f.useRef(null),a=st((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),i=st(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=f.useState(!1),[c,u]=f.useState(null);return pe("section",{"data-area":"推荐",children:[j(Bx,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),j(Fx,{ref:o,css:[e&&lre.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const ure=vi.extend("components:SectionRecommend");function dre(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ei(),n=nl(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=ix({tab:n,debug:ure,fetcher:kne,recreateService:!1});Zs(a);const l=!o.length||i||r&&!s;return pe("section",{"data-area":"推荐",children:[j(Bx,{refreshing:r,onRefresh:a}),j("div",{className:K(rv,ene,t?Cx:yx),style:{marginBottom:t?30:0},children:l?e.map(c=>j(Mc,{},c)):o.map(c=>j(Mc,{item:c},c.uniqId))})]})}la.extend(Zq);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return fre()})();async function fre(){return La(".adblock-tips"),Yi("html.gray",e=>e.classList.remove("gray")),Pt.pureRecommend?gre():mre()}async function mre(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const a=document.querySelector(".bili-layout > section.bili-grid");n=i=>a==null?void 0:a.insertAdjacentElement("afterend",i);break}if(ei()&&document.querySelector(".bili-feed4-layout")){n=a=>{var i;return (i=document.querySelector(".bili-feed4-layout"))==null?void 0:i.insertAdjacentElement("afterbegin",a)};break}await br(200);}if(!n){console.error(`[${xn}]: init fail`);return}const r=document.createElement("section");n(r),Js(r).render(j(Bh,{children:j(dre,{})})),ei()&&La(".bili-feed4 .header-channel");}async function gre(){var o,a;jh&&await br(500),ei()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),La(".bili-feed4 .header-channel"),La(".palette-button-wrap .flexible-roll-btn"),Yi(".palette-button-wrap .storage-box",i=>i.classList.remove("hidden")),Yi(".palette-button-wrap .top-btn-wrap .top-btn",i=>i.classList.add("visible")),Yi(".palette-button-wrap",i=>{i.style.position="absolute";})):((a=document.querySelector(".bili-layout"))==null||a.remove(),La(".bili-footer"),La(".palette-button-wrap > .primary-btn",i=>i.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(i=>{i.classList.remove("hidden"),i.classList.contains("top-btn")&&i.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(ei()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),Js(n).render(j(Bh,{children:j(cre,{})}));} })(React, ReactDOM, ResizeObserver, axios, UAParser, axiosGmxhrAdapter);