// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.11.0 // @author magicdawn // @description 为B站首页添加像App一样的推荐 // @license MIT // @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match *://www.bilibili.com/ // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match *://www.bilibili.com/index.html // @match *://www.bilibili.com/?* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // @match *://www.bilibili.com/index.html?* // @require https://unpkg.com/axios@0.27.2/dist/axios.min.js // @require https://unpkg.com/axios-userscript-adapter@0.2.0/dist/axiosGmxhrAdapter.min.js // @require https://unpkg.com/react@18.2.0/umd/react.production.min.js // @require https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.xmlHttpRequest // @grant GM_deleteValue // @grant GM_getValue // @grant GM_setValue // @grant unsafeWindow // @downloadURL none // ==/UserScript== (i=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=i,document.head.append(e)})(` .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.ant-btn:disabled{cursor:wait}._modal-mask_qk630_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_qk630_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_qk630_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_qk630_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_qk630_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_qk630_42{margin-left:10px}._btn-close_qk630_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_qk630_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_mcbuq_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:999999;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_mcbuq_1._single-line_mcbuq_17{text-align:center}._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_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{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_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{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_mlccj_52{color:default}._btn-dislike_mlccj_55{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_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{pointer-events: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_mlccj_92{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .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_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_12n8z_1{line-height:1;margin-right:5px;font-size:0}._settings-group_12n8z_6{margin-bottom:10px}._settings-group_12n8z_6 ._settings-group-title_12n8z_9{font-size:2em;display:flex;align-items:center}._settings-group_12n8z_6 ._settings-group-sub-title_12n8z_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_12n8z_6 ._settings-group-content_12n8z_20{color:default}._settings-group_12n8z_6 ._settings-group-content_12n8z_20 button:first-child{margin-left:0}._row_12n8z_26{display:flex;align-items:center;flex-wrap:wrap}._row_12n8z_26 .primary-btn:first-child{margin-left:0}._check_12n8z_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_12n8z_39.ant-tabs .ant-tabs-tab{padding-left:5px}._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} `); (function (f, yo, tf, L1) { '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 yo__namespace = /*#__PURE__*/_interopNamespaceDefault(yo); var O1=Object.defineProperty;var P1=(e,t,r)=>t in e?O1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var T1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var xt=(e,t,r)=>(P1(e,typeof t!="symbol"?t+"":t,r),r),Ac=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var A=(e,t,r)=>(Ac(e,t,"read from private field"),r?r.call(e):t.get(e)),ze=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r);},Se=(e,t,r,n)=>(Ac(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ds=(e,t,r,n)=>({set _(i){Se(e,t,i,r);},get _(){return A(e,t,n)}}),ve=(e,t,r)=>(Ac(e,t,"access private method"),r);var j3=T1((kn,Fn)=>{function D1(e){if(e.sheet)return e.sheet;for(var t=0;t0?rr(Po,--br):0,wo--,Ht===10&&(wo=1,Ml--),Ht}function kr(){return Ht=br2||Ea(Ht)>3?"":" "}function Y1(e,t){for(;--t&&kr()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return Ua(e,ks()+(t<6&&pn()==32&&kr()==32))}function Au(e){for(;kr();)switch(Ht){case e:return br;case 34:case 39:e!==34&&e!==39&&Au(Ht);break;case 40:e===41&&Au(e);break;case 92:kr();break}return br}function Z1(e,t){for(;kr()&&e+Ht!==47+10;)if(e+Ht===42+42&&pn()===47)break;return "/*"+Ua(t,br-1)+"*"+Rl(e===47?e:kr())}function Q1(e){for(;!Ea(pn());)kr();return Ua(e,br)}function Em(e){return xm(Ls("",null,null,null,[""],e=Cm(e),0,[0],e))}function Ls(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,v=0,p=0,m=1,g=1,b=1,w=0,C="",_=i,S=o,y=n,x=C;g;)switch(p=w,w=kr()){case 40:if(p!=108&&rr(x,d-1)==58){Iu(x+=lt(Fs(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=Fs(w);break;case 9:case 10:case 13:case 32:x+=X1(p);break;case 92:x+=Y1(ks()-1,7);continue;case 47:switch(pn()){case 42:case 47:fs(J1(Z1(kr(),ks()),t,r),l);break;default:x+="/";}break;case 123*m:s[c++]=dn(x)*b;case 125*m:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+u:b==-1&&(x=lt(x,/\f/g,"")),v>0&&dn(x)-d&&fs(v>32?Rh(x+";",n,r,d-1):Rh(lt(x," ","")+";",n,r,d-2),l);break;case 59:x+=";";default:if(fs(y=Th(x,t,r,c,u,i,s,C,_=[],S=[],d),o),w===123)if(u===0)Ls(x,t,y,y,_,o,d,s,S);else switch(h===99&&rr(x,3)===110?100:h){case 100:case 109:case 115:Ls(e,y,y,n&&fs(Th(e,y,y,0,0,i,s,C,i,_=[],d),S),i,S,d,s,n?_:S);break;default:Ls(x,y,y,y,[""],S,0,s,S);}}c=u=v=0,m=b=1,C=x="",d=a;break;case 58:d=1+dn(x),v=p;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&q1()==125)continue}switch(x+=Rl(w),w*m){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(dn(x)-1)*b,b=1;break;case 64:pn()===45&&(x+=Fs(kr())),h=pn(),u=d=dn(C=x+=Q1(ks())),w++;break;case 45:p===45&&dn(x)==2&&(m=0);}}return o}function Th(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,h=i===0?o:[""],v=of(h),p=0,m=0,g=0;p0?h[b]+" "+w:lt(w,/&\f/g,h[b])))&&(l[g++]=C);return Nl(e,t,r,i===0?rf:s,l,c,u)}function J1(e,t,r){return Nl(e,t,r,bm,Rl(K1()),xa(e,2,-2),0)}function Rh(e,t,r,n){return Nl(e,t,r,nf,xa(e,0,n),xa(e,n+1,-1),n)}function $i(e,t){for(var r="",n=of(e),i=0;i6)switch(rr(e,t+1)){case 109:if(rr(e,t+4)!==45)break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+rl+(rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Iu(e,"stretch")?_m(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rr(e,t+1)!==115)break;case 6444:switch(rr(e,dn(e)-3-(~Iu(e,"!important")&&10))){case 107:return lt(e,":",":"+st)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(rr(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+ar+"$2box$3")+e}break;case 5936:switch(rr(e,t+11)){case 114:return st+e+ar+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+ar+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+ar+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+ar+e+e}return e}var lw=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case nf:t.return=_m(t.value,t.length);break;case ym:return $i([Vo(t,{value:lt(t.value,"@","@"+st)})],i);case rf:if(t.length)return G1(t.props,function(o){switch(U1(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $i([Vo(t,{props:[lt(o,/:(read-\w+)/,":"+rl+"$1")]})],i);case"::placeholder":return $i([Vo(t,{props:[lt(o,/:(plac\w+)/,":"+st+"input-$1")]}),Vo(t,{props:[lt(o,/:(plac\w+)/,":"+rl+"$1")]}),Vo(t,{props:[lt(o,/:(plac\w+)/,ar+"input-$1")]})],i)}return ""})}},cw=[lw],Om=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var i=t.stylisPlugins||cw,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ww={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},Sw=/[A-Z]|^ms/g,Cw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,km=function(t){return t.charCodeAt(1)===45},Nh=function(t){return t!=null&&typeof t!="boolean"},Fc=rw(function(e){return km(e)?e:e.replace(Sw,"-$&").toLowerCase()}),Ih=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Cw,function(n,i,o){return fn={name:i,styles:o,next:fn},i})}return ww[t]!==1&&!km(t)&&typeof r=="number"&&r!==0?r+"px":r};function $a(e,t,r){if(r==null)return "";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return "";case"object":{if(r.anim===1)return fn={name:r.name,styles:r.styles,next:fn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fn={name:n.name,styles:n.styles,next:fn},n=n.next;var i=r.styles+";";return i}return xw(e,t,r)}case"function":{if(e!==void 0){var o=fn,a=r(e);return fn=o,$a(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function xw(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i0)return a(u);if(h==="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 a(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 h=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*n;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=n?Math.round(u/n)+"d":d>=r?Math.round(u/r)+"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>=n?c(u,d,n,"day"):d>=r?c(u,d,r,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,h,v){var p=d>=h*1.5;return Math.round(u/h)+" "+v+(p?"s":"")}return Lc}function Lw(e){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=a,r.humanize=Fw(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u];}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let h=0;h{if(y==="%%")return "%";_++;const R=r.formatters[x];if(typeof R=="function"){const M=g[_];y=R.call(b,M),g.splice(_,1),_--;}return y}),r.formatArgs.call(b,g),(b.log||r.log).apply(b,g);}return m.namespace=u,m.useColors=r.useColors(),m.color=r.selectColor(u),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==r.namespaces&&(v=r.namespaces,p=r.enabled(u)),p),set:g=>{h=g;}}),typeof r.init=="function"&&r.init(m),m}function n(u,d){const h=r(this.namespace+(typeof d>"u"?":":d)+u);return h.log=this.log,h}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(d=0;d"-"+d)].join(",");return r.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,h;for(d=0,h=r.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 r(){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 n(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,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function i(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function o(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=Dw(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Fu,Fu.exports);var jw=Fu.exports;const zw=Bn(jw),li="bilibili-app-recommend",Hw="bilibili_app_recommend",Hm=zw(li);var Ww=typeof global=="object"&&global&&global.Object===Object&&global;const Wm=Ww;var Bw=typeof self=="object"&&self&&self.Object===Object&&self,Vw=Wm||Bw||Function("return this")();const En=Vw;var Uw=En.Symbol;const yn=Uw;var Bm=Object.prototype,Gw=Bm.hasOwnProperty,Kw=Bm.toString,Uo=yn?yn.toStringTag:void 0;function qw(e){var t=Gw.call(e,Uo),r=e[Uo];try{e[Uo]=void 0;var n=!0;}catch{}var i=Kw.call(e);return n&&(t?e[Uo]=r:delete e[Uo]),i}var Xw=Object.prototype,Yw=Xw.toString;function Zw(e){return Yw.call(e)}var Qw="[object Null]",Jw="[object Undefined]",Fh=yn?yn.toStringTag:void 0;function To(e){return e==null?e===void 0?Jw:Qw:Fh&&Fh in Object(e)?qw(e):Zw(e)}function So(e){return e!=null&&typeof e=="object"}var eS="[object Symbol]";function Ul(e){return typeof e=="symbol"||So(e)&&To(e)==eS}function tS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r0){if(++t>=kS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jS(e){return function(){return e}}var zS=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch{}}();const nl=zS;var HS=nl?function(e,t){return nl(e,"toString",{configurable:!0,enumerable:!1,value:jS(t),writable:!0})}:Um;const WS=HS;var BS=DS(WS);const VS=BS;function US(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o-1}var YS=9007199254740991,ZS=/^(?:0|[1-9]\d*)$/;function df(e,t){var r=typeof e;return t=t??YS,!!t&&(r=="number"||r!="symbol"&&ZS.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=nC}function iC(e){return e!=null&&hf(e.length)&&!Gm(e)}var oC=Object.prototype;function aC(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||oC;return e===r}function sC(e,t){for(var r=-1,n=Array(e);++r-1}function wx(e,t){var r=this.__data__,n=Gl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Vn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(s)?t>1?Jm(s,t-1,r,n,i):Qm(i,s):n||(i[i.length]=s);}return i}function jx(e){var t=e==null?0:e.length;return t?Jm(e,1):[]}function zx(e){return VS(rC(e,void 0,jx),e+"")}var Hx="Expected a function";function Wx(e,t){var r;if(typeof t!="function")throw new TypeError(Hx);return e=vS(e),function(){return --e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function Bx(){this.__data__=new Vn,this.size=0;}function Vx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ux(e){return this.__data__.get(e)}function Gx(e){return this.__data__.has(e)}var Kx=200;function qx(e,t){var r=this.__data__;if(r instanceof Vn){var n=r.__data__;if(!Pa||n.lengths))return !1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,v=r&gE?new Ta:void 0;for(o.set(e,t),o.set(t,e);++d=t||x<0||d&&R>=o}function b(){var y=Hc();if(g(y))return w(y);s=setTimeout(b,m(y));}function w(y){return s=void 0,h&&n?v(y):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0;}function _(){return s===void 0?a:w(Hc())}function S(){var y=Hc(),x=g(y);if(n=arguments,i=this,l=y,x){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),a}return S.cancel=C,S.flush=_,S}function i$(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=m$){var c=t?null:p$(e);if(c)return bf(c);a=!1,i=eg,l=new Ta;}else l=t?[]:s;e:for(;++nnew Proxy(e,t);const Wu=Object.getPrototypeOf,Bu=new WeakMap,sg=e=>e&&(Bu.has(e)?Bu.get(e):Wu(e)===Object.prototype||Wu(e)===Array.prototype),il=e=>typeof e=="object"&&e!==null,w$=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0;}),Object.create(Wu(e),t)},wf=e=>e[yf]||e,lg=(e,t,r,n)=>{if(!sg(e))return e;let i=n&&n.get(e);if(!i){const l=wf(e);i=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,w$(l)]:[l],n==null||n.set(e,i);}const[o,a]=i;let s=r&&r.get(o);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const h=(p,m)=>{if(!d){let g=u[Go].get(l);if(g||(g={},u[Go].set(l,g)),p===ua)g[ua]=!0;else {let b=g[p];b||(b=new Set,g[p]=b),b.add(m);}}},v={get:(p,m)=>m===yf?l:(h("k",m),lg(Reflect.get(p,m),u[Go],u.c)),has:(p,m)=>m===b$?(d=!0,u[Go].delete(l),!0):(h("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(h(ua),Reflect.ownKeys(p))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(o,!!a),s[1].p=y$(a||o,s[0]),r&&r.set(o,s)),s[1][Go]=t,s[1].c=r,s[1].p},cg=(e,t,r,n)=>{if(Object.is(e,t))return !1;if(!il(e)||!il(t))return !0;const i=r.get(wf(e));if(!i)return !0;if(n){const a=n.get(e);if(a&&a.n===t)return a.g;n.set(e,{n:t,g:!1});}let o=null;try{for(const a of i.h||[])if(o=Reflect.has(e,a)!==Reflect.has(t,a),o)return o;if(i[ua]===!0){if(o=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),o)return o}else for(const a of i.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),o)return o;for(const a of i.k||[])if(o=cg(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o});}},S$=e=>sg(e)&&e[yf]||null,lv=(e,t=!0)=>{Bu.set(e,t);},C$=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;il(a)&&i.add(a);const l=il(a)&&t.get(wf(a));if(l){var c,u;if((c=l.h)==null||c.forEach(h=>{const v=`:has(${String(h)})`;n.push(s?[...s,v]:[v]);}),l[ua]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h]);}else {var d;(d=l.o)==null||d.forEach(h=>{const v=`:hasOwn(${String(h)})`;n.push(s?[...s,v]:[v]);});}(u=l.k)==null||u.forEach(h=>{r&&!("value"in(Object.getOwnPropertyDescriptor(a,h)||{}))||o(a[h],s?[...s,h]:[h]);});}else s&&n.push(s);};return o(e),n},Wc=e=>typeof e=="object"&&e!==null,ti=new WeakMap,vs=new WeakSet,x$=(e=Object.is,t=(c,u)=>new Proxy(c,u),r=c=>Wc(c)&&!vs.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),n=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},i=new WeakMap,o=(c,u,d=n)=>{const h=i.get(c);if((h==null?void 0:h[0])===u)return h[1];const v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return lv(v,!0),i.set(c,[u,v]),Reflect.ownKeys(c).forEach(p=>{if(Object.getOwnPropertyDescriptor(v,p))return;const m=Reflect.get(c,p),g={value:m,enumerable:!0,configurable:!0};if(vs.has(m))lv(m,!1);else if(m instanceof Promise)delete g.value,g.get=()=>d(m);else if(ti.has(m)){const[b,w]=ti.get(m);g.value=o(b,w(),d);}Object.defineProperty(v,p,g);}),v},a=new WeakMap,s=[1,1],l=c=>{if(!Wc(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const h=new Set,v=(M,O=++s[0])=>{d!==O&&(d=O,h.forEach(N=>N(M,O)));};let p=s[1];const m=(M=++s[1])=>(p!==M&&!h.size&&(p=M,b.forEach(([O])=>{const N=O[1](M);N>d&&(d=N);})),d),g=M=>(O,N)=>{const T=[...O];T[1]=[M,...T[1]],v(T,N);},b=new Map,w=(M,O)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(M))throw new Error("prop listener already exists");if(h.size){const N=O[3](g(M));b.set(M,[O,N]);}else b.set(M,[O]);},C=M=>{var O;const N=b.get(M);N&&(b.delete(M),(O=N[1])==null||O.call(N));},_=M=>(h.add(M),h.size===1&&b.forEach(([N,T],E)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&T)throw new Error("remove already exists");const $=N[3](g(E));b.set(E,[N,$]);}),()=>{h.delete(M),h.size===0&&b.forEach(([N,T],E)=>{T&&(T(),b.set(E,[N]));});}),S=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(S,{deleteProperty(M,O){const N=Reflect.get(M,O);C(O);const T=Reflect.deleteProperty(M,O);return T&&v(["delete",[O],N]),T},set(M,O,N,T){const E=Reflect.has(M,O),$=Reflect.get(M,O,T);if(E&&(e($,N)||a.has(N)&&e($,a.get(N))))return !0;C(O),Wc(N)&&(N=S$(N)||N);let P=N;if(N instanceof Promise)N.then(k=>{N.status="fulfilled",N.value=k,v(["resolve",[O],k]);}).catch(k=>{N.status="rejected",N.reason=k,v(["reject",[O],k]);});else {!ti.has(N)&&r(N)&&(P=l(N));const k=!vs.has(P)&&ti.get(P);k&&w(O,k);}return Reflect.set(M,O,P,T),v(["set",[O],N,$]),!0}});a.set(c,x);const R=[S,m,o,_];return ti.set(x,R),Reflect.ownKeys(c).forEach(M=>{const O=Object.getOwnPropertyDescriptor(c,M);"value"in O&&(x[M]=c[M],delete O.value,delete O.writable),Object.defineProperty(S,M,O);}),x})=>[l,ti,vs,e,t,r,n,i,o,a,s],[E$]=x$();function Ka(e={}){return E$(e)}function ug(e,t,r){const n=ti.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");let i;const o=[],a=n[3];let s=!1;const c=a(u=>{if(o.push(u),r){t(o.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(o.splice(0));}));});return s=!0,()=>{s=!1,c();}}function cv(e,t){const r=ti.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");const[n,i,o]=r;return o(n,i(),t)}var dg={exports:{}},fg={};/** * @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 Co=f;function $$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _$=typeof Object.is=="function"?Object.is:$$,O$=Co.useState,P$=Co.useEffect,T$=Co.useLayoutEffect,R$=Co.useDebugValue;function M$(e,t){var r=t(),n=O$({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return T$(function(){i.value=r,i.getSnapshot=t,Bc(i)&&o({inst:i});},[e,r,t]),P$(function(){return Bc(i)&&o({inst:i}),e(function(){Bc(i)&&o({inst:i});})},[e]),R$(r),r}function Bc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return !_$(e,r)}catch{return !0}}function N$(e,t){return t()}var I$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?N$:M$;fg.useSyncExternalStore=Co.useSyncExternalStore!==void 0?Co.useSyncExternalStore:I$;dg.exports=fg;var A$=dg.exports;const k$=Bn(A$),{use:uv}=f,{useSyncExternalStore:F$}=k$,L$=(e,t)=>{const r=f.useRef();f.useEffect(()=>{r.current=C$(e,t,!0);}),f.useDebugValue(r.current);},D$=new WeakMap;function Ro(e,t){const r=t==null?void 0:t.sync,n=f.useRef(),i=f.useRef();let o=!0;const a=F$(f.useCallback(c=>{const u=ug(e,c,r);return c(),u},[e,r]),()=>{const c=cv(e,uv);try{if(!o&&n.current&&i.current&&!cg(n.current,c,i.current,new WeakMap))return n.current}catch{}return c},()=>cv(e,uv));o=!1;const s=new WeakMap;f.useEffect(()=>{n.current=a,i.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&L$(a,s);const l=f.useMemo(()=>new WeakMap,[]);return lg(a,s,l,D$)}const Sf={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1},et=Ka({...Sf}),hg=Object.keys(Sf),Sn=function(){return Ro(et)},j$=li,vg=`${j$}.settings`;function z$(){const e=GM_getValue(vg);e&&typeof e=="object"&&Object.assign(et,ag(e,hg)),ug(et,()=>{H$();});}function H$(){const e=ag(et,hg);GM_setValue(vg,e);}function Ra(e){Object.assign(et,e);}function W$(){return Ra(Sf)}z$();var pg={exports:{}};(function(e,t){(function(r,n){e.exports=n();})(Pm,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",v="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={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(E){var $=["th","st","nd","rd"],P=E%100;return "["+E+($[(P-20)%10]||$[P]||$[0])+"]"}},C=function(E,$,P){var k=String(E);return !k||k.length>=$?E:""+Array($+1-k.length).join(P)+E},_={s:C,z:function(E){var $=-E.utcOffset(),P=Math.abs($),k=Math.floor(P/60),I=P%60;return ($<=0?"+":"-")+C(k,2,"0")+":"+C(I,2,"0")},m:function E($,P){if($.date()1)return E(j[0])}else {var U=$.name;y[U]=$,I=U;}return !k&&I&&(S=I),I||!k&&S},M=function(E,$){if(x(E))return E.clone();var P=typeof $=="object"?$:{};return P.date=E,P.args=arguments,new N(P)},O=_;O.l=R,O.i=x,O.w=function(E,$){return M(E,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var N=function(){function E(P){this.$L=R(P.locale,null,!0),this.parse(P);}var $=E.prototype;return $.parse=function(P){this.$d=function(k){var I=k.date,L=k.utc;if(I===null)return new Date(NaN);if(O.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var j=I.match(g);if(j){var U=j[2]-1||0,G=(j[7]||"0").substring(0,3);return L?new Date(Date.UTC(j[1],U,j[3]||1,j[4]||0,j[5]||0,j[6]||0,G)):new Date(j[1],U,j[3]||1,j[4]||0,j[5]||0,j[6]||0,G)}}return new Date(I)}(P),this.$x=P.x||{},this.init();},$.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds();},$.$utils=function(){return O},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(P,k){var I=M(P);return this.startOf(k)<=I&&I<=this.endOf(k)},$.isAfter=function(P,k){return M(P)!!document.querySelectorAll(".bili-feed4").length),dv=document.querySelector(".bili-header__bar"),G$=!!(dv&&window.getComputedStyle(dv).display==="none"),gg=G$?50:64,bg=()=>document.body.classList.contains("dark"),yg=Ka({value:bg()});function Ql(){return Ro(yg).value}const Ds=new MutationObserver(function(){yg.value=bg();});Ds.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Ds==null||Ds.disconnect();});function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function K$(e,t){if(nt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function wg(e){var t=K$(e,"string");return nt(t)==="symbol"?t:String(t)}function fv(e,t){for(var r=0;r"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 He(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X$(e,t){if(t&&(nt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return He(e)}function No(e){var t=q$();return function(){var n=ol(e),i;if(t){var o=ol(this).constructor;i=Reflect.construct(n,arguments,o);}else i=n.apply(this,arguments);return X$(this,i)}}var Sg={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 r(){for(var n=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=[];return f.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(ci(n)):cf.isFragment(n)&&n.props?r=r.concat(ci(n.props.children,t)):r.push(n));}),r}var Uu={},Z$=function(t){};function Q$(e,t){}function J$(e,t){}function e_(){Uu={};}function Cg(e,t,r){!t&&!Uu[r]&&(e(!1,r),Uu[r]=!0);}function ur(e,t){Cg(Q$,e,t);}function t_(e,t){Cg(J$,e,t);}ur.preMessage=Z$;ur.resetWarned=e_;ur.noteOnce=t_;function W(e,t,r){return t=wg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function D(e){for(var t=1;t0},e.prototype.connect_=function(){!Gu||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!Gu||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=a_.some(function(o){return !!~n.indexOf(o)});i&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Eg=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof xo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new m_(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof xo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new g_(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_g=typeof WeakMap<"u"?new WeakMap:new xg,Og=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=l_.getInstance(),n=new b_(t,r,this);_g.set(this,n);}return e}();["observe","unobserve","disconnect"].forEach(function(e){Og.prototype[e]=function(){var t;return (t=_g.get(this))[e].apply(t,arguments)};});var Pg=function(){return typeof ll.ResizeObserver<"u"?ll.ResizeObserver:Og}(),ni=new Map;function y_(e){e.forEach(function(t){var r,n=t.target;(r=ni.get(n))===null||r===void 0||r.forEach(function(i){return i(n)});});}var Tg=new Pg(y_);function w_(e,t){ni.has(e)||(ni.set(e,new Set),Tg.observe(e)),ni.get(e).add(t);}function S_(e,t){ni.has(e)&&(ni.get(e).delete(t),ni.get(e).size||(Tg.unobserve(e),ni.delete(e)));}var C_=function(e){Mo(r,e);var t=No(r);function r(){return Sr(this,r),t.apply(this,arguments)}return Cr(r,[{key:"render",value:function(){return this.props.children}}]),r}(f__namespace.Component),Ku=f__namespace.createContext(null);function x_(e){var t=e.children,r=e.onBatchResize,n=f__namespace.useRef(0),i=f__namespace.useRef([]),o=f__namespace.useContext(Ku),a=f__namespace.useCallback(function(s,l,c){n.current+=1;var u=n.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(i.current),i.current=[]);}),o==null||o(s,l,c);},[r,o]);return f__namespace.createElement(Ku.Provider,{value:a},t)}function E_(e,t){var r=e.children,n=e.disabled,i=f__namespace.useRef(null),o=f__namespace.useRef(null),a=f__namespace.useContext(Ku),s=typeof r=="function",l=s?r(i):r,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&Io(l),d=u?l.ref:null,h=f__namespace.useMemo(function(){return Gn(d,i)},[d,i]),v=function(){return sl(i.current)||sl(o.current)};f__namespace.useImperativeHandle(t,function(){return v()});var p=f__namespace.useRef(e);p.current=e;var m=f__namespace.useCallback(function(g){var b=p.current,w=b.onResize,C=b.data,_=g.getBoundingClientRect(),S=_.width,y=_.height,x=g.offsetWidth,R=g.offsetHeight,M=Math.floor(S),O=Math.floor(y);if(c.current.width!==M||c.current.height!==O||c.current.offsetWidth!==x||c.current.offsetHeight!==R){var N={width:M,height:O,offsetWidth:x,offsetHeight:R};c.current=N;var T=x===Math.round(S)?S:x,E=R===Math.round(y)?y:R,$=D(D({},N),{},{offsetWidth:T,offsetHeight:E});a==null||a($,g,C),w&&Promise.resolve().then(function(){w($,g);});}},[]);return f__namespace.useEffect(function(){var g=v();return g&&!n&&w_(g,m),function(){return S_(g,m)}},[i.current,n]),f__namespace.createElement(C_,{ref:o},u?f__namespace.cloneElement(l,{ref:h}):l)}var $_=f__namespace.forwardRef(E_),__="rc-observer-key";function O_(e,t){var r=e.children,n=typeof r=="function"?[r]:ci(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(__,"-").concat(o);return f__namespace.createElement($_,Ee({},e,{key:a,ref:o===0?t:void 0}),i)})}var Ri=f__namespace.forwardRef(O_);Ri.Collection=x_;function rc(e,t){var r=D({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n];}),r}function qu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function R_(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Qe(e,t){if(e==null)return {};var r=R_(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function qa(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(ur(!l,"Warning: There may be circular references"),l)return !1;if(o===a)return !0;if(r&&s>1)return !1;n.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return !1;for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):I_}function nc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function A_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ng(e){return Array.from((Yu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ig(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yr())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(pv,A_(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=nc(t),a=o.firstChild;if(n){if(n==="queue"){var s=Ng(o).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(pv))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a);}else o.appendChild(i);return i}function Ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=nc(t);return Ng(r).find(function(n){return n.getAttribute(Mg(t))===e})}function ul(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ag(e,t);if(r){var n=nc(t);n.removeChild(r);}}function k_(e,t){var r=Yu.get(e);if(!r||!da(document,r)){var n=Ig("",t),i=n.parentNode;Yu.set(e,i),e.removeChild(n);}}function Eo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=nc(r);k_(n,r);var i=Ag(t,r);if(i){var o,a;if((o=r.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((a=r.csp)===null||a===void 0?void 0:a.nonce)){var s;i.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce;}return i.innerHTML!==e&&(i.innerHTML=e),i}var l=Ig(e,r);return l.setAttribute(Mg(r),t),l}function dl(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&nt(n)==="object"?t+=dl(n):t+=n;}),t}function F_(e,t){return Ef("".concat(t,"_").concat(dl(e)))}var fa="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),kg="903px";function L_(e,t){if(yr()){var r;Eo(e,fa);var n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",t==null||t(n),document.body.appendChild(n);var i=getComputedStyle(n).width===kg;return (r=n.parentNode)===null||r===void 0||r.removeChild(n),ul(fa),i}return !1}var Vc=void 0;function D_(){return Vc===void 0&&(Vc=L_("@layer ".concat(fa," { .").concat(fa," { width: ").concat(kg,"!important; } }"),function(e){e.className=fa;})),Vc}function Fg(e){if(Array.isArray(e))return e}function j_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1;}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u;}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Lg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(e,t){return Fg(e)||j_(e,t)||xf(e,t)||Lg()}function Dg(e,t,r,n){var i=f__namespace.useContext($f),o=i.cache,a=[e].concat(oe(t));return f__namespace.useMemo(function(){o.update(a,function(s){var l=s||[],c=V(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=h,p=v||r();return [d+1,p]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){o.update(a,function(s){var l=s||[],c=V(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=d-1;return v===0?(n==null||n(h,!1),null):[d-1,h]});}},a),o.get(a)[1]}var z_={},H_="css",pi=new Map;function W_(e){pi.set(e,(pi.get(e)||0)+1);}function B_(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Xu,'="').concat(e,'"]'));r.forEach(function(n){if(n[ro]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n);}});}}function V_(e,t){pi.set(e,(pi.get(e)||0)-1);var r=Array.from(pi.keys()),n=r.filter(function(i){var o=pi.get(i)||0;return o<=0});n.length2&&arguments[2]!==void 0?arguments[2]:{},n=f.useContext($f),i=n.cache.instanceId,o=r.salt,a=o===void 0?"":o,s=r.override,l=s===void 0?z_:s,c=r.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(oe(t)))},[t]),d=f__namespace.useMemo(function(){return dl(u)},[u]),h=f__namespace.useMemo(function(){return dl(l)},[l]),v=Dg("token",[a,e.id,d,h],function(){var p=e.getDerivativeToken(u),m=D(D({},p),l);c&&(m=c(m));var g=F_(m,a);m._tokenKey=g,W_(g);var b="".concat(H_,"-").concat(Ef(g));return m._hashId=b,[m,b]},function(p){V_(p[0]._tokenKey,i);});return v}var G_={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},mv=yr(),K_="_skip_check_",jg="_multi_value_";function gv(e){var t=$i(Em(e),$m);return t.replace(/\{%%%\:[^;];}/g,";")}function q_(e){return nt(e)==="object"&&e&&(K_ in e||jg in e)}function X_(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(oe(l.slice(1))).join(" ")});return o.join(",")}var Y_=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,d=u===void 0?[]:u;r.linters;var h="",v={};function p(C){var _=C.getName(s);if(!v[_]){var S=e(C.style,r,{root:!1,parentSelectors:a}),y=V(S,1),x=y[0];v[_]="@keyframes ".concat(C.getName(s)).concat(x);}}function m(C){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(S){Array.isArray(S)?m(S,_):S&&_.push(S);}),_}var g=m(Array.isArray(t)?t:[t]);if(g.forEach(function(C){var _=typeof C=="string"&&!i?{}:C;if(typeof _=="string")h+="".concat(_,` `);else if(_._keyframe)p(_);else {var S=d.reduce(function(y,x){var R;return (x==null||(R=x.visit)===null||R===void 0?void 0:R.call(x,y))||y},_);Object.keys(S).forEach(function(y){var x=S[y];if(nt(x)==="object"&&x&&(y!=="animationName"||!x._keyframe)&&!q_(x)){var R=!1,M=y.trim(),O=!1;(i||o)&&s?M.startsWith("@")?R=!0:M=X_(y,s,c):i&&!s&&(M==="&"||M==="")&&(M="",O=!0);var N=e(x,r,{root:O,injectHash:R,parentSelectors:[].concat(oe(a),[M])}),T=V(N,2),E=T[0],$=T[1];v=D(D({},v),$),h+="".concat(M).concat(E);}else {let I=function(L,j){var U=L.replace(/[A-Z]/g,function(z){return "-".concat(z.toLowerCase())}),G=j;!G_[L]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),L==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(p(j),G=j.getName(s)),h+="".concat(U,":").concat(G,";");};var P,k=(P=x==null?void 0:x.value)!==null&&P!==void 0?P:x;nt(x)==="object"&&x!==null&&x!==void 0&&x[jg]&&Array.isArray(k)?k.forEach(function(L){I(y,L);}):I(y,k);}});}}),!i)h="{".concat(h,"}");else if(l&&D_()){var b=l.split(","),w=b[b.length-1].trim();h="@layer ".concat(w," {").concat(h,"}"),b.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h));}return [h,v]};function Z_(e,t){return Ef("".concat(e.join("%")).concat(t))}function Q_(){return null}function Zu(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=f__namespace.useContext($f),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,h=s.ssrInline,v=s.transformers,p=s.linters,m=s.cache,g=r._tokenKey,b=[g].concat(oe(n)),w=mv,C=Dg("style",b,function(){var R=t(),M=Y_(R,{hashId:i,hashPriority:u,layer:o,path:n.join("-"),transformers:v,linters:p}),O=V(M,2),N=O[0],T=O[1],E=gv(N),$=Z_(b,E);if(w){var P={mark:lo,prepend:"queue",attachTo:d},k=typeof a=="function"?a():a;k&&(P.csp={nonce:k});var I=Eo(E,$,P);I[ro]=m.instanceId,I.setAttribute(Xu,g),Object.keys(T).forEach(function(L){Eo(gv(T[L]),"_effect-".concat(L),P);});}return [E,g,$]},function(R,M){var O=V(R,3),N=O[2];(M||l)&&mv&&ul(N,{mark:lo});}),_=V(C,3),S=_[0],y=_[1],x=_[2];return function(R){var M;if(!h||w||!c)M=f__namespace.createElement(Q_,null);else {var O;M=f__namespace.createElement("style",Ee({},(O={},W(O,Xu,y),W(O,lo,x),O),{dangerouslySetInnerHTML:{__html:S}}));}return f__namespace.createElement(f__namespace.Fragment,null,M,R)}}var Ft=function(){function e(t,r){Sr(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=r;}return Cr(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function J_(e,t){if(e.length!==t.length)return !1;for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return (n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return !!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=V(c,2),h=d[1];return i.internalGet(u)[1]0,void 0),bv+=1;}return Cr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),Uc=new _f;function zg(e){var t=Array.isArray(e)?e:[e];return Uc.has(t)||Uc.set(t,new eO(t)),Uc.get(t)}function Wi(e){return e.notSplit=!0,e}Wi(["borderTop","borderBottom"]),Wi(["borderTop"]),Wi(["borderBottom"]),Wi(["borderLeft","borderRight"]),Wi(["borderLeft"]),Wi(["borderRight"]);var tO=f.createContext({});const Of=tO;var gi="RC_FORM_INTERNAL_HOOKS",pt=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},$o=f__namespace.createContext({getFieldValue:pt,getFieldsValue:pt,getFieldError:pt,getFieldWarning:pt,getFieldsError:pt,isFieldsTouched:pt,isFieldTouched:pt,isFieldValidating:pt,isFieldsValidating:pt,resetFields:pt,setFields:pt,setFieldValue:pt,setFieldsValue:pt,validateFields:pt,submit:pt,getInternalHooks:function(){return pt(),{dispatch:pt,initEntityValue:pt,registerField:pt,useSubscribe:pt,setInitialValues:pt,destroyForm:pt,setCallbacks:pt,registerWatch:pt,getFields:pt,setValidateMessages:pt,setPreserve:pt,getInitialValue:pt}}}),Qu=f__namespace.createContext(null);function Ju(e){return e==null?[]:Array.isArray(e)?e:[e]}function rO(e){return e&&!!e._init}function fr(){fr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(T,E,$){T[E]=$.value;},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(T,E,$){return Object.defineProperty(T,E,{value:$,enumerable:!0,configurable:!0,writable:!0}),T[E]}try{l({},"");}catch{l=function($,P,k){return $[P]=k};}function c(T,E,$,P){var k=E&&E.prototype instanceof h?E:h,I=Object.create(k.prototype),L=new M(P||[]);return n(I,"_invoke",{value:S(T,$,L)}),I}function u(T,E,$){try{return {type:"normal",arg:T.call(E,$)}}catch(P){return {type:"throw",arg:P}}}e.wrap=c;var d={};function h(){}function v(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(O([])));b&&b!==t&&r.call(b,o)&&(m=b);var w=p.prototype=h.prototype=Object.create(m);function C(T){["next","throw","return"].forEach(function(E){l(T,E,function($){return this._invoke(E,$)});});}function _(T,E){function $(k,I,L,j){var U=u(T[k],T,I);if(U.type!=="throw"){var G=U.arg,z=G.value;return z&&nt(z)=="object"&&r.call(z,"__await")?E.resolve(z.__await).then(function(H){$("next",H,L,j);},function(H){$("throw",H,L,j);}):E.resolve(z).then(function(H){G.value=H,L(G);},function(H){return $("throw",H,L,j)})}j(U.arg);}var P;n(this,"_invoke",{value:function(I,L){function j(){return new E(function(U,G){$(I,L,U,G);})}return P=P?P.then(j,j):j()}});}function S(T,E,$){var P="suspendedStart";return function(k,I){if(P==="executing")throw new Error("Generator is already running");if(P==="completed"){if(k==="throw")throw I;return N()}for($.method=k,$.arg=I;;){var L=$.delegate;if(L){var j=y(L,$);if(j){if(j===d)continue;return j}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(P==="suspendedStart")throw P="completed",$.arg;$.dispatchException($.arg);}else $.method==="return"&&$.abrupt("return",$.arg);P="executing";var U=u(T,E,$);if(U.type==="normal"){if(P=$.done?"completed":"suspendedYield",U.arg===d)continue;return {value:U.arg,done:$.done}}U.type==="throw"&&(P="completed",$.method="throw",$.arg=U.arg);}}}function y(T,E){var $=E.method,P=T.iterator[$];if(P===void 0)return E.delegate=null,$==="throw"&&T.iterator.return&&(E.method="return",E.arg=void 0,y(T,E),E.method==="throw")||$!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+$+"' method")),d;var k=u(P,T.iterator,E.arg);if(k.type==="throw")return E.method="throw",E.arg=k.arg,E.delegate=null,d;var I=k.arg;return I?I.done?(E[T.resultName]=I.value,E.next=T.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,d):I:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,d)}function x(T){var E={tryLoc:T[0]};1 in T&&(E.catchLoc=T[1]),2 in T&&(E.finallyLoc=T[2],E.afterLoc=T[3]),this.tryEntries.push(E);}function R(T){var E=T.completion||{};E.type="normal",delete E.arg,T.completion=E;}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(x,this),this.reset(!0);}function O(T){if(T){var E=T[o];if(E)return E.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var $=-1,P=function k(){for(;++$=0;--k){var I=this.tryEntries[k],L=I.completion;if(I.tryLoc==="root")return P("end");if(I.tryLoc<=this.prev){var j=r.call(I,"catchLoc"),U=r.call(I,"finallyLoc");if(j&&U){if(this.prev=0;--P){var k=this.tryEntries[P];if(k.tryLoc<=this.prev&&r.call(k,"finallyLoc")&&this.prev=0;--$){var P=this.tryEntries[$];if(P.finallyLoc===E)return this.complete(P.completion,P.afterLoc),R(P),d}},catch:function(E){for(var $=this.tryEntries.length-1;$>=0;--$){var P=this.tryEntries[$];if(P.tryLoc===E){var k=P.completion;if(k.type==="throw"){var I=k.arg;R(P);}return I}}throw new Error("illegal catch attempt")},delegateYield:function(E,$,P){return this.delegate={iterator:O(E),resultName:$,nextLoc:P},this.method==="next"&&(this.arg=void 0),d}},e}function yv(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value;}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,i);}function Ii(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){yv(o,n,i,a,s,"next",l);}function s(l){yv(o,n,i,a,s,"throw",l);}a(void 0);})}}function bi(){return bi=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 js(e,t,r){return iO()?js=Reflect.construct.bind():js=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Na(c,a.prototype),c},js.apply(null,arguments)}function oO(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function td(e){var t=typeof Map=="function"?new Map:void 0;return td=function(n){if(n===null||!oO(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i);}function i(){return js(n,arguments,ed(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Na(i,n)},td(e)}var aO=/%[sdj%]/g,sO=function(){};typeof process<"u"&&process.env;function rd(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r);}),t}function Ar(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=o)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return "[Circular]"}break;default:return s}});return a}return e}function lO(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Kt(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lO(t)&&typeof e=="string"&&!e)}function cO(e,t,r){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,s||[]),i++,i===o&&r(n);}e.forEach(function(s){t(s,a);});}function wv(e,t,r){var n=0,i=e.length;function o(a){if(a&&a.length){r(a);return}var s=n;n=n+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},na={integer:function(t){return na.number(t)&&parseInt(t,10)===t},float:function(t){return na.number(t)&&!na.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"&&!na.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ev.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(pO())},hex:function(t){return typeof t=="string"&&!!t.match(Ev.hex)}},mO=function(t,r,n,i,o){if(t.required&&r===void 0){Hg(t,r,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?na[s](r)||i.push(Ar(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Ar(o.messages.types[s],t.fullField,t.type));},gO=function(t,r,n,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,h=typeof r=="number",v=typeof r=="string",p=Array.isArray(r);if(h?d="number":v?d="string":p&&(d="array"),!d)return !1;p&&(u=r.length),v&&(u=r.replace(c,"_").length),a?u!==t.len&&i.push(Ar(o.messages[d].len,t.fullField,t.len)):s&&!l&&ut.max?i.push(Ar(o.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(Ar(o.messages[d].range,t.fullField,t.min,t.max));},Bi="enum",bO=function(t,r,n,i,o){t[Bi]=Array.isArray(t[Bi])?t[Bi]:[],t[Bi].indexOf(r)===-1&&i.push(Ar(o.messages[Bi],t.fullField,t[Bi].join(", ")));},yO=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Ar(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||i.push(Ar(o.messages.pattern.mismatch,t.fullField,r,t.pattern));}}},Ze={required:Hg,whitespace:vO,type:mO,range:gO,enum:bO,pattern:yO},wO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r,"string")&&!t.required)return n();Ze.required(t,r,i,a,o,"string"),Kt(r,"string")||(Ze.type(t,r,i,a,o),Ze.range(t,r,i,a,o),Ze.pattern(t,r,i,a,o),t.whitespace===!0&&Ze.whitespace(t,r,i,a,o));}n(a);},SO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&Ze.type(t,r,i,a,o);}n(a);},CO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&(Ze.type(t,r,i,a,o),Ze.range(t,r,i,a,o));}n(a);},xO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&Ze.type(t,r,i,a,o);}n(a);},EO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),Kt(r)||Ze.type(t,r,i,a,o);}n(a);},$O=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&(Ze.type(t,r,i,a,o),Ze.range(t,r,i,a,o));}n(a);},_O=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&(Ze.type(t,r,i,a,o),Ze.range(t,r,i,a,o));}n(a);},OO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Ze.required(t,r,i,a,o,"array"),r!=null&&(Ze.type(t,r,i,a,o),Ze.range(t,r,i,a,o));}n(a);},PO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&Ze.type(t,r,i,a,o);}n(a);},TO="enum",RO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o),r!==void 0&&Ze[TO](t,r,i,a,o);}n(a);},MO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r,"string")&&!t.required)return n();Ze.required(t,r,i,a,o),Kt(r,"string")||Ze.pattern(t,r,i,a,o);}n(a);},NO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r,"date")&&!t.required)return n();if(Ze.required(t,r,i,a,o),!Kt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ze.type(t,l,i,a,o),l&&Ze.range(t,l.getTime(),i,a,o);}}n(a);},IO=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;Ze.required(t,r,i,a,o,s),n(a);},Gc=function(t,r,n,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Kt(r,a)&&!t.required)return n();Ze.required(t,r,i,s,o,a),Kt(r,a)||Ze.type(t,r,i,s,o);}n(s);},AO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Kt(r)&&!t.required)return n();Ze.required(t,r,i,a,o);}n(a);},ha={string:wO,method:SO,number:CO,boolean:xO,regexp:EO,integer:$O,float:_O,array:OO,object:PO,enum:RO,pattern:MO,date:NO,url:Gc,hex:Gc,email:Gc,required:IO,any:AO};function nd(){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 id=nd(),Xa=function(){function e(r){this.rules=null,this._messages=id,this.define(r);}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];i.rules[o]=Array.isArray(a)?a:[a];});},t.messages=function(n){return n&&(this._messages=xv(nd(),n)),this._messages},t.validate=function(n,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=n,l=i,c=o;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(m){var g=[],b={};function w(_){if(Array.isArray(_)){var S;g=(S=g).concat.apply(S,_);}else g.push(_);}for(var C=0;C3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!In(e,t.slice(0,-1))?e:Bg(e,t,r,n)}function ic(e){return Array.isArray(e)?LO(e):nt(e)==="object"&&e!==null?FO(e):e}function FO(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=ic(e[r]);return t}return e}function LO(e){return e.map(function(t){return ic(t)})}function Lt(e){return Ju(e)}function $v(e,t){var r={};return t.forEach(function(n){var i=In(e,n);r=Zn(r,n,i);}),r}function va(e,t){return e&&e.some(function(r){return Ug(r,t)})}function _v(e){return nt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Vg(e,t){var r=Array.isArray(e)?oe(e):D({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=_v(i)&&_v(o);r[n]=a?Vg(i,o||{}):ic(o);}),r}function pa(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(oe(e.slice(0,r)),[i],oe(e.slice(r,t)),oe(e.slice(t+1,n))):o<0?[].concat(oe(e.slice(0,t)),oe(e.slice(t+1,r+1)),[i],oe(e.slice(r+1,n))):e}var Pv=Xa;function zO(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var Tv="CODE_LOGIC_ERROR";function od(e,t,r,n,i){return ad.apply(this,arguments)}function ad(){return ad=Ii(fr().mark(function e(t,r,n,i,o){var a,s,l,c,u,d,h,v,p;return fr().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=D({},n),delete a.ruleIndex,Pv.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Tv)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Pv(W({},t,[a])),u=pa({},Wg,i.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(W({},t,r),D({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(d=g.t0.errors.map(function(b,w){var C=b.message,_=C===Tv?u.default:C;return f__namespace.isValidElement(_)?f__namespace.cloneElement(_,{key:"error_".concat(w)}):_}));case 18:if(!(!d.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(b,w){return od("".concat(t,".").concat(w),b,l,i,o)}));case 21:return h=g.sent,g.abrupt("return",h.reduce(function(b,w){return [].concat(oe(b),oe(w))},[]));case 23:return v=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),p=d.map(function(b){return typeof b=="string"?zO(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),ad.apply(this,arguments)}function HO(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(u,d){var h=u.validator,v=D(D({},u),{},{ruleIndex:d});return h&&(v.validator=function(p,m,g){var b=!1,w=function(){for(var S=arguments.length,y=new Array(S),x=0;x0&&arguments[0]!==void 0?arguments[0]:jr;if(i.validatePromise===d){var S;i.validatePromise=null;var y=[],x=[];(S=_.forEach)===null||S===void 0||S.call(_,function(R){var M=R.rule.warningOnly,O=R.errors,N=O===void 0?jr:O;M?x.push.apply(x,oe(N)):y.push.apply(y,oe(N));}),i.errors=y,i.warnings=x,i.triggerMetaEvent(),i.reRender();}}),C});return i.validatePromise=d,i.dirty=!0,i.errors=jr,i.warnings=jr,i.triggerMetaEvent(),i.reRender(),d},i.isFieldValidating=function(){return !!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){if(i.dirty||i.props.initialValue!==void 0)return !0;var l=i.props.fieldContext,c=l.getInternalHooks(gi),u=c.getInitialValue;return u(i.getNamePath())!==void 0},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l},i.getOnlyChild=function(l){if(typeof l=="function"){var c=i.getMeta();return D(D({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=ci(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},i.getValue=function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return In(l||c(!0),u)},i.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,p=c.valuePropName,m=c.getValueProps,g=c.fieldContext,b=d!==void 0?d:g.validateTrigger,w=i.getNamePath(),C=g.getInternalHooks,_=g.getFieldsValue,S=C(gi),y=S.dispatch,x=i.getValue(),R=m||function(T){return W({},p,T)},M=l[u],O=D(D({},l),R(x));O[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var T,E=arguments.length,$=new Array(E),P=0;P=0&&N<=T.length?(d.keys=[].concat(oe(d.keys.slice(0,N)),[d.id],oe(d.keys.slice(N))),_([].concat(oe(T.slice(0,N)),[O],oe(T.slice(N))))):(d.keys=[].concat(oe(d.keys),[d.id]),_([].concat(oe(T),[O]))),d.id+=1;},remove:function(O){var N=y(),T=new Set(Array.isArray(O)?O:[O]);T.size<=0||(d.keys=d.keys.filter(function(E,$){return !T.has($)}),_(N.filter(function(E,$){return !T.has($)})));},move:function(O,N){if(O!==N){var T=y();O<0||O>=T.length||N<0||N>=T.length||(d.keys=Ov(d.keys,O,N),_(Ov(T,O,N)));}}},R=C||[];return Array.isArray(R)||(R=[]),i(R.map(function(M,O){var N=d.keys[O];return N===void 0&&(d.keys[O]=d.id,N=d.keys[O],d.id+=1),{name:O,key:N,isListField:!0}}),x,b)})))};function GO(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),i(n));});});}):Promise.resolve([])}var Kg="__@field_split__";function Kc(e){return e.map(function(t){return "".concat(nt(t),":").concat(t)}).join(Kg)}var Vi=function(){function e(){Sr(this,e),this.kvs=new Map;}return Cr(e,[{key:"set",value:function(r,n){this.kvs.set(Kc(r),n);}},{key:"get",value:function(r){return this.kvs.get(Kc(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r);}},{key:"delete",value:function(r){this.kvs.delete(Kc(r));}},{key:"map",value:function(r){return oe(this.kvs.entries()).map(function(n){var i=V(n,2),o=i[0],a=i[1],s=o.split(Kg);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=V(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e}(),KO=["name"],qO=Cr(function e(t){var r=this;Sr(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return {getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(n){return n===gi?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ur(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(n){r.subscribable=n;},this.prevWithoutPreserves=null,this.setInitialValues=function(n,i){if(r.initialValues=n||{},i){var o,a=pa({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Zn(a,l,In(n,l));}),r.prevWithoutPreserves=null,r.updateStore(a);}},this.destroyForm=function(){var n=new Vi;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0);}),r.prevWithoutPreserves=n;},this.getInitialValue=function(n){var i=In(r.initialValues,n);return n.length?ic(i):i},this.setCallbacks=function(n){r.callbacks=n;},this.setValidateMessages=function(n){r.validateMessages=n;},this.setPreserve=function(n){r.preserve=n;},this.watchList=[],this.registerWatch=function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n});}},this.notifyWatch=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(i,o,n);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(n){r.store=n;},this.getFieldEntities=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Vi;return r.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o);}),i},this.getFieldEntitiesForNamePathList=function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var a=Lt(o);return i.get(a)||{INVALIDATE_NAME_PATH:Lt(o)}})},this.getFieldsValue=function(n,i){if(r.warningUnhooked(),n===!0&&!i)return r.store;var o=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),a=[];return o.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!n&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!i)a.push(c);else {var u="getMeta"in s?s.getMeta():null;i(u)&&a.push(c);}}),$v(r.store,a.map(Lt))},this.getFieldValue=function(n){r.warningUnhooked();var i=Lt(n);return In(r.store,i)},this.getFieldsError=function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Lt(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=Lt(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=Lt(n),o=r.getFieldsError([i])[0];return o.warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new Vi,o=r.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d);}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),v=r.getInitialValue(h);if(v!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else {var p=i.get(h);if(p&&p.size>1)ur(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=r.getFieldValue(h);(!n.skipExist||m===void 0)&&r.updateStore(Zn(r.store,h,oe(p)[0].value));}}}});},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,oe(oe(c).map(function(d){return d.entity})));}})):s=o,a(s);},this.resetFields=function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(pa({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(Lt);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Zn(r.store,a,s));}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o);},this.setFields=function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(a){var s=a.name,l=Qe(a,KO),c=Lt(s);o.push(c),"value"in l&&r.updateStore(Zn(r.store,c,l.value)),r.notifyObservers(i,[c],{type:"setField",data:a});}),r.notifyWatch(o);},this.getFields=function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=D(D({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i},this.initEntityValue=function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=In(r.store,o);a===void 0&&r.updateStore(Zn(r.store,o,i));}},this.isMergedPreserve=function(n){var i=n!==void 0?n:r.preserve;return i??!0},this.registerField=function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==c&&r.fieldEntities.every(function(d){return !Ug(d.getNamePath(),i)})){var u=r.store;r.updateStore(Zn(u,i,c,!0)),r.notifyObservers(u,[i],{type:"remove"}),r.triggerDependenciesUpdate(u,i);}}r.notifyWatch([i]);}},this.dispatch=function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(n,i,o){if(r.subscribable){var a=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,i,a);});}else r.forceRootUpdate();},this.triggerDependenciesUpdate=function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(oe(o))}),o},this.updateValue=function(n,i){var o=Lt(n),a=r.store;r.updateStore(Zn(r.store,o,i)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(a,o),l=r.callbacks.onValuesChange;if(l){var c=$v(r.store,[o]);l(c,r.getFieldsValue());}r.triggerOnFieldsChange([o].concat(oe(s)));},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=pa(r.store,n);r.updateStore(o);}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch();},this.setFieldValue=function(n,i){r.setFields([{name:n,value:i}]);},this.getDependencyChildrenFields=function(n){var i=new Set,o=[],a=new Vi;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Lt(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(o.push(h),l(h));}});};return s(n),o},this.triggerOnFieldsChange=function(n,i){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(i){var s=new Vi;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return va(n,u)});o(l,a);}},this.validateFields=function(n,i){r.warningUnhooked();var o=!!n,a=o?n.map(Lt):[],s=[];r.getFieldEntities(!0).forEach(function(u){if(o||a.push(u.getNamePath()),i!=null&&i.recursive&&o){var d=u.getNamePath();d.every(function(p,m){return n[m]===p||n[m]===void 0})&&a.push(d);}if(!(!u.props.rules||!u.props.rules.length)){var h=u.getNamePath();if(!o||va(a,h)){var v=u.validateRules(D({validateMessages:D(D({},Wg),r.validateMessages)},i));s.push(v.then(function(){return {name:h,errors:[],warnings:[]}}).catch(function(p){var m,g=[],b=[];return (m=p.forEach)===null||m===void 0||m.call(p,function(w){var C=w.rule.warningOnly,_=w.errors;C?b.push.apply(b,oe(_)):g.push.apply(g,oe(_));}),g.length?Promise.reject({name:h,errors:g,warnings:b}):{name:h,errors:g,warnings:b}}));}}});var l=GO(s);r.lastValidatePromise=l,l.catch(function(u){return u}).then(function(u){var d=u.map(function(h){var v=h.name;return v});r.notifyObservers(r.store,d,{type:"validateFinish"}),r.triggerOnFieldsChange(d,u);});var c=l.then(function(){return r.lastValidatePromise===l?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])}).catch(function(u){var d=u.filter(function(h){return h&&h.errors.length});return Promise.reject({values:r.getFieldsValue(a),errorFields:d,outOfDate:r.lastValidatePromise!==l})});return c.catch(function(u){return u}),r.triggerOnFieldsChange(a),c},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n);}catch(o){console.error(o);}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n);});},this.forceRootUpdate=t;});function qg(e){var t=f__namespace.useRef(),r=f__namespace.useState({}),n=V(r,2),i=n[1];if(!t.current)if(e)t.current=e;else {var o=function(){i({});},a=new qO(o);t.current=a.getForm();}return [t.current]}var cd=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Xg=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=f__namespace.useContext(cd),s=f__namespace.useRef({});return f__namespace.createElement(cd.Provider,{value:D(D({},a),{},{validateMessages:D(D({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=D(D({},s.current),{},W({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=D({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},o)},XO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],YO=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,v=h===void 0?"onChange":h,p=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,w=Qe(t,XO),C=f__namespace.useContext(cd),_=qg(a),S=V(_,1),y=S[0],x=y.getInternalHooks(gi),R=x.useSubscribe,M=x.setInitialValues,O=x.setCallbacks,N=x.setValidateMessages,T=x.setPreserve,E=x.destroyForm;f__namespace.useImperativeHandle(r,function(){return y}),f__namespace.useEffect(function(){return C.registerForm(n,y),function(){C.unregisterForm(n);}},[C,y,n]),N(D(D({},C.validateMessages),d)),O({onValuesChange:p,onFieldsChange:function(z){if(C.triggerFormChange(n,z),m){for(var H=arguments.length,K=new Array(H>1?H-1:0),B=1;B{const{locale:t={},children:r,_ANT_MARK__:n}=e;f__namespace.useEffect(()=>(Iv(t&&t.Modal),()=>{Iv();}),[t]);const i=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Zg.Provider,{value:i},r)},sP=aP,lP="5.4.6",fl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function nr(e,t){cP(e)&&(e="100%");var r=uP(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ms(e){return Math.min(1,Math.max(0,e))}function cP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Qg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function gs(e){return e<=1?"".concat(Number(e)*100,"%"):e}function yi(e){return e.length===1?"0"+e:String(e)}function dP(e,t,r){return {r:nr(e,255)*255,g:nr(t,255)*255,b:nr(r,255)*255}}function Av(e,t,r){e=nr(e,255),t=nr(t,255),r=nr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=0,s=(n+i)/2;if(n===i)a=0,o=0;else {var l=n-i;switch(a=s>.5?l/(2-n-i):l/(n+i),n){case e:o=(t-r)/l+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function fP(e,t,r){var n,i,o;if(e=nr(e,360),t=nr(t,100),r=nr(r,100),t===0)i=r,o=r,n=r;else {var a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=Xc(s,a,e+1/3),i=Xc(s,a,e),o=Xc(s,a,e-1/3);}return {r:n*255,g:i*255,b:o*255}}function ud(e,t,r){e=nr(e,255),t=nr(t,255),r=nr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,l=n===0?0:s/n;if(n===i)o=0;else {switch(n){case e:o=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var fd={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 eo(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=yP(e)),typeof e=="object"&&(Pn(e.r)&&Pn(e.g)&&Pn(e.b)?(t=dP(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pn(e.h)&&Pn(e.s)&&Pn(e.v)?(n=gs(e.s),i=gs(e.v),t=hP(e.h,n,i),a=!0,s="hsv"):Pn(e.h)&&Pn(e.s)&&Pn(e.l)&&(n=gs(e.s),o=gs(e.l),t=fP(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Qg(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var gP="[-\\+]?\\d+%?",bP="[-\\+]?\\d*\\.\\d+%?",ii="(?:".concat(bP,")|(?:").concat(gP,")"),Yc="[\\s|\\(]+(".concat(ii,")[,|\\s]+(").concat(ii,")[,|\\s]+(").concat(ii,")\\s*\\)?"),Zc="[\\s|\\(]+(".concat(ii,")[,|\\s]+(").concat(ii,")[,|\\s]+(").concat(ii,")[,|\\s]+(").concat(ii,")\\s*\\)?"),Vr={CSS_UNIT:new RegExp(ii),rgb:new RegExp("rgb"+Yc),rgba:new RegExp("rgba"+Zc),hsl:new RegExp("hsl"+Yc),hsla:new RegExp("hsla"+Zc),hsv:new RegExp("hsv"+Yc),hsva:new RegExp("hsva"+Zc),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 yP(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(fd[e])e=fd[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var r=Vr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Vr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Vr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Vr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Vr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Vr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Vr.hex8.exec(e),r?{r:Tr(r[1]),g:Tr(r[2]),b:Tr(r[3]),a:kv(r[4]),format:t?"name":"hex8"}:(r=Vr.hex6.exec(e),r?{r:Tr(r[1]),g:Tr(r[2]),b:Tr(r[3]),format:t?"name":"hex"}:(r=Vr.hex4.exec(e),r?{r:Tr(r[1]+r[1]),g:Tr(r[2]+r[2]),b:Tr(r[3]+r[3]),a:kv(r[4]+r[4]),format:t?"name":"hex8"}:(r=Vr.hex3.exec(e),r?{r:Tr(r[1]+r[1]),g:Tr(r[2]+r[2]),b:Tr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Pn(e){return !!Vr.CSS_UNIT.exec(String(e))}var cr=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=mP(t)),this.originalInput=t;var i=eo(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Qg(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=ud(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=ud(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Av(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=Av(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),dd(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),vP(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return {r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return "".concat(Math.round(nr(r,255)*100),"%")};return {r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(nr(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return "transparent";if(this.a<1)return !1;for(var t="#"+dd(this.r,this.g,this.b,!1),r=0,n=Object.entries(fd);r=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ms(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ms(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ms(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ms(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(a)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return [this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-bs*t:Math.round(e.h)+bs*t:n=r?Math.round(e.h)+bs*t:Math.round(e.h)-bs*t,n<0?n+=360:n>=360&&(n-=360),n}function jv(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Fv*t:t===eb?n=e.s+Fv:n=e.s+wP*t,n>1&&(n=1),r&&t===Jg&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function zv(e,t,r){var n;return r?n=e.v+SP*t:n=e.v-CP*t,n>1&&(n=1),Number(n.toFixed(2))}function Hn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=eo(e),i=Jg;i>0;i-=1){var o=Lv(n),a=ys(eo({h:Dv(o,i,!0),s:jv(o,i,!0),v:zv(o,i,!0)}));r.push(a);}r.push(ys(n));for(var s=1;s<=eb;s+=1){var l=Lv(n),c=ys(eo({h:Dv(l,s),s:jv(l,s),v:zv(l,s)}));r.push(c);}return t.theme==="dark"?xP.map(function(u){var d=u.index,h=u.opacity,v=ys(EP(eo(t.backgroundColor||"#141414"),eo(r[d]),h*100));return v}):r}var Qc={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"},Jc={},eu={};Object.keys(Qc).forEach(function(e){Jc[e]=Hn(Qc[e]),Jc[e].primary=Jc[e][5],eu[e]=Hn(Qc[e],{theme:"dark",backgroundColor:"#141414"}),eu[e].primary=eu[e][5];});const $P=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},tb=$P;function _P(e){const{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Rf={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"},oc=Object.assign(Object.assign({},Rf),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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});function rb(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=r(l),h=r(i),v=r(o),p=r(a),m=r(s),g=n(c,u);return Object.assign(Object.assign({},g),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new cr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const OP=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},PP=OP;function TP(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},PP(n))}const Tn=(e,t)=>new cr(e).setAlpha(t).toRgbString(),Ko=(e,t)=>new cr(e).darken(t).toHexString(),RP=e=>{const t=Hn(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]}},MP=(e,t)=>{const r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:Tn(n,.88),colorTextSecondary:Tn(n,.65),colorTextTertiary:Tn(n,.45),colorTextQuaternary:Tn(n,.25),colorFill:Tn(n,.15),colorFillSecondary:Tn(n,.06),colorFillTertiary:Tn(n,.04),colorFillQuaternary:Tn(n,.02),colorBgLayout:Ko(r,4),colorBgContainer:Ko(r,0),colorBgElevated:Ko(r,0),colorBgSpotlight:Tn(n,.85),colorBorder:Ko(r,15),colorBorderSecondary:Ko(r,6)}};function NP(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(2.71828,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return {size:r,lineHeight:n/r}})}const IP=e=>{const t=NP(e),r=t.map(i=>i.size),n=t.map(i=>i.lineHeight);return {fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},nb=IP;function ac(e){const t=Object.keys(Rf).map(r=>{const n=Hn(e[r]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),rb(e,{generateColorPalettes:RP,generateNeutralColorPalettes:MP})),nb(e.fontSize)),_P(e)),tb(e)),TP(e))}function tu(e){return e>=0&&e<=255}function ws(e,t){const{r,g:n,b:i,a:o}=new cr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new cr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(tu(u)&&tu(d)&&tu(h))return new cr({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new cr({r,g:n,b:i,a:1}).toRgbString()}var AP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{delete n[h];});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,l=992,c=1200,u=1600;return Object.assign(Object.assign(Object.assign({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:ws(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:ws(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:ws(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:ws(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new cr("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new cr("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new cr("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)"}),n)}const ib="anticon",FP=(e,t)=>t||(e?`ant-${e}`:"ant"),jt=f__namespace.createContext({getPrefixCls:FP,iconPrefixCls:ib}),LP=(e,t,r,n,i)=>{const o=e/2,a=0,s=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-t*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*o-u,v=d,p=2*o-l,m=c,g=2*o-a,b=s,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(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:n,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,`path('M ${a} ${s} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${h} ${v} L ${p} ${m} A ${r} ${r} 0 0 0 ${g} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:w,height:w,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},DP={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},gr=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),ob=()=>({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"}}),jP=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zP=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),HP=(e,t)=>{const{fontFamily:r,fontSize:n}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return {[i]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},sc=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Mf=e=>({"&:focus-visible":Object.assign({},sc(e))});function $n(e,t,r,n){return i=>{const[o,a,s]=lc(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(jt),d=l(),h={theme:o,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return Zu(Object.assign(Object.assign({},h),{path:["Shared",d]}),()=>[{"&":zP(a)}]),[Zu(Object.assign(Object.assign({},h),{path:[e,i,c]}),()=>{const{token:v,flush:p}=BP(a),m=typeof r=="function"?r(v):r,g=Object.assign(Object.assign({},m),a[e]),b=`.${i}`,w=hr(v,{componentCls:b,prefixCls:i,iconCls:`.${c}`,antCls:`.${d}`},g),C=t(w,{hashId:s,prefixCls:i,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return p(e,g),[(n==null?void 0:n.resetStyle)===!1?null:HP(a,i),C]}),s]}}const ab=typeof CSSINJS_STATISTIC<"u";let hd=!0;function hr(){for(var e=arguments.length,t=new Array(e),r=0;r{Object.keys(i).forEach(a=>{Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:()=>i[a]});});}),hd=!0,n}function WP(){}function BP(e){let t,r=e,n=WP;return ab&&(t=new Set,r=new Proxy(e,{get(i,o){return hd&&t.add(o),i[o]}}),n=(i,o)=>{Array.from(t);}),{token:r,keys:t,flush:n}}function sb(e,t){return fl.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const VP=zg(ac),hl={token:oc,hashed:!0},lb=f.createContext(hl);function lc(){const{token:e,hashed:t,theme:r,components:n}=f.useContext(lb),i=`${lP}-${t||""}`,o=r||VP,[a,s]=U_(o,[oc,e],{salt:i,override:Object.assign({override:e},n),formatToken:kP});return [o,a,t?s:""]}const UP=`-ant-${Date.now()}-${Math.random()}`;function GP(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new cr(a),c=Hn(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){i(t.primaryColor,"primary");const a=new cr(t.primaryColor),s=Hn(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c;}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new cr(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setAlpha(c.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2));}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(` `)} } `.trim()}function KP(e,t){const r=GP(e,t);yr()&&Eo(r,`${UP}-dynamic-theme`);}const vd=f__namespace.createContext(!1),qP=e=>{let{children:t,disabled:r}=e;const n=f__namespace.useContext(vd);return f__namespace.createElement(vd.Provider,{value:r??n},t)},Za=vd,pd=f__namespace.createContext(void 0),XP=e=>{let{children:t,size:r}=e;const n=f__namespace.useContext(pd);return f__namespace.createElement(pd.Provider,{value:r||n},t)},Ai=pd;function YP(){const e=f.useContext(Za),t=f.useContext(Ai);return {componentDisabled:e,componentSize:t}}function ZP(e,t){const r=e||{},n=r.inherit===!1||!t?hl:t;return Jl(()=>{if(!e)return t;const o=Object.assign({},n.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({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(o,a)=>o.some((s,l)=>{const c=a[l];return !qa(s,c,!0)}))}const QP=(e,t)=>{const[r,n]=lc();return Zu({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ob()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},JP=QP;var eT=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(cb=t),n&&KP(nT(),n);},oT=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:o,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,legacyLocale:d,parentContext:h,iconPrefixCls:v,theme:p,componentDisabled:m}=e,g=f__namespace.useCallback((E,$)=>{const{prefixCls:P}=e;if($)return $;const k=P||h.getPrefixCls("");return E?`${k}-${E}`:k},[h.getPrefixCls,e.prefixCls]),b=v||h.iconPrefixCls||ib,w=b!==h.iconPrefixCls,C=r||h.csp,_=JP(b,C),S=ZP(p,h.theme),y={csp:C,autoInsertSpaceInButton:n,locale:o||d,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,getPrefixCls:g,iconPrefixCls:b,theme:S},x=Object.assign({},h);Object.keys(y).forEach(E=>{y[E]!==void 0&&(x[E]=y[E]);}),tT.forEach(E=>{const $=e[E];$&&(x[E]=$);});const R=Jl(()=>x,x,(E,$)=>{const P=Object.keys(E),k=Object.keys($);return P.length!==k.length||P.some(I=>E[I]!==$[I])}),M=f__namespace.useMemo(()=>({prefixCls:b,csp:C}),[b,C]);let O=w?_(t):t;const N=f__namespace.useMemo(()=>{var E,$,P;return pa({},((E=Tf.Form)===null||E===void 0?void 0:E.defaultValidateMessages)||{},((P=($=R.locale)===null||$===void 0?void 0:$.Form)===null||P===void 0?void 0:P.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[R,i==null?void 0:i.validateMessages]);Object.keys(N).length>0&&(O=f__namespace.createElement(Xg,{validateMessages:N},t)),o&&(O=f__namespace.createElement(sP,{locale:o,_ANT_MARK__:oP},O)),(b||C)&&(O=f__namespace.createElement(Of.Provider,{value:M},O)),a&&(O=f__namespace.createElement(XP,{size:a},O));const T=f__namespace.useMemo(()=>{const E=S||{},{algorithm:$,token:P}=E,k=eT(E,["algorithm","token"]),I=$&&(!Array.isArray($)||$.length>0)?zg($):void 0;return Object.assign(Object.assign({},k),{theme:I,token:Object.assign(Object.assign({},oc),P)})},[S]);return p&&(O=f__namespace.createElement(lb.Provider,{value:T},O)),m!==void 0&&(O=f__namespace.createElement(qP,{disabled:m},O)),f__namespace.createElement(jt.Provider,{value:R},O)},Ao=e=>{const t=f__namespace.useContext(jt),r=f__namespace.useContext(Zg);return f__namespace.createElement(oT,Object.assign({parentContext:t,legacyLocale:r},e))};Ao.ConfigContext=jt;Ao.SizeContext=Ai;Ao.config=iT;Ao.useConfig=YP;Object.defineProperty(Ao,"SizeContext",{get:()=>Ai});const ub=Ao;var db=function(t){return +setTimeout(t,16)},fb=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(db=function(t){return window.requestAnimationFrame(t)},fb=function(t){return window.cancelAnimationFrame(t)});var Hv=0,Nf=new Map;function hb(e){Nf.delete(e);}var Nt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Hv+=1;var n=Hv;function i(o){if(o===0)hb(n),t();else {var a=db(function(){i(o-1);});Nf.set(n,a);}}return i(r),n};Nt.cancel=function(e){var t=Nf.get(e);return hb(t),fb(t)};function ia(e,t,r,n){var i=yo.unstable_batchedUpdates?function(a){yo.unstable_batchedUpdates(r,a);}:r;return e.addEventListener&&e.addEventListener(t,i,n),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,n);}}}function aT(e,t){ur(e,"[@ant-design/icons] ".concat(t));}function Wv(e){return nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(nt(e.icon)==="object"||typeof e.icon=="function")}function Bv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n;}return t},{})}function md(e,t,r){return r?f.createElement(e.tag,D(D({key:t},Bv(e.attrs)),r),(e.children||[]).map(function(n,i){return md(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):f.createElement(e.tag,D({key:t},Bv(e.attrs)),(e.children||[]).map(function(n,i){return md(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function vb(e){return Hn(e)[0]}function pb(e){return e?Array.isArray(e)?e:[e]:[]}var sT=` .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); } } `,lT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sT,r=f.useContext(Of),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),f.useEffect(function(){Eo(o,"@ant-design-icons",{prepend:!0,csp:n});},[]);},cT=["icon","className","onClick","style","primaryColor","secondaryColor"],ma={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uT(e){var t=e.primaryColor,r=e.secondaryColor;ma.primaryColor=t,ma.secondaryColor=r||vb(t),ma.calculated=!!r;}function dT(){return D({},ma)}var cc=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=Qe(t,cT),c=ma;if(a&&(c={primaryColor:a,secondaryColor:s||vb(a)}),lT(),aT(Wv(r),"icon should be icon definiton, but got ".concat(r)),!Wv(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=D(D({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),md(u.icon,"svg-".concat(u.name),D({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};cc.displayName="IconReact";cc.getTwoToneColors=dT;cc.setTwoToneColors=uT;const If=cc;function mb(e){var t=pb(e),r=V(t,2),n=r[0],i=r[1];return If.setTwoToneColors({primaryColor:n,secondaryColor:i})}function fT(){var e=If.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var hT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mb("#1890ff");var uc=f__namespace.forwardRef(function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Qe(e,hT),d=f__namespace.useContext(Of),h=d.prefixCls,v=h===void 0?"anticon":h,p=d.rootClassName,m=q(p,v,(r={},W(r,"".concat(v,"-").concat(i.name),!!i.name),W(r,"".concat(v,"-spin"),!!o||i.name==="loading"),r),n),g=s;g===void 0&&l&&(g=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=pb(c),C=V(w,2),_=C[0],S=C[1];return f__namespace.createElement("span",D(D({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:g,onClick:l,className:m}),f__namespace.createElement(If,{icon:i,primaryColor:_,secondaryColor:S,style:b}))});uc.displayName="AntdIcon";uc.getTwoToneColor=fT;uc.setTwoToneColor=mb;const ko=uc;var vT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const pT=vT;var gb=function(t,r){return f__namespace.createElement(ko,D(D({},t),{},{ref:r,icon:pT}))};gb.displayName="CloseOutlined";const bb=f__namespace.forwardRef(gb);var mT=f__namespace.createContext({}),gT=function(e){Mo(r,e);var t=No(r);function r(){return Sr(this,r),t.apply(this,arguments)}return Cr(r,[{key:"render",value:function(){return this.props.children}}]),r}(f__namespace.Component);function _i(e){var t=f__namespace.useRef(!1),r=f__namespace.useState(e),n=V(r,2),i=n[0],o=n[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||o(s);}return [i,a]}var vi="none",Ss="appear",Cs="enter",xs="leave",Vv="none",Zr="prepare",no="start",io="active",Af="end",yb="prepared";function Uv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function bT(e,t){var r={animationend:Uv("Animation","AnimationEnd"),transitionend:Uv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var yT=bT(yr(),typeof window<"u"?window:{}),wb={};if(yr()){var wT=document.createElement("div");wb=wT.style;}var Es={};function Sb(e){if(Es[e])return Es[e];var t=yT[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Nt(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1);});e.current=o;}return f__namespace.useEffect(function(){return function(){t();}},[]),[r,t]};var xT=[Zr,no,io,Af],ET=[Zr,yb],_b=!1,$T=!0;function Ob(e){return e===io||e===Af}const _T=function(e,t,r){var n=_i(Vv),i=V(n,2),o=i[0],a=i[1],s=CT(),l=V(s,2),c=l[0],u=l[1];function d(){a(Zr,!0);}var h=t?ET:xT;return $b(function(){if(o!==Vv&&o!==Af){var v=h.indexOf(o),p=h[v+1],m=r(o);m===_b?a(p,!0):p&&c(function(g){function b(){g.isCanceled()||a(p,!0);}m===!0?b():Promise.resolve(m).then(b);});}},[e,o]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,o]};function OT(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,h=n.onAppearPrepare,v=n.onEnterPrepare,p=n.onLeavePrepare,m=n.onAppearStart,g=n.onEnterStart,b=n.onLeaveStart,w=n.onAppearActive,C=n.onEnterActive,_=n.onLeaveActive,S=n.onAppearEnd,y=n.onEnterEnd,x=n.onLeaveEnd,R=n.onVisibleChanged,M=_i(),O=V(M,2),N=O[0],T=O[1],E=_i(vi),$=V(E,2),P=$[0],k=$[1],I=_i(null),L=V(I,2),j=L[0],U=L[1],G=f.useRef(!1),z=f.useRef(null);function H(){return r()}var K=f.useRef(!1);function B(){k(vi,!0),U(null,!0);}function Z(ce){var ie=H();if(!(ce&&!ce.deadline&&ce.target!==ie)){var ue=K.current,We;P===Ss&&ue?We=S==null?void 0:S(ie,ce):P===Cs&&ue?We=y==null?void 0:y(ie,ce):P===xs&&ue&&(We=x==null?void 0:x(ie,ce)),P!==vi&&ue&&We!==!1&&B();}}var ee=ST(Z),te=V(ee,1),J=te[0],ae=function(ie){var ue,We,Fe;switch(ie){case Ss:return ue={},W(ue,Zr,h),W(ue,no,m),W(ue,io,w),ue;case Cs:return We={},W(We,Zr,v),W(We,no,g),W(We,io,C),We;case xs:return Fe={},W(Fe,Zr,p),W(Fe,no,b),W(Fe,io,_),Fe;default:return {}}},ne=f__namespace.useMemo(function(){return ae(P)},[P]),ke=_T(P,!e,function(ce){if(ce===Zr){var ie=ne[Zr];return ie?ie(H()):_b}if(le in ne){var ue;U(((ue=ne[le])===null||ue===void 0?void 0:ue.call(ne,H(),null))||null);}return le===io&&(J(H()),u>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Z({deadline:!0});},u))),le===yb&&B(),$T}),se=V(ke,2),de=se[0],le=se[1],re=Ob(le);K.current=re,$b(function(){T(t);var ce=G.current;G.current=!0;var ie;!ce&&t&&s&&(ie=Ss),ce&&t&&o&&(ie=Cs),(ce&&!t&&c||!ce&&d&&!t&&c)&&(ie=xs);var ue=ae(ie);ie&&(e||ue[Zr])?(k(ie),de()):k(vi);},[t]),f.useEffect(function(){(P===Ss&&!s||P===Cs&&!o||P===xs&&!c)&&k(vi);},[s,o,c]),f.useEffect(function(){return function(){G.current=!1,clearTimeout(z.current);}},[]);var be=f__namespace.useRef(!1);f.useEffect(function(){N&&(be.current=!0),N!==void 0&&P===vi&&((be.current||N)&&(R==null||R(N)),be.current=!0);},[N,P]);var Te=j;return ne[Zr]&&le===no&&(Te=D({transition:"none"},Te)),[P,le,Te,N??t]}function PT(e){var t=e;nt(e)==="object"&&(t=e.transitionSupport);function r(i,o){return !!(i.motionName&&t&&o!==!1)}var n=f__namespace.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,h=i.motionName,v=i.leavedClassName,p=i.eventProps,m=f__namespace.useContext(mT),g=m.motion,b=r(i,g),w=f.useRef(),C=f.useRef();function _(){try{return w.current instanceof HTMLElement?w.current:sl(C.current)}catch{return null}}var S=OT(b,s,_,i),y=V(S,4),x=y[0],R=y[1],M=y[2],O=y[3],N=f__namespace.useRef(O);O&&(N.current=!0);var T=f__namespace.useCallback(function(U){w.current=U,Cf(o,U);},[o]),E,$=D(D({},p),{},{visible:s});if(!d)E=null;else if(x===vi)O?E=d(D({},$),T):!c&&N.current&&v?E=d(D(D({},$),{},{className:v}),T):u||!c&&!v?E=d(D(D({},$),{},{style:{display:"none"}}),T):E=null;else {var P,k;R===Zr?k="prepare":Ob(R)?k="active":R===no&&(k="start");var I=qv(h,"".concat(x,"-").concat(k));E=d(D(D({},$),{},{className:q(qv(h,x),(P={},W(P,I,I&&k),W(P,h,typeof h=="string"),P)),style:M}),T);}if(f__namespace.isValidElement(E)&&Io(E)){var L=E,j=L.ref;j||(E=f__namespace.cloneElement(E,{ref:T}));}return f__namespace.createElement(gT,{ref:C},E)});return n.displayName="CSSMotion",n}const _n=PT(Eb);var gd="add",bd="keep",yd="remove",ru="removed";function TT(e){var t;return e&&nt(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function wd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(TT)}function RT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=wd(e),a=wd(t);o.forEach(function(c){for(var u=!1,d=n;d1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==yd}),r.forEach(function(u){u.key===c&&(u.status=bd);});}),r}var MT=["component","children","onVisibleChanged","onAllRemoved"],NT=["status"],IT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function AT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n,r=function(n){Mo(o,n);var i=No(o);function o(){var a;Sr(this,o);for(var s=arguments.length,l=new Array(s),c=0;c((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t),{})}const{isValidElement:kf}=f__namespace;function Pb(e){return e&&kf(e)&&e.type===f__namespace.Fragment}function FT(e,t,r){return kf(e)?f__namespace.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function _o(e,t){return FT(e,e,t)}function Qr(e){var t=f__namespace.useRef();t.current=e;var r=f__namespace.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a=Y.F1&&r<=Y.F12)return !1;switch(r){case Y.ALT:case Y.CAPS_LOCK:case Y.CONTEXT_MENU:case Y.CTRL:case Y.DOWN:case Y.END:case Y.ESC:case Y.HOME:case Y.INSERT:case Y.LEFT:case Y.MAC_FF_META:case Y.META:case Y.NUMLOCK:case Y.NUM_CENTER:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.PAUSE:case Y.PRINT_SCREEN:case Y.RIGHT:case Y.SHIFT:case Y.UP:case Y.WIN_KEY:case Y.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=Y.ZERO&&t<=Y.NINE||t>=Y.NUM_ZERO&&t<=Y.NUM_MULTIPLY||t>=Y.A&&t<=Y.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case Y.SPACE:case Y.QUESTION_MARK:case Y.NUM_PLUS:case Y.NUM_MINUS:case Y.NUM_PERIOD:case Y.NUM_DIVISION:case Y.SEMICOLON:case Y.DASH:case Y.EQUALS:case Y.COMMA:case Y.PERIOD:case Y.SLASH:case Y.APOSTROPHE:case Y.SINGLE_QUOTE:case Y.OPEN_SQUARE_BRACKET:case Y.BACKSLASH:case Y.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},LT={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 DT=LT;var Tb=function(t,r){return f__namespace.createElement(ko,D(D({},t),{},{ref:r,icon:DT}))};Tb.displayName="LoadingOutlined";const Xv=f__namespace.forwardRef(Tb);var Qa=D({},yo__namespace),jT=Qa.version,zT=Qa.render,HT=Qa.unmountComponentAtNode,dc;try{var WT=Number((jT||"").split(".")[0]);WT>=18&&(dc=Qa.createRoot);}catch{}function Yv(e){var t=Qa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&nt(t)==="object"&&(t.usingClientEntryPoint=e);}var vl="__rc_react_root__";function BT(e,t){Yv(!0);var r=t[vl]||dc(t);Yv(!1),r.render(e),t[vl]=r;}function VT(e,t){zT(e,t);}function UT(e,t){if(dc){BT(e,t);return}VT(e,t);}function GT(e){return Sd.apply(this,arguments)}function Sd(){return Sd=Ii(fr().mark(function e(t){return fr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[vl])===null||i===void 0||i.unmount(),delete t[vl];}));case 1:case"end":return n.stop()}},e)})),Sd.apply(this,arguments)}function KT(e){HT(e);}function qT(e){return Cd.apply(this,arguments)}function Cd(){return Cd=Ii(fr().mark(function e(t){return fr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(dc===void 0){n.next=2;break}return n.abrupt("return",GT(t));case 2:KT(t);case 3:case"end":return n.stop()}},e)})),Cd.apply(this,arguments)}const fc=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return !0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return !0}}return !1},XT=e=>{const{componentCls:t,colorPrimary:r}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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}}}}},YT=$n("Wave",e=>[XT(e)]);function ZT(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 nu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&ZT(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function QT(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return nu(t)?t:nu(r)?r:nu(n)?n:null}function iu(e){return Number.isNaN(e)?0:e}const JT=e=>{const{className:t,target:r}=e,n=f__namespace.useRef(null),[i,o]=f__namespace.useState(null),[a,s]=f__namespace.useState([]),[l,c]=f__namespace.useState(0),[u,d]=f__namespace.useState(0),[h,v]=f__namespace.useState(0),[p,m]=f__namespace.useState(0),[g,b]=f__namespace.useState(!1),w={left:l,top:u,width:h,height:p,borderRadius:a.map(_=>`${_}px`).join(" ")};i&&(w["--wave-color"]=i);function C(){const _=getComputedStyle(r);o(QT(r));const S=_.position==="static",{borderLeftWidth:y,borderTopWidth:x}=_;c(S?r.offsetLeft:iu(-parseFloat(y))),d(S?r.offsetTop:iu(-parseFloat(x))),v(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:M,borderBottomLeftRadius:O,borderBottomRightRadius:N}=_;s([R,M,N,O].map(T=>iu(parseFloat(T))));}return f__namespace.useEffect(()=>{if(r){const _=Nt(()=>{C(),b(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(C),S.observe(r)),()=>{Nt.cancel(_),S==null||S.disconnect();}}},[]),g?f__namespace.createElement(_n,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,S)=>{var y;if(S.deadline||S.propertyName==="opacity"){const x=(y=n.current)===null||y===void 0?void 0:y.parentElement;qT(x).then(()=>{x==null||x.remove();});}return !1}},_=>{let{className:S}=_;return f__namespace.createElement("div",{ref:n,className:q(t,S),style:w})}):null};function eR(e,t){const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),UT(f__namespace.createElement(JT,{target:e,className:t}),r);}function tR(e,t){function r(){const n=e.current;eR(n,t);}return r}const rR=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=f.useContext(jt),i=f.useRef(null),o=n("wave"),[,a]=YT(o),s=tR(i,q(o,a));if(f.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||r)return;const u=d=>{d.target.tagName==="INPUT"||!fc(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[r]),!f.isValidElement(t))return t??null;const l=Io(t)?Gn(t.ref,i):i;return _o(t,{ref:l})},Rb=rR,nR=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},iR=nR,oR=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"}}}},Mb=$n("Space",e=>[oR(e),iR(e)],()=>({}),{resetStyle:!1});var Nb=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const r=f__namespace.useContext(hc),n=f__namespace.useMemo(()=>{if(!r)return "";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return q({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return {compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},xd=e=>{let{children:t}=e;return f__namespace.createElement(hc.Provider,{value:null},t)},aR=e=>{var{children:t}=e,r=Nb(e,["children"]);return f__namespace.createElement(hc.Provider,{value:r},t)},sR=e=>{const{getPrefixCls:t,direction:r}=f__namespace.useContext(jt),{size:n="middle",direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Nb(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=t("space-compact",a),[h,v]=Mb(d),p=q(d,v,{[`${d}-rtl`]:r==="rtl",[`${d}-block`]:o,[`${d}-vertical`]:i==="vertical"},s,l),m=f__namespace.useContext(hc),g=ci(c),b=f__namespace.useMemo(()=>g.map((w,C)=>{const _=w&&w.key||`${d}-item-${C}`;return f__namespace.createElement(aR,{key:_,compactSize:n,compactDirection:i,isFirstItem:C===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:C===g.length-1&&(!m||(m==null?void 0:m.isLastItem))},w)}),[n,g,m]);return g.length===0?null:h(f__namespace.createElement("div",Object.assign({className:p},u),b))},lR=sR,ou=()=>({width:0,opacity:0,transform:"scale(0)"}),au=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cR=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?f.createElement("span",{className:`${t}-loading-icon`},f.createElement(Xv,null)):f.createElement(_n,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:ou,onAppearActive:au,onEnterStart:ou,onEnterActive:au,onLeaveStart:au,onLeaveActive:ou},(o,a)=>{let{className:s,style:l}=o;return f.createElement("span",{className:`${t}-loading-icon`,style:l,ref:a},f.createElement(Xv,{className:s}))})},uR=cR;var dR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:r}=f__namespace.useContext(jt),{prefixCls:n,size:i,className:o}=e,a=dR(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=lc();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=q(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},o,l);return f__namespace.createElement(Ab.Provider,{value:i},f__namespace.createElement("div",Object.assign({},a,{className:u})))},hR=fR,Zv=/^[\u4e00-\u9fa5]{2}$/,Ed=Zv.test.bind(Zv);function vR(e){return typeof e=="string"}function su(e){return e==="text"||e==="link"}function pR(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&vR(e.type)&&Ed(e.props.children)?_o(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Ed(e)?f.createElement("span",null,e.split("").join(r)):f.createElement("span",null,e):Pb(e)?f.createElement("span",null,e):e}function mR(e,t){let r=!1;const n=[];return f.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${i}`;}else n.push(i);r=a;}),f.Children.map(n,i=>pR(i,t))}const Qv=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),gR=e=>{const{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:i,colorErrorHover:o}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Qv(`${t}-primary`,i),Qv(`${t}-danger`,o)]}},bR=gR;function yR(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wR(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function kb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return {[n]:Object.assign(Object.assign({},yR(e,n,t)),wR(r,n,t))}}function SR(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function CR(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 xR(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},SR(e,t)),CR(e.componentCls,t))}}const ER=e=>{const{componentCls:t,iconCls:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,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,"> span":{display:"inline-block"},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Mf(e)),[`&-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:'""'}}}}}}},Wn=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),$R=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_R=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),$d=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),pl=(e,t,r,n,i,o,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},Wn(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),Ff=e=>({"&:disabled":Object.assign({},$d(e))}),Fb=e=>Object.assign({},Ff(e)),ml=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Lb=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fb(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Wn({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),pl(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Wn({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pl(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ff(e))}),OR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fb(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Wn({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),pl(e.componentCls,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:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Wn({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),pl(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ff(e))}),PR=e=>Object.assign(Object.assign({},Lb(e)),{borderStyle:"dashed"}),TR=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Wn({color:e.colorLinkHover},{color:e.colorLinkActive})),ml(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Wn({color:e.colorErrorHover},{color:e.colorErrorActive})),ml(e))}),RR=e=>Object.assign(Object.assign(Object.assign({},Wn({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),ml(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ml(e)),Wn({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),MR=e=>Object.assign(Object.assign({},$d(e)),{[`&${e.componentCls}:hover`]:Object.assign({},$d(e))}),NR=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Lb(e),[`${t}-primary`]:OR(e),[`${t}-dashed`]:PR(e),[`${t}-link`]:TR(e),[`${t}-text`]:RR(e),[`${t}-disabled`]:MR(e)}},Lf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,iconCls:n,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c}=e,u=Math.max(0,(i-o*a)/2-s),d=c-s,h=`${r}-icon-only`;return [{[`${r}${t}`]:{fontSize:o,height:i,padding:`${u}px ${d}px`,borderRadius:l,[`&${h}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${h}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:$R(e)},{[`${r}${r}-round${t}`]:_R(e)}]},IR=e=>Lf(e),AR=e=>{const t=hr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Lf(t,`${e.componentCls}-sm`)},kR=e=>{const t=hr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Lf(t,`${e.componentCls}-lg`)},FR=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},LR=$n("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=hr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return [ER(n),AR(n),IR(n),kR(n),FR(n),NR(n),bR(n),kb(e),xR(e)]});var DR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{loading:r=!1,prefixCls:n,type:i="default",danger:o,shape:a="default",size:s,disabled:l,className:c,rootClassName:u,children:d,icon:h,ghost:v=!1,block:p=!1,htmlType:m="button"}=e,g=DR(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:b,autoInsertSpaceInButton:w,direction:C}=f__namespace.useContext(jt),_=b("btn",n),[S,y]=LR(_),x=f__namespace.useContext(Ai),R=f__namespace.useContext(Za),M=l??R,O=f__namespace.useContext(Ab),N=f__namespace.useMemo(()=>jR(r),[r]),[T,E]=f__namespace.useState(N.loading),[$,P]=f__namespace.useState(!1),I=t||f__namespace.createRef(),L=()=>f__namespace.Children.count(d)===1&&!h&&!su(i),j=()=>{if(!I||!I.current||w===!1)return;const de=I.current.textContent;L()&&Ed(de)?$||P(!0):$&&P(!1);};f__namespace.useEffect(()=>{let de=null;N.delay>0?de=setTimeout(()=>{de=null,E(!0);},N.delay):E(N.loading);function le(){de&&(clearTimeout(de),de=null);}return le},[N]),f__namespace.useEffect(j,[I]);const U=de=>{const{onClick:le}=e;if(T||M){de.preventDefault();return}le==null||le(de);},G=w!==!1,{compactSize:z,compactItemClassnames:H}=Ib(_,C),K={large:"lg",small:"sm",middle:void 0},B=z||O||s||x,Z=B&&K[B]||"",ee=T?"loading":h,te=rc(g,["navigate"]),J=te.href!==void 0&&M,ae=q(_,y,{[`${_}-${a}`]:a!=="default"&&a,[`${_}-${i}`]:i,[`${_}-${Z}`]:Z,[`${_}-icon-only`]:!d&&d!==0&&!!ee,[`${_}-background-ghost`]:v&&!su(i),[`${_}-loading`]:T,[`${_}-two-chinese-chars`]:$&&G&&!T,[`${_}-block`]:p,[`${_}-dangerous`]:!!o,[`${_}-rtl`]:C==="rtl",[`${_}-disabled`]:J},H,c,u),ne=h&&!T?h:f__namespace.createElement(uR,{existIcon:!!h,prefixCls:_,loading:!!T}),ke=d||d===0?mR(d,L()&&G):null;if(te.href!==void 0)return S(f__namespace.createElement("a",Object.assign({},te,{className:ae,onClick:U,ref:I}),ne,ke));let se=f__namespace.createElement("button",Object.assign({},g,{type:m,className:ae,onClick:U,disabled:M,ref:I}),ne,ke);return su(i)||(se=f__namespace.createElement(Rb,{disabled:!!T},se)),S(se)},Df=f__namespace.forwardRef(zR);Df.Group=hR;Df.__ANT_BUTTON=!0;const oi=Df,Db=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var jb=f__namespace.createContext(null),Wt=yr()?f__namespace.useLayoutEffect:f__namespace.useEffect,co=function(t,r){var n=f__namespace.useRef(!0);Wt(function(){if(!n.current)return t()},r),Wt(function(){return n.current=!1,function(){n.current=!0;}},[]);},Jv=[];function HR(e,t){var r=f__namespace.useState(function(){if(!yr())return null;var p=document.createElement("div");return p}),n=V(r,1),i=n[0],o=f__namespace.useRef(!1),a=f__namespace.useContext(jb),s=f__namespace.useState(Jv),l=V(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(p){u(function(m){var g=[p].concat(oe(m));return g});});function h(){i.parentElement||document.body.appendChild(i),o.current=!0;}function v(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),o.current=!1;}return Wt(function(){return e?a?a(h):h():v(),v},[e]),Wt(function(){c.length&&(c.forEach(function(p){return p()}),u(Jv));},[c]),[i,d]}var lu;function WR(e){if(typeof document>"u")return 0;if(e||lu===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var i=t.offsetWidth;r.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=r.clientWidth),document.body.removeChild(r),lu=i-o;}return lu}function BR(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var VR="rc-util-locker-".concat(Date.now()),ep=0;function UR(e){var t=!!e,r=f__namespace.useState(function(){return ep+=1,"".concat(VR,"_").concat(ep)}),n=V(r,1),i=n[0];Wt(function(){if(t){var o=WR(),a=BR();Eo(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` }`),i);}else ul(i);return function(){ul(i);}},[t,i]);}var tp=!1;function GR(e){return typeof e=="boolean"&&(tp=e),tp}var rp=function(t){return t===!1?!1:!yr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},zb=f__namespace.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=f__namespace.useState(r),c=V(l,2),u=c[0],d=c[1],h=u||r;f__namespace.useEffect(function(){(a||r)&&d(r);},[r,a]);var v=f__namespace.useState(function(){return rp(i)}),p=V(v,2),m=p[0],g=p[1];f__namespace.useEffect(function(){var N=rp(i);g(N??null);});var b=HR(h&&!m),w=V(b,2),C=w[0],_=w[1],S=m??C;UR(n&&r&&yr()&&(S===C||S===document.body));var y=null;if(s&&Io(s)&&t){var x=s;y=x.ref;}var R=ec(y,t);if(!h||!yr()||m===void 0)return null;var M=S===!1||GR(),O=s;return t&&(O=f__namespace.cloneElement(s,{ref:R})),f__namespace.createElement(jb.Provider,{value:_},M?O:yo.createPortal(O,S))});function KR(){var e=D({},f__namespace);return e.useId}var np=0;function qR(e){var t=f__namespace.useState("ssr-id"),r=V(t,2),n=r[0],i=r[1],o=KR(),a=o==null?void 0:o();return f__namespace.useEffect(function(){if(!o){var s=np;np+=1,i("rc_unique_".concat(s));}},[]),e||a||n}const Ia=f__namespace.createContext({}),ip=e=>{let{children:t,status:r,override:n}=e;const i=f.useContext(Ia),o=f.useMemo(()=>{const a=Object.assign({},i);return n&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,n,i]);return f__namespace.createElement(Ia.Provider,{value:o},t)},XR=()=>yr()&&window.document.documentElement;let $s;const YR=()=>{if(!XR())return !1;if($s!==void 0)return $s;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$s=e.scrollHeight===1,document.body.removeChild(e),$s},ZR=e=>({animationDuration:e,animationFillMode:"both"}),QR=e=>({animationDuration:e,animationFillMode:"both"}),Hb=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[` ${o}${e}-enter, ${o}${e}-appear `]:Object.assign(Object.assign({},ZR(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},QR(n)),{animationPlayState:"paused"}),[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},JR=new Ft("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),eM=new Ft("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),tM=new Ft("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),rM=new Ft("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),nM=new Ft("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),iM=new Ft("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oM=new Ft("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),aM=new Ft("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),sM={"slide-up":{inKeyframes:JR,outKeyframes:eM},"slide-down":{inKeyframes:tM,outKeyframes:rM},"slide-left":{inKeyframes:nM,outKeyframes:iM},"slide-right":{inKeyframes:oM,outKeyframes:aM}},op=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=sM[t];return [Hb(n,i,o,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},lM=new Ft("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),cM=new Ft("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ap=new Ft("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sp=new Ft("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),uM=new Ft("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),dM=new Ft("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fM=new Ft("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),hM=new Ft("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),vM=new Ft("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),pM=new Ft("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),mM=new Ft("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),gM=new Ft("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),bM={zoom:{inKeyframes:lM,outKeyframes:cM},"zoom-big":{inKeyframes:ap,outKeyframes:sp},"zoom-big-fast":{inKeyframes:ap,outKeyframes:sp},"zoom-left":{inKeyframes:fM,outKeyframes:hM},"zoom-right":{inKeyframes:vM,outKeyframes:pM},"zoom-up":{inKeyframes:uM,outKeyframes:dM},"zoom-down":{inKeyframes:mM,outKeyframes:gM}},yM=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=bM[t];return [Hb(n,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function cu(e){return e!==void 0}function mn(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=_i(function(){return cu(i)?i:cu(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=V(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,h=a?a(d):d,v=Qr(o),p=_i([d]),m=V(p,2),g=m[0],b=m[1];co(function(){var C=g[0];c!==C&&v(c,C);},[g]),co(function(){cu(i)||u(i);},[i]);var w=Qr(function(C,_){u(C,_),b([d],_);});return [h,w]}const vc=function(){if(typeof navigator>"u"||typeof window>"u")return !1;var e=navigator.userAgent||navigator.vendor||window.opera;return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var wM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ui=void 0;function SM(e,t){var r=e.prefixCls,n=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,v=e.display,p=e.order,m=e.component,g=m===void 0?"div":m,b=Qe(e,wM),w=a&&!v;function C(R){l(c,R);}f__namespace.useEffect(function(){return function(){C(null);}},[]);var _=o&&i!==Ui?o(i):h,S;n||(S={opacity:w?0:1,height:w?0:Ui,overflowY:w?"hidden":Ui,order:a?p:Ui,pointerEvents:w?"none":Ui,position:w?"absolute":Ui});var y={};w&&(y["aria-hidden"]=!0);var x=f__namespace.createElement(g,Ee({className:q(!n&&r,u),style:D(D({},S),d)},y,b,{ref:t}),_);return a&&(x=f__namespace.createElement(Ri,{onResize:function(M){var O=M.offsetWidth;C(O);},disabled:s},x)),x}var ga=f__namespace.forwardRef(SM);ga.displayName="Item";function CM(e){if(typeof MessageChannel>"u")Nt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function xM(){var e=f__namespace.useRef(null),t=function(n){e.current||(e.current=[],CM(function(){yo.unstable_batchedUpdates(function(){e.current.forEach(function(i){i();}),e.current=null;});})),e.current.push(n);};return t}function qo(e,t){var r=f__namespace.useState(t),n=V(r,2),i=n[0],o=n[1],a=Qr(function(s){e(function(){o(s);});});return [i,a]}var EM=["component"],$M=["className"],_M=["className"],OM=function(t,r){var n=f__namespace.useContext(gl);if(!n){var i=t.component,o=i===void 0?"div":i,a=Qe(t,EM);return f__namespace.createElement(o,Ee({},a,{ref:r}))}var s=n.className,l=Qe(n,$M),c=t.className,u=Qe(t,_M);return f__namespace.createElement(gl.Provider,{value:null},f__namespace.createElement(ga,Ee({ref:r,className:q(s,c)},l,u)))},Wb=f__namespace.forwardRef(OM);Wb.displayName="RawItem";var PM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],gl=f__namespace.createContext(null),Bb="responsive",Vb="invalidate";function TM(e){return "+ ".concat(e.length," ...")}function RM(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,v=e.className,p=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,w=e.component,C=w===void 0?"div":w,_=e.itemComponent,S=e.onVisibleChange,y=Qe(e,PM),x=d==="full",R=xM(),M=qo(R,null),O=V(M,2),N=O[0],T=O[1],E=N||0,$=qo(R,new Map),P=V($,2),k=P[0],I=P[1],L=qo(R,0),j=V(L,2),U=j[0],G=j[1],z=qo(R,0),H=V(z,2),K=H[0],B=H[1],Z=qo(R,0),ee=V(Z,2),te=ee[0],J=ee[1],ae=f.useState(null),ne=V(ae,2),ke=ne[0],se=ne[1],de=f.useState(null),le=V(de,2),re=le[0],be=le[1],Te=f__namespace.useMemo(function(){return re===null&&x?Number.MAX_SAFE_INTEGER:re||0},[re,N]),ce=f.useState(!1),ie=V(ce,2),ue=ie[0],We=ie[1],Fe="".concat(n,"-item"),vt=Math.max(U,K),Je=p===Bb,$e=o.length&&Je,ge=p===Vb,Ne=$e||typeof p=="number"&&o.length>p,Le=f.useMemo(function(){var pe=o;return $e?N===null&&x?pe=o:pe=o.slice(0,Math.min(o.length,E/u)):typeof p=="number"&&(pe=o.slice(0,p)),pe},[o,u,N,p,$e]),Ce=f.useMemo(function(){return $e?o.slice(Te+1):o.slice(Le.length)},[o,Le,$e,Te]),Oe=f.useCallback(function(pe,Be){var Ke;return typeof l=="function"?l(pe):(Ke=l&&(pe==null?void 0:pe[l]))!==null&&Ke!==void 0?Ke:Be},[l]),Xe=f.useCallback(a||function(pe){return pe},[a]);function it(pe,Be,Ke){re===pe&&(Be===void 0||Be===ke)||(be(pe),Ke||(We(peE){it(_t-1,pe-St-te+K);break}}b&&At(0)+te>E&&se(null);}},[E,k,K,te,Oe,Le]);var me=ue&&!!Ce.length,fe={};ke!==null&&$e&&(fe={position:"absolute",left:ke,top:0});var Pe={prefixCls:Fe,responsive:$e,component:_,invalidate:ge},ye=s?function(pe,Be){var Ke=Oe(pe,Be);return f__namespace.createElement(gl.Provider,{key:Ke,value:D(D({},Pe),{},{order:Be,item:pe,itemKey:Ke,registerSize:ot,display:Be<=Te})},s(pe,Be))}:function(pe,Be){var Ke=Oe(pe,Be);return f__namespace.createElement(ga,Ee({},Pe,{order:Be,key:Ke,item:pe,renderItem:Xe,itemKey:Ke,registerSize:ot,display:Be<=Te}))},Ge,gt={order:me?Te:Number.MAX_SAFE_INTEGER,className:"".concat(Fe,"-rest"),registerSize:ir,display:me};if(g)g&&(Ge=f__namespace.createElement(gl.Provider,{value:D(D({},Pe),gt)},g(Ce)));else {var bt=m||TM;Ge=f__namespace.createElement(ga,Ee({},Pe,gt),typeof bt=="function"?bt(Ce):bt);}var mt=f__namespace.createElement(C,Ee({className:q(!ge&&n,v),style:h,ref:t},y),Le.map(ye),Ne?Ge:null,b&&f__namespace.createElement(ga,Ee({},Pe,{responsive:Je,responsiveDisabled:!$e,order:Te,className:"".concat(Fe,"-suffix"),registerSize:Zt,display:!0,style:fe}),b));return Je&&(mt=f__namespace.createElement(Ri,{onResize:Ye,disabled:!$e},mt)),mt}var Dn=f__namespace.forwardRef(RM);Dn.displayName="Overflow";Dn.Item=Wb;Dn.RESPONSIVE=Bb;Dn.INVALIDATE=Vb;var lp=f__namespace.createContext(null);function cp(e){return e?Array.isArray(e)?e:[e]:[]}function MM(e,t,r,n){return f__namespace.useMemo(function(){var i=cp(r??t),o=cp(n??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function NM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function IM(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Gi(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Xn(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function kM(e,t,r,n,i,o,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=V(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),h=f__namespace.useMemo(function(){return t?_d(t):[]},[t]),v=f__namespace.useRef({}),p=function(){v.current={};};e||p();var m=Qr(function(){if(t&&r&&e){let Lr=function(Li,On){var Di=O.x+Li,di=O.y+On,ji=Di+z,zo=di+G,Ho=Math.max(Di,B.left),Wo=Math.max(di,B.top),zi=Math.min(ji,B.right),Bo=Math.min(zo,B.bottom);return Math.max(0,(zi-Ho)*(Bo-Wo))},pr=function(){gt=O.y+Xe,bt=gt+G,mt=O.x+Oe,pe=mt+z;};var w=t,C=w.style.left,_=w.style.top,S=w.ownerDocument,y=Ja(w),x=D(D({},i[n]),o);w.style.left="0",w.style.top="0";var R;if(Array.isArray(r))R={x:r[0],y:r[1],width:0,height:0};else {var M=r.getBoundingClientRect();R={x:M.x,y:M.y,width:M.width,height:M.height};}var O=w.getBoundingClientRect(),N=y.getComputedStyle(w),T=N.width,E=N.height,$=S.documentElement,P=$.clientWidth,k=$.clientHeight,I=$.scrollWidth,L=$.scrollHeight,j=$.scrollTop,U=$.scrollLeft,G=O.height,z=O.width,H=R.height,K=R.width,B=x.htmlRegion==="scroll"?{left:-U,top:-j,right:I-U,bottom:L-j}:{left:0,top:0,right:P,bottom:k};B=AM(B,h),w.style.left=C,w.style.top=_;var Z=bl(Math.round(z/parseFloat(T)*1e3)/1e3),ee=bl(Math.round(G/parseFloat(E)*1e3)/1e3);if(Z===0||ee===0||al(r)&&!fc(r))return;var te=x.offset,J=x.targetOffset,ae=te||[],ne=V(ae,2),ke=ne[0],se=ke===void 0?0:ke,de=ne[1],le=de===void 0?0:de,re=J||[],be=V(re,2),Te=be[0],ce=Te===void 0?0:Te,ie=be[1],ue=ie===void 0?0:ie;R.x+=ce,R.y+=ue;var We=x.points||[],Fe=V(We,2),vt=Fe[0],Je=Fe[1],$e=dp(Je),ge=dp(vt),Ne=Gi(R,$e),Le=Gi(O,ge),Ce=D({},x),Oe=Ne.x-Le.x+se,Xe=Ne.y-Le.y+le,it=Lr(Oe,Xe),Ye=Gi(R,["t","l"]),ot=Gi(O,["t","l"]),ir=Gi(R,["b","r"]),Zt=Gi(O,["b","r"]),At=x.overflow||{},me=At.adjustX,fe=At.adjustY,Pe=At.shiftX,ye=At.shiftY,Ge=function(On){return typeof On=="boolean"?On:On>=0},gt,bt,mt,pe;pr();var Be=Ge(fe),Ke=ge[0]===$e[0];if(Be&&ge[0]==="t"&&(bt>B.bottom||v.current.bt)){var _t=Xe;Ke?_t-=G-H:_t=Ye.y-Zt.y-le,Lr(Oe,_t)>=it?(v.current.bt=!0,Xe=_t,Ce.points=[Xn(ge,0),Xn($e,0)]):v.current.bt=!1;}if(Be&&ge[0]==="b"&&(gt=it?(v.current.tb=!0,Xe=St,Ce.points=[Xn(ge,0),Xn($e,0)]):v.current.tb=!1;}var Br=Ge(me),Er=ge[1]===$e[1];if(Br&&ge[1]==="l"&&(pe>B.right||v.current.rl)){var Ot=Oe;Er?Ot-=z-K:Ot=Ye.x-Zt.x-se,Lr(Ot,Xe)>=it?(v.current.rl=!0,Oe=Ot,Ce.points=[Xn(ge,1),Xn($e,1)]):v.current.rl=!1;}if(Br&&ge[1]==="r"&&(mt=it?(v.current.lr=!0,Oe=vr,Ce.points=[Xn(ge,1),Xn($e,1)]):v.current.lr=!1;}pr();var Qt=Pe===!0?0:Pe;typeof Qt=="number"&&(mtB.right&&(Oe-=pe-B.right,R.x>B.right-Qt&&(Oe+=R.x-B.right+Qt)));var je=ye===!0?0:ye;typeof je=="number"&&(gtB.bottom&&(Xe-=bt-B.bottom,R.y>B.bottom-je&&(Xe+=R.y-B.bottom+je)));var Re=O.x+Oe,we=Re+z,at=O.y+Xe,rt=at+G,or=R.x,Me=or+K,_e=R.y,qe=_e+H,Pt=Math.max(Re,or),Jt=Math.min(we,Me),It=(Pt+Jt)/2,$r=It-Re,ui=Math.max(at,_e),Do=Math.min(rt,qe),jo=(ui+Do)/2,qn=jo-at;a==null||a(t,Ce),u({ready:!0,offsetX:Oe/Z,offsetY:Xe/ee,arrowX:$r/Z,arrowY:qn/ee,scaleX:Z,scaleY:ee,align:Ce});}}),g=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&m();});},b=function(){u(function(C){return D(D({},C),{},{ready:!1})});};return Wt(b,[n]),Wt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function FM(e,t,r,n){Wt(function(){if(e&&t&&r){let u=function(){n();};var i=t,o=r,a=_d(i),s=_d(o),l=Ja(o),c=new Set([l].concat(oe(a),oe(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,r]);}function LM(e){var t=e.prefixCls,r=e.align,n=e.arrowX,i=n===void 0?0:n,o=e.arrowY,a=o===void 0?0:o,s=f__namespace.useRef();if(!r||!r.points)return null;var l={position:"absolute"};if(r.autoArrow!==!1){var c=r.points[0],u=r.points[1],d=c[0],h=c[1],v=u[0],p=u[1];d===v||!["t","b"].includes(d)?l.top=a:d==="t"?l.top=0:l.bottom=0,h===p||!["l","r"].includes(h)?l.left=i:h==="l"?l.left=0:l.right=0;}return f__namespace.createElement("div",{ref:s,className:"".concat(t,"-arrow"),style:l})}function DM(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?React.createElement(_n,Ee({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return React.createElement("div",{style:{zIndex:n},className:q("".concat(t,"-mask"),s)})}):null}var jM=f__namespace.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,h=e.arrow,v=e.align,p=e.arrowX,m=e.arrowY,g=e.motion,b=e.maskMotion,w=e.forceRender,C=e.getPopupContainer,_=e.autoDestroy,S=e.portal,y=e.zIndex,x=e.onMouseEnter,R=e.onMouseLeave,M=e.ready,O=e.offsetX,N=e.offsetY,T=e.onAlign,E=e.onPrepare,$=e.stretch,P=e.targetWidth,k=e.targetHeight,I=typeof r=="function"?r():r,L=l||c,j=(C==null?void 0:C.length)>0,U=f__namespace.useState(!C||!j),G=V(U,2),z=G[0],H=G[1];if(Wt(function(){!z&&j&&a&&H(!0);},[z,j,a]),!z)return null;var K=M||!l?{left:O,top:N}:{left:"-1000vw",top:"-1000vh"},B={};return $&&($.includes("height")&&k?B.height=k:$.includes("minHeight")&&k&&(B.minHeight=k),$.includes("width")&&P?B.width=P:$.includes("minWidth")&&P&&(B.minWidth=P)),l||(B.pointerEvents="none"),f__namespace.createElement(S,{open:w||L,getContainer:C&&function(){return C(a)},autoDestroy:_},f__namespace.createElement(DM,{prefixCls:i,open:l,zIndex:y,mask:d,motion:b}),f__namespace.createElement(Ri,{onResize:T,disabled:!l},function(Z){return f__namespace.createElement(_n,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:E,onEnterPrepare:E,visible:l,onVisibleChanged:function(te){var J;g==null||(J=g.onVisibleChanged)===null||J===void 0||J.call(g,te),s(te);}}),function(ee,te){var J=ee.className,ae=ee.style,ne=q(i,J,n);return f__namespace.createElement("div",{ref:Gn(Z,t,te),className:ne,style:D(D(D(D({},K),B),ae),{},{boxSizing:"border-box",zIndex:y},o),onMouseEnter:x,onMouseLeave:R,onClick:u},h&&f__namespace.createElement(LM,{prefixCls:i,align:v,arrowX:p,arrowY:m}),I)})}))}),zM=f__namespace.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Io(r),o=f__namespace.useCallback(function(s){Cf(t,n?n(s):s);},[n]),a=ec(o,r.ref);return i?f__namespace.cloneElement(r,{ref:a}):r}),HM=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function WM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zb,t=f__namespace.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,h=r.defaultPopupVisible,v=r.onPopupVisibleChange,p=r.afterPopupVisibleChange,m=r.mouseEnterDelay,g=r.mouseLeaveDelay,b=g===void 0?.1:g,w=r.focusDelay,C=r.blurDelay,_=r.mask,S=r.maskClosable,y=S===void 0?!0:S,x=r.getPopupContainer,R=r.forceRender,M=r.autoDestroy,O=r.destroyPopupOnHide,N=r.popup,T=r.popupClassName,E=r.popupStyle,$=r.popupPlacement,P=r.builtinPlacements,k=P===void 0?{}:P,I=r.popupAlign,L=r.zIndex,j=r.stretch,U=r.getPopupClassNameFromAlign,G=r.alignPoint,z=r.onPopupClick,H=r.onPopupAlign,K=r.arrow,B=r.popupMotion,Z=r.maskMotion,ee=r.popupTransitionName,te=r.popupAnimation,J=r.maskTransitionName,ae=r.maskAnimation,ne=r.className,ke=r.getTriggerDOMNode,se=Qe(r,HM),de=M||O||!1,le=f__namespace.useState(!1),re=V(le,2),be=re[0],Te=re[1];Wt(function(){Te(vc());},[]);var ce=f__namespace.useRef({}),ie=f__namespace.useContext(lp),ue=f__namespace.useMemo(function(){return {registerSubPopup:function(De,dt){ce.current[De]=dt,ie==null||ie.registerSubPopup(De,dt);}}},[ie]),We=qR(),Fe=f__namespace.useState(null),vt=V(Fe,2),Je=vt[0],$e=vt[1],ge=Qr(function(he){al(he)&&Je!==he&&$e(he),ie==null||ie.registerSubPopup(We,he);}),Ne=f__namespace.useState(null),Le=V(Ne,2),Ce=Le[0],Oe=Le[1],Xe=Qr(function(he){al(he)&&Ce!==he&&Oe(he);}),it=f__namespace.Children.only(a),Ye=(it==null?void 0:it.props)||{},ot={},ir=Qr(function(he){var De,dt,Ct=Ce;return (Ct==null?void 0:Ct.contains(he))||(Ct==null||(De=Ct.getRootNode())===null||De===void 0?void 0:De.host)===he||he===Ct||(Je==null?void 0:Je.contains(he))||(Je==null||(dt=Je.getRootNode())===null||dt===void 0?void 0:dt.host)===he||he===Je||Object.values(ce.current).some(function(Rt){return (Rt==null?void 0:Rt.contains(he))||he===Rt})}),Zt=up(o,B,te,ee),At=up(o,Z,ae,J),me=f__namespace.useState(h||!1),fe=V(me,2),Pe=fe[0],ye=fe[1],Ge=d??Pe,gt=Qr(function(he){d===void 0&&ye(he);});Wt(function(){ye(d||!1);},[d]);var bt=f__namespace.useRef(Ge);bt.current=Ge;var mt=Qr(function(he){Ge!==he&&(gt(he),v==null||v(he));}),pe=f__namespace.useRef(),Be=function(){clearTimeout(pe.current);},Ke=function(De){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Be(),dt===0?mt(De):pe.current=setTimeout(function(){mt(De);},dt*1e3);};f__namespace.useEffect(function(){return Be},[]);var _t=f__namespace.useState(!1),St=V(_t,2),Br=St[0],Er=St[1],Ot=f__namespace.useRef(!0);Wt(function(){(!Ot.current||Ge)&&Er(!0),Ot.current=!0;},[Ge]);var vr=f__namespace.useState(null),Qt=V(vr,2),je=Qt[0],Re=Qt[1],we=f__namespace.useState([0,0]),at=V(we,2),rt=at[0],or=at[1],Me=function(De){or([De.clientX,De.clientY]);},_e=kM(Ge,Je,G?rt:Ce,$,k,I,H),qe=V(_e,9),Pt=qe[0],Jt=qe[1],It=qe[2],$r=qe[3],ui=qe[4],Do=qe[5],jo=qe[6],qn=qe[7],Lr=qe[8],pr=Qr(function(){Br||Lr();});FM(Ge,Ce,Je,pr),Wt(function(){pr();},[rt]),Wt(function(){Ge&&!(k!=null&&k[$])&&pr();},[JSON.stringify(I)]);var Li=f__namespace.useMemo(function(){var he=IM(k,o,qn,G);return q(he,U==null?void 0:U(qn))},[qn,U,k,o,G]);f__namespace.useImperativeHandle(n,function(){return {forceAlign:pr}});var On=function(De){Er(!1),Lr(),p==null||p(De);},Di=function(){return new Promise(function(De){Re(function(){return De});})};Wt(function(){je&&(Lr(),je(),Re(null));},[je]);var di=f__namespace.useState(0),ji=V(di,2),zo=ji[0],Ho=ji[1],Wo=f__namespace.useState(0),zi=V(Wo,2),Bo=zi[0],Tt=zi[1],ut=function(De,dt){if(pr(),j){var Ct=dt.getBoundingClientRect();Ho(Ct.width),Tt(Ct.height);}},yt=MM(be,l,c,u),er=V(yt,2),qt=er[0],Dr=er[1],rn=function(De,dt,Ct,Rt){ot[De]=function(cs){var Hi;Rt==null||Rt(cs),Ke(dt,Ct);for(var Ic=arguments.length,Ph=new Array(Ic>1?Ic-1:0),us=1;us1?dt-1:0),Rt=1;Rt1?dt-1:0),Rt=1;Rtt||e;var UM={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 GM=UM;var Ub=function(t,r){return f__namespace.createElement(ko,D(D({},t),{},{ref:r,icon:GM}))};Ub.displayName="DownOutlined";const KM=f__namespace.forwardRef(Ub);var Ki={shiftX:64,adjustY:1},qi={adjustX:1,shiftY:!0},zr=[0,0],qM={left:{points:["cr","cl"],overflow:qi,offset:[-4,0],targetOffset:zr},right:{points:["cl","cr"],overflow:qi,offset:[4,0],targetOffset:zr},top:{points:["bc","tc"],overflow:Ki,offset:[0,-4],targetOffset:zr},bottom:{points:["tc","bc"],overflow:Ki,offset:[0,4],targetOffset:zr},topLeft:{points:["bl","tl"],overflow:Ki,offset:[0,-4],targetOffset:zr},leftTop:{points:["tr","tl"],overflow:qi,offset:[-4,0],targetOffset:zr},topRight:{points:["br","tr"],overflow:Ki,offset:[0,-4],targetOffset:zr},rightTop:{points:["tl","tr"],overflow:qi,offset:[4,0],targetOffset:zr},bottomRight:{points:["tr","br"],overflow:Ki,offset:[0,4],targetOffset:zr},rightBottom:{points:["bl","br"],overflow:qi,offset:[4,0],targetOffset:zr},bottomLeft:{points:["tl","bl"],overflow:Ki,offset:[0,4],targetOffset:zr},leftBottom:{points:["br","bl"],overflow:qi,offset:[-4,0],targetOffset:zr}};function Gb(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return f__namespace.createElement("div",{className:q("".concat(r,"-content"),o),style:a},f__namespace.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var XM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],YM=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,v=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,w=t.motion,C=t.placement,_=C===void 0?"right":C,S=t.align,y=S===void 0?{}:S,x=t.destroyTooltipOnHide,R=x===void 0?!1:x,M=t.defaultVisible,O=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,E=t.id,$=t.showArrow,P=$===void 0?!0:$,k=Qe(t,XM),I=f.useRef(null);f.useImperativeHandle(r,function(){return I.current});var L=D({},k);"visible"in t&&(L.popupVisible=t.visible);var j=function(){return f__namespace.createElement(Gb,{key:"content",prefixCls:h,id:E,overlayInnerStyle:N},T)};return f__namespace.createElement(BM,Ee({popupClassName:n,prefixCls:h,popup:j,action:o,builtinPlacements:qM,popupPlacement:_,ref:I,popupAlign:y,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:w,defaultPopupVisible:M,autoDestroy:R,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:P},L),v)};const ZM=f.forwardRef(YM),Yn=(e,t)=>new cr(e).setAlpha(t).toRgbString(),Xi=(e,t)=>new cr(e).lighten(t).toHexString(),QM=e=>{const t=Hn(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]}},JM=(e,t)=>{const r=e||"#000",n=t||"#fff";return {colorBgBase:r,colorTextBase:n,colorText:Yn(n,.85),colorTextSecondary:Yn(n,.65),colorTextTertiary:Yn(n,.45),colorTextQuaternary:Yn(n,.25),colorFill:Yn(n,.18),colorFillSecondary:Yn(n,.12),colorFillTertiary:Yn(n,.08),colorFillQuaternary:Yn(n,.04),colorBgElevated:Xi(r,12),colorBgContainer:Xi(r,8),colorBgLayout:Xi(r,0),colorBgSpotlight:Xi(r,26),colorBorder:Xi(r,26),colorBorderSecondary:Xi(r,19)}},eN=(e,t)=>{const r=Object.keys(Rf).map(i=>{const o=Hn(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${i}-${l+1}`]=o[l],a[`${i}${l+1}`]=o[l],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),n=t??ac(e);return Object.assign(Object.assign(Object.assign({},n),r),rb(e,{generateColorPalettes:QM,generateNeutralColorPalettes:JM}))},tN=eN;function rN(e){const{sizeUnit:t,sizeStep:r}=e,n=r-2;return {sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}const nN=(e,t)=>{const r=t??ac(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),rN(t??e)),nb(n)),{controlHeight:i}),tb(Object.assign(Object.assign({},r),{controlHeight:i})))},iN=nN;function oN(){const[e,t,r]=lc();return {theme:e,token:t,hashId:r}}const Od={defaultConfig:hl,defaultSeed:hl.token,useToken:oN,defaultAlgorithm:ac,darkAlgorithm:tN,compactAlgorithm:iN},Kb=8;function qb(e){const t=Kb,{contentRadius:r,limitVerticalRadius:n}=e,i=r>12?r+2:12;return {dropdownArrowOffset:i,dropdownArrowOffsetVertical:n?t:i}}function _s(e,t){return e?t:{}}function aN(e,t){const{componentCls:r,sizePopupArrow:n,borderRadiusXS:i,borderRadiusOuter:o,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:v}=qb({contentRadius:l,limitVerticalRadius:c});return {[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},LP(n,i,o,s,a)),{"&:before":{background:s}})]},_s(!!d.top,{[[`&-placement-top ${r}-arrow`,`&-placement-topLeft ${r}-arrow`,`&-placement-topRight ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-topRight ${r}-arrow`]:{right:{_skip_check_:!0,value:v}}})),_s(!!d.bottom,{[[`&-placement-bottom ${r}-arrow`,`&-placement-bottomLeft ${r}-arrow`,`&-placement-bottomRight ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-bottomRight ${r}-arrow`]:{right:{_skip_check_:!0,value:v}}})),_s(!!d.left,{[[`&-placement-left ${r}-arrow`,`&-placement-leftTop ${r}-arrow`,`&-placement-leftBottom ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${r}-arrow`]:{top:h},[`&-placement-leftBottom ${r}-arrow`]:{bottom:h}})),_s(!!d.right,{[[`&-placement-right ${r}-arrow`,`&-placement-rightTop ${r}-arrow`,`&-placement-rightBottom ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${r}-arrow`]:{top:h},[`&-placement-rightBottom ${r}-arrow`]:{bottom:h}}))}}function sN(e,t,r,n){if(n===!1)return {adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.dropdownArrowOffset*2+r;break;case"left":case"right":o.shiftY=t.dropdownArrowOffsetVertical*2+r;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const fp={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"]}},lN={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"]}},cN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function uN(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=t/2,s={};return Object.keys(fp).forEach(l=>{const c=n&&lN[l]||fp[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,cN.has(l)&&(u.autoArrow=!1),l){case"top":case"topLeft":case"topRight":u.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+i;break}const d=qb({contentRadius:o,limitVerticalRadius:!0});if(n)switch(l){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+a;break}u.overflow=sN(l,d,t,r);}),s}const dN=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(o,Kb)}},[`${t}-content`]:{position:"relative"}}),sb(e,(h,v)=>{let{darkColor:p}=v;return {[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},aN(hr(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Xb=(e,t)=>$n("Tooltip",n=>{if(t===!1)return [];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=n,l=hr(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [dN(l),yM(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=n;return {zIndexPopup:i+70,colorBgDefault:o}})(e),fN=fl.map(e=>`${e}-inverse`),hN=["success","processing","error","default","warning"];function Yb(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(oe(fN),oe(fl)).includes(e):fl.includes(e)}function vN(e){return hN.includes(e)}function Zb(e,t){const r=Yb(t),n=q({[`${e}-${t}`]:t&&r}),i={},o={};return t&&!r&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}function pN(e){const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(jt),l=s("tooltip",t),[c,u]=Xb(l,!0),d=Zb(l,o),h=Object.assign(Object.assign({},a),d.overlayStyle),v=d.arrowStyle;return c(f__namespace.createElement("div",{className:q(u,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className),style:v},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(Gb,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),i)))}var mN=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const r={},n=Object.assign({},e);return t.forEach(i=>{e&&i in e&&(r[i]=e[i],delete n[i]);}),{picked:r,omitted:n}};function yN(e,t){const r=e.type;if((r.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||r.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||r.__ANT_RADIO===!0&&e.props.disabled){const{picked:n,omitted:i}=bN(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},i),{pointerEvents:"none"}),s=_o(e,{style:a,className:null});return f__namespace.createElement("span",{style:o,className:q(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const Qb=f__namespace.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:v,arrow:p=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:w=!1,autoAdjustOverflow:C=!0}=e,_=!!p,{token:S}=gN(),{getPopupContainer:y,getPrefixCls:x,direction:R}=f__namespace.useContext(jt),M=f__namespace.useRef(null),O=()=>{var ce;(ce=M.current)===null||ce===void 0||ce.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:O,forcePopupAlign:()=>{O();}}));const[N,T]=mn(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),E=!m&&!g&&m!==0,$=ce=>{var ie,ue;T(E?!1:ce),E||((ie=e.onOpenChange)===null||ie===void 0||ie.call(e,ce),(ue=e.onVisibleChange)===null||ue===void 0||ue.call(e,ce));},P=f__namespace.useMemo(()=>{var ce,ie;let ue=w;return typeof p=="object"&&(ue=(ie=(ce=p.pointAtCenter)!==null&&ce!==void 0?ce:p.arrowPointAtCenter)!==null&&ie!==void 0?ie:w),b||uN({arrowPointAtCenter:ue,autoAdjustOverflow:C,arrowWidth:_?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS})},[w,p,b,S]),k=(ce,ie)=>{const ue=Object.keys(P).find(We=>{var Fe,vt;return P[We].points[0]===((Fe=ie.points)===null||Fe===void 0?void 0:Fe[0])&&P[We].points[1]===((vt=ie.points)===null||vt===void 0?void 0:vt[1])});if(ue){const We=ce.getBoundingClientRect(),Fe={top:"50%",left:"50%"};/top|Bottom/.test(ue)?Fe.top=`${We.height-ie.offset[1]}px`:/Top|bottom/.test(ue)&&(Fe.top=`${-ie.offset[1]}px`),/left|Right/.test(ue)?Fe.left=`${We.width-ie.offset[0]}px`:/right|Left/.test(ue)&&(Fe.left=`${-ie.offset[0]}px`),ce.style.transformOrigin=`${Fe.left} ${Fe.top}`;}},I=f__namespace.useMemo(()=>m===0?m:g||m||"",[g,m]),L=f__namespace.createElement(xd,null,typeof I=="function"?I():I),{getPopupContainer:j,placement:U="top",mouseEnterDelay:G=.1,mouseLeaveDelay:z=.1,overlayStyle:H,rootClassName:K}=e,B=mN(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Z=x("tooltip",i),ee=x(),te=e["data-popover-inject"];let J=N;!("open"in e)&&!("visible"in e)&&E&&(J=!1);const ae=yN(kf(u)&&!Pb(u)?u:f__namespace.createElement("span",null,u),Z),ne=ae.props,ke=!ne.className||typeof ne.className=="string"?q(ne.className,{[o||`${Z}-open`]:!0}):ne.className,[se,de]=Xb(Z,!te),le=Zb(Z,l),re=Object.assign(Object.assign({},c),le.overlayStyle),be=le.arrowStyle,Te=q(s,{[`${Z}-rtl`]:R==="rtl"},le.className,K,de);return se(f__namespace.createElement(ZM,Object.assign({},B,{showArrow:_,placement:U,mouseEnterDelay:G,mouseLeaveDelay:z,prefixCls:Z,overlayClassName:Te,overlayStyle:Object.assign(Object.assign({},be),H),getTooltipContainer:j||a||y,ref:M,builtinPlacements:P,overlay:L,visible:J,onVisibleChange:$,afterVisibleChange:d??h,onPopupAlign:k,overlayInnerStyle:re,arrowContent:f__namespace.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:Db(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),J?_o(ae,{className:ke}):ae))});Qb._InternalPanelDoNotUseOrYouWillBeFired=pN;const jf=Qb;var wN=f.forwardRef(function(e,t){var r=e.didUpdate,n=e.getContainer,i=e.children,o=f.useRef(),a=f.useRef();f.useImperativeHandle(t,function(){return {}});var s=f.useRef(!1);return !s.current&&yr()&&(a.current=n(),o.current=a.current.parentNode,s.current=!0),f.useEffect(function(){r==null||r(e);}),f.useEffect(function(){return a.current.parentNode===null&&o.current!==null&&o.current.appendChild(a.current),function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current);}},[]),a.current?yo.createPortal(i,a.current):null});function SN(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function CN(e,t,r){var n=e[t]||{};return D(D({},n),r)}function xN(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function KN(e,t,r,n){var i=Ie.clone(e),o={width:t.width,height:t.height};return n.adjustX&&i.left=r.left&&i.left+o.width>r.right&&(o.width-=i.left+o.width-r.right),n.adjustX&&i.left+o.width>r.right&&(i.left=Math.max(r.right-o.width,r.left)),n.adjustY&&i.top=r.top&&i.top+o.height>r.bottom&&(o.height-=i.top+o.height-r.bottom),n.adjustY&&i.top+o.height>r.bottom&&(i.top=Math.max(r.bottom-o.height,r.top)),Ie.mix(i,o)}function Bf(e){var t,r,n;if(!Ie.isWindow(e)&&e.nodeType!==9)t=Ie.offset(e),r=Ie.outerWidth(e),n=Ie.outerHeight(e);else {var i=Ie.getWindow(e);t={left:Ie.getWindowScrollLeft(i),top:Ie.getWindowScrollTop(i)},r=Ie.viewportWidth(i),n=Ie.viewportHeight(i);}return t.width=r,t.height=n,t}function Cp(e,t){var r=t.charAt(0),n=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return r==="c"?s+=o/2:r==="b"&&(s+=o),n==="c"?a+=i/2:n==="r"&&(a+=i),{left:a,top:s}}function Ps(e,t,r,n,i){var o=Cp(t,r[1]),a=Cp(e,r[0]),s=[a.left-o.left,a.top-o.top];return {left:Math.round(e.left-s[0]+n[0]-i[0]),top:Math.round(e.top-s[1]+n[1]-i[1])}}function xp(e,t,r){return e.leftr.right}function Ep(e,t,r){return e.topr.bottom}function qN(e,t,r){return e.left>r.right||e.left+t.widthr.bottom||e.top+t.height=r.right||n.top>=r.bottom}function Vf(e,t,r){var n=r.target||t,i=Bf(n),o=!YN(n,r.overflow&&r.overflow.alwaysByViewport);return s0(e,i,r,o)}Vf.__getOffsetParent=Md;Vf.__getVisibleRectForElement=Wf;function ZN(e,t,r){var n,i,o=Ie.getDocument(e),a=o.defaultView||o.parentWindow,s=Ie.getWindowScrollLeft(a),l=Ie.getWindowScrollTop(a),c=Ie.viewportWidth(a),u=Ie.viewportHeight(a);"pageX"in t?n=t.pageX:n=s+t.clientX,"pageY"in t?i=t.pageY:i=l+t.clientY;var d={left:n,top:i,width:0,height:0},h=n>=0&&n<=s+c&&i>=0&&i<=l+u,v=[r.points[0],"cc"];return s0(e,d,vp(vp({},r),{},{points:v}),h)}const QN=function(e,t){var r=f.useRef(!1),n=f.useRef(null);function i(){window.clearTimeout(n.current);}function o(a){if(i(),!r.current||a===!0){if(e(a)===!1)return;r.current=!0,n.current=window.setTimeout(function(){r.current=!1;},t);}else n.current=window.setTimeout(function(){r.current=!1,o();},t);}return [o,function(){r.current=!1,i();}]};function JN(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function e2(e,t){e!==document.activeElement&&da(t,e)&&typeof e.focus=="function"&&e.focus();}function Op(e,t){var r=null,n=null;function i(a){var s=V(a,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),u=c.width,d=c.height,h=Math.floor(u),v=Math.floor(d);(r!==h||n!==v)&&Promise.resolve().then(function(){t({width:h,height:v});}),r=h,n=v;}}var o=new Pg(i);return e&&o.observe(e),function(){o.disconnect();}}function Pp(e){return typeof e!="function"?null:e()}function Tp(e){return nt(e)!=="object"||!e?null:e}var t2=function(t,r){var n=t.children,i=t.disabled,o=t.target,a=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,u=c===void 0?0:c,d=f.useRef({}),h=f.useRef(),v=f.Children.only(n),p=f.useRef({});p.current.disabled=i,p.current.target=o,p.current.align=a,p.current.onAlign=s;var m=QN(function(){var N=p.current,T=N.disabled,E=N.target,$=N.align,P=N.onAlign,k=h.current;if(!T&&E&&k){var I,L=Pp(E),j=Tp(E);d.current.element=L,d.current.point=j,d.current.align=$;var U=document,G=U.activeElement;return L&&fc(L)?I=Vf(k,L,$):j&&(I=ZN(k,j,$)),e2(G,k),P&&I&&P(k,I),!0}return !1},u),g=V(m,2),b=g[0],w=g[1],C=f.useState(),_=V(C,2),S=_[0],y=_[1],x=f.useState(),R=V(x,2),M=R[0],O=R[1];return Wt(function(){y(Pp(o)),O(Tp(o));}),f.useEffect(function(){(d.current.element!==S||!JN(d.current.point,M)||!qa(d.current.align,a))&&b();}),f.useEffect(function(){var N=Op(h.current,b);return N},[h.current]),f.useEffect(function(){var N=Op(S,b);return N},[S]),f.useEffect(function(){i?w():b();},[i]),f.useEffect(function(){if(l){var N=ia(window,"resize",b);return N.remove}},[l]),f.useEffect(function(){return function(){w();}},[]),f.useImperativeHandle(r,function(){return {forceAlign:function(){return b(!0)}}}),f.isValidElement(v)&&(v=f.cloneElement(v,{ref:Gn(v.ref,h)})),v},l0=f.forwardRef(t2);l0.displayName="Align";var Rp=["measure","alignPre","align",null,"motion"];const r2=function(e,t){var r=_i(null),n=V(r,2),i=n[0],o=n[1],a=f.useRef();function s(u){o(u,!0);}function l(){Nt.cancel(a.current);}function c(u){l(),a.current=Nt(function(){s(function(d){switch(i){case"align":return "motion";case"motion":return "stable"}return d}),u==null||u();});}return f.useEffect(function(){s("measure");},[e]),f.useEffect(function(){switch(i){case"measure":t();break}i&&(a.current=Nt(Ii(fr().mark(function u(){var d,h;return fr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:d=Rp.indexOf(i),h=Rp[d+1],h&&d!==-1&&s(h);case 3:case"end":return p.stop()}},u)}))));},[i]),f.useEffect(function(){return function(){l();}},[]),[i,c]},n2=function(e){var t=f__namespace.useState({width:0,height:0}),r=V(t,2),n=r[0],i=r[1];function o(s){var l=s.offsetWidth,c=s.offsetHeight,u=s.getBoundingClientRect(),d=u.width,h=u.height;Math.abs(l-d)<1&&Math.abs(c-h)<1&&(l=d,c=h),i({width:l,height:c});}var a=f__namespace.useMemo(function(){var s={};if(e){var l=n.width,c=n.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l);}return s},[e,n]);return [a,o]};var c0=f__namespace.forwardRef(function(e,t){var r=e.visible,n=e.prefixCls,i=e.className,o=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,v=e.getRootDomNode,p=e.getClassNameFromAlign,m=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,w=e.onMouseDown,C=e.onTouchStart,_=e.onClick,S=f.useRef(),y=f.useRef(),x=f.useState(),R=V(x,2),M=R[0],O=R[1],N=n2(l),T=V(N,2),E=T[0],$=T[1];function P(){l&&$(v());}var k=r2(r,P),I=V(k,2),L=I[0],j=I[1],U=f.useState(0),G=V(U,2),z=G[0],H=G[1],K=f.useRef();Wt(function(){L==="alignPre"&&H(0);},[L]);function B(){return h||v}function Z(){var se;(se=S.current)===null||se===void 0||se.forceAlign();}function ee(se,de){var le=p(de);M!==le&&O(le),H(function(re){return re+1}),L==="align"&&(m==null||m(se,de));}Wt(function(){L==="align"&&(z<3?Z():j(function(){var se;(se=K.current)===null||se===void 0||se.call(K);}));},[z]);var te=D({},Jb(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(se){var de=te[se];te[se]=function(le,re){return j(),de==null?void 0:de(le,re)};});function J(){return new Promise(function(se){K.current=se;})}f__namespace.useEffect(function(){!te.motionName&&L==="motion"&&j();},[te.motionName,L]),f__namespace.useImperativeHandle(t,function(){return {forceAlign:Z,getElement:function(){return y.current}}});var ae=D(D({},E),{},{zIndex:s,opacity:L==="motion"||L==="stable"||!r?void 0:0,pointerEvents:!r&&L!=="stable"?"none":void 0},o),ne=!0;d!=null&&d.points&&(L==="align"||L==="stable")&&(ne=!1);var ke=a;return f__namespace.Children.count(a)>1&&(ke=f__namespace.createElement("div",{className:"".concat(n,"-content")},a)),f__namespace.createElement(_n,Ee({visible:r,ref:y,leavedClassName:"".concat(n,"-hidden")},te,{onAppearPrepare:J,onEnterPrepare:J,removeOnLeave:c,forceRender:u}),function(se,de){var le=se.className,re=se.style,be=q(n,i,M,le);return f__namespace.createElement(l0,{target:B(),key:"popup",ref:S,monitorWindowResize:!0,disabled:ne,align:d,onAlign:ee},f__namespace.createElement("div",{ref:de,className:be,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:w,onTouchStartCapture:C,onClick:_,style:D(D({},re),ae)},ke))})});c0.displayName="PopupInner";var u0=f__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.visible,i=e.zIndex,o=e.children,a=e.mobile;a=a===void 0?{}:a;var s=a.popupClassName,l=a.popupStyle,c=a.popupMotion,u=c===void 0?{}:c,d=a.popupRender,h=e.onClick,v=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {forceAlign:function(){},getElement:function(){return v.current}}});var p=D({zIndex:i},l),m=o;return f__namespace.Children.count(o)>1&&(m=f__namespace.createElement("div",{className:"".concat(r,"-content")},o)),d&&(m=d(m)),f__namespace.createElement(_n,Ee({visible:n,ref:v,removeOnLeave:!0},u),function(g,b){var w=g.className,C=g.style,_=q(r,s,w);return f__namespace.createElement("div",{ref:b,className:_,onClick:h,style:D(D({},C),p)},m)})});u0.displayName="MobilePopupInner";var i2=["visible","mobile"],d0=f__namespace.forwardRef(function(e,t){var r=e.visible,n=e.mobile,i=Qe(e,i2),o=f.useState(r),a=V(o,2),s=a[0],l=a[1],c=f.useState(!1),u=V(c,2),d=u[0],h=u[1],v=D(D({},i),{},{visible:s});f.useEffect(function(){l(r),r&&n&&h(vc());},[r,n]);var p=d?f__namespace.createElement(u0,Ee({},v,{mobile:n,ref:t})):f__namespace.createElement(c0,Ee({},v,{ref:t}));return f__namespace.createElement("div",null,f__namespace.createElement(EN,v),p)});d0.displayName="Popup";var Mp=f__namespace.createContext(null);function pu(){}function o2(){return ""}function a2(e){return e?e.ownerDocument:window.document}var s2=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function l2(e){var t=function(r){Mo(i,r);var n=No(i);function i(o){var a;Sr(this,i),a=n.call(this,o),W(He(a),"popupRef",f__namespace.createRef()),W(He(a),"triggerRef",f__namespace.createRef()),W(He(a),"portalContainer",void 0),W(He(a),"attachId",void 0),W(He(a),"clickOutsideHandler",void 0),W(He(a),"touchOutsideHandler",void 0),W(He(a),"contextMenuOutsideHandler1",void 0),W(He(a),"contextMenuOutsideHandler2",void 0),W(He(a),"mouseDownTimeout",void 0),W(He(a),"focusTime",void 0),W(He(a),"preClickTime",void 0),W(He(a),"preTouchTime",void 0),W(He(a),"delayTimer",void 0),W(He(a),"hasPopupMouseDown",void 0),W(He(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l);}),W(He(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l);}),W(He(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),W(He(a),"onPopupMouseEnter",function(){a.clearDelayTimer();}),W(He(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&da((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),W(He(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay));}),W(He(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now();}),W(He(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now();}),W(He(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay);}),W(He(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l);}),W(He(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close();}),W(He(a),"onClick",function(l){if(a.fireEvents("onClick",l),a.focusTime){var c;if(a.preClickTime&&a.preTouchTime?c=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?c=a.preClickTime:a.preTouchTime&&(c=a.preTouchTime),Math.abs(c-a.focusTime)<20)return;a.focusTime=0;}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var u=!a.state.popupVisible;(a.isClickToHide()&&!u||u&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,l);}),W(He(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1;},0),a.context){var l;(l=a.context).onPopupMouseDown.apply(l,arguments);}}),W(He(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!da(u,c)||a.isContextMenuOnly())&&!da(d,c)&&!a.hasPopupMouseDown&&a.close();}}),W(He(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=sl(a.triggerRef.current);if(c)return c}catch{}return yo.findDOMNode(He(a))}),W(He(a),"getPopupClassNameFromAlign",function(l){var c=[],u=a.props,d=u.popupPlacement,h=u.builtinPlacements,v=u.prefixCls,p=u.alignPoint,m=u.getPopupClassNameFromAlign;return d&&h&&c.push(xN(h,v,l,p)),m&&c.push(m(l)),c.join(" ")}),W(He(a),"getComponent",function(){var l=a.props,c=l.prefixCls,u=l.destroyPopupOnHide,d=l.popupClassName,h=l.onPopupAlign,v=l.popupMotion,p=l.popupAnimation,m=l.popupTransitionName,g=l.popupStyle,b=l.mask,w=l.maskAnimation,C=l.maskTransitionName,_=l.maskMotion,S=l.zIndex,y=l.popup,x=l.stretch,R=l.alignPoint,M=l.mobile,O=l.forceRender,N=l.onPopupClick,T=a.state,E=T.popupVisible,$=T.point,P=a.getPopupAlign(),k={};return a.isMouseEnterToShow()&&(k.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(k.onMouseLeave=a.onPopupMouseLeave),k.onMouseDown=a.onPopupMouseDown,k.onTouchStart=a.onPopupMouseDown,f__namespace.createElement(d0,Ee({prefixCls:c,destroyPopupOnHide:u,visible:E,point:R&&$,className:d,align:P,onAlign:h,animation:p,getClassNameFromAlign:a.getPopupClassNameFromAlign},k,{stretch:x,getRootDomNode:a.getRootDomNode,style:g,mask:b,zIndex:S,transitionName:m,maskAnimation:w,maskTransitionName:C,maskMotion:_,ref:a.popupRef,motion:v,mobile:M,forceRender:O,onClick:N}),typeof y=="function"?y():y)}),W(He(a),"attachParent",function(l){Nt.cancel(a.attachId);var c=a.props,u=c.getPopupContainer,d=c.getDocument,h=a.getRootDomNode(),v;u?(h||u.length===0)&&(v=u(h)):v=d(a.getRootDomNode()).body,v?v.appendChild(l):a.attachId=Nt(function(){a.attachParent(l);});}),W(He(a),"getContainer",function(){if(!a.portalContainer){var l=a.props.getDocument,c=l(a.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",a.portalContainer=c;}return a.attachParent(a.portalContainer),a.portalContainer}),W(He(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}});}),W(He(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible);}),W(He(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return "popupVisible"in o?s=!!o.popupVisible:s=!!o.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},s2.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c);};}),a}return Cr(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate();}},{key:"componentDidUpdate",value:function(){var a=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=ia(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=ia(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=ia(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=ia(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler();}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Nt.cancel(this.attachId);}},{key:"getPopupDomNode",value:function(){var a;return ((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,s=a.popupPlacement,l=a.popupAlign,c=a.builtinPlacements;return s&&c?CN(c,s,l):l}},{key:"setPopupVisible",value:function(a,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:c}),this.props.onPopupVisibleChange(a)),l&&s&&a&&this.setPoint(s);}},{key:"delaySetPopupVisible",value:function(a,s,l){var c=this,u=s*1e3;if(this.clearDelayTimer(),u){var d=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(a,d),c.clearDelayTimer();},u);}else this.setPopupVisible(a,l);}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null);}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null);}},{key:"createTwoChains",value:function(a){var s=this.props.children.props,l=this.props;return s[a]&&l[a]?this["fire".concat(a)]:s[a]||l[a]}},{key:"isClickToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign();}}},{key:"fireEvents",value:function(a,s){var l=this.props.children.props[a];l&&l(s);var c=this.props[a];c&&c(s);}},{key:"close",value:function(){this.setPopupVisible(!1);}},{key:"render",value:function(){var a=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,u=s.alignPoint,d=s.className,h=s.autoDestroy,v=f__namespace.Children.only(l),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,u&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var m=q(v&&v.props&&v.props.className,d);m&&(p.className=m);var g=D({},p);Io(v)&&(g.ref=Gn(this.triggerRef,v.ref));var b=f__namespace.cloneElement(v,g),w;return (a||this.popupRef.current||c)&&(w=f__namespace.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(w=null),f__namespace.createElement(Mp.Provider,{value:this.triggerContextValue},b,w)}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),i}(f__namespace.Component);return W(t,"contextType",Mp),W(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:o2,getDocument:a2,onPopupVisibleChange:pu,afterPopupVisibleChange:pu,onPopupAlign:pu,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const f0=l2(wN);var Yi={adjustX:1,adjustY:1},Zi=[0,0],c2={topLeft:{points:["bl","tl"],overflow:Yi,offset:[0,-4],targetOffset:Zi},topCenter:{points:["bc","tc"],overflow:Yi,offset:[0,-4],targetOffset:Zi},topRight:{points:["br","tr"],overflow:Yi,offset:[0,-4],targetOffset:Zi},bottomLeft:{points:["tl","bl"],overflow:Yi,offset:[0,4],targetOffset:Zi},bottomCenter:{points:["tc","bc"],overflow:Yi,offset:[0,4],targetOffset:Zi},bottomRight:{points:["tr","br"],overflow:Yi,offset:[0,4],targetOffset:Zi}};function Np(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fc(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:n&&a===null&&(a=0),n&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function h0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=oe(e.querySelectorAll("*")).filter(function(n){return Np(n,t)});return Np(e,t)&&r.unshift(e),r}var u2=Y.ESC,d2=Y.TAB;function f2(e){var t=e.visible,r=e.setTriggerVisible,n=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=f__namespace.useRef(!1),s=function(){if(t&&n.current){var d,h,v,p;(d=n.current)===null||d===void 0||(h=d.triggerRef)===null||h===void 0||(v=h.current)===null||v===void 0||(p=v.focus)===null||p===void 0||p.call(v),r(!1),typeof i=="function"&&i(!1);}},l=function(){var d,h,v,p,m=h0((d=n.current)===null||d===void 0||(h=d.popupRef)===null||h===void 0||(v=h.current)===null||v===void 0||(p=v.getElement)===null||p===void 0?void 0:p.call(v)),g=m[0];return g!=null&&g.focus?(g.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case u2:s();break;case d2:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Nt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var h2=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function v2(e,t){var r=e.arrow,n=r===void 0?!1:r,i=e.prefixCls,o=i===void 0?"rc-dropdown":i,a=e.transitionName,s=e.animation,l=e.align,c=e.placement,u=c===void 0?"bottomLeft":c,d=e.placements,h=d===void 0?c2:d,v=e.getPopupContainer,p=e.showAction,m=e.hideAction,g=e.overlayClassName,b=e.overlayStyle,w=e.visible,C=e.trigger,_=C===void 0?["hover"]:C,S=e.autoFocus,y=Qe(e,h2),x=f__namespace.useState(),R=V(x,2),M=R[0],O=R[1],N="visible"in e?w:M,T=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,function(){return T.current}),f2({visible:N,setTriggerVisible:O,triggerRef:T,onVisibleChange:e.onVisibleChange,autoFocus:S});var E=function(){var H=e.overlay,K;return typeof H=="function"?K=H():K=H,K},$=function(H){var K=e.onOverlayClick;O(!1),K&&K(H);},P=function(H){var K=e.onVisibleChange;O(H),typeof K=="function"&&K(H);},k=function(){var H=E();return f__namespace.createElement(f__namespace.Fragment,null,n&&f__namespace.createElement("div",{className:"".concat(o,"-arrow")}),H)},I=function(){var H=e.overlay;return typeof H=="function"?k:k()},L=function(){var H=e.minOverlayWidthMatchTrigger,K=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?H:!K},j=function(){var H=e.openClassName;return H!==void 0?H:"".concat(o,"-open")},U=function(){var H=e.children,K=H.props?H.props:{},B=q(K.className,j());return N&&H?f__namespace.cloneElement(H,{className:B}):H},G=m;return !G&&_.indexOf("contextMenu")!==-1&&(G=["click"]),f__namespace.createElement(f0,D(D({builtinPlacements:h},y),{},{prefixCls:o,ref:T,popupClassName:q(g,W({},"".concat(o,"-show-arrow"),n)),popupStyle:b,action:_,showAction:p,hideAction:G||[],popupPlacement:u,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:N,stretch:L()?"minWidth":"",popup:I(),onPopupVisibleChange:P,onPopupClick:$,getPopupContainer:v}),U())}const p2=f__namespace.forwardRef(v2);var v0=f__namespace.createContext(null);function Uf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function p0(e){var t=f__namespace.useContext(v0);return Uf(t,e)}var m2=["children","locked"],tn=f__namespace.createContext(null);function g2(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var i=t[n];i!==void 0&&(r[n]=i);}),r}function ka(e){var t=e.children,r=e.locked,n=Qe(e,m2),i=f__namespace.useContext(tn),o=Jl(function(){return g2(i,n)},[i,n],function(a,s){return !r&&(a[0]!==s[0]||!qa(a[1],s[1],!0))});return f__namespace.createElement(tn.Provider,{value:o},t)}var b2=[],m0=f__namespace.createContext(null);function mc(){return f__namespace.useContext(m0)}var g0=f__namespace.createContext(b2);function ts(e){var t=f__namespace.useContext(g0);return f__namespace.useMemo(function(){return e!==void 0?[].concat(oe(t),[e]):t},[t,e])}var b0=f__namespace.createContext(null),Gf=f__namespace.createContext({}),Nd=Y.LEFT,Id=Y.RIGHT,Ad=Y.UP,zs=Y.DOWN,Hs=Y.ENTER,y0=Y.ESC,Yo=Y.HOME,Zo=Y.END,Ip=[Ad,zs,Nd,Id];function y2(e,t,r,n){var i,o,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&n===Hs)return {inlineTrigger:!0};var h=(i={},W(i,Ad,l),W(i,zs,c),i),v=(o={},W(o,Nd,r?c:l),W(o,Id,r?l:c),W(o,zs,u),W(o,Hs,u),o),p=(a={},W(a,Ad,l),W(a,zs,c),W(a,Hs,u),W(a,y0,d),W(a,Nd,r?u:d),W(a,Id,r?d:u),a),m={inline:h,horizontal:v,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p},g=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){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 w2(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function S2(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement;}return null}function w0(e,t){var r=h0(e,!0);return r.filter(function(n){return t.has(n)})}function Ap(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=w0(e,t),o=i.length,a=i.findIndex(function(s){return r===s});return n<0?a===-1?a=o-1:a-=1:n>0&&(a+=1),a=(a+o)%o,i[a]}function C2(e,t,r,n,i,o,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var h=function(){Nt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){h();}},[]),function(v){var p=v.which;if([].concat(Ip,[Hs,y0,Yo,Zo]).includes(p)){var m,g,b,w=function(){m=new Set,g=new Map,b=new Map;var P=o();return P.forEach(function(k){var I=document.querySelector("[data-menu-id='".concat(Uf(n,k),"']"));I&&(m.add(I),b.set(I,k),g.set(k,I));}),m};w();var C=g.get(t),_=S2(C,m),S=b.get(_),y=y2(e,a(S,!0).length===1,r,p);if(!y&&p!==Yo&&p!==Zo)return;(Ip.includes(p)||[Yo,Zo].includes(p))&&v.preventDefault();var x=function(P){if(P){var k=P,I=P.querySelector("a");I!=null&&I.getAttribute("href")&&(k=I);var L=b.get(P);s(L),h(),u.current=Nt(function(){d.current===L&&k.focus();});}};if([Yo,Zo].includes(p)||y.sibling||!_){var R;!_||e==="inline"?R=i.current:R=w2(_);var M,O=w0(R,m);p===Yo?M=O[0]:p===Zo?M=O[O.length-1]:M=Ap(R,m,_,y.offset),x(M);}else if(y.inlineTrigger)l(S);else if(y.offset>0)l(S,!0),h(),u.current=Nt(function(){w();var $=_.getAttribute("aria-controls"),P=document.getElementById($),k=Ap(P,m);x(k);},5);else if(y.offset<0){var N=a(S,!0),T=N[N.length-2],E=g.get(T);l(T,!1),x(E);}}c==null||c(v);}}function x2(e){Promise.resolve().then(e);}var Kf="__RC_UTIL_PATH_SPLIT__",kp=function(t){return t.join(Kf)},E2=function(t){return t.split(Kf)},kd="rc-menu-more";function $2(){var e=f__namespace.useState({}),t=V(e,2),r=t[1],n=f.useRef(new Map),i=f.useRef(new Map),o=f__namespace.useState([]),a=V(o,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||r({});},h=f.useCallback(function(C,_){var S=kp(_);i.current.set(S,C),n.current.set(C,S),c.current+=1;var y=c.current;x2(function(){y===c.current&&d();});},[]),v=f.useCallback(function(C,_){var S=kp(_);i.current.delete(S),n.current.delete(C);},[]),p=f.useCallback(function(C){l(C);},[]),m=f.useCallback(function(C,_){var S=n.current.get(C)||"",y=E2(S);return _&&s.includes(y[0])&&y.unshift(kd),y},[s]),g=f.useCallback(function(C,_){return C.some(function(S){var y=m(S,!0);return y.includes(_)})},[m]),b=function(){var _=oe(n.current.keys());return s.length&&_.push(kd),_},w=f.useCallback(function(C){var _="".concat(n.current.get(C)).concat(Kf),S=new Set;return oe(i.current.keys()).forEach(function(y){y.startsWith(_)&&S.add(i.current.get(y));}),S},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:b,getSubPathKeys:w}}function to(e){var t=f__namespace.useRef(e);t.current=e;var r=f__namespace.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a1&&(w.motionAppear=!1);var C=w.onVisibleChanged;return w.onVisibleChanged=function(_){return !h.current&&!_&&g(!0),C==null?void 0:C(_)},m?null:f__namespace.createElement(ka,{mode:o,locked:!h.current},f__namespace.createElement(_n,Ee({visible:b},w,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(_){var S=_.className,y=_.style;return f__namespace.createElement(qf,{id:t,className:S,style:y},i)}))}var V2=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],U2=["active"],G2=function(t){var r,n=t.style,i=t.className,o=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,h=t.popupClassName,v=t.popupOffset,p=t.onClick,m=t.onMouseEnter,g=t.onMouseLeave,b=t.onTitleClick,w=t.onTitleMouseEnter,C=t.onTitleMouseLeave,_=Qe(t,V2),S=p0(a),y=f__namespace.useContext(tn),x=y.prefixCls,R=y.mode,M=y.openKeys,O=y.disabled,N=y.overflowDisabled,T=y.activeKey,E=y.selectedKeys,$=y.itemIcon,P=y.expandIcon,k=y.onItemClick,I=y.onOpenChange,L=y.onActive,j=f__namespace.useContext(Gf),U=j._internalRenderSubMenuItem,G=f__namespace.useContext(b0),z=G.isSubPathKey,H=ts(),K="".concat(x,"-submenu"),B=O||s,Z=f__namespace.useRef(),ee=f__namespace.useRef(),te=u||$,J=d||P,ae=M.includes(a),ne=!N&&ae,ke=z(E,a),se=S0(a,B,w,C),de=se.active,le=Qe(se,U2),re=f__namespace.useState(!1),be=V(re,2),Te=be[0],ce=be[1],ie=function(ot){B||ce(ot);},ue=function(ot){ie(!0),m==null||m({key:a,domEvent:ot});},We=function(ot){ie(!1),g==null||g({key:a,domEvent:ot});},Fe=f__namespace.useMemo(function(){return de||(R!=="inline"?Te||z([T],a):!1)},[R,de,T,Te,a,z]),vt=C0(H.length),Je=function(ot){B||(b==null||b({key:a,domEvent:ot}),R==="inline"&&I(a,!ae));},$e=to(function(Ye){p==null||p(wl(Ye)),k(Ye);}),ge=function(ot){R!=="inline"&&I(a,ot);},Ne=function(){L(a);},Le=S&&"".concat(S,"-popup"),Ce=f__namespace.createElement("div",Ee({role:"menuitem",style:vt,className:"".concat(K,"-title"),tabIndex:B?null:-1,ref:Z,title:typeof o=="string"?o:null,"data-menu-id":N&&S?null:S,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":B,onClick:Je,onFocus:Ne},le),o,f__namespace.createElement(x0,{icon:R!=="horizontal"?J:null,props:D(D({},t),{},{isOpen:ne,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(K,"-arrow")}))),Oe=f__namespace.useRef(R);if(R!=="inline"&&H.length>1?Oe.current="vertical":Oe.current=R,!N){var Xe=Oe.current;Ce=f__namespace.createElement(W2,{mode:Xe,prefixCls:K,visible:!l&&ne&&R!=="inline",popupClassName:h,popupOffset:v,popup:f__namespace.createElement(ka,{mode:Xe==="horizontal"?"vertical":Xe},f__namespace.createElement(qf,{id:Le,ref:ee},c)),disabled:B,onVisibleChange:ge},Ce);}var it=f__namespace.createElement(Dn.Item,Ee({role:"none"},_,{component:"li",style:n,className:q(K,"".concat(K,"-").concat(R),i,(r={},W(r,"".concat(K,"-open"),ne),W(r,"".concat(K,"-active"),Fe),W(r,"".concat(K,"-selected"),ke),W(r,"".concat(K,"-disabled"),B),r)),onMouseEnter:ue,onMouseLeave:We}),Ce,!N&&f__namespace.createElement(B2,{id:Le,open:ne,keyPath:H},c));return U&&(it=U(it,t,{selected:ke,active:Fe,open:ne,disabled:B})),f__namespace.createElement(ka,{onItemClick:$e,mode:R==="horizontal"?"vertical":R,itemIcon:te,expandIcon:J},it)};function Yf(e){var t=e.eventKey,r=e.children,n=ts(t),i=Xf(r,n),o=mc();f__namespace.useEffect(function(){if(o)return o.registerPath(t,n),function(){o.unregisterPath(t,n);}},[n]);var a;return o?a=i:a=f__namespace.createElement(G2,e,i),f__namespace.createElement(g0.Provider,{value:n},a)}var K2=["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"],Qi=[],q2=f__namespace.forwardRef(function(e,t){var r,n,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,s=i.rootClassName,l=i.style,c=i.className,u=i.tabIndex,d=u===void 0?0:u,h=i.items,v=i.children,p=i.direction,m=i.id,g=i.mode,b=g===void 0?"vertical":g,w=i.inlineCollapsed,C=i.disabled,_=i.disabledOverflow,S=i.subMenuOpenDelay,y=S===void 0?.1:S,x=i.subMenuCloseDelay,R=x===void 0?.1:x,M=i.forceSubMenuRender,O=i.defaultOpenKeys,N=i.openKeys,T=i.activeKey,E=i.defaultActiveFirst,$=i.selectable,P=$===void 0?!0:$,k=i.multiple,I=k===void 0?!1:k,L=i.defaultSelectedKeys,j=i.selectedKeys,U=i.onSelect,G=i.onDeselect,z=i.inlineIndent,H=z===void 0?24:z,K=i.motion,B=i.defaultMotions,Z=i.triggerSubMenuAction,ee=Z===void 0?"hover":Z,te=i.builtinPlacements,J=i.itemIcon,ae=i.expandIcon,ne=i.overflowedIndicator,ke=ne===void 0?"...":ne,se=i.overflowedIndicatorPopupClassName,de=i.getPopupContainer,le=i.onClick,re=i.onOpenChange,be=i.onKeyDown;i.openAnimation,i.openTransitionName;var Te=i._internalRenderMenuItem,ce=i._internalRenderSubMenuItem,ie=Qe(i,K2),ue=f__namespace.useMemo(function(){return D2(v,h,Qi)},[v,h]),We=f__namespace.useState(!1),Fe=V(We,2),vt=Fe[0],Je=Fe[1],$e=f__namespace.useRef(),ge=O2(m),Ne=p==="rtl",Le=mn(O,{value:N,postState:function(ut){return ut||Qi}}),Ce=V(Le,2),Oe=Ce[0],Xe=Ce[1],it=function(ut){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function er(){Xe(ut),re==null||re(ut);}yt?yo.flushSync(er):er();},Ye=f__namespace.useState(Oe),ot=V(Ye,2),ir=ot[0],Zt=ot[1],At=f__namespace.useRef(!1),me=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&w?["vertical",w]:[b,!1]},[b,w]),fe=V(me,2),Pe=fe[0],ye=fe[1],Ge=Pe==="inline",gt=f__namespace.useState(Pe),bt=V(gt,2),mt=bt[0],pe=bt[1],Be=f__namespace.useState(ye),Ke=V(Be,2),_t=Ke[0],St=Ke[1];f__namespace.useEffect(function(){pe(Pe),St(ye),At.current&&(Ge?Xe(ir):it(Qi));},[Pe,ye]);var Br=f__namespace.useState(0),Er=V(Br,2),Ot=Er[0],vr=Er[1],Qt=Ot>=ue.length-1||mt!=="horizontal"||_;f__namespace.useEffect(function(){Ge&&Zt(Oe);},[Oe]),f__namespace.useEffect(function(){return At.current=!0,function(){At.current=!1;}},[]);var je=$2(),Re=je.registerPath,we=je.unregisterPath,at=je.refreshOverflowKeys,rt=je.isSubPathKey,or=je.getKeyPath,Me=je.getKeys,_e=je.getSubPathKeys,qe=f__namespace.useMemo(function(){return {registerPath:Re,unregisterPath:we}},[Re,we]),Pt=f__namespace.useMemo(function(){return {isSubPathKey:rt}},[rt]);f__namespace.useEffect(function(){at(Qt?Qi:ue.slice(Ot+1).map(function(Tt){return Tt.key}));},[Ot,Qt]);var Jt=mn(T||E&&((r=ue[0])===null||r===void 0?void 0:r.key),{value:T}),It=V(Jt,2),$r=It[0],ui=It[1],Do=to(function(Tt){ui(Tt);}),jo=to(function(){ui(void 0);});f.useImperativeHandle(t,function(){return {list:$e.current,focus:function(ut){var yt,er=$r??((yt=ue.find(function(ss){return !ss.props.disabled}))===null||yt===void 0?void 0:yt.key);if(er){var qt,Dr,rn;(qt=$e.current)===null||qt===void 0||(Dr=qt.querySelector("li[data-menu-id='".concat(Uf(ge,er),"']")))===null||Dr===void 0||(rn=Dr.focus)===null||rn===void 0||rn.call(Dr,ut);}}}});var qn=mn(L||[],{value:j,postState:function(ut){return Array.isArray(ut)?ut:ut==null?Qi:[ut]}}),Lr=V(qn,2),pr=Lr[0],Li=Lr[1],On=function(ut){if(P){var yt=ut.key,er=pr.includes(yt),qt;I?er?qt=pr.filter(function(rn){return rn!==yt}):qt=[].concat(oe(pr),[yt]):qt=[yt],Li(qt);var Dr=D(D({},ut),{},{selectedKeys:qt});er?G==null||G(Dr):U==null||U(Dr);}!I&&Oe.length&&mt!=="inline"&&it(Qi);},Di=to(function(Tt){le==null||le(wl(Tt)),On(Tt);}),di=to(function(Tt,ut){var yt=Oe.filter(function(qt){return qt!==Tt});if(ut)yt.push(Tt);else if(mt!=="inline"){var er=_e(Tt);yt=yt.filter(function(qt){return !er.has(qt)});}qa(Oe,yt,!0)||it(yt,!0);}),ji=to(de),zo=function(ut,yt){var er=yt??!Oe.includes(ut);di(ut,er);},Ho=C2(mt,$r,Ne,ge,$e,Me,or,ui,zo,be);f__namespace.useEffect(function(){Je(!0);},[]);var Wo=f__namespace.useMemo(function(){return {_internalRenderMenuItem:Te,_internalRenderSubMenuItem:ce}},[Te,ce]),zi=mt!=="horizontal"||_?ue:ue.map(function(Tt,ut){return f__namespace.createElement(ka,{key:Tt.key,overflowDisabled:ut>Ot},Tt)}),Bo=f__namespace.createElement(Dn,Ee({id:m,ref:$e,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:gc,className:q(a,"".concat(a,"-root"),"".concat(a,"-").concat(mt),c,(n={},W(n,"".concat(a,"-inline-collapsed"),_t),W(n,"".concat(a,"-rtl"),Ne),n),s),dir:p,style:l,role:"menu",tabIndex:d,data:zi,renderRawItem:function(ut){return ut},renderRawRest:function(ut){var yt=ut.length,er=yt?ue.slice(-yt):null;return f__namespace.createElement(Yf,{eventKey:kd,title:ke,disabled:Qt,internalPopupClose:yt===0,popupClassName:se},er)},maxCount:mt!=="horizontal"||_?Dn.INVALIDATE:Dn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ut){vr(ut);},onKeyDown:Ho},ie));return f__namespace.createElement(Gf.Provider,{value:Wo},f__namespace.createElement(v0.Provider,{value:ge},f__namespace.createElement(ka,{prefixCls:a,rootClassName:s,mode:mt,openKeys:Oe,rtl:Ne,disabled:C,motion:vt?K:null,defaultMotions:vt?B:null,activeKey:$r,onActive:Do,onInactive:jo,selectedKeys:pr,inlineIndent:H,subMenuOpenDelay:y,subMenuCloseDelay:R,forceSubMenuRender:M,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:ji,itemIcon:J,expandIcon:ae,onItemClick:Di,onOpenChange:di},f__namespace.createElement(b0.Provider,{value:Pt},Bo),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(m0.Provider,{value:qe},ue)))))}),X2=["className","title","eventKey","children"],Y2=["children"],Z2=function(t){var r=t.className,n=t.title;t.eventKey;var i=t.children,o=Qe(t,X2),a=f__namespace.useContext(tn),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",Ee({role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:q(l,r)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))};function $0(e){var t=e.children,r=Qe(e,Y2),n=ts(r.eventKey),i=Xf(t,n),o=mc();return o?i:f__namespace.createElement(Z2,rc(r,["warnKey"]),i)}function _0(e){var t=e.className,r=e.style,n=f__namespace.useContext(tn),i=n.prefixCls,o=mc();return o?null:f__namespace.createElement("li",{className:q("".concat(i,"-item-divider"),t),style:r})}var rs=q2;rs.Item=gc;rs.SubMenu=Yf;rs.ItemGroup=$0;rs.Divider=_0;var Q2={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 J2=Q2;var O0=function(t,r){return f__namespace.createElement(ko,D(D({},t),{},{ref:r,icon:J2}))};O0.displayName="EllipsisOutlined";const eI=f__namespace.forwardRef(O0),tI=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(YR());},[]),e};function rI(e){let{className:t,direction:r,index:n,marginDirection:i,children:o,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=f__namespace.useContext(P0);let h={};return d||(r==="vertical"?n{const{getPrefixCls:t,space:r,direction:n}=f__namespace.useContext(jt),{size:i=(r==null?void 0:r.size)||"small",align:o,className:a,rootClassName:s,children:l,direction:c="horizontal",prefixCls:u,split:d,style:h,wrap:v=!1}=e,p=nI(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),m=tI(),[g,b]=f__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map($=>oI($)),[i]),w=ci(l,{keepEmpty:!0}),C=o===void 0&&c==="horizontal"?"center":o,_=t("space",u),[S,y]=Mb(_),x=q(_,y,`${_}-${c}`,{[`${_}-rtl`]:n==="rtl",[`${_}-align-${C}`]:C},a,s),R=`${_}-item`,M=n==="rtl"?"marginLeft":"marginRight";let O=0;const N=w.map(($,P)=>{$!=null&&(O=P);const k=$&&$.key||`${R}-${P}`;return f__namespace.createElement(rI,{className:R,key:k,direction:c,index:P,marginDirection:M,split:d,wrap:v},$)}),T=f__namespace.useMemo(()=>({horizontalSize:g,verticalSize:b,latestIndex:O,supportFlexGap:m}),[g,b,O,m]);if(w.length===0)return null;const E={};return v&&(E.flexWrap="wrap",m||(E.marginBottom=-b)),m&&(E.columnGap=g,E.rowGap=b),S(f__namespace.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},E),h)},p),f__namespace.createElement(P0.Provider,{value:T},N)))},T0=aI;T0.Compact=lR;const R0=T0,M0=f__namespace.createContext(null),sI=M0.Provider,N0=f__namespace.createContext(null),lI=N0.Provider;var cI=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],I0=f.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,h=d===void 0?"checkbox":d,v=e.onChange,p=Qe(e,cI),m=f.useRef(null),g=mn(u,{value:s}),b=V(g,2),w=b[0],C=b[1];f.useImperativeHandle(t,function(){return {focus:function(){var x;(x=m.current)===null||x===void 0||x.focus();},blur:function(){var x;(x=m.current)===null||x===void 0||x.blur();},input:m.current}});var _=q(i,o,(r={},W(r,"".concat(i,"-checked"),w),W(r,"".concat(i,"-disabled"),l),r)),S=function(x){l||("checked"in e||C(x.target.checked),v==null||v({target:D(D({},e),{},{checked:x.target.checked}),stopPropagation:function(){x.stopPropagation();},preventDefault:function(){x.preventDefault();},nativeEvent:x.nativeEvent}));};return f__namespace.createElement("span",{className:_,style:a},f__namespace.createElement("input",Ee({},p,{className:"".concat(i,"-input"),ref:m,onChange:S,disabled:l,checked:!!w,type:h})),f__namespace.createElement("span",{className:"".concat(i,"-inner")}))});const uI=new Ft("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),dI=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return {[n]:Object.assign(Object.assign({},gr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},fI=e=>{const{componentCls:t,radioWrapperMarginRight:r,radioCheckedColor:n,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:h,colorBgContainerDisabled:v,colorTextDisabled:p,paddingXS:m,radioDotDisabledColor:g,lineType:b,radioDotDisabledSize:w,wireframe:C,colorWhite:_}=e,S=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},gr(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,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:`${d}px ${b} ${n}`,borderRadius:"50%",visibility:"hidden",animationName:uI,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},gr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${S}`]:{borderColor:n},[`${t}-input:focus-visible + ${S}`]:Object.assign({},sc(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:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:C?n:_,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:n,backgroundColor:C?c:n,"&::after":{transform:`scale(${h/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:v,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${w/i})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},hI=e=>{const{radioButtonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:h,controlHeightLG:v,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:b,borderRadiusLG:w,radioCheckedColor:C,radioButtonCheckedBg:_,radioButtonHoverColor:S,radioButtonActiveColor:y,radioSolidCheckedColor:x,colorTextDisabled:R,colorBgContainerDisabled:M,radioDisabledButtonCheckedColor:O,radioDisabledButtonCheckedBg:N}=e;return {[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${r-i*2}px`,background:d,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:v,fontSize:h,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${n}-group-small &`]:{height:p,paddingInline:m-i,paddingBlock:0,lineHeight:`${p-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:C},"&:has(:focus-visible)":Object.assign({},sc(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:C,background:_,borderColor:C,"&::before":{backgroundColor:C},"&:first-child":{borderColor:C},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:y,borderColor:y,"&::before":{backgroundColor:y}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:x,background:C,borderColor:C,"&:hover":{color:x,background:S,borderColor:S},"&:active":{color:x,background:y,borderColor:y}},"&-disabled":{color:R,backgroundColor:M,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:M,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:O,backgroundColor:N,borderColor:a,boxShadow:"none"}}}},A0=$n("Radio",e=>{const{padding:t,lineWidth:r,controlItemBgActiveDisabled:n,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:v,colorTextLightSolid:p,wireframe:m}=e,g=`0 0 0 ${v}px ${s}`,b=g,w=a,C=4,_=w-C*2,S=m?_:w-(C+r)*2,y=d,x=u,R=l,M=c,O=t-r,E=hr(e,{radioFocusShadow:g,radioButtonFocusShadow:b,radioSize:w,radioDotSize:S,radioDotDisabledSize:_,radioCheckedColor:y,radioDotDisabledColor:i,radioSolidCheckedColor:p,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:x,radioButtonHoverColor:R,radioButtonActiveColor:M,radioButtonPaddingHorizontal:O,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:h});return [dI(E),fI(E),hI(E)]});var vI=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var r,n;const i=f__namespace.useContext(M0),o=f__namespace.useContext(N0),{getPrefixCls:a,direction:s}=f__namespace.useContext(jt),l=f__namespace.useRef(null),c=Gn(t,l),{isFormItemInput:u}=f__namespace.useContext(Ia),d=M=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,M),(N=i==null?void 0:i.onChange)===null||N===void 0||N.call(i,M);},{prefixCls:h,className:v,rootClassName:p,children:m,style:g}=e,b=vI(e,["prefixCls","className","rootClassName","children","style"]),w=a("radio",h),C=((i==null?void 0:i.optionType)||o)==="button"?`${w}-button`:w,[_,S]=A0(w),y=Object.assign({},b),x=f__namespace.useContext(Za);i&&(y.name=i.name,y.onChange=d,y.checked=e.value===i.value,y.disabled=(r=y.disabled)!==null&&r!==void 0?r:i.disabled),y.disabled=(n=y.disabled)!==null&&n!==void 0?n:x;const R=q(`${C}-wrapper`,{[`${C}-wrapper-checked`]:y.checked,[`${C}-wrapper-disabled`]:y.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:u},v,p,S);return _(f__namespace.createElement("label",{className:R,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(I0,Object.assign({},y,{type:"radio",prefixCls:C,ref:c})),m!==void 0?f__namespace.createElement("span",null,m):null))},mI=f__namespace.forwardRef(pI),Sl=mI,gI=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=f__namespace.useContext(jt),i=f__namespace.useContext(Ai),[o,a]=mn(e.defaultValue,{value:e.value}),s=E=>{const $=o,P=E.target.value;"value"in e||a(P);const{onChange:k}=e;k&&P!==$&&k(E);},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:h="outline",disabled:v,children:p,size:m,style:g,id:b,onMouseEnter:w,onMouseLeave:C,onFocus:_,onBlur:S}=e,y=r("radio",l),x=`${y}-group`,[R,M]=A0(y);let O=p;d&&d.length>0&&(O=d.map(E=>typeof E=="string"||typeof E=="number"?f__namespace.createElement(Sl,{key:E.toString(),prefixCls:y,disabled:v,value:E,checked:o===E},E):f__namespace.createElement(Sl,{key:`radio-group-value-options-${E.value}`,prefixCls:y,disabled:E.disabled||v,value:E.value,checked:o===E.value,style:E.style},E.label)));const N=m||i,T=q(x,`${x}-${h}`,{[`${x}-${N}`]:N,[`${x}-rtl`]:n==="rtl"},c,u,M);return R(f__namespace.createElement("div",Object.assign({},kT(e),{className:T,style:g,onMouseEnter:w,onMouseLeave:C,onFocus:_,onBlur:S,id:b,ref:t}),f__namespace.createElement(sI,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),bI=f__namespace.memo(gI);var yI=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:r}=f__namespace.useContext(jt),{prefixCls:n}=e,i=yI(e,["prefixCls"]),o=r("radio",n);return f__namespace.createElement(lI,{value:"button"},f__namespace.createElement(Sl,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},SI=f__namespace.forwardRef(wI),bc=Sl;bc.Button=SI;bc.Group=bI;bc.__ANT_RADIO=!0;const mu=bc,k0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),yc=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Cl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),F0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},yc(hr(e,{inputBorderHoverColor:e.colorBorder})))}),L0=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return {padding:`${t}px ${o}px`,fontSize:r,lineHeight:n,borderRadius:i}},D0=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),j0=(e,t)=>{const{componentCls:r,colorError:n,colorWarning:i,colorErrorOutline:o,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},Cl(hr(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:o}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Cl(hr(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},z0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}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}`},k0(e.colorTextPlaceholder)),{"&:hover":Object.assign({},yc(e)),"&:focus, &-focused":Object.assign({},Cl(e)),"&-disabled, &[disabled]":Object.assign({},F0(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({},L0(e)),"&-sm":Object.assign({},D0(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),CI=e=>{const{componentCls:t,antCls:r}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},L0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},D0(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},jP()),{[`${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`]:{display:"inline-flex"},[`& > ${r}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.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}}}})}};function xI(e){return hr(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}var EI={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 $I=EI;var H0=function(t,r){return f__namespace.createElement(ko,D(D({},t),{},{ref:r,icon:$I}))};H0.displayName="PlusOutlined";const _I=f__namespace.forwardRef(H0),wc=f.createContext(null);var W0=f__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:q(r,a&&"".concat(r,"-active"),n),ref:t},l)}),OI=["key","forceRender","style","className"];function PI(e){var t=e.id,r=e.activeKey,n=e.animated,i=e.tabPosition,o=e.destroyInactiveTabPane,a=f__namespace.useContext(wc),s=a.prefixCls,l=a.tabs,c=n.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:q("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:q("".concat(s,"-content"),"".concat(s,"-content-").concat(i),W({},"".concat(s,"-content-animated"),c))},l.map(function(d){var h=d.key,v=d.forceRender,p=d.style,m=d.className,g=Qe(d,OI),b=h===r;return f__namespace.createElement(_n,Ee({key:h,visible:b,forceRender:v,removeOnLeave:!!o,leavedClassName:"".concat(u,"-hidden")},n.tabPaneMotion),function(w,C){var _=w.style,S=w.className;return f__namespace.createElement(W0,Ee({},g,{prefixCls:u,id:t,tabKey:h,animated:c,active:b,style:D(D({},p),_),className:q(m,S),ref:C}))})})))}var Lp={width:0,height:0,left:0,top:0};function TI(e,t,r){return f.useMemo(function(){for(var n,i=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||Lp,a=o.left+o.width,s=0;s$?(T=O,y.current="x"):(T=N,y.current="y"),t(-T,-T)&&M.preventDefault();}var R=f.useRef(null);R.current={onTouchStart:C,onTouchMove:_,onTouchEnd:S,onWheel:x},f__namespace.useEffect(function(){function M(E){R.current.onTouchStart(E);}function O(E){R.current.onTouchMove(E);}function N(E){R.current.onTouchEnd(E);}function T(E){R.current.onWheel(E);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",N,{passive:!1}),e.current.addEventListener("touchstart",M,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",N);}},[]);}function B0(e){var t=f.useState(0),r=V(t,2),n=r[0],i=r[1],o=f.useRef(0),a=f.useRef();return a.current=e,co(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[n]),function(){o.current===n&&(o.current+=1,i(o.current));}}function NI(e){var t=f.useRef([]),r=f.useState({}),n=V(r,2),i=n[1],o=f.useRef(typeof e=="function"?e():e),a=B0(function(){var l=o.current;t.current.forEach(function(c){l=c(l);}),t.current=[],o.current=l,i({});});function s(l){t.current.push(l),a();}return [o.current,s]}var Hp={width:0,height:0,left:0,top:0,right:0};function II(e,t,r,n,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(r)):(u="height",d="top",h=-r),f.useMemo(function(){if(!s.length)return [0,0];for(var v=s.length,p=v,m=0;mh+t){p=m-1;break}}for(var b=0,w=v-1;w>=0;w-=1){var C=e.get(s[w].key)||Hp;if(C[d]_e?"left":"right"});}),E=V(T,2),$=E[0],P=E[1],k=Dp(0,function(Me,_e){!N&&C&&C({direction:Me>_e?"top":"bottom"});}),I=V(k,2),L=I[0],j=I[1],U=f.useState([0,0]),G=V(U,2),z=G[0],H=G[1],K=f.useState([0,0]),B=V(K,2),Z=B[0],ee=B[1],te=f.useState([0,0]),J=V(te,2),ae=J[0],ne=J[1],ke=f.useState([0,0]),se=V(ke,2),de=se[0],le=se[1],re=NI(new Map),be=V(re,2),Te=be[0],ce=be[1],ie=TI(o,Te,Z[0]),ue=Ms(z,N),We=Ms(Z,N),Fe=Ms(ae,N),vt=Ms(de,N),Je=ueLe?Le:Me}var Oe=f.useRef(),Xe=f.useState(),it=V(Xe,2),Ye=it[0],ot=it[1];function ir(){ot(Date.now());}function Zt(){window.clearTimeout(Oe.current);}MI(x,function(Me,_e){function qe(Pt,Jt){Pt(function(It){var $r=Ce(It+Jt);return $r});}return Je?(N?qe(P,Me):qe(j,_e),Zt(),ir(),!0):!1}),f.useEffect(function(){return Zt(),Ye&&(Oe.current=window.setTimeout(function(){ot(0);},100)),Zt},[Ye]);var At=II(ie,$e,N?$:L,We,Fe,vt,D(D({},e),{},{tabs:o})),me=V(At,2),fe=me[0],Pe=me[1],ye=Qr(function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,_e=ie.get(Me)||{width:0,height:0,left:0,right:0,top:0};if(N){var qe=$;d?_e.right<$?qe=_e.right:_e.right+_e.width>$+$e&&(qe=_e.right+_e.width-$e):_e.left<-$?qe=-_e.left:_e.left+_e.width>-$+$e&&(qe=-(_e.left+_e.width-$e)),j(0),P(Ce(qe));}else {var Pt=L;_e.top<-L?Pt=-_e.top:_e.top+_e.height>-L+$e&&(Pt=-(_e.top+_e.height-$e)),P(0),j(Ce(Pt));}}),Ge={};m==="top"||m==="bottom"?Ge[d?"marginRight":"marginLeft"]=g:Ge.marginTop=g;var gt=o.map(function(Me,_e){var qe=Me.key;return f__namespace.createElement(DI,{id:l,prefixCls:i,key:qe,tab:Me,style:_e===0?void 0:Ge,closable:Me.closable,editable:v,active:qe===u,renderWrapper:b,removeAriaLabel:p==null?void 0:p.removeAriaLabel,onClick:function(Jt){w(qe,Jt);},onFocus:function(){ye(qe),ir(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),bt=function(){return ce(function(){var _e=new Map;return o.forEach(function(qe){var Pt,Jt=qe.key,It=(Pt=R.current)===null||Pt===void 0?void 0:Pt.querySelector('[data-node-key="'.concat(V0(Jt),'"]'));It&&_e.set(Jt,{width:It.offsetWidth,height:It.offsetHeight,left:It.offsetLeft,top:It.offsetTop});}),_e})};f.useEffect(function(){bt();},[o.map(function(Me){return Me.key}).join("_")]);var mt=B0(function(){var Me=Ji(_),_e=Ji(S),qe=Ji(y);H([Me[0]-_e[0]-qe[0],Me[1]-_e[1]-qe[1]]);var Pt=Ji(O);ne(Pt);var Jt=Ji(M);le(Jt);var It=Ji(R);ee([It[0]-Pt[0],It[1]-Pt[1]]),bt();}),pe=o.slice(0,fe),Be=o.slice(Pe+1),Ke=[].concat(oe(pe),oe(Be)),_t=f.useState(),St=V(_t,2),Br=St[0],Er=St[1],Ot=ie.get(u),vr=f.useRef();function Qt(){Nt.cancel(vr.current);}f.useEffect(function(){var Me={};return Ot&&(N?(d?Me.right=Ot.right:Me.left=Ot.left,Me.width=Ot.width):(Me.top=Ot.top,Me.height=Ot.height)),Qt(),vr.current=Nt(function(){Er(Me);}),Qt},[Ot,N,d]),f.useEffect(function(){ye();},[u,Ne,Le,Wp(Ot),Wp(ie),N]),f.useEffect(function(){mt();},[d]);var je=!!Ke.length,Re="".concat(i,"-nav-wrap"),we,at,rt,or;return N?d?(at=$>0,we=$!==Le):(we=$<0,at=$!==Ne):(rt=L<0,or=L!==Ne),f__namespace.createElement(Ri,{onResize:mt},f__namespace.createElement("div",{ref:ec(t,_),role:"tablist",className:q("".concat(i,"-nav"),a),style:s,onKeyDown:function(){ir();}},f__namespace.createElement(Bp,{ref:S,position:"left",extra:h,prefixCls:i}),f__namespace.createElement("div",{className:q(Re,(r={},W(r,"".concat(Re,"-ping-left"),we),W(r,"".concat(Re,"-ping-right"),at),W(r,"".concat(Re,"-ping-top"),rt),W(r,"".concat(Re,"-ping-bottom"),or),r)),ref:x},f__namespace.createElement(Ri,{onResize:mt},f__namespace.createElement("div",{ref:R,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat($,"px, ").concat(L,"px)"),transition:Ye?"none":void 0}},gt,f__namespace.createElement(U0,{ref:O,prefixCls:i,locale:p,editable:v,style:D(D({},gt.length===0?void 0:Ge),{},{visibility:je?"hidden":null})}),f__namespace.createElement("div",{className:q("".concat(i,"-ink-bar"),W({},"".concat(i,"-ink-bar-animated"),c.inkBar)),style:Br})))),f__namespace.createElement(LI,Ee({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:i,tabs:Ke,className:!je&&ge,tabMoving:!!Ye})),f__namespace.createElement(Bp,{ref:y,position:"right",extra:h,prefixCls:i})))}const Vp=f__namespace.forwardRef(jI);var zI=["renderTabBar"],HI=["label","key"];function WI(e){var t=e.renderTabBar,r=Qe(e,zI),n=f__namespace.useContext(wc),i=n.tabs;if(t){var o=D(D({},r),{},{panes:i.map(function(a){var s=a.label,l=a.key,c=Qe(a,HI);return f__namespace.createElement(W0,Ee({tab:s,key:l,tabKey:l},c))})});return t(o,Vp)}return f__namespace.createElement(Vp,r)}function BI(){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=D({inkBar:!0},nt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var VI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Up=0;function UI(e,t){var r,n=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,h=e.animated,v=e.tabPosition,p=v===void 0?"top":v,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,w=e.locale,C=e.moreIcon,_=e.moreTransitionName,S=e.destroyInactiveTabPane,y=e.renderTabBar,x=e.onChange,R=e.onTabClick,M=e.onTabScroll,O=e.getPopupContainer,N=e.popupClassName,T=Qe(e,VI),E=f__namespace.useMemo(function(){return (s||[]).filter(function(re){return re&&nt(re)==="object"&&"key"in re})},[s]),$=l==="rtl",P=BI(h),k=f.useState(!1),I=V(k,2),L=I[0],j=I[1];f.useEffect(function(){j(vc());},[]);var U=mn(function(){var re;return (re=E[0])===null||re===void 0?void 0:re.key},{value:c,defaultValue:u}),G=V(U,2),z=G[0],H=G[1],K=f.useState(function(){return E.findIndex(function(re){return re.key===z})}),B=V(K,2),Z=B[0],ee=B[1];f.useEffect(function(){var re=E.findIndex(function(Te){return Te.key===z});if(re===-1){var be;re=Math.max(0,Math.min(Z,E.length-1)),H((be=E[re])===null||be===void 0?void 0:be.key);}ee(re);},[E.map(function(re){return re.key}).join("_"),z,Z]);var te=mn(null,{value:n}),J=V(te,2),ae=J[0],ne=J[1];f.useEffect(function(){n||(ne("rc-tabs-".concat(Up)),Up+=1);},[]);function ke(re,be){R==null||R(re,be);var Te=re!==z;H(re),Te&&(x==null||x(re));}var se={id:ae,activeKey:z,animated:P,tabPosition:p,rtl:$,mobile:L},de,le=D(D({},se),{},{editable:d,locale:w,moreIcon:C,moreTransitionName:_,tabBarGutter:m,onTabClick:ke,onTabScroll:M,extra:b,style:g,panes:null,getPopupContainer:O,popupClassName:N});return f__namespace.createElement(wc.Provider,{value:{tabs:E,prefixCls:o}},f__namespace.createElement("div",Ee({ref:t,id:n,className:q(o,"".concat(o,"-").concat(p),(r={},W(r,"".concat(o,"-mobile"),L),W(r,"".concat(o,"-editable"),d),W(r,"".concat(o,"-rtl"),$),r),a)},T),de,f__namespace.createElement(WI,Ee({},le,{renderTabBar:y})),f__namespace.createElement(PI,Ee({destroyInactiveTabPane:S},se,{animated:P}))))}var GI=f__namespace.forwardRef(UI);const KI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function qI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},KI),{motionName:Db(e,"switch")})),r}var XI=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);it)}function ZI(e,t){if(e)return e;const r=ci(t).map(n=>{if(f__namespace.isValidElement(n)){const{key:i,props:o}=n,a=o||{},{tab:s}=a,l=XI(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return YI(r)}const QI=()=>null,JI=QI,eA=e=>{const{componentCls:t,motionDurationSlow:r}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[op(e,"slide-up"),op(e,"slide-down")]]},tA=eA,rA=e=>{const{componentCls:t,tabsCardHorizontalPadding:r,tabsCardHeadBackground:n,tabsCardGutter:i,colorBorderSecondary:o}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${e.lineWidth}px ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${i}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:`${i}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}}}}}}},nA=e=>{const{componentCls:t,tabsHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},gr(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:`${n}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({},DP),{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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},iA=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${r}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,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:`${r}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:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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}}}}}},oA=e=>{const{componentCls:t,padding:r}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${r}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${r}px`}},[`&${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:`${e.paddingXS}px ${r}px ${e.paddingXXS*1.5}px`}}}}}},aA=e=>{const{componentCls:t,tabsActiveColor:r,tabsHoverColor:n,iconCls:i,tabsHorizontalGutter:o}=e,a=`${t}-tab`;return {[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},Mf(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:n},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},sA=e=>{const{componentCls:t,tabsHorizontalGutter:r,iconCls:n,tabsCardGutter:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${r}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{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`},[n]:{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:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},lA=e=>{const{componentCls:t,tabsCardHorizontalPadding:r,tabsCardHeight:n,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(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:r,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:`${n}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},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:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Mf(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),aA(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"}}}}}},cA=$n("Tabs",e=>{const t=e.controlHeightLG,r=hr(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return [oA(r),sA(r),iA(r),nA(r),rA(r),lA(r),tA(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var uA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{let{key:$,event:P}=E;o==null||o(T==="add"?P:$,T);},removeIcon:f__namespace.createElement(bb,null),addIcon:l||f__namespace.createElement(_I,null),showAdd:a!==!0});const x=b(),R=ZI(d,u),M=qI(C,h),O=f__namespace.useContext(Ai),N=i!==void 0?i:O;return _(f__namespace.createElement(GI,Object.assign({direction:g,getPopupContainer:w,moreTransitionName:`${x}-slide-up`},v,{items:R,className:q({[`${C}-${N}`]:N,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:s},r,n,S),popupClassName:q(c,S),editable:y,moreIcon:m,prefixCls:C,animated:M})))}G0.TabPane=JI;const dA=new Ft("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),fA=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},gr(e)),{display:"inline-flex"}),[r]:Object.assign(Object.assign({},gr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:e.marginXS},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},gr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},sc(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}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&: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:'""'}}}}},{[`${r}:hover ${t}:after`]:{visibility:"visible"},[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-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}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:dA,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-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 hA(e,t){const r=hr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [fA(r)]}const K0=$n("Checkbox",(e,t)=>{let{prefixCls:r}=t;return [hA(r,e)]});var vA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var{defaultValue:r,children:n,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=vA(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(jt),[v,p]=f__namespace.useState(u.value||r||[]),[m,g]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&p(u.value||[]);},[u.value]);const b=()=>i.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),w=T=>{g(E=>E.filter($=>$!==T));},C=T=>{g(E=>[].concat(oe(E),[T]));},_=T=>{const E=v.indexOf(T.value),$=oe(v);E===-1?$.push(T.value):$.splice(E,1),"value"in u||p($);const P=b();c==null||c($.filter(k=>m.includes(k)).sort((k,I)=>{const L=P.findIndex(U=>U.value===k),j=P.findIndex(U=>U.value===I);return L-j}));},S=d("checkbox",o),y=`${S}-group`,[x,R]=K0(S),M=rc(u,["value","disabled"]);i&&i.length>0&&(n=b().map(T=>f__namespace.createElement(X0,{prefixCls:S,key:T.value.toString(),disabled:"disabled"in T?T.disabled:u.disabled,value:T.value,checked:v.includes(T.value),onChange:T.onChange,className:`${y}-item`,style:T.style},T.label)));const O={toggleOption:_,value:v,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:w},N=q(y,{[`${y}-rtl`]:h==="rtl"},a,s,R);return x(f__namespace.createElement("div",Object.assign({className:N,style:l},M,{ref:t}),f__namespace.createElement(q0.Provider,{value:O},n)))},mA=f__namespace.forwardRef(pA),gA=f__namespace.memo(mA);var bA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var r,{prefixCls:n,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,v=bA(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:p,direction:m}=f__namespace.useContext(jt),g=f__namespace.useContext(q0),{isFormItemInput:b}=f__namespace.useContext(Ia),w=f__namespace.useContext(Za),C=(r=(g==null?void 0:g.disabled)||h)!==null&&r!==void 0?r:w,_=f__namespace.useRef(v.value);f__namespace.useEffect(()=>{g==null||g.registerValue(v.value);},[]),f__namespace.useEffect(()=>{if(!d)return v.value!==_.current&&(g==null||g.cancelValue(_.current),g==null||g.registerValue(v.value),_.current=v.value),()=>g==null?void 0:g.cancelValue(v.value)},[v.value]);const S=p("checkbox",n),[y,x]=K0(S),R=Object.assign({},v);g&&!d&&(R.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),g.toggleOption&&g.toggleOption({label:a,value:v.value});},R.name=g.name,R.checked=g.value.includes(v.value));const M=q({[`${S}-wrapper`]:!0,[`${S}-rtl`]:m==="rtl",[`${S}-wrapper-checked`]:R.checked,[`${S}-wrapper-disabled`]:C,[`${S}-wrapper-in-form-item`]:b},i,o,x),O=q({[`${S}-indeterminate`]:s},x),N=s?"mixed":void 0;return y(f__namespace.createElement("label",{className:M,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(I0,Object.assign({"aria-checked":N},R,{prefixCls:S,className:O,disabled:C,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},wA=f__namespace.forwardRef(yA),X0=wA,Zf=X0;Zf.Group=gA;Zf.__ANT_CHECKBOX=!0;const SA=Zf;var CA={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 xA=CA;var Y0=function(t,r){return f__namespace.createElement(ko,D(D({},t),{},{ref:r,icon:xA}))};Y0.displayName="UpOutlined";const EA=f__namespace.forwardRef(Y0);function Ld(){return typeof BigInt=="function"}function Oi(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return {negative:r,negativeStr:s,trimStr:n,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(n)}}function Qf(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Fa(e){var t=String(e);if(Qf(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&Jf(t)?t.length-t.indexOf(".")-1:0}function Sc(e){var t=String(e);if(Qf(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ld()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Sc(this.number):this.origin}}]),e}(),_A=function(){function e(t){if(Sr(this,e),W(this,"origin",""),W(this,"negative",void 0),W(this,"integer",void 0),W(this,"decimal",void 0),W(this,"decimalLen",void 0),W(this,"empty",void 0),W(this,"nan",void 0),Z0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(Qf(r)&&(r=Number(r)),r=typeof r=="string"?r:Sc(r),Jf(r)){var n=Oi(r);this.negative=n.negative;var i=n.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length;}else this.nan=!0;}return Cr(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(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);if(n.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(i),a=n.alignDecimal(i),s=(o+a).toString(),l=Oi(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(i+1,"0"));return new e("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{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(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Oi("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Ur(e){return Ld()?new _A(e):new $A(e)}function Bs(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var i=Oi(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var d=Ur(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u));return Bs(d.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var OA=function(){var t=f.useState(!1),r=V(t,2),n=r[0],i=r[1];return Wt(function(){i(vc());},[]),n},PA=200,TA=600;function RA(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef();l.current=a;var c=function(b,w){b.preventDefault(),l.current(w);function C(){l.current(w),s.current=setTimeout(C,PA);}s.current=setTimeout(C,TA);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=OA();if(d)return null;var h="".concat(t,"-handler"),v=q(h,"".concat(h,"-up"),W({},"".concat(h,"-up-disabled"),i)),p=q(h,"".concat(h,"-down"),W({},"".concat(h,"-down-disabled"),o)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",Ee({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":i,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",Ee({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":o,className:p}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Gp(e){var t=typeof e=="number"?Sc(e):Oi(e).fullStr,r=t.includes(".");return r?Oi(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function MA(e,t){var r=f.useRef(null);function n(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);r.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function i(){if(e&&r.current&&t)try{var o=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.endsWith(l))u=o.length-r.current.afterTxt.length;else if(o.startsWith(s))u=s.length;else {var d=s[c-1],h=o.indexOf(d,c-1);h!==-1&&(u=h+1);}e.setSelectionRange(u,u);}catch(v){ur(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [n,i]}const NA=function(){var e=f.useRef(0),t=function(){Nt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(r){t(),e.current=Nt(function(){r();});}};var IA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Kp=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},qp=function(t){var r=Ur(t);return r.isInvalidate()?null:r},Q0=f__namespace.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-input-number":n,o=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,h=e.value,v=e.disabled,p=e.readOnly,m=e.upHandler,g=e.downHandler,b=e.keyboard,w=e.controls,C=w===void 0?!0:w,_=e.stringMode,S=e.parser,y=e.formatter,x=e.precision,R=e.decimalSeparator,M=e.onChange,O=e.onInput,N=e.onPressEnter,T=e.onStep,E=Qe(e,IA),$="".concat(i,"-input"),P=f__namespace.useRef(null),k=f__namespace.useState(!1),I=V(k,2),L=I[0],j=I[1],U=f__namespace.useRef(!1),G=f__namespace.useRef(!1),z=f__namespace.useRef(!1),H=f__namespace.useState(function(){return Ur(h??d)}),K=V(H,2),B=K[0],Z=K[1];function ee(me){h===void 0&&Z(me);}var te=f__namespace.useCallback(function(me,fe){if(!fe)return x>=0?x:Math.max(Fa(me),Fa(u))},[x,u]),J=f__namespace.useCallback(function(me){var fe=String(me);if(S)return S(fe);var Pe=fe;return R&&(Pe=Pe.replace(R,".")),Pe.replace(/[^\w.-]+/g,"")},[S,R]),ae=f__namespace.useRef(""),ne=f__namespace.useCallback(function(me,fe){if(y)return y(me,{userTyping:fe,input:String(ae.current)});var Pe=typeof me=="number"?Sc(me):me;if(!fe){var ye=te(Pe,fe);if(Jf(Pe)&&(R||ye>=0)){var Ge=R||".";Pe=Bs(Pe,Ge,ye);}}return Pe},[y,te,R]),ke=f__namespace.useState(function(){var me=d??h;return B.isInvalidate()&&["string","number"].includes(nt(me))?Number.isNaN(me)?"":me:ne(B.toString(),!1)}),se=V(ke,2),de=se[0],le=se[1];ae.current=de;function re(me,fe){le(ne(me.isInvalidate()?me.toString(!1):me.toString(!fe),fe));}var be=f__namespace.useMemo(function(){return qp(l)},[l,x]),Te=f__namespace.useMemo(function(){return qp(s)},[s,x]),ce=f__namespace.useMemo(function(){return !be||!B||B.isInvalidate()?!1:be.lessEquals(B)},[be,B]),ie=f__namespace.useMemo(function(){return !Te||!B||B.isInvalidate()?!1:B.lessEquals(Te)},[Te,B]),ue=MA(P.current,L),We=V(ue,2),Fe=We[0],vt=We[1],Je=function(fe){return be&&!fe.lessEquals(be)?be:Te&&!Te.lessEquals(fe)?Te:null},$e=function(fe){return !Je(fe)},ge=function(fe,Pe){var ye=fe,Ge=$e(ye)||ye.isEmpty();if(!ye.isEmpty()&&!Pe&&(ye=Je(ye)||ye,Ge=!0),!p&&!v&&Ge){var gt=ye.toString(),bt=te(gt,Pe);return bt>=0&&(ye=Ur(Bs(gt,".",bt)),$e(ye)||(ye=Ur(Bs(gt,".",bt,!0)))),ye.equals(B)||(ee(ye),M==null||M(ye.isEmpty()?null:Kp(_,ye)),h===void 0&&re(ye,Pe)),ye}return B},Ne=NA(),Le=function me(fe){if(Fe(),le(fe),!G.current){var Pe=J(fe),ye=Ur(Pe);ye.isNaN()||ge(ye,!0);}O==null||O(fe),Ne(function(){var Ge=fe;S||(Ge=fe.replace(/。/g,".")),Ge!==fe&&me(Ge);});},Ce=function(){G.current=!0;},Oe=function(){G.current=!1,Le(P.current.value);},Xe=function(fe){Le(fe.target.value);},it=function(fe){var Pe;if(!(fe&&ce||!fe&&ie)){U.current=!1;var ye=Ur(z.current?Gp(u):u);fe||(ye=ye.negate());var Ge=(B||Ur(0)).add(ye.toString()),gt=ge(Ge,!1);T==null||T(Kp(_,gt),{offset:z.current?Gp(u):u,type:fe?"up":"down"}),(Pe=P.current)===null||Pe===void 0||Pe.focus();}},Ye=function(fe){var Pe=Ur(J(de)),ye=Pe;Pe.isNaN()?ye=B:ye=ge(Pe,fe),h!==void 0?re(B,!1):ye.isNaN()||re(ye,!1);},ot=function(){U.current=!0;},ir=function(fe){var Pe=fe.which,ye=fe.shiftKey;U.current=!0,ye?z.current=!0:z.current=!1,Pe===Y.ENTER&&(G.current||(U.current=!1),Ye(!1),N==null||N(fe)),b!==!1&&!G.current&&[Y.UP,Y.DOWN].includes(Pe)&&(it(Y.UP===Pe),fe.preventDefault());},Zt=function(){U.current=!1,z.current=!1;},At=function(){Ye(!1),j(!1),U.current=!1;};return co(function(){B.isInvalidate()||re(B,!1);},[x]),co(function(){var me=Ur(h);Z(me);var fe=Ur(J(de));(!me.equals(fe)||!U.current||y)&&re(me,U.current);},[h]),co(function(){y&&vt();},[de]),f__namespace.createElement("div",{className:q(i,o,(r={},W(r,"".concat(i,"-focused"),L),W(r,"".concat(i,"-disabled"),v),W(r,"".concat(i,"-readonly"),p),W(r,"".concat(i,"-not-a-number"),B.isNaN()),W(r,"".concat(i,"-out-of-range"),!B.isInvalidate()&&!$e(B)),r)),style:a,onFocus:function(){j(!0);},onBlur:At,onKeyDown:ir,onKeyUp:Zt,onCompositionStart:Ce,onCompositionEnd:Oe,onBeforeInput:ot},C&&f__namespace.createElement(RA,{prefixCls:i,upNode:m,downNode:g,upDisabled:ce,downDisabled:ie,onStep:it}),f__namespace.createElement("div",{className:"".concat($,"-wrap")},f__namespace.createElement("input",Ee({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":B.isInvalidate()?null:B.toString(),step:u},E,{ref:Gn(P,t),className:$,value:de,onChange:Xe,disabled:v,readOnly:p}))))});Q0.displayName="InputNumber";const AA=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:h,colorPrimary:v,controlHeight:p,inputPaddingHorizontal:m,colorBgContainer:g,colorTextDisabled:b,borderRadiusSM:w,borderRadiusLG:C,controlWidth:_,handleVisible:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),z0(e)),j0(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${r}px ${n} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:s-2*r}},"&-sm":{padding:0,borderRadius:w,[`input${t}-input`]:{height:l-2*r,padding:`0 ${u}px`}},"&:hover":Object.assign({},yc(e)),"&-focused":Object.assign({},Cl(e)),"&-disabled":Object.assign(Object.assign({},F0(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":Object.assign(Object.assign(Object.assign({},gr(e)),CI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{width:"100%",height:p-2*r,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",verticalAlign:"top"}),k0(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&: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:g,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:S===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${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:`${r}px ${n} ${i}`,transition:`all ${h} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ob()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderBlockStart:`${r}px ${n} ${i}`,borderEndEndRadius:o},"&-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:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},kA=e=>{const{componentCls:t,inputPaddingHorizontal:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},z0(e)),j0(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},yc(e)),{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:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:n}}})}},FA=$n("InputNumber",e=>{const t=xI(e);return [AA(t),kA(t),kb(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var LA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:r,direction:n}=f__namespace.useContext(jt),i=f__namespace.useContext(Ai),[o,a]=f__namespace.useState(!1),s=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>s.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:h,addonBefore:v,addonAfter:p,prefix:m,bordered:g=!0,readOnly:b,status:w,controls:C}=e,_=LA(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),S=r("input-number",h),[y,x]=FA(S),{compactSize:R,compactItemClassnames:M}=Ib(S,n);let O=f__namespace.createElement(EA,{className:`${S}-handler-up-inner`}),N=f__namespace.createElement(KM,{className:`${S}-handler-down-inner`});const T=typeof C=="boolean"?C:void 0;typeof C=="object"&&(O=typeof C.upIcon>"u"?O:f__namespace.createElement("span",{className:`${S}-handler-up-inner`},C.upIcon),N=typeof C.downIcon>"u"?N:f__namespace.createElement("span",{className:`${S}-handler-down-inner`},C.downIcon));const{hasFeedback:E,status:$,isFormItemInput:P,feedbackIcon:k}=f__namespace.useContext(Ia),I=VM($,w),L=R||u||i,j=m!=null||E,U=!!(v||p),G=f__namespace.useContext(Za),z=d??G,H=q({[`${S}-lg`]:L==="large",[`${S}-sm`]:L==="small",[`${S}-rtl`]:n==="rtl",[`${S}-borderless`]:!g,[`${S}-in-form-item`]:P},uu(S,I),M,x,l,!j&&!U&&c);let K=f__namespace.createElement(Q0,Object.assign({ref:s,disabled:z,className:H,upHandler:O,downHandler:N,prefixCls:S,readOnly:b,controls:T},_));if(j){const B=q(`${S}-affix-wrapper`,uu(`${S}-affix-wrapper`,I,E),{[`${S}-affix-wrapper-focused`]:o,[`${S}-affix-wrapper-disabled`]:e.disabled,[`${S}-affix-wrapper-sm`]:L==="small",[`${S}-affix-wrapper-lg`]:L==="large",[`${S}-affix-wrapper-rtl`]:n==="rtl",[`${S}-affix-wrapper-readonly`]:b,[`${S}-affix-wrapper-borderless`]:!g},!U&&l,!U&&c,x);K=f__namespace.createElement("div",{className:B,style:e.style,onMouseUp:()=>s.current.focus()},m&&f__namespace.createElement("span",{className:`${S}-prefix`},m),_o(K,{style:null,value:e.value,onFocus:Z=>{var ee;a(!0),(ee=e.onFocus)===null||ee===void 0||ee.call(e,Z);},onBlur:Z=>{var ee;a(!1),(ee=e.onBlur)===null||ee===void 0||ee.call(e,Z);}}),E&&f__namespace.createElement("span",{className:`${S}-suffix`},k));}if(U){const B=`${S}-group`,Z=`${B}-addon`,ee=v?f__namespace.createElement("div",{className:Z},v):null,te=p?f__namespace.createElement("div",{className:Z},p):null,J=q(`${S}-wrapper`,B,x,{[`${B}-rtl`]:n==="rtl"}),ae=q(`${S}-group-wrapper`,{[`${S}-group-wrapper-sm`]:L==="small",[`${S}-group-wrapper-lg`]:L==="large",[`${S}-group-wrapper-rtl`]:n==="rtl"},uu(`${S}-group-wrapper`,I,E),x,l,c);K=f__namespace.createElement("div",{className:ae,style:e.style},f__namespace.createElement("div",{className:J},ee&&f__namespace.createElement(xd,null,f__namespace.createElement(ip,{status:!0,override:!0},ee)),_o(K,{style:null,disabled:z}),te&&f__namespace.createElement(xd,null,f__namespace.createElement(ip,{status:!0,override:!0},te))));}return y(K)}),ey=J0,DA=e=>f__namespace.createElement(ub,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(J0,Object.assign({},e)));ey._InternalPanelDoNotUseOrYouWillBeFired=DA;const Xp=ey;var ki=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Dd(e,t,r){return (e-t)/(r-t)}function eh(e,t,r,n){var i=Dd(t,r,n),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function oo(e,t){return Array.isArray(e)?e[t]:e}var jA=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],zA=f__namespace.forwardRef(function(e,t){var r,n,i=e.prefixCls,o=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,h=Qe(e,jA),v=f__namespace.useContext(ki),p=v.min,m=v.max,g=v.direction,b=v.disabled,w=v.keyboard,C=v.range,_=v.tabIndex,S=v.ariaLabelForHandle,y=v.ariaLabelledByForHandle,x=v.ariaValueTextFormatterForHandle,R="".concat(i,"-handle"),M=function($){b||s($,a);},O=function($){if(!b&&w){var P=null;switch($.which||$.keyCode){case Y.LEFT:P=g==="ltr"||g==="btt"?-1:1;break;case Y.RIGHT:P=g==="ltr"||g==="btt"?1:-1;break;case Y.UP:P=g!=="ttb"?1:-1;break;case Y.DOWN:P=g!=="ttb"?-1:1;break;case Y.HOME:P="min";break;case Y.END:P="max";break;case Y.PAGE_UP:P=2;break;case Y.PAGE_DOWN:P=-2;break}P!==null&&($.preventDefault(),d(P,a));}},N=eh(g,o,p,m),T=f__namespace.createElement("div",Ee({ref:t,className:q(R,(r={},W(r,"".concat(R,"-").concat(a+1),C),W(r,"".concat(R,"-dragging"),u),r)),style:D(D({},N),l),onMouseDown:M,onTouchStart:M,onKeyDown:O,tabIndex:b?null:oo(_,a),role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":b,"aria-label":oo(S,a),"aria-labelledby":oo(y,a),"aria-valuetext":(n=oo(x,a))===null||n===void 0?void 0:n(o)},h));return c&&(T=c(T,{index:a,prefixCls:i,value:o,dragging:u})),T}),HA=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],WA=f__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Qe(e,HA),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(h){var v;(v=u.current[h])===null||v===void 0||v.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,h){return f__namespace.createElement(zA,Ee({ref:function(p){p?u.current[h]=p:delete u.current[h];},dragging:l===h,prefixCls:r,style:oo(n,h),key:h,value:d,valueIndex:h,onStartMove:i,onOffsetChange:o,render:s},c))}))});function Yp(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function BA(e,t,r,n,i,o,a,s,l){var c=f__namespace.useState(null),u=V(c,2),d=u[0],h=u[1],v=f__namespace.useState(-1),p=V(v,2),m=p[0],g=p[1],b=f__namespace.useState(r),w=V(b,2),C=w[0],_=w[1],S=f__namespace.useState(r),y=V(S,2),x=y[0],R=y[1],M=f__namespace.useRef(null),O=f__namespace.useRef(null);f__namespace.useEffect(function(){m===-1&&_(r);},[r,m]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",M.current),document.removeEventListener("touchend",O.current);}},[]);var N=function(I,L){C.some(function(j,U){return j!==I[U]})&&(L!==void 0&&h(L),_(I),a(I));},T=function(I,L){if(I===-1){var j=x[0],U=x[x.length-1],G=n-j,z=i-U,H=L*(i-n);H=Math.max(H,G),H=Math.min(H,z);var K=o(j+H);H=K-j;var B=x.map(function(J){return J+H});N(B);}else {var Z=(i-n)*L,ee=oe(C);ee[I]=x[I];var te=l(ee,Z,I,"dist");N(te.values,te.value);}},E=f__namespace.useRef(T);E.current=T;var $=function(I,L){I.stopPropagation();var j=r[L];g(L),h(j),R(r);var U=Yp(I),G=U.pageX,z=U.pageY,H=function(Z){Z.preventDefault();var ee=Yp(Z),te=ee.pageX,J=ee.pageY,ae=te-G,ne=J-z,ke=e.current.getBoundingClientRect(),se=ke.width,de=ke.height,le;switch(t){case"btt":le=-ne/de;break;case"ttb":le=ne/de;break;case"rtl":le=-ae/se;break;default:le=ae/se;}E.current(L,le);},K=function B(Z){Z.preventDefault(),document.removeEventListener("mouseup",B),document.removeEventListener("mousemove",H),document.removeEventListener("touchend",B),document.removeEventListener("touchmove",H),M.current=null,O.current=null,g(-1),s();};document.addEventListener("mouseup",K),document.addEventListener("mousemove",H),document.addEventListener("touchend",K),document.addEventListener("touchmove",H),M.current=H,O.current=K;},P=f__namespace.useMemo(function(){var k=oe(r).sort(function(L,j){return L-j}),I=oe(C).sort(function(L,j){return L-j});return k.every(function(L,j){return L===I[j]})?C:r},[r,C]);return [m,d,P,$]}function VA(e){var t=e.prefixCls,r=e.style,n=e.start,i=e.end,o=e.index,a=e.onStartMove,s=f__namespace.useContext(ki),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,v="".concat(t,"-track"),p=Dd(n,c,u),m=Dd(i,c,u),g=function(C){!d&&a&&a(C,-1);},b={};switch(l){case"rtl":b.right="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");break;case"btt":b.bottom="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;case"ttb":b.top="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;default:b.left="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");}return f__namespace.createElement("div",{className:q(v,h&&"".concat(v,"-").concat(o+1)),style:D(D({},b),r),onMouseDown:g,onTouchStart:g})}function UA(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,o=e.onStartMove,a=f__namespace.useContext(ki),s=a.included,l=a.range,c=a.min,u=f__namespace.useMemo(function(){if(!l){if(n.length===0)return [];var d=i??c,h=n[0];return [{start:Math.min(d,h),end:Math.max(d,h)}]}for(var v=[],p=0;p3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var w,C=p[g],_=C+m,S=[];n.forEach(function(O){S.push(O.value);}),S.push(e,t),S.push(s(C));var y=m>0?1:-1;b==="unit"?S.push(s(C+y*r)):S.push(s(_)),S=S.filter(function(O){return O!==null}).filter(function(O){return m<0?O<=C:O>=C}),b==="unit"&&(S=S.filter(function(O){return O!==C}));var x=b==="unit"?C:_;w=S[0];var R=Math.abs(w-x);if(S.forEach(function(O){var N=Math.abs(O-x);N1){var M=oe(p);return M[g]=w,v(M,m-y,g,b)}return w}else {if(m==="min")return e;if(m==="max")return t}},u=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=p[g],C=c(p,m,g,b);return {value:C,changed:C!==w}},d=function(p){return o===null&&p===0||typeof o=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",w=p.map(l),C=w[g],_=c(w,m,g,b);if(w[g]=_,i===!1){var S=o||0;g>0&&w[g-1]!==C&&(w[g]=Math.max(w[g],w[g-1]+S)),g0;M-=1)for(var O=!0;d(w[M]-w[M-1])&&O;){var N=u(w,-1,M-1);w[M-1]=N.value,O=N.changed;}for(var T=w.length-1;T>0;T-=1)for(var E=!0;d(w[T]-w[T-1])&&E;){var $=u(w,-1,T-1);w[T-1]=$.value,E=$.changed;}for(var P=0;P=0?$:!1},[$,ce]),ue=f__namespace.useMemo(function(){var je=Object.keys(Z||{});return je.map(function(Re){var we=Z[Re],at={value:Number(Re)};return we&&nt(we)==="object"&&!f__namespace.isValidElement(we)&&("label"in we||"style"in we)?(at.style=we.style,at.label=we.label):at.label=we,at}).filter(function(Re){var we=Re.label;return we||typeof we=="number"}).sort(function(Re,we){return Re.value-we.value})},[Z]),We=YA(be,Te,ce,ue,T,ie),Fe=V(We,2),vt=Fe[0],Je=Fe[1],$e=mn(S,{value:_}),ge=V($e,2),Ne=ge[0],Le=ge[1],Ce=f__namespace.useMemo(function(){var je=Ne==null?[]:Array.isArray(Ne)?Ne:[Ne],Re=V(je,1),we=Re[0],at=we===void 0?be:we,rt=Ne===null?[]:[at];if(y){if(rt=oe(je),x||Ne===void 0){var or=x>=0?x+1:2;for(rt=rt.slice(0,or);rt.length=0&&de.current.focus(je);}me(null);},[At]);var Pe=f__namespace.useMemo(function(){return P&&ce===null?!1:P},[P,ce]),ye=function(){O==null||O(Xe(Oe.current));},Ge=BA(le,re,Ce,be,Te,vt,it,ye,Je),gt=V(Ge,4),bt=gt[0],mt=gt[1],pe=gt[2],Be=gt[3],Ke=function(Re,we){Be(Re,we),M==null||M(Xe(Oe.current));},_t=bt!==-1;f__namespace.useEffect(function(){if(!_t){var je=Ce.lastIndexOf(mt);de.current.focus(je);}},[_t]);var St=f__namespace.useMemo(function(){return oe(pe).sort(function(je,Re){return je-Re})},[pe]),Br=f__namespace.useMemo(function(){return y?[St[0],St[St.length-1]]:[be,St[0]]},[St,y,be]),Er=V(Br,2),Ot=Er[0],vr=Er[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){de.current.focus(0);},blur:function(){var Re=document,we=Re.activeElement;le.current.contains(we)&&(we==null||we.blur());}}}),f__namespace.useEffect(function(){d&&de.current.focus(0);},[]);var Qt=f__namespace.useMemo(function(){return {min:be,max:Te,direction:re,disabled:l,keyboard:u,step:ce,included:j,includedStart:Ot,includedEnd:vr,range:y,tabIndex:ae,ariaLabelForHandle:ne,ariaLabelledByForHandle:ke,ariaValueTextFormatterForHandle:se}},[be,Te,re,l,u,ce,j,Ot,vr,y,ae,ne,ke,se]);return f__namespace.createElement(ki.Provider,{value:Qt},f__namespace.createElement("div",{ref:le,className:q(i,o,(r={},W(r,"".concat(i,"-disabled"),l),W(r,"".concat(i,"-vertical"),I),W(r,"".concat(i,"-horizontal"),!I),W(r,"".concat(i,"-with-marks"),ue.length),r)),style:a,onMouseDown:ot},f__namespace.createElement("div",{className:"".concat(i,"-rail"),style:H}),f__namespace.createElement(UA,{prefixCls:i,style:G,values:St,startPoint:U,onStartMove:Pe?Ke:null}),f__namespace.createElement(XA,{prefixCls:i,marks:ue,dots:ee,style:K,activeStyle:B}),f__namespace.createElement(WA,{ref:de,prefixCls:i,style:z,values:pe,draggingIndex:bt,onStartMove:Ke,onOffsetChange:fe,onFocus:h,onBlur:v,handleRender:te}),f__namespace.createElement(KA,{prefixCls:i,marks:ue,onClick:Ye})))});const QA=f__namespace.forwardRef((e,t)=>{const{open:r}=e,n=f.useRef(null),i=f.useRef(null);function o(){Nt.cancel(i.current),i.current=null;}function a(){i.current=Nt(()=>{var s;(s=n.current)===null||s===void 0||s.forceAlign(),i.current=null;});}return f__namespace.useEffect(()=>(r?a():o(),o),[r,e.title]),f__namespace.createElement(jf,Object.assign({ref:Gn(n,t)},e))}),JA=QA,ek=e=>{const{componentCls:t,controlSize:r,dotSize:n,marginFull:i,marginPart:o,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},gr(e)),{position:"relative",height:r,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${i}px ${o}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::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.colorPrimaryBorder}`,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.colorPrimary}`,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:n,height:n,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,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 cr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},ty=(e,t)=>{const{componentCls:r,railSize:n,handleSize:i,dotSize:o}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:n,[l]:n*3,[`${r}-rail`]:{[s]:"100%",[l]:n},[`${r}-track`]:{[l]:n},[`${r}-handle`]:{[c]:(n*3-i)/2},[`${r}-mark`]:{insetInlineStart:0,top:0,[u]:i,[s]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[u]:n,[s]:"100%",[l]:n},[`${r}-dot`]:{position:"absolute",[c]:(n-o)/2}}},tk=e=>{const{componentCls:t,marginPartWithMark:r}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},ty(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},rk=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},ty(e,!1)),{height:"100%"})}},nk=$n("Slider",e=>{const t=hr(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [ek(t),tk(t),rk(t)]},e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*3;return {controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}});var ik=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);itypeof e=="number"?e.toString():"",ak=f__namespace.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:i,rootClassName:o,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=ik(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:h,direction:v,getPopupContainer:p}=f__namespace.useContext(jt),[m,g]=f__namespace.useState({}),b=(O,N)=>{g(T=>Object.assign(Object.assign({},T),{[O]:N}));},w=(O,N)=>O||(N?v==="rtl"?"left":"right":"top"),C=h("slider",r),[_,S]=nk(C),y=q(i,o,{[`${C}-rtl`]:v==="rtl"},S);v==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[x,R]=f__namespace.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),M=(O,N)=>{var T;const{index:E,dragging:$}=N,{tooltip:P={},vertical:k}=e,I=Object.assign({},P),{open:L,placement:j,getPopupContainer:U,prefixCls:G,formatter:z}=I;let H;z||z===null?H=z:s||s===null?H=s:H=ok;const K=H?m[E]||$:!1,B=(T=L??l)!==null&&T!==void 0?T:L===void 0&&K,Z=Object.assign(Object.assign({},O.props),{onMouseEnter:()=>b(E,!0),onMouseLeave:()=>b(E,!1)}),ee=h("tooltip",G??a);return f__namespace.createElement(JA,{prefixCls:ee,title:H?H(N.value):"",open:B,placement:w(j??u,k),key:E,overlayClassName:`${C}-tooltip`,getPopupContainer:U||c||p},f__namespace.cloneElement(O,Z))};return _(f__namespace.createElement(ZA,Object.assign({},d,{step:d.step,range:x,draggableTrack:R,className:y,ref:t,prefixCls:C,handleRender:M})))}),sk=ak;function lk(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ns=(e,t,r)=>{const n=lk(r);return {[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},ck=e=>sb(e,(t,r)=>{let{textColor:n,lightBorderColor:i,lightColor:o,darkColor:a}=r;return {[`${e.componentCls}-${t}`]:{color:n,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),uk=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i}=e,o=n-r,a=t-r;return {[i]:Object.assign(Object.assign({},gr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},ry=$n("Tag",e=>{const{fontSize:t,lineHeight:r,lineWidth:n,fontSizeIcon:i}=e,o=Math.round(t*r),a=e.fontSizeSM,s=o-n*2,l=e.colorFillQuaternary,c=e.colorText,u=hr(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:i-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [uk(u),ck(u),Ns(u,"success","Success"),Ns(u,"processing","Info"),Ns(u,"error","Error"),Ns(u,"warning","Warning")]});var dk=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:r,checked:n,onChange:i,onClick:o}=e,a=dk(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(jt),l=v=>{i==null||i(!n),o==null||o(v);},c=s("tag",t),[u,d]=ry(c),h=q(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:n},r,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:h,onClick:l})))},hk=fk;var vk=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:r,className:n,rootClassName:i,style:o,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:h=!0}=e,v=vk(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:p,direction:m}=f__namespace.useContext(jt),[g,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in v&&b(v.visible);},[v.visible]);const w=Yb(l)||vN(l),C=Object.assign({backgroundColor:l&&!w?l:void 0},o),_=p("tag",r),[S,y]=ry(_),x=q(_,{[`${_}-${l}`]:w,[`${_}-has-color`]:l&&!w,[`${_}-hidden`]:!g,[`${_}-rtl`]:m==="rtl",[`${_}-borderless`]:!h},n,i,y),R=$=>{$.stopPropagation(),c==null||c($),!$.defaultPrevented&&b(!1);},M=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${_}-close-icon`,onClick:R},u):f__namespace.createElement(bb,{className:`${_}-close-icon`,onClick:R}):null,[d,u,_,R]),O=typeof v.onClick=="function"||a&&a.type==="a",N=s||null,T=N?f__namespace.createElement(f__namespace.Fragment,null,N,f__namespace.createElement("span",null,a)):a,E=f__namespace.createElement("span",Object.assign({},v,{ref:t,className:x,style:C}),T,M);return S(O?f__namespace.createElement(Rb,null,E):E)},ny=f__namespace.forwardRef(pk);ny.CheckableTag=hk;const Qo=ny,mk=[{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)"}],jd={id:"default-bili-pink",name:"B站小粉红",isDark:!1,isCustom:!1,colorPrimary:"#ff6699",colorTheme:"#ff6699"},iy=[jd,...mk];function Fo(){const e=Sn().theme||jd.id;return f.useMemo(()=>iy.find(t=>t.id===e)||jd,[e])}function gk(){const e=Fo().id;return F("div",{style:{display:"flex",flexWrap:"wrap"},children:iy.map(t=>{const r=e===t.id;return Q("div",{style:{minWidth:"70px",textAlign:"center",margin:"0 20px 20px 0",cursor:"pointer"},onClick:n=>{Ra({theme:t.id});},children:[F("div",{className:"preview-wrapper",style:{width:"50px",height:"50px",padding:"3px",border:"2px solid transparent",borderRadius:"5px",margin:"0 auto",borderColor:r?`${t.colorPrimary}`:"transparent"},children:F("div",{className:"preview",style:{height:"100%",width:"100%",backgroundColor:`${t.colorPrimary}`,borderRadius:"5px"}})}),t.name]},t.id)})})}function oy({children:e}){const t=Ql(),{colorPrimary:r}=Fo();return F(ub,{theme:{algorithm:t?Od.darkAlgorithm:Od.defaultAlgorithm,token:{colorPrimary:r}},children:e})}function Zp(e){return F(jf,{...e,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var th={exports:{}};const bk=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Qp=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Jp=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(Qp());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(Qp());},d=()=>{o&&o.removeEventListener("abort",u);},h=new Promise((v,p)=>{s=()=>{d(),r?v(i):p(i);},l=p,a=(t||setTimeout)(s,n);});return o&&o.addEventListener("abort",u,{once:!0}),h.clear=()=>{c(a),a=null,s();},h},ay=e=>{const t=Jp({...e,willResolve:!0});return t.reject=Jp({...e,willResolve:!1}),t.range=(r,n,i)=>t(bk(r,n),i),t},rh=ay();rh.createWithTimers=ay;th.exports=rh;th.exports.default=rh;var yk=th.exports;const Cc=Bn(yk),wk=10*1e3,Sk=200;async function sy(e,t,r=()=>!0){let n=[];const i=()=>{n=Array.from(document.querySelectorAll(e)).filter(r);};i();const a=performance.now()+wk;for(;!n.length&&performance.now()n.remove(),t)}function xc(){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 Ec,em=yo;Ec=em.createRoot,em.hydrateRoot;var nh={},xr={};Object.defineProperty(xr,"__esModule",{value:!0});xr.DEFAULT_ICON_CONFIGS=void 0;xr.IconConverter=uy;xr.IconProvider=void 0;xr.IconWrapper=Tk;var Us=Ck(f);function ly(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (ly=function(n){return n?r:t})(e)}function Ck(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=ly(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o];}return n.default=e,r&&r.set(e,n),n}var xk=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function rm(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function _k(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var cy={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"};xr.DEFAULT_ICON_CONFIGS=cy;function Ok(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function uy(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return {size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var dy=(0, Us.createContext)(cy),Pk=dy.Provider;xr.IconProvider=Pk;function Tk(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,l=n.theme,c=n.fill,u=n.className,d=n.spin,h=$k(n,xk),v=(0, Us.useContext)(dy),p=(0, Us.useMemo)(Ok,[]),m=uy(p,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},v),g=[v.prefix+"-icon"];return g.push(v.prefix+"-icon-"+e),t&&v.rtl&&g.push(v.prefix+"-icon-rtl"),d&&g.push(v.prefix+"-icon-spin"),u&&g.push(u),Us.default.createElement("span",rm(rm({},h),{},{className:g.join(" ")}),r(m))}}Object.defineProperty(nh,"__esModule",{value:!0});var fy=nh.default=void 0,gu=Mk(f),Rk=xr;function Mk(e){return e&&e.__esModule?e:{default:e}}var Nk=(0, Rk.IconWrapper)("close",!1,function(e){return gu.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},gu.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),gu.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});fy=nh.default=Nk;var ih={};Object.defineProperty(ih,"__esModule",{value:!0});var hy=ih.default=void 0,bu=Ak(f),Ik=xr;function Ak(e){return e&&e.__esModule?e:{default:e}}var kk=(0, Ik.IconWrapper)("config",!1,function(e){return bu.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},bu.default.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}),bu.default.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}))});hy=ih.default=kk;var oh={};Object.defineProperty(oh,"__esModule",{value:!0});var vy=oh.default=void 0,Jo=Lk(f),Fk=xr;function Lk(e){return e&&e.__esModule?e:{default:e}}var Dk=(0, Fk.IconWrapper)("distraught-face",!1,function(e){return Jo.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Jo.default.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}),Jo.default.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}),Jo.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Jo.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});vy=oh.default=Dk;var ah={};Object.defineProperty(ah,"__esModule",{value:!0});var py=ah.default=void 0,ea=zk(f),jk=xr;function zk(e){return e&&e.__esModule?e:{default:e}}var Hk=(0, jk.IconWrapper)("info",!0,function(e){return ea.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},ea.default.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}),ea.default.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]}),ea.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ea.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});py=ah.default=Hk;var sh={};Object.defineProperty(sh,"__esModule",{value:!0});var my=sh.default=void 0,yu=Bk(f),Wk=xr;function Bk(e){return e&&e.__esModule?e:{default:e}}var Vk=(0, Wk.IconWrapper)("loading",!0,function(e){return yu.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},yu.default.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}),yu.default.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}))});my=sh.default=Vk;var lh={};Object.defineProperty(lh,"__esModule",{value:!0});var gy=lh.default=void 0,nn=Gk(f),Uk=xr;function Gk(e){return e&&e.__esModule?e:{default:e}}var Kk=(0, Uk.IconWrapper)("loading-three",!1,function(e){return nn.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},nn.default.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}),nn.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),nn.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});gy=lh.default=Kk;var ch={};Object.defineProperty(ch,"__esModule",{value:!0});var by=ch.default=void 0,wu=Xk(f),qk=xr;function Xk(e){return e&&e.__esModule?e:{default:e}}var Yk=(0, qk.IconWrapper)("return",!0,function(e){return wu.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},wu.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),wu.default.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}))});by=ch.default=Yk;const Zk={Close:fy,Config:hy,DistraughtFace:vy,Return:by,Loading:my,LoadingThree:gy,Info:py};function jn({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const o=Ql();n||(n=o?"#fff":"#333");const a=Zk[e];return F(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}function nm(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function im(e,t,r){var n=[],i=uf(e,n,r);return n.length<2?r:i+t(n)}var Qk=function(t){var r=Om(t);r.sheet.speedy=function(s){this.isSpeedy=s;},r.compat=!0;var n=function(){for(var l=arguments.length,c=new Array(l),u=0;u0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value);}catch(s){a={error:s};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return o}function lr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n-1&&(i=setTimeout(function(){Gs.delete(e);},t)),Gs.set(e,Jr(Jr({},r),{timer:i}));},lF=function(e){return Gs.get(e)},Ks=new Map,cF=function(e){return Ks.get(e)},uF=function(e,t){Ks.set(e,t),t.then(function(r){return Ks.delete(e),r}).catch(function(){Ks.delete(e);});},mi={},dF=function(e,t){mi[e]&&mi[e].forEach(function(r){return r(t)});},Cu=function(e,t){return mi[e]||(mi[e]=[]),mi[e].push(t),function(){var n=mi[e].indexOf(t);mi[e].splice(n,1);}},fF=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(v,p){s?s(p):sF(v,i,p),dF(v,p.data);},h=function(v,p){return p===void 0&&(p=[]),l?l(p):lF(v)};return xy(function(){if(r){var v=h(r);v&&Object.hasOwnProperty.call(v,"data")&&(e.state.data=v.data,e.state.params=v.params,(a===-1||new Date().getTime()-v.time<=a)&&(e.state.loading=!1)),c.current=Cu(r,function(p){e.setState({data:p});});}},[]),ns(function(){var v;(v=c.current)===null||v===void 0||v.call(c);}),r?{onBefore:function(v){var p=h(r,v);return !p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p==null?void 0:p.data,error:void 0,returnNow:!0}:{data:p==null?void 0:p.data,error:void 0}},onRequest:function(v,p){var m=cF(r);return m&&m!==u.current?{servicePromise:m}:(m=v.apply(void 0,lr([],kt(p),!1)),u.current=m,uF(r,m),{servicePromise:m})},onSuccess:function(v,p){var m;r&&((m=c.current)===null||m===void 0||m.call(c),d(r,{data:v,params:p,time:new Date().getTime()}),c.current=Cu(r,function(g){e.setState({data:g});}));},onMutate:function(v){var p;r&&((p=c.current)===null||p===void 0||p.call(c),d(r,{data:v,params:e.state.params,time:new Date().getTime()}),c.current=Cu(r,function(m){e.setState({data:m});}));}}:{}};const hF=fF;var vF=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=f.useRef(),s=f.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),i!==void 0&&(l.trailing=i),o!==void 0&&(l.maxWait=o),l},[n,i,o]);return f.useEffect(function(){if(r){var l=e.runAsync.bind(e);return a.current=og(function(c){c();},r,s),e.runAsync=function(){for(var c=[],u=0;u-1&&ya.splice(r,1);}}if(is){var om=function(){if(!(!uh()||!EF()))for(var e=0;e{aa++,document.body.style.overflow="hidden";},lL=()=>{aa--,aa<0&&(aa=0),aa===0&&(document.body.style.overflow="");};function fh({show:e,onHide:t,children:r,styleModalMask:n,clsModalMask:i,styleModal:o,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?sL():lL();},[e]);const u=f.useRef(null),d=Ql(),{bg:h,c:v}=f.useMemo(()=>{const w=window.getComputedStyle(document.body)["background-color"],C=window.getComputedStyle(document.body).color;return {bg:w,c:C}},[d]),p=f.useMemo(()=>d?{"--bg":h,"--c":v,backgroundColor:h,color:v}:{},[h,v,d]),m=f.useId(),g=f.useMemo(()=>{const w=document.createElement("div");return w.setAttribute("data-id","base-modal-"+m),document.body.appendChild(w),w},[]),b=ft(w=>{var C;(C=u.current)!=null&&C.contains(w.target)||w.target.closest('.ant-tooltip-inner[role="tooltip"]')||l&&t();});return Ut("esc",w=>{e&&c&&(w.preventDefault(),w.stopImmediatePropagation(),setTimeout(t));}),e?yo.createPortal(F("div",{className:q(en.modalMask,i),style:n,onClick:b,children:F("div",{className:q(en.modal,a),style:{...p,width:s,...o},ref:u,children:r})}),g):null}const hh=e=>F(jn,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),cL="_toast-container_mcbuq_1",uL="_single-line_mcbuq_17";function wr(e,t=2e3){const r=document.createElement("div");r.className=cL,r.innerText=e,!e.includes(` `)&&!e.includes("r.remove(),t);}const dL="请求失败, 请重试 !!!",fL="操作失败, 请重试 !!!";function Ty(){return wr(dL)}function Ry(){return wr(fL)}function hL(e){const t=Ka({data:Array.from(e||[]),has(r){return this.data.some(n=>n[0]===r)},set(r,n){const i=this.data.find(o=>o[0]===r);return i?i[1]=n:this.data.push([r,n]),this},get(r){var n;return (n=this.data.find(i=>i[0]===r))==null?void 0:n[1]},delete(r){const n=this.data.findIndex(i=>i[0]===r);return n===-1?!1:(this.data.splice(n,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(r){this.data.forEach(n=>{r(n[1],n[0],this);});},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[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}const My="27eb53fc9058f8c3";async function vL(){var c,u;const t=(await tf.get("https://passport.bilibili.com/login/app/third",{params:{appkey:My,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录B站之后才能使用授权",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const r=t.data.confirm_uri;let n,i;const o=new Promise(d=>{const h=v=>{if(v.origin!="https://www.mcbbs.net"||!v.data)return;const p=v.data.match(/access_key=([0-9a-z]{32})/);if(!p||!p[1])return d({errmsg:"没有获得匹配的密钥"});d(p[1]);};window.addEventListener("message",h),i=()=>window.removeEventListener("message",h),n=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=r,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),i==null||i(),i=void 0,n&&(clearTimeout(n),n=void 0);}const l=await o;return s(),l}async function pL(){const e=await vL();if(typeof e=="object"&&"errmsg"in e){wr(e.errmsg);return}const t=e;return et.accessKey=t,wr("获取成功"),t}function mL(){et.accessKey="",wr("已删除 access_key");}const Ny="https://api.bilibili.com",Iy="https://app.bilibili.com",Oc=tf.create({baseURL:Ny});Oc.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const Pc=tf.create({adapter:L1});Pc.interceptors.request.use(function(e){return e.params={appkey:My,access_key:et.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Pc.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,r=new Uint8Array(e.data),n=t.decode(r);e.data=n;try{e.data=JSON.parse(n);}catch{}}return e});function gL(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw wr("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}const ta=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ay=new Set,Bd=typeof process=="object"&&process?process:{},ky=(e,t,r,n)=>{typeof Bd.emitWarning=="function"?Bd.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`);};let El=globalThis.AbortController,sm=globalThis.AbortSignal;var mm;if(typeof El>"u"){sm=class{constructor(){xt(this,"onabort");xt(this,"_onabort",[]);xt(this,"reason");xt(this,"aborted",!1);}addEventListener(n,i){this._onabort.push(i);}},El=class{constructor(){xt(this,"signal",new sm);t();}abort(n){var i,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(const a of this.signal._onabort)a(n);(o=(i=this.signal).onabort)==null||o.call(i,n);}}};let e=((mm=Bd.env)==null?void 0:mm.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,ky("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const bL=e=>!Ay.has(e),Qn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Fy=e=>Qn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Xs:null:null;class Xs extends Array{constructor(t){super(t),this.fill(0);}}var vo;const ao=class{constructor(t,r){xt(this,"heap");xt(this,"length");if(!A(ao,vo))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0;}static create(t){const r=Fy(t);if(!r)return [];Se(ao,vo,!0);const n=new ao(t,r);return Se(ao,vo,!1),n}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Ys=ao;vo=new WeakMap,ze(Ys,vo,!1);var Gr,Rr,sn,Kr,po,Bt,qr,Vt,Et,Ae,dr,Mr,sr,Xt,Xr,tr,Rn,Mn,Yr,ln,ri,mr,ja,Ud,Ci,Nn,za,Nr,Pl,Ly,xi,mo,Ha,cn,Jn,un,ei,Wa,Gd,go,Zs,bo,Qs,wt,Mt,Ba,Kd,Ei,sa;const Eh=class{constructor(t){ze(this,ja);ze(this,Pl);ze(this,cn);ze(this,un);ze(this,Wa);ze(this,go);ze(this,bo);ze(this,wt);ze(this,Ba);ze(this,Ei);ze(this,Gr,void 0);ze(this,Rr,void 0);ze(this,sn,void 0);ze(this,Kr,void 0);ze(this,po,void 0);xt(this,"ttl");xt(this,"ttlResolution");xt(this,"ttlAutopurge");xt(this,"updateAgeOnGet");xt(this,"updateAgeOnHas");xt(this,"allowStale");xt(this,"noDisposeOnSet");xt(this,"noUpdateTTL");xt(this,"maxEntrySize");xt(this,"sizeCalculation");xt(this,"noDeleteOnFetchRejection");xt(this,"noDeleteOnStaleGet");xt(this,"allowStaleOnFetchAbort");xt(this,"allowStaleOnFetchRejection");xt(this,"ignoreFetchAbort");ze(this,Bt,void 0);ze(this,qr,void 0);ze(this,Vt,void 0);ze(this,Et,void 0);ze(this,Ae,void 0);ze(this,dr,void 0);ze(this,Mr,void 0);ze(this,sr,void 0);ze(this,Xt,void 0);ze(this,Xr,void 0);ze(this,tr,void 0);ze(this,Rn,void 0);ze(this,Mn,void 0);ze(this,Yr,void 0);ze(this,ln,void 0);ze(this,ri,void 0);ze(this,mr,void 0);ze(this,Ci,()=>{});ze(this,Nn,()=>{});ze(this,za,()=>{});ze(this,Nr,()=>!1);ze(this,xi,t=>{});ze(this,mo,(t,r,n)=>{});ze(this,Ha,(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:h,maxSize:v=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:_,ignoreFetchAbort:S}=t;if(r!==0&&!Qn(r))throw new TypeError("max option must be a nonnegative integer");const y=r?Fy(r):Array;if(!y)throw new Error("invalid max value: "+r);if(Se(this,Gr,r),Se(this,Rr,v),this.maxEntrySize=p||A(this,Rr),this.sizeCalculation=m,this.sizeCalculation){if(!A(this,Rr)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(Se(this,po,g),Se(this,ri,!!g),Se(this,Vt,new Map),Se(this,Et,new Array(r).fill(void 0)),Se(this,Ae,new Array(r).fill(void 0)),Se(this,dr,new y(r)),Se(this,Mr,new y(r)),Se(this,sr,0),Se(this,Xt,0),Se(this,Xr,Ys.create(r)),Se(this,Bt,0),Se(this,qr,0),typeof c=="function"&&Se(this,sn,c),typeof u=="function"?(Se(this,Kr,u),Se(this,tr,[])):(Se(this,Kr,void 0),Se(this,tr,void 0)),Se(this,ln,!!A(this,sn)),Se(this,mr,!!A(this,Kr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(A(this,Rr)!==0&&!Qn(A(this,Rr)))throw new TypeError("maxSize must be a positive integer if specified");if(!Qn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ve(this,Pl,Ly).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Qn(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!Qn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ve(this,ja,Ud).call(this);}if(A(this,Gr)===0&&this.ttl===0&&A(this,Rr)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!A(this,Gr)&&!A(this,Rr)){const x="LRU_CACHE_UNBOUNDED";bL(x)&&(Ay.add(x),ky("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,Eh));}}static unsafeExposeInternals(t){return {starts:A(t,Mn),ttls:A(t,Yr),sizes:A(t,Rn),keyMap:A(t,Vt),keyList:A(t,Et),valList:A(t,Ae),next:A(t,dr),prev:A(t,Mr),get head(){return A(t,sr)},get tail(){return A(t,Xt)},free:A(t,Xr),isBackgroundFetch:r=>{var n;return ve(n=t,wt,Mt).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return ve(a=t,bo,Qs).call(a,r,n,i,o)},moveToTail:r=>{var n;return ve(n=t,Ei,sa).call(n,r)},indexes:r=>{var n;return ve(n=t,cn,Jn).call(n,r)},rindexes:r=>{var n;return ve(n=t,un,ei).call(n,r)},isStale:r=>{var n;return A(n=t,Nr).call(n,r)}}}get max(){return A(this,Gr)}get maxSize(){return A(this,Rr)}get calculatedSize(){return A(this,qr)}get size(){return A(this,Bt)}get fetchMethod(){return A(this,po)}get dispose(){return A(this,sn)}get disposeAfter(){return A(this,Kr)}getRemainingTTL(t){return A(this,Vt).has(t)?1/0:0}*entries(){for(const t of ve(this,cn,Jn).call(this))A(this,Ae)[t]!==void 0&&A(this,Et)[t]!==void 0&&!ve(this,wt,Mt).call(this,A(this,Ae)[t])&&(yield [A(this,Et)[t],A(this,Ae)[t]]);}*rentries(){for(const t of ve(this,un,ei).call(this))A(this,Ae)[t]!==void 0&&A(this,Et)[t]!==void 0&&!ve(this,wt,Mt).call(this,A(this,Ae)[t])&&(yield [A(this,Et)[t],A(this,Ae)[t]]);}*keys(){for(const t of ve(this,cn,Jn).call(this)){const r=A(this,Et)[t];r!==void 0&&!ve(this,wt,Mt).call(this,A(this,Ae)[t])&&(yield r);}}*rkeys(){for(const t of ve(this,un,ei).call(this)){const r=A(this,Et)[t];r!==void 0&&!ve(this,wt,Mt).call(this,A(this,Ae)[t])&&(yield r);}}*values(){for(const t of ve(this,cn,Jn).call(this))A(this,Ae)[t]!==void 0&&!ve(this,wt,Mt).call(this,A(this,Ae)[t])&&(yield A(this,Ae)[t]);}*rvalues(){for(const t of ve(this,un,ei).call(this))A(this,Ae)[t]!==void 0&&!ve(this,wt,Mt).call(this,A(this,Ae)[t])&&(yield A(this,Ae)[t]);}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of ve(this,cn,Jn).call(this)){const i=A(this,Ae)[n],o=ve(this,wt,Mt).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,A(this,Et)[n],this))return this.get(A(this,Et)[n],r)}}forEach(t,r=this){for(const n of ve(this,cn,Jn).call(this)){const i=A(this,Ae)[n],o=ve(this,wt,Mt).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,A(this,Et)[n],this);}}rforEach(t,r=this){for(const n of ve(this,un,ei).call(this)){const i=A(this,Ae)[n],o=ve(this,wt,Mt).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,A(this,Et)[n],this);}}purgeStale(){let t=!1;for(const r of ve(this,un,ei).call(this,{allowStale:!0}))A(this,Nr).call(this,r)&&(this.delete(A(this,Et)[r]),t=!0);return t}dump(){const t=[];for(const r of ve(this,cn,Jn).call(this,{allowStale:!0})){const n=A(this,Et)[r],i=A(this,Ae)[r],o=ve(this,wt,Mt).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(A(this,Yr)&&A(this,Mn)){a.ttl=A(this,Yr)[r];const s=ta.now()-A(this,Mn)[r];a.start=Math.floor(Date.now()-s);}A(this,Rn)&&(a.size=A(this,Rn)[r]),t.unshift([n,a]);}return t}load(t){this.clear();for(const[r,n]of t){if(n.start){const i=Date.now()-n.start;n.start=ta.now()-i;}this.set(r,n.value,n);}}set(t,r,n={}){var h,v,p;if(r===void 0)return this.delete(t),this;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=n;let{noUpdateTTL:c=this.noUpdateTTL}=n;const u=A(this,Ha).call(this,t,r,n.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=A(this,Bt)===0?void 0:A(this,Vt).get(t);if(d===void 0)d=A(this,Bt)===0?A(this,Xt):A(this,Xr).length!==0?A(this,Xr).pop():A(this,Bt)===A(this,Gr)?ve(this,go,Zs).call(this,!1):A(this,Bt),A(this,Et)[d]=t,A(this,Ae)[d]=r,A(this,Vt).set(t,d),A(this,dr)[A(this,Xt)]=d,A(this,Mr)[d]=A(this,Xt),Se(this,Xt,d),ds(this,Bt)._++,A(this,mo).call(this,d,u,l),l&&(l.set="add"),c=!1;else {ve(this,Ei,sa).call(this,d);const m=A(this,Ae)[d];if(r!==m){if(A(this,ri)&&ve(this,wt,Mt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(A(this,ln)&&((h=A(this,sn))==null||h.call(this,m,t,"set")),A(this,mr)&&((v=A(this,tr))==null||v.push([m,t,"set"]))),A(this,xi).call(this,d),A(this,mo).call(this,d,u,l),A(this,Ae)[d]=r,l){l.set="replace";const g=m&&ve(this,wt,Mt).call(this,m)?m.__staleWhileFetching:m;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(i!==0&&!A(this,Yr)&&ve(this,ja,Ud).call(this),A(this,Yr)&&(c||A(this,za).call(this,d,i,o),l&&A(this,Nn).call(this,l,d)),!a&&A(this,mr)&&A(this,tr)){const m=A(this,tr);let g;for(;g=m==null?void 0:m.shift();)(p=A(this,Kr))==null||p.call(this,...g);}return this}pop(){var t;try{for(;A(this,Bt);){const r=A(this,Ae)[A(this,sr)];if(ve(this,go,Zs).call(this,!0),ve(this,wt,Mt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(A(this,mr)&&A(this,tr)){const r=A(this,tr);let n;for(;n=r==null?void 0:r.shift();)(t=A(this,Kr))==null||t.call(this,...n);}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=A(this,Vt).get(t);if(o!==void 0){const a=A(this,Ae)[o];if(ve(this,wt,Mt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(A(this,Nr).call(this,o))i&&(i.has="stale",A(this,Nn).call(this,i,o));else return n&&A(this,Ci).call(this,o),i&&(i.has="hit",A(this,Nn).call(this,i,o)),!0}else i&&(i.has="miss");return !1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=A(this,Vt).get(t);if(i!==void 0&&(n||!A(this,Nr).call(this,i))){const o=A(this,Ae)[i];return ve(this,wt,Mt).call(this,o)?o.__staleWhileFetching:o}}async fetch(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:g=!1,status:b,signal:w}=r;if(!A(this,ri))return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:b});const C={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:v,status:b,signal:w};let _=A(this,Vt).get(t);if(_===void 0){b&&(b.fetch="miss");const S=ve(this,bo,Qs).call(this,t,_,C,m);return S.__returned=S}else {const S=A(this,Ae)[_];if(ve(this,wt,Mt).call(this,S)){const O=n&&S.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",O&&(b.returnedStale=!0)),O?S.__staleWhileFetching:S.__returned=S}const y=A(this,Nr).call(this,_);if(!g&&!y)return b&&(b.fetch="hit"),ve(this,Ei,sa).call(this,_),i&&A(this,Ci).call(this,_),b&&A(this,Nn).call(this,b,_),S;const x=ve(this,bo,Qs).call(this,t,_,C,m),M=x.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=y?"stale":"refresh",M&&y&&(b.returnedStale=!0)),M?x.__staleWhileFetching:x.__returned=x}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=A(this,Vt).get(t);if(s!==void 0){const l=A(this,Ae)[s],c=ve(this,wt,Mt).call(this,l);return a&&A(this,Nn).call(this,a,s),A(this,Nr).call(this,s)?(a&&(a.get="stale"),c?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(o||this.delete(t),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(ve(this,Ei,sa).call(this,s),i&&A(this,Ci).call(this,s),l))}else a&&(a.get="miss");}delete(t){var n,i,o,a;let r=!1;if(A(this,Bt)!==0){const s=A(this,Vt).get(t);if(s!==void 0)if(r=!0,A(this,Bt)===1)this.clear();else {A(this,xi).call(this,s);const l=A(this,Ae)[s];ve(this,wt,Mt).call(this,l)?l.__abortController.abort(new Error("deleted")):(A(this,ln)||A(this,mr))&&(A(this,ln)&&((n=A(this,sn))==null||n.call(this,l,t,"delete")),A(this,mr)&&((i=A(this,tr))==null||i.push([l,t,"delete"]))),A(this,Vt).delete(t),A(this,Et)[s]=void 0,A(this,Ae)[s]=void 0,s===A(this,Xt)?Se(this,Xt,A(this,Mr)[s]):s===A(this,sr)?Se(this,sr,A(this,dr)[s]):(A(this,dr)[A(this,Mr)[s]]=A(this,dr)[s],A(this,Mr)[A(this,dr)[s]]=A(this,Mr)[s]),ds(this,Bt)._--,A(this,Xr).push(s);}}if(A(this,mr)&&((o=A(this,tr))!=null&&o.length)){const s=A(this,tr);let l;for(;l=s==null?void 0:s.shift();)(a=A(this,Kr))==null||a.call(this,...l);}return r}clear(){var t,r,n;for(const i of ve(this,un,ei).call(this,{allowStale:!0})){const o=A(this,Ae)[i];if(ve(this,wt,Mt).call(this,o))o.__abortController.abort(new Error("deleted"));else {const a=A(this,Et)[i];A(this,ln)&&((t=A(this,sn))==null||t.call(this,o,a,"delete")),A(this,mr)&&((r=A(this,tr))==null||r.push([o,a,"delete"]));}}if(A(this,Vt).clear(),A(this,Ae).fill(void 0),A(this,Et).fill(void 0),A(this,Yr)&&A(this,Mn)&&(A(this,Yr).fill(0),A(this,Mn).fill(0)),A(this,Rn)&&A(this,Rn).fill(0),Se(this,sr,0),Se(this,Xt,0),A(this,Xr).length=0,Se(this,qr,0),Se(this,Bt,0),A(this,mr)&&A(this,tr)){const i=A(this,tr);let o;for(;o=i==null?void 0:i.shift();)(n=A(this,Kr))==null||n.call(this,...o);}}};let Vd=Eh;Gr=new WeakMap,Rr=new WeakMap,sn=new WeakMap,Kr=new WeakMap,po=new WeakMap,Bt=new WeakMap,qr=new WeakMap,Vt=new WeakMap,Et=new WeakMap,Ae=new WeakMap,dr=new WeakMap,Mr=new WeakMap,sr=new WeakMap,Xt=new WeakMap,Xr=new WeakMap,tr=new WeakMap,Rn=new WeakMap,Mn=new WeakMap,Yr=new WeakMap,ln=new WeakMap,ri=new WeakMap,mr=new WeakMap,ja=new WeakSet,Ud=function(){const t=new Xs(A(this,Gr)),r=new Xs(A(this,Gr));Se(this,Yr,t),Se(this,Mn,r),Se(this,za,(o,a,s=ta.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{A(this,Nr).call(this,o)&&this.delete(A(this,Et)[o]);},a+1);l.unref&&l.unref();}}),Se(this,Ci,o=>{r[o]=t[o]!==0?ta.now():0;}),Se(this,Nn,(o,a)=>{if(t[a]){const s=t[a],l=r[a];o.ttl=s,o.start=l,o.now=n||i();const c=o.now-l;o.remainingTTL=s-c;}});let n=0;const i=()=>{const o=ta.now();if(this.ttlResolution>0){n=o;const a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref();}return o};this.getRemainingTTL=o=>{const a=A(this,Vt).get(o);if(a===void 0)return 0;const s=t[a],l=r[a];if(s===0||l===0)return 1/0;const c=(n||i())-l;return s-c},Se(this,Nr,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o]);},Ci=new WeakMap,Nn=new WeakMap,za=new WeakMap,Nr=new WeakMap,Pl=new WeakSet,Ly=function(){const t=new Xs(A(this,Gr));Se(this,qr,0),Se(this,Rn,t),Se(this,xi,r=>{Se(this,qr,A(this,qr)-t[r]),t[r]=0;}),Se(this,Ha,(r,n,i,o)=>{if(ve(this,wt,Mt).call(this,n))return 0;if(!Qn(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!Qn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),Se(this,mo,(r,n,i)=>{if(t[r]=n,A(this,Rr)){const o=A(this,Rr)-t[r];for(;A(this,qr)>o;)ve(this,go,Zs).call(this,!0);}Se(this,qr,A(this,qr)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=A(this,qr));});},xi=new WeakMap,mo=new WeakMap,Ha=new WeakMap,cn=new WeakSet,Jn=function*({allowStale:t=this.allowStale}={}){if(A(this,Bt))for(let r=A(this,Xt);!(!ve(this,Wa,Gd).call(this,r)||((t||!A(this,Nr).call(this,r))&&(yield r),r===A(this,sr)));)r=A(this,Mr)[r];},un=new WeakSet,ei=function*({allowStale:t=this.allowStale}={}){if(A(this,Bt))for(let r=A(this,sr);!(!ve(this,Wa,Gd).call(this,r)||((t||!A(this,Nr).call(this,r))&&(yield r),r===A(this,Xt)));)r=A(this,dr)[r];},Wa=new WeakSet,Gd=function(t){return t!==void 0&&A(this,Vt).get(A(this,Et)[t])===t},go=new WeakSet,Zs=function(t){var o,a;const r=A(this,sr),n=A(this,Et)[r],i=A(this,Ae)[r];return A(this,ri)&&ve(this,wt,Mt).call(this,i)?i.__abortController.abort(new Error("evicted")):(A(this,ln)||A(this,mr))&&(A(this,ln)&&((o=A(this,sn))==null||o.call(this,i,n,"evict")),A(this,mr)&&((a=A(this,tr))==null||a.push([i,n,"evict"]))),A(this,xi).call(this,r),t&&(A(this,Et)[r]=void 0,A(this,Ae)[r]=void 0,A(this,Xr).push(r)),A(this,Bt)===1?(Se(this,sr,Se(this,Xt,0)),A(this,Xr).length=0):Se(this,sr,A(this,dr)[r]),A(this,Vt).delete(n),ds(this,Bt)._--,r},bo=new WeakSet,Qs=function(t,r,n,i){const o=r===void 0?void 0:A(this,Ae)[r];if(ve(this,wt,Mt).call(this,o))return o;const a=new El,{signal:s}=n;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:n,context:i},c=(m,g=!1)=>{const{aborted:b}=a.signal,w=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(b&&!g?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,w&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!w&&!g)return d(a.signal.reason);const C=v;return A(this,Ae)[r]===v&&(m===void 0?C.__staleWhileFetching?A(this,Ae)[r]=C.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),d(m)),d=m=>{const{aborted:g}=a.signal,b=g&&n.allowStaleOnFetchAbort,w=b||n.allowStaleOnFetchRejection,C=w||n.noDeleteOnFetchRejection,_=v;if(A(this,Ae)[r]===v&&(!C||_.__staleWhileFetching===void 0?this.delete(t):b||(A(this,Ae)[r]=_.__staleWhileFetching)),w)return n.status&&_.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw m},h=(m,g)=>{var w;const b=(w=A(this,po))==null?void 0:w.call(this,t,o,l);b&&b instanceof Promise&&b.then(C=>m(C),g),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(),n.allowStaleOnFetchAbort&&(m=C=>c(C,!0)));});};n.status&&(n.status.fetchDispatched=!0);const v=new Promise(h).then(c,u),p=Object.assign(v,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(t,p,{...l.options,status:void 0}),r=A(this,Vt).get(t)):A(this,Ae)[r]=p,p},wt=new WeakSet,Mt=function(t){if(!A(this,ri))return !1;const r=t;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof El},Ba=new WeakSet,Kd=function(t,r){A(this,Mr)[r]=t,A(this,dr)[t]=r;},Ei=new WeakSet,sa=function(t){t!==A(this,Xt)&&(t===A(this,sr)?Se(this,sr,A(this,dr)[t]):ve(this,Ba,Kd).call(this,A(this,Mr)[t],A(this,dr)[t]),ve(this,Ba,Kd).call(this,A(this,Xt),t),Se(this,Xt,t));};async function yL(e){return (await Oc.get("/pvideo",{params:{aid:e}})).data.data}async function wL(e){return []}const Eu=new Vd({max:200});async function SL(e){if(Eu.has(e))return Eu.get(e);const[t,r]=await Promise.all([yL(e),wL()]);return Eu.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function Dy(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",gL());const o=(await Oc.post("/x/v2/history/toview/"+e,n,{withCredentials:!0})).data,a=(o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0";return a||wr((o==null?void 0:o.message)||"出错了"),a}}const CL=Dy("add"),xL=Dy("del"),jy=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await Pc.get(Iy+t,{params:{goto:r.goto,id:r.param,reason_id:n,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0"}},EL=jy("dislike"),$L=jy("cancel"),_L="_modal_1rloz_1",OL="_title-desc_1rloz_4",PL="_reason-list_1rloz_8",TL="_reason_1rloz_8",RL="_active_1rloz_29",ML="_reason-no_1rloz_33",NL="_tips-container_1rloz_47",IL="_tips_1rloz_47",Hr={modal:_L,titleDesc:OL,reasonList:PL,reason:TL,active:RL,reasonNo:ML,tipsContainer:NL,tips:IL},Tc=hL();function AL(){return Ro(Tc)}function kL(e){const t=AL();if(e)return t.get(e)}function FL({show:e,onHide:t,item:r}){const[n,i]=f.useState(!1),o=ft(async p=>{if(!r)return;let m=!1,g;try{i(!0),m=await EL(r,p.id);}catch(b){g=b;}finally{i(!1);}if(g)return console.error(g.stack||g),Ty();m?wr("已标记不想看"):Ry(),m&&(Tc.set(r.param,{...p}),t());}),a=f.useMemo(()=>{var p;return ((p=r==null?void 0:r.three_point)==null?void 0:p.dislike_reasons)||[]},[r]),s=()=>!!e&&!!r,l=["1","2","3","4","5","6"];Ut(l,p=>{if(!s()||!l.includes(p.key))return;const m=Number(p.key)-1;u(m);const g=document.querySelectorAll(`.${Hr.reason}`)[m]||null;g==null||g.click();});const[c,u]=f.useState(a.length-1);eL(()=>{u(a.length-1);},[a]);const d=p=>()=>{if(!s())return;const m=c+p;m<0||m>a.length-1||u(m);};Ut("leftarrow",d(-1)),Ut("rightarrow",d(1)),Ut("uparrow",d(-2)),Ut("downarrow",d(2)),Ut("enter",p=>{var m;s()&&(c<0||c>a.length-1||(p.preventDefault(),p.stopImmediatePropagation(),(m=document.querySelector(`.${Hr.reason}.${Hr.active}`))==null||m.click()));});const h=f.useMemo(()=>{var p;return ((p=a[c])==null?void 0:p.name)||""},[a,c]),{colorPrimary:v}=Fo();return Q(fh,{show:e,onHide:t,clsModal:Hr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[Q("div",{className:en.modalHeader,children:[Q("div",{className:en.modalTitle,children:["我不想看",F("span",{className:Hr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),F("div",{className:"space",style:{flex:1}}),F(hh,{onClick:t})]}),Q("div",{className:en.modalBody,children:[F("div",{className:Hr.reasonList,children:a.map((p,m)=>Q("button",{className:q(Hr.reason,{[Hr.active]:m===c}),style:{...m===c&&{borderColor:v}},"data-id":p.id,onClick:()=>{u(m),o(p);},disabled:n,children:[F("span",{className:Hr.reasonNo,style:{backgroundColor:v},children:m+1}),p.name]},p.id))}),Q("div",{className:Hr.tipsContainer,children:[Q("div",{className:Hr.tips,children:[F(jn,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),h&&Q("div",{className:Hr.tips,children:[F(jn,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",h,"」, 回车键提交"]})]})]})]})}const Js={show:!1,onHide:Hy,item:null},zy=Ka({value:Js.show}),LL=function(){return Ro(zy).value};function Hy(){setTimeout(()=>{Wy({show:!1,item:null});});}function Wy(e){Object.assign(Js,e),zy.value=Js.show,DL().render(F(FL,{...Js,onHide:Hy}));}let $u;function DL(){if(!$u){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),$u=Ec(e);}return $u}function jL(e){e!=null&&e.param&&Tc.has(e.param)||Wy({show:!0,item:e});}function zL(e){return e||(e=0),Zl.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function _u(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function lm(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 HL="_bili-video-card_mlccj_1",WL="_image-wrapper_mlccj_4",BL="_preview-card-wrapper_mlccj_8",VL="_preview-card-inner_mlccj_21",UL="_watch-later_mlccj_25",GL="_badge_mlccj_28",KL="_recommend-reason_mlccj_37",qL="_bangumi-desc_mlccj_52",XL="_btn-dislike_mlccj_55",YL="_btn-dislike-icon_mlccj_70",ZL="_btn-dislike-tip_mlccj_77",QL="_disliked-wrapper_mlccj_92",JL="_dislike-content-cover_mlccj_106",eD="_dislike-content-cover-inner_mlccj_112",tD="_dislike-icon_mlccj_123",rD="_dislike-reason_mlccj_126",nD="_dislike-desc_mlccj_130",iD="_dislike-content-action_mlccj_134",oD="_skeleton-active_mlccj_151",aD="_ant-skeleton-loading_mlccj_1",Gt={biliVideoCard:HL,imageWrapper:WL,previewCardWrapper:BL,previewCardInner:VL,watchLater:UL,badge:GL,recommendReason:KL,bangumiDesc:qL,btnDislike:XL,btnDislikeIcon:YL,btnDislikeTip:ZL,dislikedWrapper:QL,dislikeContentCover:JL,dislikeContentCoverInner:eD,dislikeIcon:tD,dislikeReason:rD,dislikeDesc:nD,dislikeContentAction:iD,skeletonActive:oD,antSkeletonLoading:aD};function sD(...e){for(const t of e)if(!isNaN(t))return t;return 0}function lD({className:e,videoDuration:t,pvideo:r,mouseEnterRelativeX:n,previewAnimationProgress:i}){const o=f.useRef(null),a=ZF(o),[s,l]=f.useState(()=>({width:0,height:0}));dh(()=>{var h;const d=(h=o.current)==null?void 0:h.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof i=="number")c=i;else {const d=sD(a.elementX,n||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:r,elWidth:s.width,elHeight:s.height,progress:c};return F("div",{ref:o,className:q(Gt.previewCardWrapper,e),children:!!(r&&s.width&&s.height&&c)&&F(cD,{...u})})}function cD({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,progress:i}){var S;const o=Math.floor((e||0)*i);let a=f.useMemo(()=>{const y=(t==null?void 0:t.index)||[];let x=dD(y,o);return x!==-1?x:o>y[y.length-1]?(x=Math.floor(y.length*i)-1,x<0&&(x=0),x):0},[t,o]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const h=Math.floor(a/d),v=a-h*d,p=((S=t.image)==null?void 0:S[h])||"",m=Math.floor(v/s)+1,g=v-(m-1)*s,b=r*s,w=n*l,C=(m-1)*n,_=(g-1)*r;return F("div",{className:Gt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${p})`,backgroundPosition:`-${_}px -${C}px`,backgroundSize:`${b}px ${w}px`},children:F(uD,{progress:i})})}function uD({progress:e}){const{colorPrimary:t}=Fo();return F("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:F("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function dD(e,t){let r=0,n=e.length-1,i=-1;for(;r<=n;){const s=Math.floor((r+n)/2),l=e[s];if(t===l)return s;l{const t=Da[e]||Da[1];return qd[t]},vD=e=>{const t=Da[e];if(t)return fD[t]};function cm(e){return {iconSvgName:hD(e),iconSvgScale:vD(e)}}function By(e){var R,M,O;const t=e.api==="pc",r=e.api==="app",n=String(t?e.id:e.param),i=t?e.bvid:"",o=e.goto,a=N=>{if(t)return;const{cover_left_icon_1:T,cover_left_text_1:E,cover_left_icon_2:$,cover_left_text_2:P}=e;if(T&&Da[T]===N)return lm(E);if($&&Da[$]===N)return lm(P)},s=t?e.stat.view:a("play"),l=t?e.stat.like:void 0,c=void 0,u=t?e.stat.danmaku:a("danmaku"),d=e.title,h=t?e.pic:e.cover,v=t?e.pubdate:void 0,p=(t?e.duration:(R=e.player_args)==null?void 0:R.duration)||0,m=t?e.owner.name:e.args.up_name,g=t?e.owner.face:void 0,b=t?e.owner.mid:e.args.up_id,w=void 0,C=t?void 0:e.badge,_=t?void 0:((M=e.desc_button)==null?void 0:M.text)||e.desc||"",S=t?void 0:e.badge_style,y=t?(O=e.rcmd_reason)==null?void 0:O.content:e.rcmd_reason,x=t?void 0:e.rcmd_reason_style;return {isPc:t,isApp:r,id:n,bvid:i,goto:o,play:s,like:l,coin:c,danmaku:u,title:d,coverRaw:h,pubdate:v,duration:p,name:m,face:g,mid:b,favorite:w,recommendReason:y,recommendReasonStyleConfig:x,appBadge:C,appBadgeDesc:_,appBadgeStyleConfig:S}}const pD=Zl().format("YYYY"),mD=e=>{if(!e)return "";const t=Zl.unix(e);return t.format("YYYY")===pD?t.format("M-D"):t.format("YY-M-D")},gD=e=>(e||"").replace(/^http:\/\//,"https://"),$l=f.memo(f.forwardRef(function({style:t,className:r,item:n,loading:i,active:o,...a},s){i=i??!n;const l=Q("div",{className:q("bili-video-card__skeleton",{hide:!i,[Gt.skeletonActive]:i}),children:[F("div",{className:"bili-video-card__skeleton--cover"}),F("div",{className:"bili-video-card__skeleton--info",children:Q("div",{className:"bili-video-card__skeleton--right",children:[F("p",{className:"bili-video-card__skeleton--text"}),F("p",{className:"bili-video-card__skeleton--text short"}),F("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=kL((n==null?void 0:n.api)==="app"&&n.param),u=f.useRef(null),d=f.useRef(null);return f.useImperativeHandle(s,()=>({async onCancelDislike(){var h;await((h=u.current)==null?void 0:h.onCancelDislike());},async onToggleWatchLater(){var h;await((h=d.current)==null?void 0:h.onToggleWatchLater());},onTriggerDislike(){var h;(h=d.current)==null||h.onTriggerDislike();},onStartPreviewAnimation(){var h;(h=d.current)==null||h.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var h;(h=d.current)==null||h.onHotkeyPreviewAnimation();}}),[u,d]),Q("div",{style:t,className:q("bili-video-card",Gt.biliVideoCard,r),"data-report":"partition_recommend.content",...a,children:[l,!i&&n&&(c?F(bD,{ref:u,item:n,dislikedReason:c}):F(yD,{ref:d,item:n,active:o}))]})})),bD=f.memo(f.forwardRef(function({dislikedReason:t,item:r},n){const i=ft(async()=>{if(!(t!=null&&t.id))return;let o=!1,a;try{o=await $L(r,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),Ty();o?wr("已撤销"):Ry(),o&&Tc.delete(r.param);});return f.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),Q("div",{className:q(Gt.dislikedWrapper),children:[F("div",{className:Gt.dislikeContentCover,children:Q("div",{className:Gt.dislikeContentCoverInner,children:[F(jn,{name:"DistraughtFace",size:32,className:Gt.dislikeIcon}),F("div",{className:Gt.dislikeReason,children:t==null?void 0:t.name}),F("div",{className:Gt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),F("div",{className:Gt.dislikeContentAction,children:Q("button",{onClick:i,children:[F(jn,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),yD=f.memo(f.forwardRef(function({item:t,active:r=!1},n){const i=t.api==="pc",o=t.api==="app",{id:a,bvid:s,goto:l,play:c,like:u,coin:d,danmaku:h,title:v,coverRaw:p,pubdate:m,duration:g,name:b,face:w,mid:C,recommendReason:_,recommendReasonStyleConfig:S,favorite:y,appBadge:x,appBadgeDesc:R,appBadgeStyleConfig:M}=f.useMemo(()=>By(t),[t]),O=t.goto==="av",N=t.goto==="bangumi",T=t.goto==="picture";["av","bangumi","picture"].includes(l)||console.warn(`[${li}]: none (av,bangumi,picture) goto type %s`,l,t);const E=f.useMemo(()=>mD(m),[m]),$=f.useMemo(()=>gD(p),[p]),[P,k]=f.useState(null),I=f.useRef(!1),L=ft(async()=>{if(!P&&!I.current)try{I.current=!0,k(await SL(a));}finally{I.current=!1;}}),j=f.useRef(null),[U,G]=f.useState(void 0);Pi("mouseenter",ge=>{var Oe;const Ne=(Oe=j.current)==null?void 0:Oe.getBoundingClientRect();if(!Ne)return;const{x:Le}=Ne,Ce=ge.pageX-window.pageXOffset-Le;G(Ce);},{target:j});const z=xu(j),{autoPreviewWhenHover:H}=Sn(),{onStartPreviewAnimation:K,onHotkeyPreviewAnimation:B,previewAnimationProgress:Z}=wD({id:a,title:v,autoPreviewWhenHover:H,active:r,tryFetchVideoData:L,videoPreviewWrapperRef:j});xl(()=>{r&&(unsafeWindow[`${Hw}_activeItem`]=t,et.autoPreviewWhenKeyboardSelect&&K());},[r]);const ee=f.useRef(null),te=xu(ee),[J,ae]=f.useState(!1),{accessKey:ne}=Sn(),ke=!!ne;f.useEffect(()=>{z&&L();},[z]),f.useImperativeHandle(n,()=>({onToggleWatchLater:le,onTriggerDislike:Te,onStartPreviewAnimation:K,onHotkeyPreviewAnimation:B}),[]);const[se,de]=f.useState(!1),le=ft(async ge=>{if(ge==null||ge.preventDefault(),se)return;de(!0);const Ne=J?xL:CL;let Le=!1;try{Le=await Ne(a);}finally{de(!1);}Le&&ae(Ce=>!Ce);}),re=f.useRef(null),be=xu(re),Te=ft(ge=>{ge==null||ge.stopPropagation(),ge==null||ge.preventDefault(),o&&jL(t);}),ce=f.useMemo(()=>i?O&&s?`/video/${s}`:t.uri:(()=>{var ge;if(t.uri.startsWith("http://")||t.uri.startsWith("https://"))return t.uri;if(O)return `/video/av${t.param}`;if(N)return console.warn(`[${li}]: bangumi uri should not starts with 'bilibili://': %s`,t.uri),t.uri;if(T){const Ne=(ge=/^bilibili:\/\/article\/(\d+)$/.exec(t.uri))==null?void 0:ge[1];return Ne?`/read/cv${Ne}`:t.uri}return t.uri})(),[t]),ie=f.useMemo(()=>zL(g),[g]),ue=f.useMemo(()=>_u(c),[c]),We=f.useMemo(()=>_u(u),[u]),Fe=f.useMemo(()=>_u(y),[y]),vt=i?We:Fe,Je=ft(ge=>{if(!et.openInIINAWhenRightClick)return;const Ne=new URL(ce,location.href).href,Le=`iina://open?url=${encodeURIComponent(Ne)}`;window.open(Le,"_self"),ge.preventDefault();}),$e=({text:ge,iconSvgName:Ne,iconSvgScale:Le})=>Q("span",{className:"bili-video-card__stats--item",children:[F("svg",{className:"bili-video-card__stats--icon",style:{transform:Le?`scale(${Le})`:void 0},children:F("use",{href:Ne})}),F("span",{className:"bili-video-card__stats--text",children:ge})]});return Q("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:Je,children:[F("a",{href:ce,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:Q("div",{className:"bili-video-card__image __scale-player-wrap",ref:j,children:[Q("div",{className:q("bili-video-card__image--wrap",Gt.imageWrapper),children:[Q("picture",{className:"v-img bili-video-card__cover",children:[F("source",{srcSet:`${$}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),F("source",{srcSet:`${$}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),F("img",{src:`${$}@672w_378h_1c_!web-home-common-cover`,alt:v,loading:"eager"})]}),(z||typeof Z=="number")&&F(lD,{videoDuration:g,pvideo:P==null?void 0:P.pvideoData,mouseEnterRelativeX:U,previewAnimationProgress:Z}),Q("div",{className:`bili-watch-later ${Gt.watchLater}`,style:{display:z||r?"flex":"none"},ref:ee,onClick:le,children:[F("svg",{className:"bili-watch-later__icon",children:F("use",{href:J?"#widget-watch-save":"#widget-watch-later"})}),F("span",{className:"bili-watch-later__tip",style:{display:te?"block":"none"},children:J?"移除":"稍后再看"})]}),o&&ke&&Q("div",{ref:re,className:Gt.btnDislike,onClick:Te,style:{display:z?"flex":"none"},children:[F("svg",{className:Gt.btnDislikeIcon,children:F("use",{href:"#widget-close"})}),F("span",{className:Gt.btnDislikeTip,style:{display:be?"block":"none"},children:"我不想看"})]})]}),F("div",{className:"bili-video-card__mask",children:Q("div",{className:"bili-video-card__stats",children:[F("div",{className:"bili-video-card__stats--left",children:i?Q(Dt,{children:[$e({text:ue,iconSvgName:qd.play}),$e({text:l==="av"?We:vt,iconSvgName:qd.like})]}):Q(Dt,{children:[t.cover_left_text_1&&$e({...cm(t.cover_left_icon_1),text:l==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&$e({...cm(t.cover_left_icon_2),text:l==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]})}),F("span",{className:"bili-video-card__stats__duration",children:O&&ie})]})})]})}),F("div",{className:"bili-video-card__info __scale-disable",children:Q("div",{className:"bili-video-card__info--right",children:[F("a",{href:ce,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:F("h3",{className:"bili-video-card__info--tit",title:v,children:v})}),F("p",{className:"bili-video-card__info--bottom",children:O?Q("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${C}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[_?F("span",{className:Gt.recommendReason,children:_}):F("svg",{className:"bili-video-card__info--owner__up",children:F("use",{href:"#widget-up"})}),F("span",{className:"bili-video-card__info--author",children:b}),E&&Q("span",{className:"bili-video-card__info--date",children:["· ",E]})]}):x||R?Q("a",{className:"bili-video-card__info--owner",href:ce,target:"_blank",children:[F("span",{className:Gt.badge,children:x||""}),F("span",{className:Gt.bangumiDesc,children:R||""})]}):null})]})})]})}));function wD({id:e,title:t,autoPreviewWhenHover:r,active:n,tryFetchVideoData:i,videoPreviewWrapperRef:o}){const[s,l]=Py(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),h=f.useRef(!1);Pi("mouseenter",R=>{d.current=!0,r&&!p.current&&x(!0);},{target:o}),Pi("mouseleave",R=>{d.current=!1;},{target:o}),Pi("mousemove",R=>{u(!0),r||g();},{target:o});const v=JF(),p=f.useRef(void 0),m=ft(()=>{if(v.current)return !0;if(r){if(h.current){if(!d.current)return !0}else if(!n)return !0}else if(!n||c)return !0;return !1}),g=ft((R=!1)=>{p.current&&cancelAnimationFrame(p.current),p.current=void 0,l(void 0),w(!1);}),[b,w,C]=qs(!1),_=f.useRef(),S=ft(()=>{var R;if(!p.current){x();return}w(M=>!M),b&&((R=_.current)==null||R.call(_,s||0));}),y=ft(()=>s||0),x=ft((R=!1)=>{h.current=R,u(!1),w(!1),i(),g(!0),l($=>typeof $>"u"?0:$);const M=8e3,O=()=>typeof et.autoPreviewUpdateInterval=="number"?et.autoPreviewUpdateInterval:400;let N=performance.now(),T=0;_.current=()=>{N=performance.now()-y()*M;};function E($){if(m()){g();return}const P=()=>{const k=performance.now()-N,I=Math.min(k%M/M,1);l(I);};C()||(O()?(!T||performance.now()-T>=O())&&(T=performance.now(),P()):P()),p.current=requestAnimationFrame(E);}p.current=requestAnimationFrame(E);});return {onHotkeyPreviewAnimation:S,onStartPreviewAnimation:x,previewAnimationProgress:s}}const vh="_video-grid_tu03i_9",SD="_limit-two-lines_tu03i_19",Vy="_internal-testing_tu03i_51",CD="_narrow-mode_tu03i_79";function xD({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:o,changeScrollY:a,videoCardRefs:s}){const[l,c]=f.useState(void 0),u=ft(()=>!(!e||xc())),d=ft(()=>{var x;if(typeof l!="number"||!i.current)return !1;const S=o(),y=(x=i.current.querySelector(`.${Si.card}.${Si.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!S||!y||y.top-S.top<-(S.height+y.height)||y.top-S.top>S.height*2+y.height)}),h=S=>y=>{if(!u())return;y==null||y.preventDefault();let x=typeof S=="number"?S:S();const R=d()?l+x:m();if(Rn){C(n);return}c(R),C(R);};Ut("leftarrow",h(-1),{exactMatch:!0}),Ut("rightarrow",h(1),{exactMatch:!0});const v=()=>ph(i.current);Ut("uparrow",h(()=>-v()),{exactMatch:!0}),Ut("downarrow",h(v),{exactMatch:!0});const p=()=>{u()&&c(void 0);};Ut("esc",p),Ut("enter",()=>{!u()||typeof l!="number"||_(l);}),Ut("backspace",()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onTriggerDislike();}),Ut(["s","w"],()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onToggleWatchLater();},{exactMatch:!0}),Ut(["period","p"],()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onHotkeyPreviewAnimation();},{exactMatch:!0});function m(){const S=o();if(!S)return 0;const y=b();for(let x=0;x=S.top)return x;return 0}const g=`.${Si.card}`;function b(){var S;return [...((S=i.current)==null?void 0:S.querySelectorAll(g))||[]]}function w(S){return b()[S]}function C(S){var M;const y=w(S);(M=y==null?void 0:y.scrollIntoViewIfNeeded)==null||M.call(y,!1);const x=o(),R=y.getBoundingClientRect();if(!(!x||!R)){if(R.top<=x.top){const O=-(x.top-R.top+10);a==null||a({offset:O});return}if(x.bottom-R.bottom<10){const O=10-(x.bottom-R.bottom);a==null||a({offset:O});return}}}function _(S){const y=w(S);if(!y)return;const x=y.querySelector(".bili-video-card__wrap > a");x==null||x.click();}return {activeIndex:l,clearActiveIndex:p}}const um=new Map;function ph(e){if(et.useNarrowMode)return 2;let t=um.get(window.innerWidth);if(t)return t;if(e||(e=document.querySelector(`.${vh}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(t=r.gridTemplateColumns.split(" ").length,um.set(window.innerWidth,t),t)}function Uy(){return et.filterMinDurationEnabled||et.filterMinPlayCountEnabled}function Gy(e){return Uy()?e.filter(t=>{const{play:r,duration:n,recommendReason:i}=By(t);return !et.enableFilterForFollowed&&(i==="已关注"||(i==null?void 0:i.includes("关注")))?!0:!(typeof r=="number"&&et.filterMinPlayCountEnabled&&et.filterMinPlayCount&&r1)for(var r=1;r=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return "[Circular]"}default:return s}}),a=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Mc(t)?r.showHidden=t:t&&Sh(r,t),vn(r.showHidden)&&(r.showHidden=!1),vn(r.depth)&&(r.depth=2),vn(r.colors)&&(r.colors=!1),vn(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=PD),_l(r,e,r.depth)}gn.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]};gn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function PD(e,t){var r=gn.styles[t];return r?"\x1B["+gn.colors[r][0]+"m"+e+"\x1B["+gn.colors[r][1]+"m":e}function TD(e,t){return e}function RD(e){var t={};return e.forEach(function(r,n){t[r]=!0;}),t}function _l(e,t,r){if(e.customInspect&&t&&Ca(t.inspect)&&t.inspect!==gn&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return as(n)||(n=_l(e,n,r)),n}var i=MD(e,t);if(i)return i;var o=Object.keys(t),a=RD(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Sa(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Tu(t);if(o.length===0){if(Ca(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(wa(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ol(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Sa(t))return Tu(t)}var l="",c=!1,u=["{","}"];if(bh(t)&&(c=!0,u=["[","]"]),Ca(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(wa(t)&&(l=" "+RegExp.prototype.toString.call(t)),Ol(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Sa(t)&&(l=" "+Tu(t)),o.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(r<0)return wa(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return c?h=ND(e,t,r,a,o):h=o.map(function(v){return Qd(e,t,r,a,v,c)}),e.seen.pop(),ID(h,l,u)}function MD(e,t){if(vn(t))return e.stylize("undefined","undefined");if(as(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(yh(t))return e.stylize(""+t,"number");if(Mc(t))return e.stylize(""+t,"boolean");if(os(t))return e.stylize("null","null")}function Tu(e){return "["+Error.prototype.toString.call(e)+"]"}function ND(e,t,r,n,i){for(var o=[],a=0,s=t.length;a-1&&(o?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")),vn(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function ID(e,t,r){var n=e.reduce(function(i,o){return o.indexOf(` `)>=0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function bh(e){return Array.isArray(e)}function Mc(e){return typeof e=="boolean"}function os(e){return e===null}function Jy(e){return e==null}function yh(e){return typeof e=="number"}function as(e){return typeof e=="string"}function e1(e){return typeof e=="symbol"}function vn(e){return e===void 0}function wa(e){return Fi(e)&&wh(e)==="[object RegExp]"}function Fi(e){return typeof e=="object"&&e!==null}function Ol(e){return Fi(e)&&wh(e)==="[object Date]"}function Sa(e){return Fi(e)&&(wh(e)==="[object Error]"||e instanceof Error)}function Ca(e){return typeof e=="function"}function t1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function r1(e){return Buffer.isBuffer(e)}function wh(e){return Object.prototype.toString.call(e)}function Ru(e){return e<10?"0"+e.toString(10):e.toString(10)}var AD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function kD(){var e=new Date,t=[Ru(e.getHours()),Ru(e.getMinutes()),Ru(e.getSeconds())].join(":");return [e.getDate(),AD[e.getMonth()],t].join(" ")}function n1(){console.log("%s - %s",kD(),Oo.apply(null,arguments));}function Sh(e,t){if(!t||!Fi(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function i1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const FD={inherits:Zy,_extend:Sh,log:n1,isBuffer:r1,isPrimitive:t1,isFunction:Ca,isError:Sa,isDate:Ol,isObject:Fi,isRegExp:wa,isUndefined:vn,isSymbol:e1,isString:as,isNumber:yh,isNullOrUndefined:Jy,isNull:os,isBoolean:Mc,isArray:bh,inspect:gn,deprecate:gh,format:Oo,debuglog:Qy},LD=Object.freeze(Object.defineProperty({__proto__:null,_extend:Sh,debuglog:Qy,default:FD,deprecate:gh,format:Oo,inherits:Zy,inspect:gn,isArray:bh,isBoolean:Mc,isBuffer:r1,isDate:Ol,isError:Sa,isFunction:Ca,isNull:os,isNullOrUndefined:Jy,isNumber:yh,isObject:Fi,isPrimitive:t1,isRegExp:wa,isString:as,isSymbol:e1,isUndefined:vn,log:n1},Symbol.toStringTag,{value:"Module"})),DD=uw(LD);var jD=DD.format;function zD(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function HD(e,t){return function(){var r=this,n=[].slice.call(arguments);zD();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var l=new o1(t);a(l),i.abort();},t);Promise.resolve(e.apply(r,n)).then(function(l){clearTimeout(s),o(l);},function(l){clearTimeout(s),a(l);});})}}let o1=class a1 extends Error{constructor(t){super(),this.timeout=t,this.message=jD("timeout of %sms exceed",t),Error.captureStackTrace(this,a1);}};mh.exports=HD;mh.exports.TimeoutError=o1;var WD=mh.exports;const s1=WD,BD=s1.TimeoutError;Rc.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=s1(t,o));const a=r.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(i);for(let u=0;u"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class VD 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 UD=Rc.exports.RetryError=l1;Rc.exports.TimeoutError=BD;var GD=Rc.exports;const KD=Bn(GD);class Ch extends Error{constructor(t){super(),Error.captureStackTrace(this,Ch),this.json=t,this.message=t.message||JSON.stringify(t);}}const qD=10;async function XD(){var n;const t=(await Pc.get(Iy+"/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 Ch(t);return wr(`${li}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const YD=KD(XD,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",li,t,e);}});async function dm(){try{return await YD()}catch(e){if(e instanceof UD){console.error(e.errors);const t=[Oo("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Oo(" %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(` `);wr(t,5e3);}throw e}}async function c1(e){let t=[];const r=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>dm()))).flat();},n=async()=>{for(let i=1;i<=e;i++)t=t.concat(await dm());};return await(et.useParallelRequest?r:n)(),t=Yl(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}const u1=14;async function fm(e){const t=e.page++;return (await Oc.get("/x/web-interface/index/top/rcmd",{baseURL:Ny,withCredentials:!0,params:{fresh_type:3,version:1,ps:u1,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function d1(e,t){let r=[];const n=async()=>{r=(await Promise.all(new Array(e).fill(0).map(()=>fm(t)))).flat();},i=async()=>{for(let o=1;o<=e;o++)r=r.concat(await fm(t));};return await(et.useParallelRequest?n:i)(),r=Yl(r,o=>o.id),r.forEach(o=>{var a,s;((a=o.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=o.rcmd_reason).content||(s.content="已关注"));}),r.map(o=>({...o,uniqId:o.id+"-"+crypto.randomUUID(),api:"pc"}))}Hm.extend("service");const tl=e=>e.api==="pc"?e.id:e.param;function ZD(e,t){const r=e.map(tl);return t=Yl(t,tl),e.concat(t.filter(n=>!r.includes(tl(n))))}async function f1(e,t,r=5){let n=[],i=async o=>{const a=et.usePcDesktopApi?u1:qD,s=Uy()?r:1.2,l=Math.ceil(o*s/a);let c=et.usePcDesktopApi?await d1(l,t):await c1(l);c=Gy(c),n=n.concat(c),n=Yl(n,tl);};for(await i(e);n.length{this.scrollComponent=b,u&&u(b);};const g=[r];return i&&(s?a?g.unshift(s):g.push(s):this.defaultLoader&&(a?g.unshift(this.defaultLoader):g.push(this.defaultLoader))),f.createElement(n,m,g)}}xt(Jd,"propTypes",{children:Pr.node.isRequired,element:Pr.node,hasMore:Pr.bool,initialLoad:Pr.bool,isReverse:Pr.bool,loader:Pr.node,loadMore:Pr.func.isRequired,pageStart:Pr.number,ref:Pr.func,getScrollParent:Pr.func,threshold:Pr.number,useCapture:Pr.bool,useWindow:Pr.bool}),xt(Jd,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const As=Hm.extend("components:RecGrid"),Si={loader:Su` text-align: center; line-height: 60px; font-size: 120%; `,card:Su` border: 2px solid transparent; /* global class under .card */ .bili-video-card__info { padding-left: 2px; padding-bottom: 1px; margin-top: calc(var(--info-margin-top) - 1px); } `,cardActive:Su` border-color: #fb7299; border-radius: 6px; overflow: hidden; `},m1=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const a=f.useRef({page:1}),[s,l,c]=qs(0),[u,d,h]=qs([]),[v,p]=f.useState(!1),[m,g,b]=qs(()=>Date.now()),w=ft(async()=>{const P=performance.now();As("call refresh()"),await(r==null?void 0:r()),p(!0),g(Date.now()),T(),d([]),a.current.page=1;try{d(await JD(a.current));}catch(I){throw p(!1),I}l(1),T(),p(!1);const k=performance.now()-P;As("refresh cost %s ms",k.toFixed(0)),S();});dh(w),f.useImperativeHandle(o,()=>({refresh:w}),[]);const C=f.useRef(!1),_=ft(async()=>{if(v||C.current)return;C.current=!0;const P=b();let k=u;try{for(;!(k.length>u.length);){const I=await e3(2,a.current);k=ZD(k,I);}}catch(I){throw C.current=!1,I}if(P!==b()){As("fetchMore: skip update for mismatch refreshedAt, %s != %s",P,b()),C.current=!1;return}As("fetchMore: seq(%s) len %s -> %s",c()+1,u.length,k.length),d(k),l(I=>I+1),S(),C.current=!1;}),S=ft(()=>{setTimeout(()=>{const P=e?window:i==null?void 0:i.current;P==null||P.dispatchEvent(new CustomEvent("scroll"));});}),{useNarrowMode:y}=Sn(),x=f.useRef(null),R=ft(()=>{var P;if(e){const k=gg+50;return new DOMRect(0,k,window.innerWidth,window.innerHeight-k)}else return (P=i==null?void 0:i.current)==null?void 0:P.getBoundingClientRect()}),M=LL(),O=f.useMemo(()=>new Array(u.length).fill(void 0),[u.length]),{activeIndex:N,clearActiveIndex:T}=xD({enabled:t&&!M,refresh:w,maxIndex:u.length-1,containerRef:x,getScrollerRect:R,videoCardRefs:O,changeScrollY:e?function({offset:P,absolute:k}){const I=document.documentElement;if(typeof P=="number"){I.scrollTop+=P;return}if(typeof k=="number"){I.scrollTop=k;return}}:void 0}),E=Ma(),{colorPrimary:$}=Fo();return F(Jd,{pageStart:0,hasMore:!0,loadMore:_,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:F("div",{className:Si.loader,children:"加载中..."},-1),children:F("div",{ref:x,className:q(vh,{[Vy]:E},{[CD]:y},n),children:v?new Array(24).fill(void 0).map((P,k)=>F($l,{loading:!0,className:q(Si.card)},k)):u.map((P,k)=>{const I=k===N;return F($l,{ref:L=>O[k]=L,className:q(Si.card,{[Si.cardActive]:I}),style:{...I&&{borderColor:$}},item:P,active:I},P.uniqId)})})})}),hm=F(oi,{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 g1({style:e,className:t}){const{runAsync:r,loading:n}=Ey(pL,{manual:!0}),{accessKey:i}=Sn();return F(R0,{size:"small",style:e,className:t,children:i?Q(Dt,{children:[F(oi,{onClick:r,disabled:n,children:F("span",{children:"重新获取 access_key"})}),F(oi,{onClick:mL,children:F("span",{children:"删除 access_key"})}),hm]}):Q(Dt,{children:[F(oi,{onClick:r,disabled:n,size:"middle",children:F("span",{children:"获取 access_key"})}),hm]})})}function Wr({configKey:e,label:t,className:r,extraAction:n,tooltip:i}){const a=!!Sn()[e],s=f.useCallback(c=>{const u=c.target.checked;Ra({[e]:u}),n==null||n(u);},[]);let l=t||e;return i&&(l=F(jf,{title:i,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),F(SA,{className:r,checked:a,onChange:s,children:l})}var a3={name:"1qkltea",styles:"margin-left:5px"};const s3=function(){const e=a3;return Q(Dt,{children:[F(Wr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),F(Wr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})},l3="_config-icon_12n8z_1",c3="_settings-group_12n8z_6",u3="_settings-group-title_12n8z_9",d3="_settings-group-sub-title_12n8z_14",f3="_settings-group-content_12n8z_20",h3="_row_12n8z_26",v3="_check_12n8z_34",p3="_setting-tabs_12n8z_39",Ve={configIcon:l3,settingsGroup:c3,settingsGroupTitle:u3,settingsGroupSubTitle:d3,settingsGroupContent:f3,row:h3,check:v3,settingTabs:p3};async function b1(){wr("即将刷新网页"),await Cc(500),location.reload();}function m3(){if(window.confirm("确定?"))return W$(),b1()}function Mu(e,t,r){return Ut(e,n=>{if(xc())return;et[t]=!et[t];const i=!et[t];wr(`已${i?"禁用":"启用"}「${r}」`);},{exactMatch:!0})}function g3({show:e,onHide:t}){const{usePcDesktopApi:r,autoPreviewUpdateInterval:n,filterMinPlayCount:i,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:s}=Sn();return Mu(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Mu(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Mu(["shift.c"],"useNarrowMode","居中模式"),Q(fh,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,width:"950px",children:[Q("div",{className:en.modalHeader,children:[Q("div",{className:en.modalTitle,children:[F(jn,{name:"Config",className:Ve.configIcon}),"设置项"]}),F("div",{className:"space",style:{flex:1}}),F(hh,{onClick:t})]}),F("main",{className:en.modalBody,children:F(G0,{tabPosition:"left",size:"middle",className:Ve.settingTabs,items:[{label:"常规设置",key:"normal",children:Q(Dt,{children:[Q("div",{className:Ve.settingsGroup,children:[F("div",{className:Ve.settingsGroupTitle,children:"接口切换"}),Q("div",{className:q(Ve.settingsGroupContent),children:[Q(mu.Group,{buttonStyle:"solid",value:r?"desktop":"app",onChange:l=>{const c=l.target.value;et.usePcDesktopApi=c==="desktop";},children:[F(mu.Button,{value:"desktop",children:"使用桌面端接口"}),F(mu.Button,{value:"app",children:"使用 App 端接口"})]}),!r&&F("div",{className:Ve.row,style:{marginTop:5},children:F(g1,{})})]})]}),Q("div",{className:Ve.settingsGroup,children:[F("div",{className:Ve.settingsGroupTitle,children:"开关"}),Q("div",{className:q(Ve.settingsGroupContent,Ve.row),children:[F(Wr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:Q(Dt,{children:["首页只保留推荐",F("br",{}),"P.S 需要刷新网页~"]}),className:Ve.check,extraAction:b1}),F(Wr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:Ve.check,extraAction:l=>{l&&wr("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),F(Wr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:Q(Dt,{children:["居中两列",F("br",{}),"切换设置快捷键: ",F(Qo,{color:"green",children:"shift+c"})]}),className:Ve.check}),F(Wr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:Q(Dt,{children:["并行快但可能有重复",F("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:Ve.check})]})]}),Q("div",{className:Ve.settingsGroup,children:[F("div",{className:Ve.settingsGroupTitle,children:"预览"}),Q("div",{className:q(Ve.settingsGroupContent,Ve.row),children:[F(Wr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ve.check,tooltip:Q(Dt,{children:["手动预览快捷键: ",F(Qo,{color:"green",children:"."})," or ",F(Qo,{color:"green",children:"p"}),F("br",{}),"切换设置快捷键: ",F(Qo,{color:"green",children:"shift+p"})]})}),F(Wr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ve.check,tooltip:Q(Dt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",F("br",{}),"切换设置快捷键: ",F(Qo,{color:"green",children:"shift+m"})]})}),Q("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",F(sk,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>et.autoPreviewUpdateInterval=l,value:n,tooltip:{open:!0}}),Q("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})]}),Q("div",{className:Ve.settingsGroup,children:[F("div",{className:Ve.settingsGroupTitle,children:"帮助"}),F("div",{className:q(Ve.settingsGroupContent),children:F("div",{className:Ve.row,children:Q(R0,{size:"small",children:[F(oi,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),F(oi,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),F(oi,{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:"查看可用的快捷键"})]})})})]})]})},{label:"视频过滤",key:"filter",children:F(Dt,{children:Q("div",{className:Ve.settingsGroup,children:[Q("div",{className:Ve.settingsGroupTitle,children:["视频过滤",F(Zp,{title:F(Dt,{children:"启用视频过滤会大幅降低加载速度, 谨慎开启!"}),children:F(jn,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),Q("div",{className:q(Ve.settingsGroupContent),children:[F("div",{className:Ve.settingsGroupSubTitle,children:"过滤范围"}),F(Wr,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:F(Dt,{children:"默认不过滤「已关注」"})}),F("div",{className:Ve.settingsGroupSubTitle,children:"过滤器"}),Q("div",{className:Ve.row,children:[F(Wr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:F(Dt,{children:"不显示播放量很少的视频"})}),F(Xp,{size:"small",min:1,step:1e3,value:i,onChange:l=>l&&Ra({filterMinPlayCount:l}),disabled:!o})]}),Q("div",{className:Ve.row,style:{marginTop:8},children:[F(Wr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:F(Dt,{children:"不显示短视频"})}),F(Xp,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&Ra({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:F(Dt,{children:Q("div",{className:Ve.settingsGroup,children:[Q("div",{className:Ve.settingsGroupTitle,style:{marginBottom:15},children:["主题选择",F(Zp,{title:Q(Dt,{children:["提取自 https://github.com/lyswhut/lx-music-desktop/",F("br",{}),"Apache License 2.0"]}),children:F(jn,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),F("div",{className:q(Ve.settingsGroupContent),children:F(gk,{})})]})})},{label:"高级设置",key:"advance",children:F(Dt,{children:Q("div",{className:Ve.settingsGroup,children:[F("div",{className:Ve.settingsGroupTitle,children:"高级"}),Q("div",{className:q(Ve.settingsGroupContent),children:[F("div",{className:Ve.row,children:F(oi,{onClick:m3,danger:!0,children:"恢复默认设置"})}),F("div",{className:Ve.row,style:{marginTop:10},children:F(Wr,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:Ve.check})})]})]})})}]})})]})}var xh={};Object.defineProperty(xh,"__esModule",{value:!0});var y1=xh.useSticky=void 0;const Nu=f;function b3(){const e=(0, Nu.useRef)(null),[t,r]=(0, Nu.useState)(!1);return (0, Nu.useEffect)(()=>{function n(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,o=parseInt(getComputedStyle(e.current).top),a=i<=o;a&&!t?r(!0):!a&&t&&r(!1);}return n(),document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),()=>{document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n);}},[t]),[e,t]}y1=xh.useSticky=b3;const y3="_expand-btn_wdzp9_1",w3="_expanded_wdzp9_12",vm={expandBtn:y3,expanded:w3},S3=f.forwardRef(function({children:t},r){const[n,i]=$y(!1);f.useImperativeHandle(r,()=>i,[i]);const o=F("button",{className:q("primary-btn",vm.expandBtn),onClick:i.toggle,children:F("svg",{className:q({[vm.expanded]:n}),children:F("use",{href:"#widget-arrow"})})});return Q(Dt,{children:[o,n&&t]})}),C3="_modal-mask_7bwzz_1",x3="_narrow-mode_7bwzz_1",E3="_modal_7bwzz_1",$3="_modal-header_7bwzz_18",_3="_modal-body_7bwzz_19",O3="_btn-refresh_7bwzz_22",ra={modalMask:C3,narrowMode:x3,modal:E3,modalHeader:$3,modalBody:_3,btnRefresh:O3},P3=f.memo(function({show:t,onHide:r}){const n=f.useRef(null),i=f.useRef(null),{useNarrowMode:o}=Sn(),a=f.useMemo(()=>({[ra.narrowMode]:o}),[o]),s=ft(()=>{var h;return (h=i.current)==null?void 0:h.refresh()}),l=ft(()=>{n.current&&(n.current.scrollTop=0);}),c=Ql(),{colorPrimary:u}=Fo(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]);return Q(fh,{show:t,onHide:r,clsModalMask:q(a),clsModal:q(ra.modal,a),styleModal:{...d},children:[Q("div",{className:q(en.modalHeader,ra.modalHeader),children:[F("div",{className:en.modalTitle,children:"推荐"}),F("div",{className:"space",style:{flex:1}}),F(S3,{children:F(s3,{})}),F(C1,{onClick:s,className:ra.btnRefresh,refreshHotkeyEnabled:t}),F(hh,{onClick:r})]}),F("div",{className:q(en.modalBody,ra.modalBody),ref:n,children:F(m1,{ref:i,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),pm={btn:fo` padding: 0; width: 31px; height: 31px; border-radius: 50%; `,icon:fo` svg { width: 14px; height: 14px; } `},si=Ka({modalFeedVisible:et.initialShowMore,modalConfigVisible:!1}),w1=function(){return Ro(si)},T3=()=>{si.modalFeedVisible=!0;},R3=()=>{si.modalFeedVisible=!1;},M3=()=>{si.modalConfigVisible=!0;},N3=()=>{si.modalConfigVisible=!1;};function S1({onRefresh:e,refreshHotkeyEnabled:t}){const{accessKey:r,pureRecommend:n,usePcDesktopApi:i}=Sn(),{modalFeedVisible:o,modalConfigVisible:a}=Ro(si),[s,l]=y1();return Ut(["shift.comma"],c=>{xc()||(si.modalConfigVisible=!si.modalConfigVisible);},{exactMatch:!0}),Q(Dt,{children:[Q("div",{ref:s,className:"area-header",css:[fo` margin-bottom: 0; height: 50px; `,n&&fo` position: sticky; top: ${gg}px; z-index: 1000; `,n&&l&&fo` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[Q("div",{className:"left",children:[F("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),F("svg",{className:"icon",children:F("use",{href:"#channel-cinephile"})}),F("a",{className:"title",href:"#",children:F("span",{children:"推荐"})})]}),Q("div",{className:"right",children:[!i&&!r&&F(g1,{style:{marginLeft:5}}),F("button",{className:"primary-btn",css:pm.btn,onClick:M3,children:F(jn,{name:"Config",css:pm.icon})}),F(C1,{onClick:e,refreshHotkeyEnabled:t}),!n&&Q("button",{className:"primary-btn see-more",onClick:T3,children:[F("span",{children:"查看更多"}),F("svg",{children:F("use",{href:"#widget-arrow"})})]})]})]}),F(P3,{show:o,onHide:R3}),F(g3,{show:a,onHide:N3})]})}const C1=f.forwardRef(function({onClick:e,className:t="",style:r,refreshHotkeyEnabled:n},i){n??(n=!0);const[o,a]=f.useState(0),s=ft(c=>(a(u=>u+360),e==null?void 0:e(c))),l=f.useRef(null);return f.useImperativeHandle(i,()=>({click(){var c;(c=l.current)==null||c.click();}}),[]),Ut("r",()=>{var c;n&&(xc()||(c=l.current)==null||c.click());},{exactMatch:!0}),Q("button",{className:`primary-btn roll-btn ${t}`,onClick:s,style:r,ref:l,children:[F("svg",{style:{transform:`rotate(${o}deg)`,width:"10px",height:"10px",transition:o===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{a(0);},children:F("use",{href:"#widget-roll"})}),F("span",{children:"换一换"})]})}),I3={grid:fo` /* card=299 col-gap=20 */ width: ${299*2+20}px; margin: 0 auto; `};function A3(){const{useNarrowMode:e}=Sn(),{modalFeedVisible:t,modalConfigVisible:r}=w1(),n=f.useRef(null),i=ft(()=>{var a;return (a=n.current)==null?void 0:a.refresh()}),o=ft(()=>{document.documentElement.scrollTop=0;});return Q("section",{"data-area":"推荐",children:[F(S1,{onRefresh:i,refreshHotkeyEnabled:!(t||r)}),F(m1,{ref:n,css:[e&&I3.grid,"",""],shortcutEnabled:!(t||r),infiteScrollUseWindow:!0,onScrollToTop:o})]})}function k3(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Ma(),r=f.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=Ey(()=>QD(r));o&&console.error(o.stack||o);const{modalConfigVisible:s,modalFeedVisible:l}=w1();return Q("section",{"data-area":"推荐",children:[F(S1,{onRefresh:a,refreshHotkeyEnabled:!(s||l)}),F("div",{className:q(vh,SD,{[Vy]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(c=>F($l,{},c)):n.map(c=>F($l,{item:c},c.uniqId))})]})}Zl.extend(U$);(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/"||location.pathname==="/index.html")return F3()})();async function F3(){return Vs(".adblock-tips"),sy("html.gray",e=>e.classList.remove("gray")),et.pureRecommend?D3():L3()}async function L3(){const t=Date.now()+1e4;let r;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const o=document.querySelector(".bili-layout > section.bili-grid");r=a=>o==null?void 0:o.insertAdjacentElement("afterend",a);break}if(Ma()&&document.querySelector(".bili-feed4-layout")){r=o=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",o)};break}await Cc(200);}if(!r){console.error(`[${li}]: init fail`);return}const n=document.createElement("section");r(n),Ec(n).render(F(oy,{children:F(k3,{})}));}async function D3(){var i,o;Ma()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Vs(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),Vs(".bili-footer"),Vs(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(Ma()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const r=document.createElement("section");e==null||e.appendChild(r),Ec(r).render(F(oy,{children:F(A3,{})}));}});j3(); })(React, ReactDOM, axios, axiosGmxhrAdapter);