antd
Version:
An enterprise-class UI design language and React components implementation
390 lines • 1.43 MB
JavaScript
/*! For license information please see antd.min.js.LICENSE.txt */
((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("dayjs")):"function"==typeof define&&define.amd?define(["react","react-dom","dayjs"],t):"object"==typeof exports?exports.antd=t(require("react"),require("react-dom"),require("dayjs")):e.antd=t(e.React,e.ReactDOM,e.dayjs)})(this,function(t,r,n){return o={4871:function(H,A,e){e.r(A),e.d(A,{Keyframes:function(){return Pt},NaNLinter:function(){return ft},StyleContext:function(){return x},StyleProvider:function(){return Y},Theme:function(){return ae},_experimental:function(){return At},autoPrefixTransformer:function(){return V},createCache:function(){return q},createTheme:function(){return ie},extractStyle:function(){return Rt},genCalc:function(){return te},getComputedToken:function(){return Me},legacyLogicalPropertiesTransformer:function(){return Tt},legacyNotSelectorLinter:function(){return pt},logicalPropertiesLinter:function(){return mt},parentSelectorLinter:function(){return ht},px2remTransformer:function(){return Ht},token2CSSVar:function(){return ye},unit:function(){return ge},useCSSVarRegister:function(){return It},useCacheToken:function(){return Re},useStyleRegister:function(){return Nt}});var h=function(e){for(var t,r=0,n=0,o=e.length;4<=o;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},v=e(9683),b=e(5442),D=e(3702),L=e(9464);let F="%";function W(e){return e.join(F)}let j=0;var _=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(W(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(W(e),t)}opUpdate(e,t){t=t(this.cache.get(e));null===t?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,t),this.updateTimes.set(e,j),j+=1)}};let K={};var V=K;let X="data-token-hash",y="data-css-hash";let C="__cssinjs_instance__";function q(){let n=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var e=document.body.querySelectorAll(`style[${y}]`)||[];let t=document.head.firstChild,r=(Array.from(e).forEach(e=>{e[C]||=n,e[C]===n&&document.head.insertBefore(e,t)}),{});Array.from(document.querySelectorAll(`style[${y}]`)).forEach(e=>{var t=e.getAttribute(y);r[t]?e[C]===n&&e.parentNode?.removeChild(e):r[t]=!0})}return new _(n)}let G=b.createContext({hashPriority:"low",cache:q(),defaultCache:!0,autoPrefix:!1}),Y=e=>{let{children:t,...n}=e,o=b.useContext(G);e=(0,D.A)(()=>{let r={...o};Object.keys(n).forEach(e=>{var t=n[e];void 0!==n[e]&&(r[e]=t)});var{cache:e,transformers:t=[]}=n;return r.cache=r.cache||q(),r.defaultCache=!e&&o.defaultCache,t.includes(K)&&(r.autoPrefix=!0),r},[o,n],(e,t)=>!(0,L.A)(e[0],t[0],!0)||!(0,L.A)(e[1],t[1],!0));return b.createElement(G.Provider,{value:e},t)};var x=G,U=e(1336);let Q=class{},Z="CALC_UNIT",J=new RegExp(Z,"g");function ee(e){return"number"==typeof e?""+e+Z:e}class n extends Q{result="";unitlessCssVar;lowPriority;constructor(e,t){super();var r=typeof e;this.unitlessCssVar=t,e instanceof n?this.result=`(${e.result})`:"number"==r?this.result=ee(e):"string"==r&&(this.result=e)}add(e){return e instanceof n?this.result=this.result+" + "+e.getResult():"number"!=typeof e&&"string"!=typeof e||(this.result=this.result+" + "+ee(e)),this.lowPriority=!0,this}sub(e){return e instanceof n?this.result=this.result+" - "+e.getResult():"number"!=typeof e&&"string"!=typeof e||(this.result=this.result+" - "+ee(e)),this.lowPriority=!0,this}mul(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=this.result+" * "+e.getResult(!0):"number"!=typeof e&&"string"!=typeof e||(this.result=this.result+" * "+e),this.lowPriority=!1,this}div(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=this.result+" / "+e.getResult(!0):"number"!=typeof e&&"string"!=typeof e||(this.result=this.result+" / "+e),this.lowPriority=!1,this}getResult(e){return this.lowPriority||e?`(${this.result})`:this.result}equal(e){e=(e||{}).unit;let t=!0;return"boolean"==typeof e?t=e:Array.from(this.unitlessCssVar).some(e=>this.result.includes(e))&&(t=!1),this.result=this.result.replace(J,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}class o extends Q{result=0;constructor(e){super(),e instanceof o?this.result=e.result:"number"==typeof e&&(this.result=e)}add(e){return e instanceof o?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}sub(e){return e instanceof o?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}mul(e){return e instanceof o?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}div(e){return e instanceof o?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}equal(){return this.result}}var te=(e,t)=>{let r="css"===e?n:o;return e=>new r(e,t)};class re{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let r={map:this.cache};return e.forEach(e=>{r=r?r?.map?.get(e):void 0}),r?.value&&t&&(r.value[1]=this.cacheCallTimes++),r?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(r,n){var e;this.has(r)||(this.size()+1>re.MAX_CACHE_SIZE+re.MAX_CACHE_OFFSET&&([e]=this.keys.reduce((e,t)=>{var[,r]=e;return this.internalGet(t)[1]<r?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),this.delete(e)),this.keys.push(r));let o=this.cache;r.forEach((e,t)=>{t===r.length-1?o.set(e,{value:[n,this.cacheCallTimes++]}):((t=o.get(e))?t.map||(t.map=new Map):o.set(e,{map:new Map}),o=o.get(e).map)})}deleteByPath(e,t){var r,n=e.get(t[0]);return 1===t.length?(n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0]):(r=this.deleteByPath(n.map,t.slice(1)),n.map&&0!==n.map.size||n.value||e.delete(t[0]),r)}delete(n){if(this.has(n))return this.keys=this.keys.filter(e=>{var t=e,r=n;if(t.length!==r.length)return!0;for(let e=0;e<t.length;e++)if(t[e]!==r[e])return!void 0;return!1}),this.deleteByPath(this.cache,n)}}var ne=e(6536);let oe=0;class ae{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=oe,0===e.length&&(0,ne.$e)(0<e.length,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),oe+=1}getDerivativeToken(r){return this.derivatives.reduce((e,t)=>t(r,e),void 0)}}let le=new re;function ie(e){e=Array.isArray(e)?e:[e];return le.has(e)||le.set(e,new ae(e)),le.get(e)}let se=new WeakMap,ce={};let de=new WeakMap;function g(r){let n=de.get(r)||"";return n||(Object.keys(r).forEach(e=>{var t=r[e];n+=e,t instanceof ae?n+=t.id:n+=t&&"object"==typeof t?g(t):t}),n=h(n),de.set(r,n)),n}let a=(`random-${Date.now()}-`+Math.random()).replace(/\./g,""),ue="_bAmBoO_";function pe(e,t,r){return!!(0,U.A)()&&((0,v.BD)(e,a),(e=document.createElement("div")).style.position="fixed",e.style.left="0",e.style.top="0",t?.(e),document.body.appendChild(e),t=r?r(e):getComputedStyle(e).content?.includes(ue),e.parentNode?.removeChild(e),(0,v.m6)(a),t)}let me=void 0;let fe=void 0;let he=(0,U.A)();function ge(e){return"number"==typeof e?e+"px":e}function p(e,t,r,n={},o=!1){if(o)return e;let a={...n,[X]:t,[y]:r};return`<style ${Object.keys(a).map(e=>{var t=a[e];return t?e+`="${t}"`:null}).filter(e=>e).join(" ")}>${e}</style>`}function ve(e){var{hashCls:e,hashPriority:t="low"}=e||{};return e?(e="."+e,"low"===t?`:where(${e})`:e):""}function be(e,t){t="function"==typeof t?t():t;return t?{...e,csp:{...e.csp,nonce:t}}:e}let ye=(e,t="")=>("--"+(t?t+"-":"")+e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Ce=(e,t,r)=>{let{hashCls:n,hashPriority:o="low",prefix:a,unitless:l,ignore:i,preserve:s}=r||{},c={},d={};return Object.entries(e).forEach(([e,t])=>{var r;s?.[e]?d[e]=t:"string"!=typeof t&&"number"!=typeof t||i?.[e]||(r=ye(e,a),c[r]="number"!=typeof t||l?.[e]?String(t):t+"px",d[e]=`var(${r})`)}),[d,((e,t,r)=>{var{hashCls:r,hashPriority:n="low",scope:o}=r||{};if(!Object.keys(e).length)return"";let a=ve({hashCls:r,hashPriority:n})+"."+t;r=[o].flat().filter(Boolean);return`${r.length?r.map(e=>a+"."+e).join(", "):a}{${Object.entries(e).map(([e,t])=>e+`:${t};`).join("")}}`})(c,t,{scope:r?.scope,hashCls:n,hashPriority:o})]};var xe=function(){return!1};let we=new Map;function Se(e,t,n,r,o){let a=b.useContext(x).cache;let l=W([e,...t]);xe();let i=r=>{a.opUpdate(l,e=>{var[e=0,t]=e||[void 0,void 0],e=[e,t||n()];return r?r(e):e})},s=(b.useMemo(()=>{i()},[l]),a.opGet(l)[1]);return(0,b.useInsertionEffect)(()=>(i(([e,t])=>[e+1,t]),we.has(l)||(o?.(s),we.set(l,!0),Promise.resolve().then(()=>{we.delete(l)})),()=>{a.opUpdate(l,e=>{var[e=0,t]=e||[];return 0==e-1?(r?.(t,!1),we.delete(l),null):[e-1,t]})}),[l]),s}let ke={},Ee="css",w=new Map;let Ne=-1;function Ie(e,n){w.set(e,(w.get(e)||0)-1);let r=new Set;w.forEach((e,t)=>{e<=0&&r.add(t)}),w.size-r.size>Ne&&r.forEach(e=>{var t,r;t=e,r=n,"undefined"!=typeof document&&document.querySelectorAll(`style[${X}="${t}"]`).forEach(e=>{e[C]===r&&e.parentNode?.removeChild(e)}),w.delete(e)})}let Me=(e,t,r,n)=>{let o={...r.getDerivativeToken(e),...t};return o=n?n(o):o},$e="token";function Re(a,e,t){let{cache:{instanceId:n},container:o,hashPriority:l}=(0,b.useContext)(x),{salt:i="",override:s=ke,formatToken:c,getComputedToken:d,cssVar:u,nonce:p}=t,m=((e,t)=>{let r=se;for(let e=0;e<t.length;e+=1){var n=t[e];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(ce)||r.set(ce,e()),r.get(ce)})(()=>Object.assign({},...e),e);var t=g(m),r=g(s),f=g(u);return Se($e,[i,a.id,t,r,f],()=>{var e=d?d(m,s,a):Me(m,s,a,c),t={...e},r=i+"_"+u.prefix,n=h(r),o=Ee+"-"+n,[r,e]=(t._tokenKey=h(r+"_"+g(t)),Ce(e,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:l,hashCls:u.hashed?o:void 0}));return r._hashId=n,n=u.key,w.set(n,(w.get(n)||0)+1),[r,o,t,e,u.key]},([,,,,e])=>{Ie(e,n)},([,,,e,t])=>{var r;e&&(r=be(r={mark:y,prepend:"queue",attachTo:o,priority:-999},p),(e=(0,v.BD)(e,h("css-var-"+t),r))[C]=n,e.setAttribute(X,t))})}var Pe={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},s="-ms-",l="-moz-",c="-webkit-",ze="comm",Be="rule",Te="decl",Oe="@import",He="@namespace",Ae="@keyframes",De="@layer",Le=Math.abs,N=String.fromCharCode,Fe=Object.assign;function We(e){return e.trim()}function d(e,t){return(e=t.exec(e))&&e[0]}function I(e,t,r){return e.replace(t,r)}function je(e,t){return e.indexOf(t)}function M(e,t){return 0|e.charCodeAt(t)}function $(e,t,r){return e.slice(t,r)}function R(e){return e.length}function _e(e){return e.length}function P(e,t){return t.push(e),e}function Ke(e,t){return e.filter(function(e){return!d(e,t)})}function Ve(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Xe(e,t,r,n){switch(e.type){case De:if(e.children.length)break;case Oe:case He:case Te:return e.return=e.return||e.value;case ze:return"";case Ae:return e.return=e.value+"{"+Ve(e.children,n)+"}";case Be:if(!R(e.value=e.props.join(",")))return""}return R(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}var qe=1,u=1,Ge=0,z=0,i=0,r="";function Ye(e,t,r,n,o,a,l,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:qe,column:u,length:l,return:"",siblings:i}}function m(e,t){return Fe(Ye("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function f(e){for(;e.root;)e=m(e.root,{children:[e]});P(e,e.siblings)}function Ue(){return i=0<z?M(r,--z):0,u--,10===i&&(u=1,qe--),i}function B(){return i=z<Ge?M(r,z++):0,u++,10===i&&(u=1,qe++),i}function T(){return M(r,z)}function Qe(e,t){return $(r,e,t)}function O(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ze(e){return qe=u=1,Ge=R(r=e),z=0,[]}function Je(e){return r="",e}function et(e){return We(Qe(z-1,function e(t){for(;B();)switch(i){case t:return z;case 34:case 39:34!==t&&39!==t&&e(i);break;case 40:41===t&&e(t);break;case 92:B()}return z}(91===e?e+2:40===e?e+1:e)))}function tt(e){for(;(i=T())&&i<33;)B();return 2<O(e)||3<O(i)?"":" "}function rt(e,t){for(;--t&&B()&&!(i<48||102<i||57<i&&i<65||70<i&&i<97););return Qe(e,z+(t<6&&32==T()&&32==B()))}function nt(e,t){for(;B()&&e+i!==57&&(e+i!==84||47!==T()););return"/*"+Qe(t,z-1)+"*"+N(47===e?e:B())}function ot(e){for(;!O(T());)B();return Qe(e,z)}function at(e){return Je(function e(t,r,n,o,a,l,i,s,c){var d=0;var u=0;var p=i;var m=0;var f=0;var h=0;var g=1;var v=1;var b=1;var y=0;var C=0;var x="";var w=a;var S=l;var k=o;var E=x;for(;v;)switch(h=C,C=B()){case 40:108!=h&&58==M(E,p-1)?(y++,E+="("):E+=et(C);break;case 41:y--,E+=")";break;case 34:case 39:case 91:E+=et(C);break;case 9:case 10:case 13:case 32:0<y?E+=N(C):E+=tt(h);break;case 92:E+=rt(z-1,7);continue;case 47:switch(T()){case 42:case 47:P(it(nt(B(),z),r,n,c),c),5!=O(h||1)&&5!=O(T()||1)||!R(E)||" "===$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:s[d++]=R(E)*b;case 125*g:case 59:case 0:if(0<y&&C)E+=N(C);else{switch(C){case 0:case 125:v=0;case 59+u:-1==b&&(E=I(E,/\f/g,"")),0<f&&(R(E)-p||0===g)&&P(32<f?st(E+";",o,n,p-1,c):st(I(E," ","")+";",o,n,p-2,c),c);break;case 59:E+=";";default:if(P(k=lt(E,r,n,d,u,a,s,x,w=[],S=[],p,l),l),123===C)if(0===u)e(E,r,k,k,w,l,p,s,S);else{switch(m){case 99:if(110===M(E,3))break;case 108:if(97===M(E,2))break;default:u=0;case 100:case 109:case 115:}u?e(t,k,k,o&&P(lt(t,k,k,0,0,a,s,x,a,w=[],p,S),S),a,S,p,s,o?w:S):e(E,k,k,k,[""],S,0,s,S)}}d=u=f=0,g=b=1,x=E="",p=i}break;case 58:p=1+R(E),f=h;default:if(g<1)if(123==C)--g;else if(125==C&&0==g++&&125==Ue())continue;switch(E+=N(C),C*g){case 38:b=0<u?1:(E+="\f",-1);break;case 44:0<y||(s[d++]=(R(E)-1)*b,b=1);break;case 64:45===T()&&(E+=et(B())),m=T(),u=p=R(x=E+=ot(z)),C++;break;case 45:45===h&&2==R(E)&&(g=0)}}return l}("",null,null,null,[""],e=Ze(e),0,[0],e))}function lt(e,t,r,n,o,a,l,i,s,c,d,u){for(var p,m=o-1,f=0===o?a:[""],h=_e(f),g=0,v=0;g<n;++g)for(var b,y=0,C=$(e,m+1,m=Le(p=l[g]));y<h;++y)(b=We(0<p?f[y]+" "+C:I(C,/&\f/g,f[y])))&&(s[v++]=b);return Ye(e,t,r,0===o?Be:i,s,c,d,u)}function it(e,t,r,n){return Ye(e,t,r,ze,N(i),$(e,2,-2),0,n)}function st(e,t,r,n,o){return Ye(e,t,r,Te,$(e,0,n),$(e,n+1,-1),n,o)}function ct(i,r,e){switch(n=r,45^M(t=i,0)?(((n<<2^M(t,0))<<2^M(t,1))<<2^M(t,2))<<2^M(t,3):0){case 5103:return c+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return c+i+i;case 4855:return c+i.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+i;case 4789:return l+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return c+i+l+i+s+i+i;case 5936:switch(M(i,r+11)){case 114:return c+i+s+I(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return c+i+s+I(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return c+i+s+I(i,/[svh]\w+-[tblr]{2}/,"lr")+i}case 6828:case 4268:case 2903:return c+i+s+i+i;case 6165:return c+i+s+"flex-"+i+i;case 5187:return c+i+I(i,/(\w+).+(:[^]+)/,c+"box-$1$2"+s+"flex-$1$2")+i;case 5443:return c+i+s+"flex-item-"+I(i,/flex-|-self/g,"")+(d(i,/flex-|baseline/)?"":s+"grid-row-"+I(i,/flex-|-self/g,""))+i;case 4675:return c+i+s+"flex-line-pack"+I(i,/align-content|flex-|-self/g,"")+i;case 5548:return c+i+s+I(i,"shrink","negative")+i;case 5292:return c+i+s+I(i,"basis","preferred-size")+i;case 6060:return c+"box-"+I(i,"-grow","")+c+i+s+I(i,"grow","positive")+i;case 4554:return c+I(i,/([^-])(transform)/g,"$1"+c+"$2")+i;case 6187:return I(I(I(i,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),i,"")+i;case 5495:case 3959:return I(i,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return I(I(i,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+s+"flex-pack:$3"),/space-between/,"justify")+c+i+i;case 4200:if(d(i,/flex-|baseline/))break;return s+"grid-column-align"+$(i,r)+i;case 2592:case 3360:return s+I(i,"template-","")+i;case 4384:case 3616:return e&&e.some(function(e,t){return r=t,d(e.props,/grid-\w+-end/)})?~je(i+(e=e[r].value),"span")?i:s+I(i,"-start","")+i+s+"grid-row-span:"+(~je(e,"span")?d(e,/\d+/):+d(e,/\d+/)-+d(i,/\d+/))+";":s+I(i,"-start","")+i;case 4896:case 4128:return e&&e.some(function(e){return d(e.props,/grid-\w+-start/)})?i:s+I(I(i,"-end","-span"),"span ","")+i;case 4095:case 3583:case 4068:case 2532:return I(i,/(.+)-inline(.+)/,c+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(6<R(i)-1-r)switch(M(i,r+1)){case 109:if(45!==M(i,r+4))break;case 102:return I(i,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+l+(108==M(i,r+3)?"$3":"$2-$3"))+i;case 115:return~je(i,"stretch")?ct(I(i,"stretch","fill-available"),r,e)+i:i}break;case 5152:case 5920:return I(i,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,t,r,n,o,a,l){return s+t+":"+r+l+(n?s+t+"-span:"+(o?a:+a-+r)+l:"")+i});case 4949:if(121===M(i,r+6))return I(i,":",":"+c)+i;break;case 6444:switch(M(i,45===M(i,14)?18:11)){case 120:return I(i,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===M(i,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+s+"$2box$3")+i;case 100:return I(i,":",":"+s)+i}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(i,"scroll-","scroll-snap-")+i}var t,n;return i}function dt(t,e,r,n){if(-1<t.length&&!t.return)switch(t.type){case Te:return void(t.return=ct(t.value,t.length,r));case Ae:return Ve([m(t,{value:I(t.value,"@","@"+c)})],n);case Be:if(t.length)return r=t.props,o=function(e){switch(d(e,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":f(m(t,{props:[I(e,/:(read-\w+)/,":"+l+"$1")]})),f(m(t,{props:[e]})),Fe(t,{props:Ke(r,n)});break;case"::placeholder":f(m(t,{props:[I(e,/:(plac\w+)/,":"+c+"input-$1")]})),f(m(t,{props:[I(e,/:(plac\w+)/,":"+l+"$1")]})),f(m(t,{props:[I(e,/:(plac\w+)/,s+"input-$1")]})),f(m(t,{props:[e]})),Fe(t,{props:Ke(r,n)})}return""},r.map(o).join("")}var o}function S(e,t){var{path:t,parentSelectors:r}=t;(0,ne.Ay)(!1,"[Ant Design CSS-in-JS] "+(t?`Error in ${t}: `:"")+e+(r.length?" Selector: "+r.join(" | "):""))}function ut(e){return 1<(e.match(/:not\(([^)]*)\)/)?.[1]||"").split(/(\[[^[]*])|(?=[.#])/).filter(e=>e).length}var pt=(e,t,r)=>{var n=r.parentSelectors.reduce((e,t)=>e?t.includes("&")?t.replace(/&/g,e):e+" "+t:t,"").match(/:not\([^)]*\)/g)||[];0<n.length&&n.some(ut)&&S("Concat ':not' selector not support in legacy browsers.",r)},mt=(e,t,r)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void S(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,r);case"margin":case"padding":case"borderWidth":case"borderStyle":var n;return void("string"==typeof t&&4===(n=t.split(" ").map(e=>e.trim())).length&&n[1]!==n[3]&&S(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,r));case"clear":case"textAlign":return void("left"!==t&&"right"!==t||S(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,r));case"borderRadius":return void("string"==typeof t&&t.split("/").map(e=>e.trim()).reduce((e,t)=>e||2<=(t=t.split(" ").map(e=>e.trim())).length&&t[0]!==t[1]||3===t.length&&t[1]!==t[2]||4===t.length&&t[2]!==t[3]||e,!1)&&S(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,r))}},ft=(e,t,r)=>{("string"==typeof t&&/NaN/g.test(t)||Number.isNaN(t))&&S(`Unexpected 'NaN' in property '${e}: ${t}'.`,r)},ht=(e,t,r)=>{r.parentSelectors.some(e=>e.split(",").some(e=>2<e.split("&").length))&&S("Should not use more than one `&` in a selector.",r)};let k="data-ant-cssinjs-cache-path",gt="_FILE_STYLE__";let E,vt=!0;function bt(e){if(!E&&(E={},(0,U.A)())){var t=document.createElement("div");t.className=k,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let e=getComputedStyle(t).content||"";(e=e.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(e=>{var[e,t]=e.split(":");E[e]=t});var r=document.querySelector(`style[${k}]`);r&&(vt=!1,r.parentNode?.removeChild(r)),document.body.removeChild(t)}return E[e]}let yt="_skip_check_",Ct="_multi_value_";function xt(e,t){var l,i;return Ve(at(e),t?(i=_e(l=[dt,Xe]),function(e,t,r,n){for(var o="",a=0;a<i;a++)o+=l[a](e,t,r,n)||"";return o}):Xe).replace(/\{%%%\:[^;];}/g,";")}function wt(e,t,r="high"){if(!t)return e;let n=ve({hashCls:t,hashPriority:r});return e.split(",").map(e=>{e=e.trim().split(/\s+/);let t=e[0]||"";var r=t.match(/^\w+/)?.[0]||"";return[t=""+r+n+t.slice(r.length),...e.slice(1)].join(" ")}).join(",")}let St=(e,l={},{root:i,injectHash:s,parentSelectors:c}={root:!0,parentSelectors:[]})=>{let{hashId:d,layer:t,hashPriority:u,transformers:r=[]}=l,p="",m={};function f(e){var t,r=e.getName(d);m[r]||([t]=St(e.style,l,{root:!1,parentSelectors:c}),m[r]="@keyframes "+e.getName(d)+t)}return function t(e,r=[]){return e.forEach(e=>{Array.isArray(e)?t(e,r):e&&r.push(e)}),r}(Array.isArray(e)?e:[e]).forEach(t=>{t="string"!=typeof t||i?t:{};if("string"==typeof t)p+=t+`
`;else if(t._keyframe)f(t);else{let e=r.reduce((e,t)=>t?.visit?.(e)||e,t);Object.keys(e).forEach(n=>{var o=e[n];if("object"!=typeof o||!o||"animationName"===n&&o._keyframe||"object"==typeof(a=o)&&a&&(yt in a||Ct in a)){function t(e,t){var r=e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());let n=t;Pe[e]||"number"!=typeof n||0===n||(n+="px"),"animationName"===e&&t?._keyframe&&(f(t),n=t.getName(d)),p+=`${r}:${n};`}var a=o?.value??o;"object"==typeof o&&o?.[Ct]&&Array.isArray(a)?a.forEach(e=>{t(n,e)}):null!=a&&t(n,a)}else{let e=!1,t=n.trim(),r=!1;(i||s)&&d?t.startsWith("@")?e=!0:t="&"===t?wt("",d,u):wt(n,d,u):!i||d||"&"!==t&&""!==t||(t="",r=!0);var[a,o]=St(o,l,{root:r,injectHash:e,parentSelectors:[...c,t]});m={...m,...o},p+=""+t+a}})}}),i?t&&(p=p&&`@layer ${t.name} {${p}}`,t.dependencies)&&(m["@layer "+t.name]=t.dependencies.map(e=>`@layer ${e}, ${t.name};`).join("\n")):p=`{${p}}`,[p,m]};function kt(e,t){return h(""+e.join("%")+t)}let Et="style";function Nt(e,r){let{path:n,hashId:o,layer:a,nonce:s,clientOnly:l,order:i=0}=e,{hashPriority:c,container:d,transformers:u,linters:p,cache:m,layer:f,autoPrefix:h}=b.useContext(x),g=[o||""],t=(f&&g.push("layer"),g.push(...n),he);Se(Et,g,()=>{var e=g.join("|");if(bt(e)){var[e,t]=(e=>{var t,r=E[e];let n=null;return r&&(0,U.A)()&&(vt?n=gt:(t=document.querySelector(`style[${y}="${E[e]}"]`))?n=t.innerHTML:delete E[e]),[n,r]})(e);if(e)return[e,t,{},l,i]}var e=r(),[t,e]=St(e,{hashId:o,hashPriority:c,layer:f?a:void 0,path:n.join("-"),transformers:u,linters:p}),t=xt(t,h||!1);return[t,kt(g,t),e,l,i]},(e,t)=>{var[,e]=e;t&&he&&(0,v.m6)(e,{mark:y,attachTo:d})},e=>{let[o,a,l,,i]=e;if(t&&o!==gt){let t={mark:y,prepend:!f&&"queue",attachTo:d,priority:i},r=(t=be(t,s),[]),n=[];Object.keys(l).forEach(e=>{(e.startsWith("@layer")?r:n).push(e)}),r.forEach(e=>{(0,v.BD)(xt(l[e],h||!1),"_layer-"+e,{...t,prepend:!0})}),(0,v.BD)(o,a,t)[C]=m.instanceId,n.forEach(e=>{(0,v.BD)(xt(l[e],h||!1),"_effect-"+e,t)})}})}var It=(e,r)=>{let{key:n,prefix:o,unitless:a,ignore:l,token:t,hashId:i,scope:s,nonce:c}=e,{cache:{instanceId:d},container:u,hashPriority:p}=(0,b.useContext)(x);var m=t._tokenKey,f=Array.isArray(s)?s.join("@@"):s;let h=[...e.path,n,f,m];return Se("cssVar",h,()=>{var e=r(),[e,t]=Ce(e,n,{prefix:o,unitless:a,ignore:l,scope:s,hashPriority:p,hashCls:i});return[e,t,kt(h,t),n]},([,,e])=>{he&&(0,v.m6)(e,{mark:y,attachTo:u})},([,e,t])=>{var r;e&&(r=be(r={mark:y,prepend:"queue",attachTo:u,priority:-999},c),(e=(0,v.BD)(e,t,r))[C]=d,e.setAttribute(X,n))})};let Mt={style:(e,r,t)=>{let[n,o,a,l,i]=e,{plain:s,autoPrefix:c}=t||{};if(l)return null;let d=n,u={"data-rc-order":"prependQueue","data-rc-priority":""+i};return d=p(n,void 0,o,u,s),a&&Object.keys(a).forEach(e=>{var t;r[e]||(r[e]=!0,t=p(xt(a[e],c||!1),void 0,"_effect-"+e,u,s),e.startsWith("@layer")?d=t+d:d+=t)}),[i,o,d]},token:(e,t,r)=>{var[,,e,n,o]=e,r=(r||{}).plain;return n?[-999,e=e._tokenKey,p(n,o,e,{"data-rc-order":"prependQueue","data-rc-priority":"-999"},r)]:null},cssVar:(e,t,r)=>{var[,e,n,o]=e,r=(r||{}).plain;return e?[-999,n,p(e,o,n,{"data-rc-order":"prependQueue","data-rc-priority":"-999"},r)]:null}};function $t(e){return null!==e}function Rt(l,e){let{plain:i=!1,types:t=["style","token","cssVar"],once:s=!1}="boolean"==typeof e?{plain:e}:e||{},c=new RegExp(`^(${("string"==typeof t?[t]:t).join("|")})%`);var r,e=Array.from(l.cache.keys()).filter(e=>c.test(e));let d={},u={},n="";return e.map(e=>{var t,r,n,o,a;return(!s||!l.extracted.has(e))&&(t=e.replace(c,"").replace(/%/g,"|"),[n]=e.split("%"),n=(0,Mt[n])(l.cache.get(e)[1],d,{plain:i}))?(r=l.updateTimes.get(e)||0,[n,o,a]=n,e.startsWith("style")&&(u[t]=o),l.extracted.add(e),[n,a,r]):null}).filter($t).sort(([e,,t],[r,,n])=>e!==r?e-r:t-n).forEach(([,e])=>{n+=e}),n+=p(`.${k}{content:"${r=u,Object.keys(r).map(e=>e+":"+r[e]).join(";")}";}`,void 0,void 0,{[k]:k},i)}var Pt=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?e+"-"+this.name:this.name}_keyframe=!0};function t(e){return e.notSplit=!0,e}let zt={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:t(["borderTop","borderBottom"]),borderBlockStart:t(["borderTop"]),borderBlockEnd:t(["borderBottom"]),borderInline:t(["borderLeft","borderRight"]),borderInlineStart:t(["borderLeft"]),borderInlineEnd:t(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Bt(e,t){let r=e;return t&&(r+=" !important"),{_skip_check_:!0,value:r}}var Tt={visit:r=>{let a={};return Object.keys(r).forEach(e=>{let t=r[e];var o=zt[e];if(!o||"number"!=typeof t&&"string"!=typeof t)a[e]=t;else{let[r,n]=(e=>{if("number"==typeof e)return[[e],!1];var t=(e=String(e).trim()).match(/(.*)(!important)/),e=(t?t[1]:e).trim().split(/\s+/);let o=[],a=0;return[e.reduce((e,t)=>{var r,n;return(t.includes("(")||t.includes(")"))&&(r=t.split("(").length-1,n=t.split(")").length-1,a+=r-n),0<=a&&o.push(t),0===a&&(e.push(o.join(" ")),o=[]),e},[]),!!t]})(t);o.length&&o.notSplit?o.forEach(e=>{a[e]=Bt(t,n)}):1===o.length?a[o[0]]=Bt(r[0],n):2===o.length?o.forEach((e,t)=>{a[e]=Bt(r[t]??r[0],n)}):4===o.length?o.forEach((e,t)=>{a[e]=Bt(r[t]??r[t-2]??r[0],n)}):a[e]=t}}),a}};let Ot=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;var Ht=(e={})=>{let{rootValue:n=16,precision:o=5,mediaQuery:a=!1}=e,l=(e,t)=>{var r;return!t||(t=parseFloat(t))<=1?e:(t=t/n,r=o,r=Math.pow(10,r+1),t=Math.floor(t*r),10*Math.round(t/10)/r+"rem")};return{visit:e=>{let n={...e};return Object.entries(e).forEach(([e,t])=>{"string"==typeof t&&t.includes("px")&&(r=t.replace(Ot,l),n[e]=r),Pe[e]||"number"!=typeof t||0===t||(n[e]=(t+"px").replace(Ot,l));var r=e.trim();r.startsWith("@")&&r.includes("px")&&a&&(t=e.replace(Ot,l),n[t]=n[e],delete n[e])}),n}}};let At={supportModernCSS:()=>(me=void 0===me?pe(`:where(.${a}) { content: "${ue}"!important; }`,e=>{e.className=a}):me)&&(fe=void 0===fe?pe(`.${a} { inset-block: 93px !important; }`,e=>{e.className=a},e=>"93px"===getComputedStyle(e).bottom):fe)}},5059:function(e,t){t.A={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},9925:function(e,t){t.A={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},4816:function(e,t,r){r.d(t,["I",0,{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}])},1336:function(e,t,r){function n(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}r.d(t,{A:function(){return n}})},5506:function(e,t,r){function n(t,r){if(t){if(t.contains)return t.contains(r);let e=r;for(;e;){if(e===t)return!0;e=e.parentNode}}return!1}r.d(t,{A:function(){return n}})},9683:function(e,t,r){r.d(t,{BD:function(){return a},m6:function(){return o}});var s=r(1336),l=r(5506);let c="data-rc-order",d="data-rc-priority",n="rc-util-key",i=new Map;function u({mark:e}={}){return e?e.startsWith("data-")?e:"data-"+e:n}function p(e){return e.attachTo||document.querySelector("head")||document.body}function m(e){return Array.from((i.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function f(e,t={}){if(!(0,s.A)())return null;let{csp:r,prepend:n,priority:o=0}=t;var a="queue"===(a=n)?"prependQueue":a?"prepend":"append",l="prependQueue"==a,i=document.createElement("style"),a=(i.setAttribute(c,a),l&&o&&i.setAttribute(d,""+o),r?.nonce&&(i.nonce=r?.nonce),i.innerHTML=e,p(t)),e=a.firstChild;if(n){if(l){l=(t.styles||m(a)).filter(e=>!!["prepend","prependQueue"].includes(e.getAttribute(c))&&(e=Number(e.getAttribute(d)||0),o>=e));if(l.length)return a.insertBefore(i,l[l.length-1].nextSibling),i}a.insertBefore(i,e)}else a.appendChild(i);return i}function h(t,r={}){var e=r.styles;return(e||=m(p(r))).find(e=>e.getAttribute(u(r))===t)}function o(e,t={}){e=h(e,t);e&&p(t).removeChild(e)}function a(e,t,r={}){var n,o=p(r),a=m(o),r={...r,styles:a},o=(a=o,o=r,(n=i.get(a))&&(0,l.A)(document,n)||(o=(n=f("",o)).parentNode,i.set(a,o),a.removeChild(n)),h(t,r));return o?(r.csp?.nonce&&o.nonce!==r.csp?.nonce&&(o.nonce=r.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o):((a=f(e,r)).setAttribute(u(r),t),a)}},3702:function(e,t,r){r.d(t,{A:function(){return n}});var o=r(5442);function n(e,t,r){var n=o.useRef({});return"value"in n.current&&!r(n.current.condition,t)||(n.current.value=e(),n.current.condition=t),n.current.value}},9464:function(e,t,r){var s=r(6536);t.A=function(e,t,l=!1){let i=new Set;return function t(r,n,e=1){var o=i.has(r);if((0,s.Ay)(!o,"Warning: There may be circular references"),o)return!1;if(r===n)return!0;if(l&&1<e)return!1;i.add(r);let a=e+1;if(Array.isArray(r)){if(!Array.isArray(n)||r.length!==n.length)return!1;for(let e=0;e<r.length;e++)if(!t(r[e],n[e],a))return!1;return!0}return!(!r||!n||"object"!=typeof r||"object"!=typeof n)&&(o=Object.keys(r)).length===Object.keys(n).length&&o.every(e=>t(r[e],n[e],a))}(e,t)}},6536:function(e,t,r){r.d(t,{$e:function(){return a}});let n={},o=[];function a(e,t){}function l(e,t){}function i(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function s(e,t){i(a,e,t)}s.preMessage=e=>{o.push(e)},s.resetWarned=function(){n={}},s.noteOnce=function(e,t){i(l,e,t)},t.Ay=s},1014:function(e,t,r){let n;n="undefined"!=typeof window&&window.antdCssinjs?window.antdCssinjs:void 0!==r.g&&r.g.antdCssinjs?r.g.antdCssinjs:r(4871),e.exports=n},154:function(e,t,r){e.exports=r(9132)},3188:function(e,t,r){r=r(6554);t.A=r.A},6554:function(e,t,r){r.d(t,{A:function(){return n}});var t={...r(4816).I,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Last year",nextYear:"Next year",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},r=r(4334),n={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...t},timePickerLocale:{...r.A}}},9132:function(p,e,t){t.r(e),t.d(e,{Affix:function(){return bo},Alert:function(){return Xa},Anchor:function(){return dl},App:function(){return Vm},AutoComplete:function(){return yg},Avatar:function(){return dv},BackTop:function(){return fv},Badge:function(){return Iv},BorderBeam:function(){return Vv},Breadcrumb:function(){return Gb},Button:function(){return Yb},Calendar:function(){return VC},Card:function(){return Wx},Carousel:function(){return Hw},Cascader:function(){return Sk},Checkbox:function(){return Nk},Col:function(){return Rk},Collapse:function(){return hd},ColorPicker:function(){return kN},ConfigProvider:function(){return qs},DatePicker:function(){return oI},Descriptions:function(){return fI},Divider:function(){return Bk},Drawer:function(){return BI},Dropdown:function(){return WI},Empty:function(){return zh},Flex:function(){return UI},FloatButton:function(){return p4},Form:function(){return K4},Grid:function(){return V4},Image:function(){return MM},Input:function(){return jM},InputNumber:function(){return JE},Layout:function(){return _M},List:function(){return O3},Listy:function(){return Q3},Masonry:function(){return e$},Mentions:function(){return h$},Menu:function(){return Hb},Modal:function(){return I$},Pagination:function(){return g3},Popconfirm:function(){return W$},Popover:function(){return sv},Progress:function(){return g6},QRCode:function(){return W6},Radio:function(){return j6},Rate:function(){return tR},Result:function(){return uR},Row:function(){return pR},Segmented:function(){return Kk},Select:function(){return gg},Skeleton:function(){return jp},Slider:function(){return nN},Space:function(){return FI},Spin:function(){return z3},Splitter:function(){return kR},Statistic:function(){return zR},Steps:function(){return h5},Switch:function(){return y5},Table:function(){return eB},Tabs:function(){return Px},Tag:function(){return sB},TimePicker:function(){return gB},Timeline:function(){return xB},Tooltip:function(){return rv},Tour:function(){return WB},Transfer:function(){return pT},Tree:function(){return UP},TreeSelect:function(){return OT},Typography:function(){return kO},Upload:function(){return iH},Watermark:function(){return SH},message:function(){return E$},notification:function(){return D$},theme:function(){return mB},unstableSetRender:function(){return kH},version:function(){return fn}});var m=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}}),f=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"}}),h=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"}}),g=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"}}),v=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"}}),b=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}}),C=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}}),x=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"}}),w=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"}}),S=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}}),k=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"}}),E=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}}),I=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"}}),M=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"}}),$=t.cw(function(e,t){t.A={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"}}),R=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}}),P=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}}),z=t.cw(function(e,t){t.A={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"}}),B=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"}}),T=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}}),O=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}}),H=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}}),A=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"}}),D=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}}),L=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"}}),W=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"}}),j=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"}}),_=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"}}),K=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}}),V=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}}),X=t.cw(function(e,t){t.A={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"}}),q=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"}}),G=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"}}),Y=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"}}),U=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"}}),Z=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}}),J=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"}}),ee=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"}}),te=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}}),re=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}}),ne=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"}}),oe=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"}}),ae=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}}),le=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"}}),ie=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"}}),se=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"}}),ce=t.cw(function(e,t){t.A={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"}}),de=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"}}),ue=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"}}),pe=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"}}),me=t.cw(function(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"}}),fe=t.cw(function(e,t){var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition");Symbol.for("react.client.reference");function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case l:case a:case d:case u:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case m:case p:case i:return e;default:return t}}case n:return t}}}t.vM=c,t.Rf=function(e){return h(e)===p}}),he=t.cw(function(e,t){e.exports=r,e.exports.isMobile=r,e.exports.default=r;let n=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,a=/android|ipad|playbook|silk/i;function r(e){let t=(e=e||{}).ua;if("string"!=typeof(t=(t=t||"undefined"==typeof navigator?t:navigator.userAgent)&&t.headers&&"string"==typeof t.headers["user-agent"]?t.headers["user-agent"]:t))return!1;let r=n.test(t)&&!o.test(t)||!!e.tablet&&a.test(t);return r=!r&&e.tablet&&e.featureDetect&&navigator&&1<navigator.maxTouchPoints&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")?!0:r}}),ge=t.cw(function(e,t){var r=yt();t.H=r.createRoot,r.hydrateRoot}),yt=function(){return t(6003)},ft=t(5442),Re=t.n(ft);let ve=Symbol.for("react.element"),be=Symbol.for("react.transitional.element"),ye=Symbol.for("react.fragment");function xe(e){return e&&"object"==typeof e&&(e.$$typeof===ve||e.$$typeof===be)&&e.type===ye}function ke(e,t={}){let r=[];return Re().Children.forEach(e,e=>{null==e&&!t.keepEmpty||(Array.isArray(e)?r=r.concat(ke(e)):xe(e)&&e.props?r=r.concat(ke(e.props.children,t)):r.push(e))}),r}var Te=t(6536);function Ct(e){return e instanceof HTMLElement||e instanceof SVGElement}function xt(e){return e&&"object"==typeof e&&Ct(e.nativeElement)?e.nativeElement:Ct(e)?e:null}var tt=t(3702);let we=Number(ft.version.split(".")[0]),Ee=(e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},Ne=(...e)=>{var t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{Ee(e,t)})}},wt=(...e)=>(0,tt.A)(()=>Ne(...e),e,(e,r)=>e.length!==r.length||e.every((e,t)=>e!==r[t])),Ie=e=>{var t;return!(!e||!(Me(e)&&19<=we)&&("function"==typeof(t=((0,fe().Rf)(e)?e.type:e).type)&&!t.prototype?.render&&t.$$typeof!==fe().vM||"function"==typeof e&&!e.prototype?.render&&e.$$typeof!==fe().vM))};function Me(e){return(0,ft.isValidElement)(e)&&!xe(e)}let Oe=e=>Me(e)&&Ie(e),St=e=>e&&Me(e)?((e=e).props.propertyIsEnumerable("ref")?e.props:e).ref:null,He=ft.createContext(null);let Ae=new Map;function De(e){e.forEach(e=>{let t=e.target;Ae.get(t)?.forEach(e=>e(t))})}let Le;function _e(){return Le=Le||new ResizeObserver(De)}var ht=e=>{let t=ft.useRef(e);return t.current=e,ft.useCallback((...e)=>t.current?.(...e),[])},Ke=t(1336);let Ve=(0,Ke.A)()?ft.useLayoutEffect:ft.useEffect,Xe=(e,t)=>{let r=ft.useRef(!0);Ve(()=>e(r.current),t),Ve(()=>(r.current=!1,()=>{r.current=!0}),[])},qe=(t,e)=>{Xe(e=>{if(!e)return t()},e)};var gt=Xe,Ge=e=>{let r=ft.useRef(!1),[t,n]=ft.useState(e);return ft.useEffect(()=>(r.current=!1,()=>{r.current=!0}),[]),[t,function(e,t){t&&r.current||n(e)}]};function vt(e,t){let[r,n]=(0,ft.useState)(e);e=void 0!==t?t:r;return gt(e=>{e||n(t)},[t]),[e,n]}let Ye=e=>+setTimeout(e,16),et=e=>clearTimeout(e),rt=("undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ye=e=>window.requestAnimationFrame(e),et=e=>window.cancelAnimationFrame(e)),0),nt=new Map;function ot(e){nt.delete(e)}var e=(n,e=1)=>{let o=rt+=1;return function e(t){var r;0===t?(ot(o),n()):(r=Ye(()=>{e(t-1)}),nt.set(o,r))}(e),o},$e=(e.cancel=e=>{var t=nt.get(e);return ot(e),et(t)},e);function lt(e){let[t,r]=ft.useState(e),n=ft.useRef(null),o=ht(()=>{var e,t;n.current&&([e,t]=n.current,e?$e.cancel(t):clearTimeout(t),n.current=null)});return[t,ht((e,t)=>{t=t||{frame:1};o(),!0===t?r(e):"ms"in t?n.current=[!1,setTimeout(()=>r(e),t.ms)]:n.current=[!0,$e(()=>r(e),t.frame)]})]}let it=0;function st(e,t){return e+"-"+String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-")}let ct={...ft}.useId;var kt=ct?function(e){var t=ct();return e||t}:function(e){let[t,r]=ft.useState("ssr-id");return ft.useEffect(()=>{var e=it;it+=1,r("rc_unique_"+e)},[]),e||t};var dt=function(e){let[,t]=ft.useReducer(e=>e+1,0),r=ft.useRef(e);return[ht(()=>r.current),ht(e=>{r.current="function"==typeof e?e(r.current):e,t()})]},ut=t(5506),pt=t(9683),mt=e=>{if(e&&e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var{width:t,height:r}=e.getBBox();if(t||r)return!0}if(e.getBoundingClientRect){var{width:t,height:r}=e.getBoundingClientRect();if(t||r)return!0}}return!1};function Et(t,r=!1){if(mt(t)){var n=t.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(n)||t.isContentEditable||"a"===n&&!!t.getAttribute("href"),o=t.getAttribute("tabindex"),a=Number(o);let e=null;return o&&!Number.isNaN(a)?e=a:n&&null===e&&(e=0),null!==(e=n&&t.disabled?null:e)&&(0<=e||r&&e<0)}return!1}function Nt(e,t=!1){var r=[...e.querySelectorAll("*")].filter(e=>Et(e,t));return Et(e,t)&&r.unshift(e),r}function It(e,t){if(e){e.focus(t);t=(t||{}).cursor;if(t&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){var r=e.value.length;switch(t){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}let Mt=null,$t=[],Rt=new Map,Pt=new Map;function zt(){return $t[$t.length-1]}function Bt(){var e,t,r=zt(),n=document.activeElement;(t=>{var r=zt();if(t&&r){let e;for(var[n,o]of Rt.entries())if(o===r){e=n;break}var a=Pt.get(e);return a&&(a===t||a.contains(t))}})(n)||(r&&(e=r,t=document.activeElement,e!==t)&&!e.contains(t)?((e=Nt(r)).includes(Mt)?Mt:e[0])?.focus({preventScroll:!0}):Mt=n)}function Tt(e){var t,r,n;"Tab"===e.key&&(t=document.activeElement,n=(r=Nt(zt()))[r.length-1],e.shiftKey&&t===r[0]?Mt=n:e.shiftKey||t!==n||(Mt=r[0]))}function Ot(o,t){let a=kt(),l=(0,ft.useRef)(t);l.current=t;{var i=e=>{var t,r,n;return o?(t=l.current())?[(r=t,n=a,r&&(Rt.set(n,r),($t=$t.filter(e=>e!==r)).push(r),window.addEventListener("focusin",Bt),window.addEventListener("keydown",Tt,!0),Bt()),()=>{Mt=null,$t=$t.filter(e=>e!==r),Rt.delete(n),Pt.delete(n),0===$t.length&&(window.removeEventListener("focusin",Bt),window.removeEventListener("keydown",Tt,!0))}),!0]:[void 0,1<=e]:[void 0,!0]};t=[a,o];let r=(0,ft.useRef)(0),[e,n]=(0,ft.useState)(0);(0,ft.useEffect)(()=>{r.current=0},t),(0,ft.useEffect)(()=>{var[e,t]=i(r.current);return t||(r.current+=1,n(e=>e+1)),e},[...t,e])}return[e=>{e&&Pt.set(a,e)}]}function Ht(e){return e?.getRootNode?.()}function At(e){return Ht(e)instanceof ShadowRoot?Ht(e):null}let Dt=e=>{if((0,Ke.A)()&&window.document.documentElement){e=Array.isArray(e)?e:[e];let t=window.document.documentElement;return e.some(e=>e in t.style)}return!1},Lt=(e,t)=>{var r,n;return!!Dt(e)&&(n=(r=document.createElement("div")).style[e],r.style[e]=t,r.style[e]!==n)};function Ft(e,t){return Array.isArray(e)||void 0===t?Dt(e):Lt(e,t)}let r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){var t,e=e.target;return e instanceof HTMLElement&&!("INPUT"!==(t=e.tagName)&&"TEXTAREA"!==t&&"SELECT"!==t&&!e.isContentEditable)}};var Ce=r;let Wt;function jt(e){var t="rc-scrollbar-measure-"+Math.random().toString(36).substring(7),r=document.createElement("div"),n=(r.id=t,r.style);n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";let o,a;if(e){var l=getComputedStyle(e),n=(n.scrollbarColor=l.scrollbarColor,n.scrollbarWidth=l.scrollbarWidth,getComputedStyle(e,"::-webkit-scrollbar")),l=parseInt(n.width,10),i=parseInt(n.height,10);try{var s=l?`width: ${n.width};`:"",c=i?`height: ${n.height};`:"";(0,pt.BD)(`
#${t}::-webkit-scrollbar {
${s}
${c}
}`,t)}catch(e){console.error(e),o=l,a=i}}document.body.appendChild(r);n=e&&o&&!Number.isNaN(o)?o:r.offsetWidth-r.clientWidth,s=e&&a&&!Number.isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),(0,pt.m6)(t),{width:n,height:s}}function _t(e){return"undefined"==typeof document?0:(Wt=!e&&void 0!==Wt?Wt:jt()).width}function Kt(e){return"undefined"!=typeof document&&e&&e instanceof Element?jt(e):{width:0,height:0}}var Vt=t(9464);function Xt(){return Xt.c||(Xt.c=t.n(he()))}he();let qt;var Gt=()=>qt=void 0===qt?Xt()()():qt;function at(e,t){let r=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete r[e]}),r}let Yt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
onAnimationStart onAnimationEnd onAnimationIteration
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
onBeforeInput onReset onInvalid
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`.split(/[\s\n]+/),Ut="aria-",Qt="data-";function Zt(e,t){return 0===e.indexOf(t)}function Jt(t,e=!1){let r,n=(r=!1===e?{aria:!0,data:!0,attr:!0}:!0===e?{aria:!0}:{...e},{});return Object.keys(t).forEach(e=>{(r.aria&&("role"===e||Zt(e,Ut))||r.data&&Zt(e,Qt)||r.attr&&Yt.includes(e))&&(n[e]=t[e])}),n}var er=function(...e){var t,r={};for(t of e)if(t)for(var n of Object.keys(t))void 0!==t[n]&&(r[n]=t[n]);return r};function tr(e,t){let r=e;for(let e=0;e<t.length;e+=1){if(null==r)return;r=r[t[e]]}return r}function rr(e,t,r,n=!1){return t.length&&n&&void 0===r&&!tr(e,t.slice(0,-1))?e:function e(t,r,n,o){if(!r.length)return n;var[r,...a]=r;let l;return l=t||"number"!=typeof r?Array.isArray(t)?[...t]:{...t}:[],o&&void 0===n&&1===a.length?delete l[r][a[0]]:l[r]=e(l[r],a,n,o),l}(e,t,r,n)}function nr(e){return Array.isArray(e)?[]:{}}let or="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ar(e,t={}){t=t.prepareArray;let i=t||(()=>[]),s=nr(e[0]);return e.forEach(l=>{!function t(r,e){let n=new Set(e),o=tr(l,r);var a,e=Array.isArray(o);e||"object"==typeof(a=o)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype?n.has(o)||(n.add(o),a=tr(s,r),e?s=rr(s,r,i(a,o)):a&&"object"==typeof a||(s=rr(s,r,nr(o))),or(o).forEach(e=>{Object.getOwnPropertyDescriptor(o,e).enumerable&&t([...r,e],n)})):s=rr(s,r,o)}([])}),s}function lr(...e){return ar(e)}yt(),ge();let ir="__rc_react_root__";function sr(e,t){var r=t[ir]||(0,ge().H)(t);r.render(e),t[ir]=r}async function cr(e){return Promise.resolve().then(()=>{e[ir]?.unmount(),delete e[ir]})}function dr(n,o,s,c){let d=ft.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=ht(t=>{var{width:r,height:n}=t.getBoundingClientRect(),{offsetWidth:o,offsetHeight:a}=t,l=Math.floor(r),i=Math.floor(n);if(d.current.width!==l||d.current.height!==i||d.current.offsetWidth!==o||d.current.offsetHeight!==a){l={width:l,height:i,offsetWidth:o,offsetHeight:a},i=(d.current=l,o===Math.round(r)?r:o),r=a===Math.round(n)?n:a;let e={...l,offsetWidth:i,offsetHeight:r};c?.(e,t),Promise.resolve().then(()=>{s?.(e,t)})}}),l="function"==typeof o,i=ft.useRef(0);ft.useEffect(()=>{let r=l?o():o;var e,t;return r&&n?(e=r,t=a,Ae.has(e)||(Ae.set(e,new Set),_e().observe(e)),Ae.get(e).add(t)):n&&l&&(i.current+=1),()=>{var e,t;r&&(e=r,t=a,Ae.has(e))&&(Ae.get(e).delete(t),Ae.get(e).size||(_e().unobserve(e),Ae.delete(e)))}},[n,l?i.current:o])}function ur(e,t){let{children:r,disabled:n,onResize:o,data:a}=e,l=ft.useRef(null),i=ft.useContext(He);var e="function"==typeof r,s=e?r(l):r,e=!e&&ft.isValidElement(s)&&Ie(s),c=e?St(s):null,c=wt(c,l);let d=()=>xt(l.current);return ft.useImperativeHandle(t,()=>d()),dr(!n,d,o,(e,t)=>{i?.(e,t,a)}),e?ft.cloneElement(s,{ref:c}):s}var pr=ft.forwardRef(ur);function mr(){return(mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let fr="rc-observer-key";function hr(n,o){var e=n.children;return("function"==typeof e?[e]:ke(e)).map((e,t)=>{var r=e?.key||fr+"-"+t;return ft.createElement(pr,mr({},n,{key:r,ref:0===t?o:void 0}),e)})}var e=ft.forwardRef(hr),gr=(e.Collection=function({children:e,onBatchResize:o}){let a=ft.useRef(0),l=ft.useRef([]),i=ft.useContext(He);var t=ft.useCallback((e,t,r)=>{a.current+=1;let n=a.current;l.current.push({size:e,element:t,data:r}),Promise.resolve().then(()=>{n===a.current&&(o?.(l.current),l.current=[])}),i?.(e,t,r)},[o,i]);return ft.createElement(He.Provider,{value:t},e)},e);function bt(){for(var e,t=0,r="",n=arguments.length;t<n;t++)(e=arguments[t])&&(e=function e(t){var r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t))for(var o=t.length,a=0;a<o;a++)t[a]&&(r=e(t[a]))&&(n&&(n+=" "),n+=r);else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}(e))&&(r&&(r+=" "),r+=e);return r}var vr=bt;function br(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yr(e,t){var r;if(e)return"string"==typeof e?br(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?br(e,t):void 0}function Pe(e){return(e=>{if(Array.isArray(e))return br(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)})(e)||yr(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}var Cr=function(r){let n=null;var e=(...e)=>{var t;null===n&&(n=$e((t=e,()=>{n=null,r.apply(void 0,Pe(t))})))};return e.cancel=()=>{$e.cancel(n),n=null},e};let xr="ant",wr="anticon",Sr=["outlined","borderless","filled","underlined"];let Ue=ft.createContext({getPrefixCls:(e,t)=>t||(e?xr+"-"+e:xr),iconPrefixCls:wr});var{}=Ue;let kr={};function Fe(e){var t=ft.useContext(Ue),{getPrefixCls:r,direction:n,getPopupContainer:o,renderEmpty:a}=t,t=t[e];return{classNames:kr,styles:kr,...t,getPrefixCls:r,direction:n,getPopupContainer:o,renderEmpty:a}}function Er(e){return(Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nr(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,l,i=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}})(e,t)||yr(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function Ir(e){e=((e,t)=>{if("object"!=Er(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);if("object"!=Er(r=r.call(e,t||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string");return"symbol"==Er(e)?e:e+""}function y(e,t,r){return(t=Ir(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mr(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var Qe=t(1014);function $r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ir(n.key),n)}}function Pr(e,t,r){return t&&Rr(e.prototype,t),r&&Rr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Br(e,t){return(Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Br(e,t)}function Or(e){return(Or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hr=function(){return!!e})()}function Ar(e,t){if(t&&("object"==Er(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}function Dr(r){var n=Hr();return function(){var e,t=Or(r);return Ar(this,n?(e=Or(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}var Lr=Pr(function e(){$r(this,e)}),Fr="CALC_UNIT",Wr=new RegExp(Fr,"g");function jr(e){return"number"==typeof e?"".concat(e).concat(Fr):e}var _r=(()=>{Tr(a,Lr);var o=Dr(a);function a(e,t){$r(this,a),y(zr(r=o.call(this)),"result",""),y(zr(r),"unitlessCssVar",void 0),y(zr(r),"lowPriority",void 0);var r,n=Er(e);return r.unitlessCssVar=t,e instanceof a?r.result="(".concat(e.result,")"):"number"===n?r.result=jr(e):"string"===n&&(r.result=e),r}return Pr(a,[{key:"add",value:function(e){return e instanceof a?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(jr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof a?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(jr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof a?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof a?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,e=(e||{}).unit,r=!0;return"boolean"==typeof e?r=e:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Wr,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),a})(),Kr=(()=>{Tr(n,Lr);var r=Dr(n);function n(e){var t;return $r(this,n),y(zr(t=r.call(this)),"result",0),e instanceof n?t.result=e.result:"number"==typeof e&&(t.result=e),t}return Pr(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n})(),Vr=function(e,t){var r="css"===e?_r:Kr;return function(e){return new r(e,t)}},Xr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};var qr=function(e,t,r,n){var o=N({},t[e]),a=(null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var e=Nr(e,2),t=e[0],e=e[1];(null!=o&&o[t]||null!=o&&o[e])&&null==o[e]&&(o[e]=null==o?void 0:o[t])}),N(N({},r),o));return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a},Gr="undefined"!=typeof CSSINJS_STATISTIC,Yr=!0;function ze(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Gr)return Object.assign.apply(Object,[{}].concat(t));Yr=!1;var n={};return t.forEach(function(t){"object"===Er(t)&&Object.keys(t).forEach(function(e){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return t[e]}})})}),Yr=!0,n}var Ur={};function Qr(){}var Zr=function(e){var n,t=e,r=Qr;return Gr&&"undefined"!=typeof Proxy&&(n=new Set,t=new Proxy(e,{get:function(e,t){var r;return Yr&&null!=(r=n)&&r.add(t),e[t]}}),r=function(e,t){Ur[e]={global:Array.from(n),component:N(N({},null==(e=Ur[e])?void 0:e.component),t)}}),{token:t,keys:n,flush:r}};var Jr=function(e,t,r){return"function"==typeof r?r(ze(t,null!=(t=t[e])?t:{})):null!=r?r:{}};var en=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,Qe.unit)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,Qe.unit)(e)}).join(","),")")}}},tn=new((()=>{function e(){$r(this,e),y(this,"map",new Map),y(this,"objectIDMap",new WeakMap),y(this,"nextID",0),y(this,"lastAccessBeat",new Map),y(this,"accessBeat",0)}return Pr(e,[{key:"set",value:function(e,t){this.clear();e=this.getCompositeKey(e);this.map.set(e,t),this.lastAccessBeat.set(e,Date.now())}},{key:"get",value:function(e){var e=this.getCompositeKey(e),t=this.map.get(e);return this.lastAccessBeat.set(e,Date.now()),this.accessBeat+=1,t}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===Er(e)?"obj_".concat(t.getObjectID(e)):"".concat(Er(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){var t;return this.objectIDMap.has(e)?this.objectIDMap.get(e):(t=this.nextID,this.objectIDMap.set(e,t),this.nextID+=1,t)}},{key:"clear",value:function(){var r,n=this;1e4<this.accessBeat&&(r=Date.now(),this.lastAccessBeat.forEach(function(e,t){6e5<r-e&&(n.map.delete(t),n.lastAccessBeat.delete(t))}),this.accessBeat=0)}}]),e})());var rn=function(t,r){return Re().useMemo(function(){var e=tn.get(r);return e||(e=t(),tn.set(r,e),e)},r)},nn=function(){return{}};let on=function(t){var e=t.useCSP,x=void 0===e?nn:e,w=t.useToken,S=t.usePrefix,k=t.getResetStyles,E=t.getCommonStyle,v=t.getCompUnitless;function b(e,g,v){var b=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},e=Array.isArray(e)?e:[e,e],y=Nr(e,1)[0],o=e.join("-"),C=t.layer||{name:"antd"};return function(a){var l,i,e,s,c,d,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a,t=w(),r=t.theme,p=t.realToken,m=t.hashId,f=t.token,h=t.cssVar,n=t.zeroRuntime;return(0,ft.useMemo)(function(){return n},[])||(t=S(),l=t.rootPrefixCls,i=t.iconPrefixCls,e=x(),s=rn(function(){var t=new Set;return Object.keys(b.unitless||{}).forEach(function(e){t.add((0,Qe.token2CSSVar)(e,h.prefix)),t.add((0,Qe.token2CSSVar)(e,Xr(y,h.prefix)))}),Vr("css",t)},["css",y,null==h?void 0:h.prefix]),t=en("css"),c=t.max,d=t.min,t={theme:r,token:f,hashId:m,nonce:function(){return e.nonce},clientOnly:b.clientOnly,layer:C,order:b.order||-999},"function"==typeof k&&(0,Qe.useStyleRegister)(N(N({},t),{},{clientOnly:!1,path:["Shared",l]}),function(){return k(f,{prefix:{rootPrefixCls:l,iconPrefixCls:i},csp:e})}),(0,Qe.useStyleRegister)(N(N({},t),{},{path:[o,a,i]}),function(){var t,e,r,n,o;return!1===b.injectStyle?[]:(r=(o=Zr(f)).token,o=o.flush,t=Jr(y,p,v),n=".".concat(a),e=qr(y,p,t,{deprecatedTokens:b.deprecatedTokens}),t&&"object"===Er(t)&&Object.keys(t).forEach(function(e){t[e]="var(".concat((0,Qe.token2CSSVar)(e,Xr(y,h.prefix)),")")}),r=ze(r,{componentCls:n,prefixCls:a,iconCls:".".concat(i),antCls:".".concat(l),calc:s,max:c,min:d},t),n=g(r,{hashId:m,prefixCls:a,rootPrefixCls:l,iconPrefixCls:i}),o(y,e),o="function"==typeof E?E(r,a,u,b.resetFont):null,[!1===b.resetStyle?null:o,n])})),m}}return{genStyleHooks:function(e,t,r,o){var n=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(n)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var l,i,s,c,d,u,p=(null==o?void 0:o.unitless)||{},m=N(N({},"function"==typeof v?v(e):{}),{},y({},a("zIndexPopup"),!0)),f=(Object.keys(p).forEach(function(e){m[a(e)]=p[e]}),N(N({},o),{},{unitless:m,prefixToken:a})),h=b(e,t,r,f),g=(l=n,i=r,c=(s=f).unitless,d=s.prefixToken,u=s.ignore,function(e){var t=w(),r=t.cssVar,n=t.realToken,o=x();return(0,Qe.useCSSVarRegister)({path:[l],prefix:r.prefix,key:r.key,unitless:c,ignore:u,token:n,scope:e,nonce:function(){return o.nonce}},function(){var e=Jr(l,n,i),t=qr(l,n,e,{deprecatedTokens:null==s?void 0:s.deprecatedTokens});return e&&Object.keys(e).forEach(function(e){t[d(e)]=t[e],delete t[e]}),t}),null==r?void 0:r.key});return function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e,r=h(e,t),n=null==o?void 0:o.extraCssVarPrefixCls,e="function"==typeof n?n({prefixCls:e,rootCls:t}):n;return[r,g(null!=e&&e.length?[t].concat(Pe(e)):t)]}},genSubStyleComponent:function(e,t,r){var n=b(e,t,r,N({resetStyle:!1,order:-998},3<arguments.length&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,e=e.rootCls;return n(t,void 0===e?t:e),null}},genComponentStyleHook:b}},an={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},F=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ln=()=>({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",verticalAlign:"inherit"}}),sn=new Qe.Keyframes("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),cn=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),dn=(e,t)=>({outline:(0,Qe.unit)(e.lineWidthFocus)+" solid "+e.colorPrimaryBorder,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>e+" 0s").join(", ")}),un=(e,t)=>({"&:focus-visible":dn(e,t)});let pn=e=>({["."+e]:{...ln(),"&::before":{display:"none"},"&[tabindex]":{cursor:"pointer"}},[`.${e} .${e}-icon`]:{display:"block"},[`.${e}-spin`]:{animationName:sn,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),mn=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow,border:0,padding:0,background:"none",userSelect:"none",...un(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}});var fn="6.6.2";let hn={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"};var gn={...hn,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,focusOutline:!0,motion:!0};let vn={token:gn,override:{override:gn},hashed:!0},bn=Re().createContext(vn);var yn={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};let Cn=Math.round;function xn(e,t){var r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}let wn=(e,t,r)=>0===r?e:e/100;function Sn(e,t){t=t||255;return t<e?t:e<0?0:e}class kn{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(r){function e(e){return e[0]in r&&e[1]in r&&e[2]in r}if(r)if("string"==typeof r){let t=r.trim();function n(e){return t.startsWith(e)}var o;/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):n("hsv")||n("hsb")?this.fromHsvString(t):(o=yn[t.toLowerCase()])&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}else if(r instanceof kn)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._hsl_s=r._hsl_s,this._hsv_s=r._hsv_s,this._l=r._l,this._v=r._v;else if(e("rgb"))this.r=Sn(r.r),this.g=Sn(r.g),this.b=Sn(r.b),this.a="number"==typeof r.a?Sn(r.a,1):1;else if(e("hsl"))this.fromHsl(r);else{if(!e("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r));this.fromHsv(r)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){var t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){e/=255;return e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){var e;return void 0===this._h&&(e=this.getMax()-this.getMin(),this._h=0==e?0:Cn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))),this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){var e;return void 0===this._hsv_s&&(e=this.getMax()-this.getMin(),this._hsv_s=0==e?0:e/this.getMax()),this._hsv_s}getHSLSaturation(){var e,t;return void 0===this._hsl_s&&(0==(e=this.getMax()-this.getMin())?this._hsl_s=0:(t=this.getLightness(),this._hsl_s=e/255/(1-Math.abs(2*t-1)))),this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){var t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){var t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return 1<n&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){let r=this._c(e),n=t/100;e=e=>(r[e]-this[e])*n+this[e],t={r:Cn(e("r")),g:Cn(e("g")),b:Cn(e("b")),a:Cn(100*e("a"))/100};return this._c(t)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),r=this.a+t.a*(1-this.a);e=e=>Cn((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:e("r"),g:e("g"),b:e("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return 128<=this.getBrightness()}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";var t=(this.r||0).toString(16),t=(e+=2===t.length?t:"0"+t,(this.g||0).toString(16)),t=(e+=2===t.length?t:"0"+t,(this.b||0).toString(16));return e+=2===t.length?t:"0"+t,"number"==typeof this.a&&0<=this.a&&this.a<1&&(t=Cn(255*this.a).toString(16),e+=2===t.length?t:"0"+t),e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){var e=this.getHue(),t=Cn(100*this.getHSLSaturation()),r=Cn(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){var n=this.clone();return n[e]=Sn(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let r=e.replace("#","");function t(e,t){return parseInt(r[e]+r[t||e],16)}r.length<6?(this.r=t(0),this.g=t(1),this.b=t(2),this.a=r[3]?t(3)/255:1):(this.r=t(0,1),this.g=t(2,3),this.b=t(4,5),this.a=r[6]?t(6,7)/255:1)}fromHsl({h:n,s:o,l:a,a:l}){n=(n%360+360)%360;if(this._h=n,this._hsl_s=o,this._l=a,this.a="number"==typeof l?l:1,o<=0)l=Cn(255*a),this.r=l,this.g=l,this.b=l;else{let e=0,t=0,r=0;l=n/60,n=(1-Math.abs(2*a-1))*o,o=n*(1-Math.abs(l%2-1)),l=(0<=l&&l<1?(e=n,t=o):1<=l&&l<2?(e=o,t=n):2<=l&&l<3?(t=n,r=o):3<=l&&l<4?(t=o,r=n):4<=l&&l<5?(e=o,r=n):5<=l&&l<6&&(e=n,r=o),a-n/2);this.r=Cn(255*(e+l)),this.g=Cn(255*(t+l)),this.b=Cn(255*(r+l))}}fromHsv({h:e,s:t,v:r,a:n}){e=(e%360+360)%360,this._h=e,this._hsv_s=t,this._v=r,this.a="number"==typeof n?n:1,n=Cn(255*r);if(this.r=n,this.g=n,this.b=n,!(t<=0)){var n=e/60,e=Math.floor(n),n=n-e,o=Cn(r*(1-t)*255),a=Cn(r*(1-t*n)*255),l=Cn(r*(1-t*(1-n))*255);switch(e){case 0:this.g=l,this.b=o;break;case 1:this.r=a,this.b=o;break;case 2:this.r=o,this.b=l;break;case 3:this.r=o,this.g=a;break;case 4:this.r=l,this.g=o;break;default:this.g=o,this.b=a}}}fromHsvString(e){e=xn(e,wn);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(e){e=xn(e,wn);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(e){e=xn(e,(e,t)=>t.includes("%")?Cn(e/100*255):e);this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}let En=2,Nn=.16,In=.05,Mn=.05,$n=.15,Rn=5,Pn=4,zn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Bn(e,t,r){let n;return(n=60<=Math.round(e.h)&&Math.round(e.h)<=240?r?Math.round(e.h)-En*t:Math.round(e.h)+En*t:r?Math.round(e.h)+En*t:Math.round(e.h)-En*t)<0?n+=360:360<=n&&(n-=360),n}function Tn(e,t,r){if(0===e.h&&0===e.s)return e.s;let n;return 1<(n=r?e.s-Nn*t:t===Pn?e.s+Nn:e.s+In*t)&&(n=1),(n=r&&t===Rn&&.1<n?.1:n)<.06&&(n=.06),Math.round(100*n)/100}function On(e,t,r){let n;return n=r?e.v+Mn*t:e.v-$n*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}function Hn(e,r={}){let n=[];var e=new kn(e),t=e.toHsv();for(let e=Rn;0<e;--e){var o=new kn({h:Bn(t,e,!0),s:Tn(t,e,!0),v:On(t,e,!0)});n.push(o)}n.push(e);for(let e=1;e<=Pn;e+=1){var a=new kn({h:Bn(t,e),s:Tn(t,e),v:On(t,e)});n.push(a)}return"dark"===r.theme?zn.map(({index:e,amount:t})=>new kn(r.backgroundColor||"#141414").mix(n[e],t).toHexString()):n.map(e=>e.toHexString())}let An={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"};var e=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"],Dn=(e.primary=e[5],["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"]),n=(Dn.primary=Dn[5],["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"]);n.primary=n[5];let Ln=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ln.primary=Ln[5];var o=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"],a=(o.primary=o[5],["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"]),Fn=(a.primary=a[5],["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"]),l=(Fn.primary=Fn[5],["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"]),i=(l.primary=l[5],["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"]),s=(i.primary=i[5],["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"]),c=(s.primary=s[5],["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"]),d=(c.primary=c[5],["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"]),Wn=(d.primary=d[5],["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"]);Wn.primary=Wn[5];let jn={red:e,volcano:Dn,orange:n,gold:Ln,yellow:o,lime:a,green:Fn,cyan:l,blue:i,geekblue:s,purple:c,magenta:d,grey:Wn};e=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"],e.primary=e[5],Dn=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"],Dn.primary=Dn[5],n=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"],n.primary=n[5],o=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"],o.primary=o[5],a=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"],a.primary=a[5],Fn=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"],Fn.primary=Fn[5],l=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"],l.primary=l[5],i=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"],i.primary=i[5],s=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"],s.primary=s[5],c=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"],c.primary=c[5],d=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"],d.primary=d[5],Wn=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"],Wn.primary=Wn[5],e=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];e.primary=e[5];let _n=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Kn(r,{generateColorPalettes:n,generateNeutralColorPalettes:e}){var{colorSuccess:t,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:i,colorBgBase:s,colorTextBase:c}=r,i=n(i),t=n(t),o=n(o),a=n(a),l=n(l),e=e(s,c),s=r.colorLink||r.colorInfo,c=n(s),s=new kn(a[1]).mix(new kn(a[3]),50).toHexString();let d={};return _n.forEach(e=>{var t=r[e];t&&(t=n(t),d[e+"Hover"]=t[5],d[e+"Active"]=t[7])}),{...e,colorPrimaryBg:i[1],colorPrimaryBgHover:i[2],colorPrimaryBorder:i[3],colorPrimaryBorderHover:i[4],colorPrimaryHover:i[5],colorPrimary:i[6],colorPrimaryActive:i[7],colorPrimaryTextHover:i[8],colorPrimaryText:i[9],colorPrimaryTextActive:i[10],colorSuccessBg:t[1],colorSuccessBgHover:t[2],colorSuccessBorder:t[3],colorSuccessBorderHover:t[4],colorSuccessHover:t[4],colorSuccess:t[6],colorSuccessActive:t[7],colorSuccessTextHover:t[8],colorSuccessText:t[9],colorSuccessTextActive:t[10],colorErrorBg:a[1],colorErrorBgHover:a[2],colorErrorBgFilledHover:s,colorErrorBgActive:a[3],colorErrorBorder:a[3],colorErrorBorderHover:a[4],colorErrorHover:a[5],colorError:a[6],colorErrorActive:a[7],colorErrorTextHover:a[8],colorErrorText:a[9],colorErrorTextActive:a[10],colorWarningBg:o[1],colorWarningBgHover:o[2],colorWarningBorder:o[3],colorWarningBorderHover:o[4],colorWarningHover:o[4],colorWarning:o[6],colorWarningActive:o[7],colorWarningTextHover:o[8],colorWarningText:o[9],colorWarningTextActive:o[10],colorInfoBg:l[1],colorInfoBgHover:l[2],colorInfoBorder:l[3],colorInfoBorderHover:l[4],colorInfoHover:l[4],colorInfo:l[6],colorInfoActive:l[7],colorInfoTextHover:l[8],colorInfoText:l[9],colorInfoTextActive:l[10],colorLinkHover:c[4],colorLink:c[6],colorLinkActive:c[7],...d,colorBgMask:new kn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var Vn=e=>{let t=e,r=e,n=e,o=e;return e<6&&5<=e?t=e+1:e<16&&6<=e?t=e+2:16<=e&&(t=16),e<7&&5<=e?r=4:e<8&&7<=e?r=5:e<14&&8<=e?r=6:e<16&&14<=e?r=7:16<=e&&(r=8),e<6&&2<=e?n=1:6<=e&&(n=2),4<e&&e<8?o=4:8<=e&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};var Xn=e=>{e=e.controlHeight;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};function qn(e){return(e+8)/e}var Gn=e=>{n=e,(e=Array.from({length:10}).map((e,t)=>{var r=n*Math.E**((t-1)/5),t=1<t?Math.floor(r):Math.ceil(r);return 2*Math.floor(t/2)}))[1]=n;var n,e=e.map(e=>({size:e,lineHeight:qn(e)})),t=e.map(e=>e.size),e=e.map(e=>e.lineHeight),r=t[1],o=t[0],a=t[2],l=e[1],i=e[0],s=e[2];return{fontSizeSM:o,fontSize:r,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:l,lineHeightLG:s,lineHeightSM:i,fontHeight:Math.round(l*r),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(i*o),lineHeightHeading1:e[6],lineHeightHeading2:e[5],lineHeightHeading3:e[4],lineHeightHeading4:e[3],lineHeightHeading5:e[2]}};let Yn=(e,t)=>new kn(e).setA(t).toRgbString(),Un=(e,t)=>new kn(e).darken(t).toHexString(),Qn=e=>{e=Hn(e);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},Zn=(e,t,r)=>{e=e||"#fff",t=t||"#000";return{colorBgBase:e,colorTextBase:t,colorShadow:r||"#000",colorText:Yn(t,.88),colorTextSecondary:Yn(t,.65),colorTextTertiary:Yn(t,.45),colorTextQuaternary:Yn(t,.25),colorFill:Yn(t,.15),colorFillSecondary:Yn(t,.06),colorFillTertiary:Yn(t,.04),colorFillQuaternary:Yn(t,.02),colorBgSolid:Yn(t,1),colorBgSolidHover:Yn(t,.75),colorBgSolidActive:Yn(t,.95),colorBgLayout:Un(e,4),colorBgContainer:Un(e,0),colorBgElevated:Un(e,0),colorBgSpotlight:Yn(t,.85),colorBgBlur:"transparent",colorBorder:Un(e,15),colorBorderDisabled:Un(e,15),colorBorderSecondary:Un(e,6)}};function Jn(e){An.pink=An.magenta,jn.pink=jn.magenta;var t=Object.keys(hn).map(n=>{let o=e[n]===An[n]?jn[n]:Hn(e[n]);return Array.from({length:10},()=>1).reduce((e,t,r)=>(e[n+"-"+(r+1)]=o[r],e[""+n+(r+1)]=o[r],e),{})}).reduce((e,t)=>e={...e,...t},{});return{...e,...t,...Kn(e,{generateColorPalettes:Qn,generateNeutralColorPalettes:Zn}),...Gn(e.fontSize),...(e=>{var{sizeUnit:e,sizeStep:t}=e;return{sizeXXL:e*(t+8),sizeXL:e*(t+4),sizeLG:e*(t+2),sizeMD:e*(t+1),sizeMS:e*t,size:e*t,sizeSM:e*(t-1),sizeXS:e*(t-2),sizeXXS:e*(t-3)}})(e),...Xn(e),...(e=>{var{motionUnit:e,motionBase:t,borderRadius:r,lineWidth:n}=e;return{motionDurationFast:(t+e).toFixed(1)+"s",motionDurationMid:(t+2*e).toFixed(1)+"s",motionDurationSlow:(t+3*e).toFixed(1)+"s",lineWidthBold:n+1,...Vn(r)}})(e)}}var eo=(0,Qe.createTheme)(Jn);function to(e){return 0<=e&&e<=255}var ro=function(e,t){var{r,g:n,b:o,a}=new kn(e).toRgb();if(a<1)return e;var{r:l,g:i,b:s}=new kn(t).toRgb();for(let e=.01;e<=1;e+=.01){var c=Math.round((r-l*(1-e))/e),d=Math.round((n-i*(1-e))/e),u=Math.round((o-s*(1-e))/e);if(to(c)&&to(d)&&to(u))return new kn({r:c,g:d,b:u,a:Math.round(100*e)/100}).toRgbString()}return new kn({r:r,g:n,b:o,a:1}).toRgbString()};function no(e){let{override:t,...r}=e,n={...t};Object.keys(gn).forEach(e=>{delete n[e]});e={...r,...n};let o=new kn(e.colorShadow),a=o.a;var l=e=>o.clone().setA(a*e).toRgbString(),e=(!1===e.motion&&(e.motionDurationFast="0s",e.motionDurationMid="0s",e.motionDurationSlow="0s"),{...e,colorFillContent:e.colorFillSecondary,colorFillContentHover:e.colorFill,colorFillAlter:e.colorFillQuaternary,colorBgContainerDisabled:e.colorFillTertiary,colorBorderBg:e.colorBgContainer,colorSplit:ro(e.colorBorderSecondary,e.colorBgContainer),colorTextPlaceholder:e.colorTextQuaternary,colorTextDisabled:e.colorTextQuaternary,colorTextHeading:e.colorText,colorTextLabel:e.colorTextSecondary,colorTextDescription:e.colorTextTertiary,colorTextLightSolid:e.colorWhite,colorHighlight:e.colorError,colorBgTextHover:e.colorFillSecondary,colorBgTextActive:e.colorFill,colorIcon:e.colorTextTertiary,colorIconHover:e.colorText,colorErrorOutline:ro(e.colorErrorBg,e.colorBgContainer),colorWarningOutline:ro(e.colorWarningBg,e.colorBgContainer),colorErrorAffix:e.colorError,colorWarningAffix:e.colorWarning,fontSizeIcon:e.fontSizeSM,lineWidthFocus:!1===e.focusOutline?0:3*e.lineWidth,lineWidth:e.lineWidth,controlOutlineWidth:2*e.lineWidth,controlInteractiveSize:e.controlHeight/2,controlItemBgHover:e.colorFillTertiary,controlItemBgActive:e.colorPrimaryBg,controlItemBgActiveHover:e.colorPrimaryBgHover,controlItemBgActiveDisabled:e.colorFill,controlTmpOutline:e.colorFillQuaternary,controlOutline:ro(e.colorPrimaryBg,e.colorBgContainer),lineType:e.lineType,borderRadius:e.borderRadius,borderRadiusXS:e.borderRadiusXS,borderRadiusSM:e.borderRadiusSM,borderRadiusLG:e.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:e.sizeXXS,paddingXS:e.sizeXS,paddingSM:e.sizeSM,padding:e.size,paddingMD:e.sizeMD,paddingLG:e.sizeLG,paddingXL:e.sizeXL,paddingContentHorizontalLG:e.sizeLG,paddingContentVerticalLG:e.sizeMS,paddingContentHorizontal:e.sizeMS,paddingContentVertical:e.sizeSM,paddingContentHorizontalSM:e.size,paddingContentVerticalSM:e.sizeXS,marginXXS:e.sizeXXS,marginXS:e.sizeXS,marginSM:e.sizeSM,margin:e.size,marginMD:e.sizeMD,marginLG:e.sizeLG,marginXL:e.sizeXL,marginXXL:e.sizeXXL,boxShadow:`
0 6px 16px 0 ${l(.08)},
0 3px 6px -4px ${l(.12)},
0 9px 28px 8px ${l(.05)}
`,boxShadowSecondary:`
0 6px 16px 0 ${l(.08)},
0 3px 6px -4px ${l(.12)},
0 9px 28px 8px ${l(.05)}
`,boxShadowTertiary:`
0 1px 2px 0 ${l(.05)},
0 1px 6px -1px ${l(.03)},
0 2px 4px 0 ${l(.03)}
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1919,screenXXXL:1920,screenXXXLMin:1920,boxShadowPopoverArrow:"2px 2px 5px "+l(.05),dropShadowPopover:`drop-shadow(0 6px 16px ${l(.08)}) drop-shadow(0 3px 6px ${l(.12)}) drop-shadow(0 9px 28px ${l(.05)})`,boxShadowCard:`
0 1px 2px -2px ${l(.16)},
0 3px 6px 0 ${l(.12)},
0 5px 12px 4px ${l(.09)}
`,boxShadowDrawerRight:`
-6px 0 16px 0 ${l(.08)},
-3px 0 6px -4px ${l(.12)},
-9px 0 28px 8px ${l(.05)}
`,boxShadowDrawerLeft:`
6px 0 16px 0 ${l(.08)},
3px 0 6px -4px ${l(.12)},
9px 0 28px 8px ${l(.05)}
`,boxShadowDrawerUp:`
0 6px 16px 0 ${l(.08)},
0 3px 6px -4px ${l(.12)},
0 9px 28px 8px ${l(.05)}
`,boxShadowDrawerDown:`
0 -6px 16px 0 ${l(.08)},
0 -3px 6px -4px ${l(.12)},
0 -9px 28px 8px ${l(.05)}
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px "+l(.08),boxShadowTabsOverflowRight:"inset -10px 0 8px -8px "+l(.08),boxShadowTabsOverflowTop:"inset 0 10px 8px -8px "+l(.08),boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px "+l(.08),...n});return e}let oo={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ao={motionBase:!0,motionUnit:!0},lo={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},io=(e,t,r)=>{let{override:n,...o}=t,a={...r.getDerivativeToken(e),override:n};return a=no(a),o&&Object.entries(o).forEach(([e,t])=>{let{theme:r,...n}=t,o=n;r&&(o=io({...a,...n},{override:n},r)),a[e]=o}),a};function so(){var{token:e,hashed:t,theme:r,override:n,cssVar:o,zeroRuntime:a}=Re().useContext(bn),{csp:l,getPrefixCls:i}=Re().useContext(Ue),i={prefix:o?.prefix??i(),key:o?.key??"css-var-root"},o=r||eo,[r,e,n]=(0,Qe.useCacheToken)(o,[gn,e],{salt:fn+"-"+(t||""),override:n,getComputedToken:io,cssVar:{...i,unitless:oo,ignore:ao,preserve:lo},nonce:l?.nonce});return[o,n,t?e:"",r,i,!!a]}let{genStyleHooks:Be,genComponentStyleHook:co,genSubStyleComponent:uo}=on({usePrefix:()=>{var{getPrefixCls:e,iconPrefixCls:t}=(0,ft.useContext)(Ue);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{var[e,t,r,n,o,a]=so();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o,zeroRuntime:a}},useCSP:()=>{var e=(0,ft.useContext)(Ue).csp;return e??{}},getResetStyles:(e,t)=>{e={a:{color:(e=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},...un(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}};return[e,{"&":e},pn(t?.prefix.iconPrefixCls??wr)]},getCommonStyle:(e,t,r,n)=>{var t=`[class^="${t}"], [class*=" ${t}"]`,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return{[r?"."+r:t]:{...a=!1!==n?{fontFamily:e.fontFamily,fontSize:e.fontSize}:a,...o,[t]:o}}},getCompUnitless:()=>oo}),Q=(e,t)=>{let r=`--${e.replace(/\./g,"")}-${t}-`;return[e=>r+e,(e,t)=>t?`var(${r}${e}, ${t})`:`var(${r}${e})`]};var po=Be("Affix",e=>{var t=e.componentCls;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},e=>({zIndexPopup:e.zIndexBase+10}));function mo(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function fo(e,t,r){if(void 0!==r&&Math.round(t.top)>Math.round(e.top)-r)return r+t.top}function ho(e,t,r){if(void 0!==r&&Math.round(t.bottom)<Math.round(e.bottom)+r)return r+(window.innerHeight-t.bottom)}let go=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],vo=()=>"undefined"!=typeof window?window:null;var bo=Re().forwardRef((e,t)=>{let{style:r,offsetTop:n,offsetBottom:o,prefixCls:a,className:l,rootClassName:i,children:s,target:c,onChange:d,onTestUpdatePosition:u,...p}=e;var{getPrefixCls:e,className:m,style:f}=Fe("affix"),h=Re().useContext(Ue).getTargetContainer,e=e("affix",a);let[g,v]=Re().useState(!1),[b,y]=Re().useState(),[C,x]=Re().useState(),w=Re().useRef(0),S=Re().useRef(null),k=Re().useRef(null),E=Re().useRef(null),N=Re().useRef(null),I=Re().useRef(null),M=c??h??vo,$=void 0===o&&void 0===n?0:n,R=()=>{var e,t,r,n;(w.current=1)===w.current&&N.current&&E.current&&M&&(n=M())&&(e={status:0},0===(t=mo(E.current)).top&&0===t.left&&0===t.width&&0===t.height||(r=fo(t,n=mo(n),$),n=ho(t,n,o),void 0!==r?(e.affixStyle={position:"fixed",top:r,width:t.width,height:t.height},e.placeholderStyle={width:t.width,height:t.height}):void 0!==n&&(e.affixStyle={position:"fixed",bottom:n,width:t.width,height:t.height},e.placeholderStyle={width:t.width,height:t.height}),e.lastAffix=!!e.affixStyle,g!==e.lastAffix&&d?.(e.lastAffix),w.current=e.status,y(e.affixStyle),x(e.placeholderStyle),v(e.lastAffix)))},P=Cr(()=>{R()}),z=Cr(()=>{if(M&&b){var e=M();if(e&&E.current){var e=mo(e),t=mo(E.current),r=fo(t,e,$),t=ho(t,e,o);if(void 0!==r&&b.top===r||void 0!==t&&b.bottom===t)return}}R()}),B=()=>{let t=M?.();t&&(go.forEach(e=>{k.current&&S.current?.removeEventListener(e,k.current),t?.addEventListener(e,z)}),S.current=t,k.current=z)},T=()=>{let t=M?.();go.forEach(e=>{t?.removeEventListener(e,z),k.current&&S.current?.removeEventListener(e,k.current)}),P.cancel(),z.cancel()};Re().useImperativeHandle(t,()=>({updatePosition:P})),Re().useEffect(()=>(I.current=setTimeout(B),()=>{I.current&&(clearTimeout(I.current),I.current=null),T()}),[]),Re().useEffect(()=>(B(),()=>T()),[c,b,g,n,o]),Re().useEffect(()=>{P()},[c,n,o]);var[h,t]=po(e),h=bt(i,h,e,t),e=bt({[h]:b});return Re().createElement(gr,{onResize:P},Re().createElement("div",{style:{...f,...r},className:bt(l,m),ref:E,...p},b&&Re().createElement("div",{style:C,"aria-hidden":"true"}),Re().createElement("div",{className:e,ref:N,style:b},Re().createElement(gr,{onResize:P},s))))}),yo=(0,ft.createContext)({});let Co="data-rc-order",xo="data-rc-priority",wo="rc-util-key",So=new Map;function ko(){return"undefined"!=typeof window&&window.document&&window.document.createElement}function Eo({mark:e}={}){return e?e.startsWith("data-")?e:"data-"+e:wo}function No(e){return e.attachTo||document.querySelector("head")||document.body}function Io(e){return Array.from((So.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Mo(e,t={}){if(!ko())return null;let{csp:r,prepend:n,priority:o=0}=t;var a="queue"===(a=n)?"prependQueue":a?"prepend":"append",l="prependQueue"==a,i=document.createElement("style"),a=(i.setAttribute(Co,a),l&&o&&i.setAttribute(xo,""+o),r?.nonce&&(i.nonce=r.nonce),i.innerHTML=e,No(t)),e=a.firstChild;if(n){if(l){l=(t.styles||Io(a)).filter(e=>!!["prepend","prependQueue"].includes(e.getAttribute(Co))&&(e=Number(e.getAttribute(xo)||0),o>=e));if(l.length)return a.insertBefore(i,l[l.length-1].nextSibling),i}a.insertBefore(i,e)}else a.appendChild(i);return i}function $o(e,t){var r=So.get(e);r&&((t,r)=>{if(t&&r){if(t.contains)return t.contains(r);let e=r;for(;e;){if(e===t)return 1;e=e.parentNode}}})(document,r)||(r=Mo("",t))&&(t=r.parentNode,So.set(e,t),e.removeChild(r))}function Ro(e,t,r={}){var n,o,a,l;ko()&&(o=Io(n=No(r)),$o(n,n={...r,styles:o}),a=t,r=(l=n).styles,(o=(r||=Io(No(l))).find(e=>e.getAttribute(Eo(l))===a))?(n.csp?.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e)):Mo(e,n)?.setAttribute(Eo(n),t))}let Po={};function zo(e,t){t="[@ant-design/icons] "+t,e||Po[t]||(Po[t]=!0)}function Bo(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function To(n={}){return Object.keys(n).reduce((e,t)=>{var r=n[t];return"class"===t?(e.className=r,delete e.class):(delete e[t],e[t.replace(/-(.)/g,(e,t)=>t.toUpperCase())]=r),e},{})}let Oo=`
.anticon {
display: inline-flex;
align-items: center;
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;
vertical-align: inherit;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin {
-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);
}
}
`,Ho=t=>{let{csp:r,prefixCls:e,layer:n,zeroRuntime:o}=(0,ft.useContext)(yo),a=Oo;e&&(a=a.replace(/anticon/g,e)),n&&(a=`@layer ${n} {
${a}
}`),(0,ft.useEffect)(()=>{var e;o||(e=t.current,e=(e=e)?.getRootNode?.(),e="undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:null,Ro(a,"@ant-design-icons",{prepend:!n,csp:r,attachTo:e}))},[])};var Dn=e=>{let{icon:t,className:r,onClick:n,style:o,primaryColor:a,secondaryColor:l,...i}=e;e=ft.useRef(null);return Ho(e),zo(Bo(t),"icon should be icon definiton, but got "+t),Bo(t)?function r(n,o,e){return e?Re().createElement(n.tag,{key:o,...To(n.attrs),...e},(n.children||[]).map((e,t)=>r(e,`${o}-${n.tag}-`+t))):Re().createElement(n.tag,{key:o,...To(n.attrs)},(n.children||[]).map((e,t)=>r(e,`${o}-${n.tag}-`+t)))}(t.icon,"svg-"+t.name,{className:r,onClick:n,style:o,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...i,ref:e}):null},Ao=(Dn.displayName="IconReact",Dn);function Do(){return(Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=ft.forwardRef((e,t)=>{let{className:r,icon:n,spin:o,rotate:a,tabIndex:l,onClick:i,twoToneColor:s,...c}=e;var{prefixCls:e="anticon",rootClassName:d}=ft.useContext(yo),d=bt(d,e,{[e+"-"+n.name]:!!n.name,[e+"-spin"]:!!o||"loading"===n.name},r);let u=l;void 0===u&&i&&(u=-1);e=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0;return ft.createElement("span",Do({role:"img","aria-label":n.name},c,{ref:t,tabIndex:u,onClick:i,className:d}),ft.createElement(Ao,{icon:n,style:e}))});function Lo(){return(Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Fo=ft.forwardRef((e,t)=>ft.createElement(u,Lo({},e,{ref:t,icon:b().A})));function Wo(){return(Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var jo=ft.forwardRef((e,t)=>ft.createElement(u,Wo({},e,{ref:t,icon:w().A})));function _o(){return(_o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ko=ft.forwardRef((e,t)=>ft.createElement(u,_o({},e,{ref:t,icon:S().A})));function Vo(){return(Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Xo=ft.forwardRef((e,t)=>ft.createElement(u,Vo({},e,{ref:t,icon:T().A})));function qo(){return(qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Go=ft.forwardRef((e,t)=>ft.createElement(u,qo({},e,{ref:t,icon:K().A})));let Yo=ft.createContext({});var Uo=e=>{let{children:t,...r}=e;e=ft.useMemo(()=>({motion:r.motion}),[r.motion]);return ft.createElement(Yo.Provider,{value:e},t)};let Qo="prepare";let Zo="prepared";function Jo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r["ms"+e]="MS"+t,r["O"+e]="o"+t.toLowerCase(),r}n=(0,Ke.A)(),o="undefined"!=typeof window?window:{},a={animationend:Jo("Animation","AnimationEnd"),transitionend:Jo("Transition","TransitionEnd")},n&&("AnimationEvent"in o||delete a.animationend.animation,"TransitionEvent"in o||delete a.transitionend.transition);let ea=a,ta={},ra=((0,Ke.A)()&&({style:ta}=document.createElement("div")),{});function na(t){if(ra[t])return ra[t];var r=ea[t];if(r){var n=Object.keys(r),o=n.length;for(let e=0;e<o;e+=1){var a=n[e];if(Object.prototype.hasOwnProperty.call(r,a)&&a in ta)return ra[t]=r[a],ra[t]}}return""}Fn=na("animationend"),l=na("transitionend"),i=!(!Fn||!l);let oa=Fn||"animationend",aa=l||"transitionend";function la(e,t){return e?"object"==typeof e?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:e+"-"+t:null}var ia=t=>{let r=(0,ft.useRef)();function n(e){e&&(e.removeEventListener(aa,t),e.removeEventListener(oa,t))}return ft.useEffect(()=>()=>{n(r.current),r.current=null},[]),[function(e){r.current&&r.current!==e&&n(r.current),e&&e!==r.current&&(e.addEventListener(aa,t),e.addEventListener(oa,t),r.current=e)},n]},sa=(0,Ke.A)()?ft.useLayoutEffect:ft.useEffect,ca=()=>{let o=ft.useRef(null);function a(){$e.cancel(o.current)}return ft.useEffect(()=>()=>{a()},[]),[function e(t,r=2){a();let n=$e(()=>{r<=1?t({isCanceled:()=>n!==o.current}):e(t,r-1)});o.current=n},a]};let da=[Qo,"start","active","end"],ua=[Qo,Zo],pa=!1;function ma(e){return"active"===e||"end"===e}var fa=(e,t,o)=>{let[a,l]=Ge("none"),[i,r]=ca();let s=t?ua:da;return sa(()=>{if("none"!==a&&"end"!==a){var e=s.indexOf(a);let r=s[e+1],n=o(a);n===pa?l(r,!0):r&&i(e=>{function t(){e.isCanceled()||l(r,!0)}!0===n?t():Promise.resolve(n).then(t)})}},[e,a]),ft.useEffect(()=>()=>{r()},[]),[function(){l(Qo,!0)},a]};function ha(e){return e?.length<2}var ga=(e=>{let x=e;return"object"==typeof e&&({transitionSupport:x}=e),(e=ft.forwardRef((e,t)=>{let{visible:o=!0,removeOnLeave:a=!0,forceRender:l,children:i,motionName:s,leavedClassName:c,eventProps:d}=e;var r=ft.useContext(Yo).motion;r=r;let n=!(!e.motionName||!x||!1===r),u=(0,ft.useRef)();function p(){return xt(u.current)}let[m,f,h,g,v]=((r,n,a,{motionEnter:o=!0,motionAppear:l=!0,motionLeave:i=!0,motionDeadline:s,motionLeaveImmediately:c,onAppearPrepare:t,onEnterPrepare:d,onLeavePrepare:u,onAppearStart:p,onEnterStart:m,onLeaveStart:f,onAppearActive:h,onEnterActive:g,onLeaveActive:v,onAppearEnd:b,onEnterEnd:H,onLeaveEnd:A,onVisibleChanged:D})=>{let[e,L]=ft.useState(),[y,C]=dt("none"),[x,w]=ft.useState([null,null]),S=y(),k=(0,ft.useRef)(!1),E=(0,ft.useRef)(null),N=(0,ft.useRef)(!1);function I(){C("none"),w([null,null])}let M=ht(t=>{var r=y();if("none"!==r){var n=a();if(!t||t.deadline||t.target===n){var o=N.current;let e;"appear"===r&&o?e=b?.(n,t):"enter"===r&&o?e=H?.(n,t):"leave"===r&&o&&(e=A?.(n,t)),o&&!1!==e&&I()}}}),[F]=ia(M),$=e=>{switch(e){case"appear":return{[Qo]:t,start:p,active:h};case"enter":return{[Qo]:d,start:m,active:g};case"leave":return{[Qo]:u,start:f,active:v};default:return{}}},R=ft.useMemo(()=>$(S),[S]),[W,P]=fa(S,!r,e=>{var t;return e===Qo?!!(t=R[Qo])&&t(a()):(e in R&&w([R[e]?.(a(),null)||null,e]),"active"===e&&"none"!==S&&(F(a()),0<s)&&(clearTimeout(E.current),E.current=setTimeout(()=>{M({deadline:!0})},s)),e===Zo&&I(),!0)});var z=ma(P);N.current=z;let B=(0,ft.useRef)(null),T=(sa(()=>{if(!k.current||B.current!==n){L(n);var t=k.current;k.current=!0;let e;!t&&n&&l&&(e="appear"),t&&n&&o&&(e="enter"),(t&&!n&&i||!t&&c&&!n&&i)&&(e="leave");t=$(e);e&&(r||t[Qo])?(C(e),W()):C("none"),B.current=n}},[n]),(0,ft.useEffect)(()=>{("appear"===S&&!l||"enter"===S&&!o||"leave"===S&&!i)&&C("none")},[l,o,i]),(0,ft.useEffect)(()=>()=>{k.current=!1,clearTimeout(E.current)},[]),ft.useRef(!1)),O=((0,ft.useEffect)(()=>{e&&(T.current=!0),void 0!==e&&"none"===S&&((T.current||e)&&D?.(e),T.current=!0)},[e,S]),x[0]);return R[Qo]&&"start"===P&&(O={transition:"none",...O}),z=x[1],[y,P,O,e??n,!k.current&&"none"===S&&r&&l?"NONE":"start"!==P&&"active"!==P||z===P]})(n,o,p,e),b=m(),y=ft.useRef(g),C=(g&&(y.current=!0),ft.useMemo(()=>{var e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>"none"!==m()},enableMotion:{enumerable:!0,get:()=>()=>n}}),e},[]));ft.useImperativeHandle(t,()=>C,[]);r=ft.useRef(0),v&&(r.current+=1),e=ft.useMemo(()=>{if("NONE"===v)return null;let t;var r={...d,visible:o};if(i)if("none"===b)t=g?i({...r},u):!a&&y.current&&c?i({...r,className:c},u):l||!a&&!c?i({...r,style:{display:"none"}},u):null;else{let e;f===Qo?e="prepare":ma(f)?e="active":"start"===f&&(e="start");var n=la(s,b+"-"+e);t=i({...r,className:bt(la(s,b),{[n]:n&&e,[s]:"string"==typeof s}),style:h},u)}else t=null;return t},[r.current]);if(ha(i)&&Oe(e)){t=St(e);if(t!==u)return ft.cloneElement(e,{ref:Ne(t,u)})}return e})).displayName="CSSMotion",e})(i);let va="add",ba="keep",ya="remove",Ca="removed";function xa(e){let t;return{...t=e&&"object"==typeof e&&"key"in e?e:{key:e},key:String(t.key)}}function wa(e=[]){return e.map(xa)}function Sa(){return(Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let ka=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var Ea=function(s=ga){class e extends ft.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:r}){e=wa(e);return{keyEntities:((e=[],t=[])=>{let o=[],a=0,l=t.length,i=(e=wa(e),wa(t)),r=(e.forEach(t=>{let r=!1;for(let e=a;e<l;e+=1){var n=i[e];if(n.key===t.key){a<e&&(o=o.concat(i.slice(a,e).map(e=>({...e,status:va}))),a=e),o.push({...n,status:ba}),a+=1,r=!0;break}}r||o.push({...t,status:ya})}),a<l&&(o=o.concat(i.slice(a).map(e=>({...e,status:va})))),{});return o.forEach(({key:e})=>{r[e]=(r[e]||0)+1}),Object.keys(r).filter(e=>1<r[e]).forEach(r=>{(o=o.filter(({key:e,status:t})=>e!==r||t!==ya)).forEach(e=>{e.key===r&&(e.status=ba)})}),o})(r,e).filter(t=>{var e=r.find(({key:e})=>t.key===e);return!e||e.status!==Ca||"remove"!==t.status})}}removeKey=t=>{this.setState(e=>({keyEntities:e.keyEntities.map(e=>e.key!==t?e:{...e,status:Ca})}),()=>{var e=this.state.keyEntities;0===e.filter(({status:e})=>e!==Ca).length&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){var e=this.state.keyEntities;let{component:t,children:n,onVisibleChanged:o,onAllRemoved:r,...a}=this.props;var l=t||ft.Fragment;let i={};return ka.forEach(e=>{i[e]=a[e],delete a[e]}),delete a.keys,ft.createElement(l,a,e.map(({status:e,...t},r)=>{e="add"===e||"keep"===e;return ft.createElement(s,Sa({},i,{key:t.key,visible:e,eventProps:t,onVisibleChanged:e=>{o?.(e,{key:t.key}),e||this.removeKey(t.key)}}),ha(n)?e=>n({...e,index:r}):(e,t)=>n({...e,index:r},t))}))}}return e}(),Na=ga;let Ia=e=>null!=e,Se=e=>Ia(e)&&!1!==e&&""!==e,Ma=e=>"number"==typeof e&&!Number.isNaN(e),$a=e=>"string"==typeof e,Ze=e=>null!==e&&"object"==typeof e,Je=e=>"function"==typeof e,Ra=e=>Ia(e)&&Je(e.then),Pa=e=>Ze(e)&&"propertyName"in e&&$a(e.propertyName),za=e=>!!Ia(e)&&e===e.window,Ba=e=>!!Ia(e)&&(e instanceof Document||"HTMLDocument"===e.constructor.name||e.nodeType===window.Node.DOCUMENT_NODE),Ta=e=>!!Ia(e)&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement,Oa=(e,t)=>{let r={...e};return Object.keys(t).forEach(e=>{t[e]._default?r[e]||(r[e]={}):r[e]=Oa(r[e],t[e])}),r},Ha=(a={},...e)=>e.filter(e=>Boolean(e)).reduce((n,o)=>(Object.keys(o).forEach(e=>{var t=a[e],r=o[e];t?Ze(r)?n[e]=Ha(t,n[e],r):(t=t._default,t&&(n[e]=n[e]||{},n[e][t]=bt(n[e][t],r))):n[e]=bt(n[e],r)}),n),{}),Aa=(e,...t)=>ft.useMemo(()=>Ha.apply(void 0,[e].concat(t)),[e].concat(t)),Da=(...e)=>e.filter(e=>Boolean(e)).reduce((t,r={})=>(Object.keys(r).forEach(e=>{t[e]={...t[e],...r[e]}}),t),{}),La=(...e)=>ft.useMemo(()=>Da.apply(void 0,e),[].concat(e)),We=(e,t="root")=>ft.useMemo(()=>e?{[t]:e}:void 0,[e,t]),Fa=(e,t)=>Je(e)?e(t):e,je=(e,t,r,n)=>{e=e.map(e=>e?Fa(e,r):void 0),t=t.map(e=>e?Fa(e,r):void 0);let o=Aa.apply(void 0,[n].concat(Pe(e))),a=La.apply(void 0,Pe(t));return ft.useMemo(()=>n?[Oa(o,n),Oa(a,n)]:[o,a],[o,a,n])},Wa=(e,t,r)=>({background:e,[r+"-icon"]:{color:t}});var ja=Be("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:o,fontSize:a,fontSizeLG:l,lineHeight:i,motionEaseInOutCirc:s,borderRadius:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:f,lineWidth:h,lineType:g,colorSuccessBorder:v,colorWarningBorder:b,colorErrorBorder:y,colorInfoBorder:C}=e;return{[t]:{...F(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:c,borderWidth:(0,Qe.unit)(h),borderStyle:g,[`&${t}-success`]:{borderColor:v},[`&${t}-info`]:{borderColor:C},[`&${t}-warning`]:{borderColor:b},[`&${t}-error`]:{borderColor:y},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[t+"-section"]:{flex:1,minWidth:0},[t+"-icon"]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:i},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${r} `+s).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:m,[t+"-icon"]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[t+"-title"]:{display:"block",marginBottom:n,color:p,fontSize:l},[t+"-description"]:{display:"block",color:u}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}})(e),(e=>{var{componentCls:e,colorSuccess:t,colorSuccessBg:r,colorWarning:n,colorWarningBg:o,colorError:a,colorErrorBg:l,colorInfo:i,colorInfoBg:s}=e;return{[e]:{"&-success":Wa(r,t,e),"&-info":Wa(s,i,e),"&-warning":Wa(o,n,e),"&-error":{...Wa(l,a,e),[e+"-description > pre"]:{margin:0,padding:0}}}}})(e),(e=>{var{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:o,fontSizeIcon:a,colorIcon:l,colorIconHover:i}=e;return{[t]:{[t+"-actions"]:{marginInlineStart:o},[t+"-close-icon"]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,Qe.unit)(a),backgroundColor:"transparent",border:"none",cursor:"pointer",...un(e),[r+"-close"]:{color:l,transition:"color "+n,"&:hover":{color:i}}},"&-close-text":{color:l,transition:"color "+n,"&:hover":{color:i}}}}})(e)],e=>({borderRadius:e.borderRadiusLG,withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:e.paddingContentVerticalSM+"px 12px",withDescriptionPadding:e.paddingMD+`px ${e.paddingContentHorizontalLG}px`}));let _a=e=>{var{icon:e,type:t,className:r,style:n,successIcon:o,infoIcon:a,warningIcon:l,errorIcon:i}=e,o={success:o??ft.createElement(Fo,null),info:a??ft.createElement(Go,null),error:i??ft.createElement(jo,null),warning:l??ft.createElement(Xo,null)};return ft.createElement("span",{className:r,style:n},e??o[t])},Ka=e=>{var{isClosable:e,prefixCls:t,closeIcon:r,handleClose:n,ariaProps:o,className:a,style:l}=e,r=!0===r||void 0===r?ft.createElement(Ko,null):r;return e?ft.createElement("button",{type:"button",onClick:n,className:bt(t+"-close-icon",a),tabIndex:0,style:l,...o},r):null};var Va=ft.forwardRef((n,e)=>{let{description:o,prefixCls:t,message:r,title:a,banner:l,className:i,rootClassName:s,style:c,onMouseEnter:d,onMouseLeave:u,onClick:p,afterClose:m,showIcon:f,closable:h,closeText:g,closeIcon:v,action:b,id:y,styles:C,classNames:x,...w}=n,S=a??r,[k,E]=ft.useState(!1),N=ft.useRef(null),{getPrefixCls:H,direction:A,variant:D,closable:I,closeIcon:M,className:L,style:F,classNames:W,styles:j,successIcon:_,infoIcon:K,warningIcon:V,errorIcon:X}=(ft.useImperativeHandle(e,()=>({nativeElement:N.current})),Fe("alert")),$=H("alert",t);var[e,q]=ja($);let{onClose:G,afterClose:Y}=Ze(h)?h:{},U=e=>{E(!0),(G??n.onClose)?.(e)},R=ft.useMemo(()=>void 0!==n.type?n.type:l?"warning":"info",[n.type,l]);var P=n.variant??D??"outlined";let z=ft.useMemo(()=>!!Ze(h)||!!g||("boolean"==typeof h?h:!(!1===v||!Ia(v))||!!I),[g,v,h,I]),B=!(!l||void 0!==f)||f;var Q={...n,prefixCls:$,variant:P,type:R,showIcon:B,closable:z},Z=We(F),J=We(c);let[T,O]=je([W,x],[j,Z,C,J],{props:Q}),ee=bt($,$+"-"+R,$+"-"+P,{[$+"-with-description"]:Se(o),[$+"-no-icon"]:!B,[$+"-banner"]:!!l,[$+"-rtl"]:"rtl"===A},L,i,s,T.root,q,e),te=Jt(w,{aria:!0,data:!0}),re=ft.useMemo(()=>Ze(h)&&h.closeIcon?h.closeIcon:g||(void 0!==v?v:Ze(I)&&I.closeIcon?I.closeIcon:M),[v,h,I,g,M]),ne=ft.useMemo(()=>{var e=h??I;return Ze(e)?Jt(e,{data:!0,aria:!0}):{}},[h,I]);return ft.createElement(Na,{visible:!k,motionName:$+"-motion",motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:Y??m},({className:e,style:t},r)=>ft.createElement("div",{id:y,ref:Ne(N,r),"data-show":!k,className:bt(ee,e),style:{...O.root,...t},onMouseEnter:d,onMouseLeave:u,onClick:p,role:"alert",...te},B?ft.createElement(_a,{className:bt($+"-icon",T.icon),style:O.icon,description:o,icon:n.icon,prefixCls:$,type:R,successIcon:_,infoIcon:K,warningIcon:V,errorIcon:X}):null,ft.createElement("div",{className:bt($+"-section",T.section),style:O.section},Se(S)?ft.createElement("div",{className:bt($+"-title",T.title),style:O.title},S):null,Se(o)?ft.createElement("div",{className:bt($+"-description",T.description),style:O.description},o):null),Se(b)?ft.createElement("div",{className:bt($+"-actions",T.actions),style:O.actions},b):null,ft.createElement(Ka,{className:T.close,style:O.close,isClosable:z,prefixCls:$,closeIcon:re,handleClose:U,ariaProps:ne})))});var s=(()=>{function n(){var e,t,r;return $r(this,n),e=this,t=n,r=arguments,t=Or(t),(t=Ar(e,Hr()?Reflect.construct(t,r||[],Or(e).constructor):t.apply(e,r))).state={error:void 0,info:{}},t}return Tr(n,ft.PureComponent),Pr(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var{message:e,title:t,description:r,id:n,children:o}=this.props,{error:a,info:l}=this.state,t=t??e,e=l?.componentStack||null,l=Ia(t)?t:a?.toString(),t=Ia(r)?r:e;return a?ft.createElement(Va,{id:n,type:"error",title:l,description:ft.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},t)}):o}}])})(),c=Va,Xa=(c.ErrorBoundary=s,c);let qa=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Ga=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ya=(e,t)=>{var r;return(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(r=getComputedStyle(e,null),Ga(r.overflowY,t)||Ga(r.overflowX,t)||!!(t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(r=e))&&(t.clientHeight<r.scrollHeight||t.clientWidth<r.scrollWidth))},Ua=(e,t,r,n,o,a,l,i)=>a<e&&t<l||e<a&&l<t?0:a<=e&&i<=r||t<=l&&r<=i?a-e-n:t<l&&i<r||a<e&&r<i?l-t+o:0,Qa=e=>{var t=e.parentElement;return null==t?e.getRootNode().host||null:t},Za=(e,t)=>{var r,n,o,a;if("undefined"==typeof document)return[];let{scrollMode:y,block:C,inline:x,boundary:l,skipOverflowHiddenElements:i}=t,s="function"==typeof l?l:e=>e!==l;if(!qa(e))throw new TypeError("Invalid target");var w=document.scrollingElement||document.documentElement,S=[];let c=e;for(;qa(c)&&s(c);){if((c=Qa(c))===w){S.push(c);break}null!=c&&c===document.body&&Ya(c)&&!Ya(document.documentElement)||null!=c&&Ya(c,i)&&S.push(c)}let k=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,E=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:N,scrollY:I}=window,{height:M,width:$,top:R,right:P,bottom:z,left:B}=e.getBoundingClientRect(),{top:d,right:u,bottom:p,left:m}=(t=window.getComputedStyle(e),{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}),T="start"===C||"nearest"===C?R-d:"end"===C?z+p:R+M/2-d+p,O="center"===x?B+$/2-m+u:"end"===x?P+u:B-m;var H=[];for(let t=0;t<S.length;t++){let r=S[t],{height:n,width:o,top:a,right:l,bottom:i,left:s}=r.getBoundingClientRect();if("if-needed"===y&&0<=R&&0<=B&&z<=E&&P<=k&&(r===w&&!Ya(r)||R>=a&&z<=i&&B>=s&&P<=l))return H;let e=getComputedStyle(r),c=parseInt(e.borderLeftWidth,10),d=parseInt(e.borderTopWidth,10),u=parseInt(e.borderRightWidth,10),p=parseInt(e.borderBottomWidth,10),m=0,f=0,h="offsetWidth"in r?r.offsetWidth-r.clientWidth-c-u:0,g="offsetHeight"in r?r.offsetHeight-r.clientHeight-d-p:0,v=!("offsetWidth"in r)||0===r.offsetWidth?0:o/r.offsetWidth,b=!("offsetHeight"in r)||0===r.offsetHeight?0:n/r.offsetHeight;if(w===r)m="start"===C?T:"end"===C?T-E:"nearest"===C?Ua(I,I+E,E,d,p,I+T,I+T+M,M):T-E/2,f="start"===x?O:"center"===x?O-k/2:"end"===x?O-k:Ua(N,N+k,k,c,u,N+O,N+O+$,$),m=Math.max(0,m+I),f=Math.max(0,f+N);else{m="start"===C?T-a-d:"end"===C?T-i+p+g:"nearest"===C?Ua(a,i,n,d,p+g,T,T+M,M):T-(a+n/2)+g/2,f="start"===x?O-s-c:"center"===x?O-(s+o/2)+h/2:"end"===x?O-l+u+h:Ua(s,l,o,c,u+h,O,O+$,$);let{scrollLeft:e,scrollTop:t}=r;m=0==b?0:Math.max(0,Math.min(t+m/b,r.scrollHeight-n/b+g)),f=0==v?0:Math.max(0,Math.min(e+f/v,r.scrollWidth-o/v+h)),T+=t-m,O+=e-f}H.push({el:r,top:m,left:f})}return H},Ja=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};function el(t,e){if(t.isConnected&&(()=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})()){r=window.getComputedStyle(t);var r,n={top:parseFloat(r.scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof e&&"function"==typeof e.behavior)return e.behavior(Za(t,e));var o,a,l,i="boolean"==typeof e||null==e?void 0:e.behavior;for({el:o,top:a,left:l}of Za(t,Ja(e))){var s=a-n.top+n.bottom,c=l-n.left+n.right;o.scroll({top:s,left:c,behavior:i})}}}var tl=e=>{if("undefined"==typeof window)return 0;let t=0;return za(e)?t=e.pageYOffset:Ba(e)?t=e.documentElement.scrollTop:(Ta(e)||e)&&(t=e.scrollTop),t=!e||za(e)||Ma(t)?t:(e.ownerDocument??e).documentElement?.scrollTop};var rl=(a,e={})=>{let{getContainer:t=()=>window,callback:l,duration:i=450}=e,r=t(),s=tl(r),c=e=>{za(r)?r.scrollTo(window.pageXOffset,e):Ba(r)?r.documentElement.scrollTop=e:r.scrollTop=e};if(i<=0)return c(a),Je(l)&&l(),()=>{};let d=Date.now(),u,p=()=>{var e,t,r,n=Date.now()-d,o=(e=n>i?i:n,t=s,r=a,o=i,r-=t,(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t);c(o),n<i?u=$e(p):Je(l)&&l()};return u=$e(p),()=>{$e.cancel(u)}},nl=e=>e+"-css-var",ol=ft.createContext(void 0),al=e=>{let{href:t,title:r,prefixCls:n,children:o,className:a,target:l,replace:i,targetOffset:s}=e;let{registerLink:c,unregisterLink:d,scrollTo:u,onClick:p,activeLink:m,direction:f,classNames:h,styles:g}=ft.useContext(ol)||{};ft.useEffect(()=>(c?.(t,s),()=>{d?.(t)}),[t,s]);var e=ft.useContext(Ue).getPrefixCls,e=e("anchor",n),v=m===t,b=bt(e+"-link",a,h?.item,{[e+"-link-active"]:v}),e=bt(e+"-link-title",h?.itemTitle,{[e+"-link-title-active"]:v});return ft.createElement("div",{className:b,style:g?.item},ft.createElement("a",{className:e,style:g?.itemTitle,href:t,title:"string"==typeof r?r:void 0,target:l,onClick:e=>{p?.(e,{title:r,href:t}),u?.(t,s),e.defaultPrevented||(t.startsWith("http://")||t.startsWith("https://")?i&&(e.preventDefault(),window.location.replace(t)):(e.preventDefault(),e=i?"replaceState":"pushState",window.history[e](null,"",t)))}},r),"horizontal"!==f?o:null)};var ll=Be("Anchor",e=>{var{fontSize:t,fontSizeLG:r,paddingXXS:n,calc:o}=e,e=ze(e,{holderOffsetBlock:n,anchorPaddingBlockSecondary:o(n).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(r).div(2).equal()});return[(e=>{var{componentCls:t,holderOffsetBlock:r,motionDurationSlow:n,lineWidthBold:o,colorPrimary:a,lineType:l,colorSplit:i,calc:s}=e;return{[t+"-wrapper"]:{marginBlockStart:s(r).mul(-1).equal(),paddingBlockStart:r,[t]:{...F(e),position:"relative",paddingInlineStart:o,[t+"-link"]:{paddingBlock:e.linkPaddingBlock,paddingInline:(0,Qe.unit)(e.linkPaddingInlineStart)+" 0","&-title":{...an,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:"all "+e.motionDurationSlow,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[t+"-link"]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:(0,Qe.unit)(o)+` ${l} `+i,content:'" "'},[t+"-ink"]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${n} ease-in-out`,width:o,backgroundColor:a,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[t+`-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}})(e),(e=>{let{componentCls:t,motionDurationSlow:r,lineWidthBold:n,colorPrimary:o}=e;return{[t+"-wrapper-horizontal"]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[t+"-link:first-of-type"]:{paddingInline:0},[t+"-ink"]:{position:"absolute",bottom:0,transition:["left","width"].map(e=>`${e} ${r} ease-in-out`).join(", "),height:n,backgroundColor:o}}}}})(e)]},e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}));function il(){return window}function sl(e,t){var r;return e.getClientRects().length?(r=e.getBoundingClientRect()).width||r.height?t===window?r.top-e.ownerDocument.documentElement.clientTop:r.top-t.getBoundingClientRect().top:r.top:0}let cl=/#([^\t\r\n\f\v]+)$/;var d=e=>{let{rootClassName:t,prefixCls:H,className:A,style:D,offsetTop:o,affix:r=!0,showInkInFixed:L=!1,children:F,items:W,direction:n="vertical",bounds:a,targetOffset:l,onClick:i,onChange:j,getContainer:_,getCurrentAnchor:s,replace:K,classNames:V,styles:X}=e,[c,d]=ft.useState([]),[u,q]=ft.useState(null),p=ft.useRef(u),m=ft.useRef(u),f=ft.useRef(null),h=ft.useRef(null),g=ft.useRef(!1),v=ft.useRef(null),b=ft.useRef({});var{direction:G,getPrefixCls:y,className:Y,style:C,classNames:x,styles:w}=Fe("anchor"),S=ft.useContext(Ue).getTargetContainer;let k=y("anchor",H);var y=nl(k),[E,N]=ll(k,y);let I=_??S??il;S=JSON.stringify(c);let M=ht((e,t=!1)=>{m.current=e;var r=Je(s)?s(e):e,n=p.current===r;n&&!t||(n||(q(r),p.current=r),j?.(e))}),$=ft.useCallback(()=>{var e;g.current||(e=((e,n,o=5,a)=>{let l=[],i=I();return e.forEach(e=>{var t,r=cl.exec(e?.toString());r&&(r=document.getElementById(r[1]))&&(t=a?.[e]??n,(r=sl(r,i))<=t+o)&&l.push({link:e,top:r})}),l.length?l.reduce((e,t)=>t.top>e.top?t:e).link:""})(c,Ma(l)?l:o||0,a,b.current),M(e))},[c,l,o,a]),R=ft.useCallback((e,t)=>{var r=m.current,n=(M(e,r!==e),cl.exec(e));if(n){n=document.getElementById(n[1]);if(n){if(g.current){if(r===e)return;v.current?.()}r=I(),e=tl(r)+sl(n,r);e-=t??l??o??0,g.current=!0,v.current=rl(e,{getContainer:I,callback(){g.current=!1}})}}},[l,o]);var P={...e,direction:n},C=We(C),z=We(D);let[B,T]=je([x,V],[w,C,X,z],{props:P});x=bt(E,N,y,t,k+"-wrapper",{[k+"-wrapper-horizontal"]:"horizontal"===n,[k+"-rtl"]:"rtl"===G},A,Y,B.root),w=bt(k,{[k+"-fixed"]:!r&&!L}),C=bt(k+"-ink",B.indicator,{[k+"-ink-visible"]:u}),z={maxHeight:o?`calc(100vh - ${o}px)`:"100vh",...T.root};let O=e=>Array.isArray(e)?e.map(e=>ft.createElement(al,{replace:K,...e,key:e.key},"vertical"===n&&O(e.children))):null;P=ft.createElement("div",{ref:f,className:x,style:z},ft.createElement("div",{className:w},ft.createElement("span",{className:C,ref:h,style:T.indicator}),"items"in e?O(W):F)),ft.useEffect(()=>{let e=I();return $(),e?.addEventListener("scroll",$),()=>{e?.removeEventListener("scroll",$)}},[S]),ft.useEffect(()=>{Je(s)&&M(m.current||"")},[s]),ft.useEffect(()=>{var e,t,r;(r=f.current?.querySelector(`.${k}-link-title-active`))&&h.current&&(e=h.current.style,t="horizontal"===n,e.top=t?"":r.offsetTop+r.clientHeight/2+"px",e.height=t?"":r.clientHeight+"px",e.left=t?r.offsetLeft+"px":"",e.width=t?r.clientWidth+"px":"",t)&&el(r,{scrollMode:"if-needed",block:"nearest"})},[n,s,S,u]),E=ft.useMemo(()=>({registerLink:(t,e)=>{d(e=>e.includes(t)?e:[].concat(Pe(e),[t])),void 0!==e&&(b.current[t]=e)},unregisterLink:t=>{d(e=>e.filter(e=>e!==t)),delete b.current[t]},scrollTo:R,activeLink:u,onClick:i,direction:n,classNames:B,styles:T}),[u,i,R,n,T,B]),N=Ze(r)?r:void 0;return ft.createElement(ol.Provider,{value:E},r?ft.createElement(bo,{offsetTop:o,target:I,...N},P):P)},dl=(d.Link=al,d);function ul(){}let{}=Te.Ay;let pl=ft.createContext({}),ml=()=>{var e=()=>{};return e.deprecated=ul,e},fl=ml;function hl(e,d,u=0){let[p,t]=(()=>{let[e,t]=ft.useState({});return[e,ft.useCallback((n,e)=>{if(e){let r={width:e.offsetWidth,height:e.offsetHeight};t(e=>{var t=e[n];return t&&t.width===r.width&&t.height===r.height?e:{...e,[n]:r}})}else t(e=>{var t;return n in e?(delete(t={...e})[n],t):e})},[])]})();var[r,n,o,a]=ft.useMemo(()=>{let o=0,a=0,l=d?.threshold??0,i=new Map,s,c;return e.slice().reverse().forEach((e,t)=>{var e=String(e.key),r=p[e]?.height??0,n=d&&0<t?o+(d.offset??0)-r:o;i.set(e,n),0===t&&(s=r,c=p[e]?.width??0),(!d||t<l)&&(a=Math.max(a,n+r)),d?o=n+r:o+=r+u}),[i,a,s,c]},[e,u,p,d]);return[r,t,n,o,a]}let gl=8,vl=3;var bl=e=>{var t={offset:gl,threshold:vl};return e&&"object"==typeof e&&(t.offset=e.offset??gl,t.threshold=e.threshold??vl),[!!e,t]};var yl=({className:e,style:t,percent:r})=>ft.createElement("progress",{className:e,max:"100",value:r,style:t});function Cl(){return(Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xl=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:o,classNames:a,styles:l,components:i,title:s,description:c,icon:d,actions:u,role:p,closable:m,offset:f,notificationIndex:h,stackInThreshold:g,props:v,duration:b=4.5,showProgress:y,hovering:C,pauseOnHover:x=!0,onClick:H,onMouseEnter:A,onMouseLeave:D,onClose:L}=e;var[e,w]=ft.useState(0),S=r+"-notice";let[k,E,F]=(e=>{let t=ft.useMemo(()=>!1===e?{closeIcon:null,disabled:!0}:"object"==typeof e&&null!==e?e:{},[e]),r=ft.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]);var n=ft.useMemo(()=>Jt(r,!0),[r]);return[!!e,r,n]})(m),N=ht(()=>{E.onClose?.(),L?.()}),[I,M]=ft.useState(!1),[$,R]=((e,t,r)=>{let n=1e3*Math.max("number"==typeof e?e:0,0),o=ht(t),a=ht(r),[l,i]=ft.useState(0<n),s=ft.useRef(0),c=ft.useRef(null);function d(){var e=Date.now(),t=c.current;null!==t&&(s.current+=e-t),c.current=e}return e=ft.useCallback(()=>{d(),i(!1)},[]),t=ft.useCallback(()=>{0<n?(c.current=Date.now(),i(!0)):a(0)},[n]),ft.useEffect(()=>{s.current=0,i(0<n)},[n]),ft.useEffect(()=>{if(l){let t=null;return function e(){d(),s.current>=n?(a(1),o()):(a(Math.min(s.current/n,1)),t=$e(e))}(),()=>{$e.cancel(t)}}},[n,l]),[t,e]})(b,N,w);w=100-Math.min(Math.max(100*e,0),100),e=i?.progress||yl;ft.useEffect(()=>{x&&(C?R():I||$())},[C,I,R,$,x]);var P=ft.useRef(f),z=(void 0!==f&&(P.current=f),ft.useRef(h)),P=(void 0!==h&&(z.current=h),f??P.current),z=h??z.current??0,B=null!=s?ft.createElement("div",{className:bt(S+"-title",a?.title),style:l?.title},s):null,T=null!=c?ft.createElement("div",{className:bt(S+"-description",a?.description),style:l?.description},c):null;let O;O=null!==B&&null!==T?ft.createElement("div",{className:bt(S+"-section",a?.section),style:l?.section},B,T):B||T,null!=d&&(O=ft.createElement("div",{className:bt(S+"-wrapper",a?.wrapper),style:l?.wrapper},ft.createElement("div",{className:bt(S+"-icon",a?.icon),style:l?.icon},d),O));B=u?ft.createElement("div",{className:bt(S+"-actions",a?.actions),style:l?.actions},u):null,T={"--notification-index":z,...l?.root,...o},void 0!==P&&(T["--notification-y"]=P+"px"),P=p??v?.role??"alert";return ft.createElement("div",Cl({},v,{ref:t,role:P,"data-notification-index":z,className:bt(S,n,a?.root,{[S+"-closable"]:k,[S+"-stack-in-threshold"]:g}),style:T,onClick:H,onMouseEnter:function(e){M(!0),x&&R(),A?.(e)},onMouseLeave:function(e){M(!1),x&&!C&&$(),D?.(e)}}),O,B,k&&ft.createElement("button",Cl({type:"button",className:bt(S+"-close",a?.close),"aria-label":"Close"},F,{style:l?.close,onClick:function(e){e.preventDefault(),e.stopPropagation(),N()}}),E.closeIcon),y&&"number"==typeof b&&0<b&&ft.createElement(e,{className:bt(S+"-progress",a?.progress),percent:w,style:l?.progress}))});let wl=ft.createContext({});var Sl=({children:e,classNames:t})=>{var r=ft.useMemo(()=>({classNames:t}),[t]);return ft.createElement(wl.Provider,{value:r},e)};function kl(){return(kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var El=ft.forwardRef((e,t)=>{let{listPrefixCls:r,height:n,topNoticeHeight:o=0,topNoticeWidth:a=0,className:l,style:i,...s}=e;var e=r+"-content",c=ft.useRef(n),d=n<c.current?"decrease":"increase",c=(c.current=n,{...i,height:n,"--top-notificiation-height":o+"px","--top-notificiation-width":a+"px"});return ft.createElement("div",kl({},s,{className:bt(e,e+"-"+d,l),style:c,ref:t}))});function Nl(){return(Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let Il=["wrapper","root","icon","section","title","description","actions","close","progress"];let Ml=e=>{let{config:t,components:r,contextClassNames:n,classNames:o,styles:a,className:l,style:i,nodeRef:s,listHovering:c,stackEnabled:d,pauseOnHover:u,setNodeSize:p,onNoticeClose:m,...f}=e,{key:h,placement:g,...v}=t,b=String(h);var y,C,e=ft.useCallback(e=>{p(b,e)},[p,b]),e=wt(s,e);return ft.createElement(xl,Nl({},v,f,{ref:e,className:bt(n?.notice,t.className,l),style:{...i,...t.style},classNames:(C=[o,t.classNames],Il.reduce((e,t)=>(e[t]=bt(...C.map(e=>e?.[t])),e),{})),styles:(y=[a,t.styles],Il.reduce((e,t)=>(e[t]=Object.assign({},...y.map(e=>e?.[t])),e),{})),components:{...r,...t.components},hovering:d&&c,pauseOnHover:t.pauseOnHover??u,onClose:()=>{t.onClose?.(),m?.(h)}}))};var $l=e=>{let{configList:t=[],prefixCls:s="rc-notification",pauseOnHover:c,classNames:d,styles:u,components:p,stack:r,motion:n,placement:o,className:a,style:l,onNoticeClose:m,onAllRemoved:i}=e,f=ft.useContext(wl).classNames,h=ft.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]);e="function"==typeof n?n(o):n;let[g,{offset:v,threshold:b}]=bl(r),[y,C]=ft.useState(!1),x=g&&(y||h.length<=b);var w=ft.useMemo(()=>{if(g&&!x)return{offset:v,threshold:b}},[x,v,g,b]);let[S,k]=ft.useState(0),E=ft.useRef(null),[N,I,M,$,R]=hl(t,w,S);w=!!t.length,ft.useEffect(()=>{var e=E.current;if(e){var{gap:e,rowGap:r}=window.getComputedStyle(e);let t=parseFloat(r||e)||0;k(e=>e===t?e:t)}},[w]),w=s+"-list";return ft.createElement("div",{className:bt(s,w,s+"-"+o,f?.list,a,d?.list,{[s+"-stack"]:g,[s+"-stack-expanded"]:x,[w+"-hovered"]:y}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...u?.list,...l}},ft.createElement(El,{listPrefixCls:w,height:M,topNoticeHeight:$,topNoticeWidth:R,className:d?.listContent,style:u?.listContent,ref:E},ft.createElement(Ea,Nl({component:!1,keys:h,motionAppear:!0},e,{onAllRemoved:()=>{o&&i?.(o)}}),({config:e,className:t,style:r},n)=>{var o=e.key,a=String(o),l=((e,t)=>{let r=String(t);if(-1!==(t=e.findIndex(e=>e.key===r)))return e.length-t-1})(h,o),i=g&&void 0!==l&&l<b;return ft.createElement(Ml,{key:o,config:e,components:p,contextClassNames:f,classNames:d,styles:u,className:t,style:r,nodeRef:n,prefixCls:s,offset:N.get(a),notificationIndex:l,stackInThreshold:i,listHovering:y,stackEnabled:g,pauseOnHover:c,setNodeSize:I,onNoticeClose:m})})))},Rl=ft.forwardRef((e,t)=>{let{prefixCls:r="rc-notification",container:n,motion:o,maxCount:a,pauseOnHover:l,classNames:i,styles:s,components:c,className:d,style:u,onAllRemoved:p,stack:m,renderNotifications:f}=e,[h,g]=ft.useState([]),[v,b]=ft.useState({}),y=ft.useRef(!1),C=(ft.useImperativeHandle(t,()=>({open:o=>{g(e=>{let t=[...e];var r=t.findIndex(e=>e.key===o.key),n={...o};return 0<=r?(n.times=(e[r]?.times??0)+1,t[r]=n):(n.times=0,t.push(n)),t=a&&0<a&&t.length>a?t.slice(-a):t})},close:t=>{g(e=>e.filter(e=>e.key!==t))},destroy:()=>{g([])}})),ft.useEffect(()=>{let r={};h.forEach(e=>{var t=e.placement??"topRight";r[t]=r[t]||[],r[t].push(e)}),Object.keys(v).forEach(e=>{r[e]=r[e]||[]}),b(r)},[h]),ht(t=>{b(e=>{e={...e};return(e[t]||[]).length||delete e[t],e})}));return ft.useEffect(()=>{0<Object.keys(v).length?y.current=!0:y.current&&(p?.(),y.current=!1)},[v,p]),n?(e=Object.keys(v),(0,yt().createPortal)(ft.createElement(ft.Fragment,null,e.map(e=>{var t=ft.createElement($l,{key:e,configList:v[e],placement:e,prefixCls:r,pauseOnHover:l,classNames:i,styles:s,components:c,className:d?.(e),style:u?.(e),motion:o,stack:m,onNoticeClose:t=>{g(e=>e.filter(e=>e.key!==t))},onAllRemoved:C});return f?ft.cloneElement(f(t,{prefixCls:r,key:e}),{key:e}):t})),n)):null});let Pl=()=>document.body,zl=0;function Bl(e={}){let{getContainer:t=Pl,motion:r,prefixCls:n,placement:o,closable:a,duration:l,showProgress:i,pauseOnHover:s,classNames:c,styles:d,components:u,maxCount:p,className:m,style:f,onAllRemoved:h,stack:g,renderNotifications:v}=e,b={placement:o,closable:a,duration:l,showProgress:i},[y,C]=ft.useState(),x=ft.useRef(null),[w,S]=ft.useState([]);e=ft.createElement(Rl,{container:y,ref:x,prefixCls:n,motion:r,maxCount:p,pauseOnHover:s,classNames:c,styles:d,components:u,className:m,style:f,onAllRemoved:h,stack:g,renderNotifications:v});let k=ht(e=>{let t=(e=>{let n={};return e.forEach(r=>{r&&Object.keys(r).forEach(e=>{var t=r[e];void 0!==t&&(n[e]=t)})}),n})([b,e]);null==t.key&&(t.key="rc-notification-"+zl,zl+=1),S(e=>[...e,{type:"open",config:t}])});var E=ft.useMemo(()=>({open:k,close:t=>{S(e=>[...e,{type:"close",key:t}])},destroy:()=>{S(e=>[...e,{type:"destroy"}])}}),[]);return ft.useEffect(()=>{C(t())}),ft.useEffect(()=>{x.current&&w.length&&(w.forEach(e=>{switch(e.type){case"open":x.current?.open(e.config);break;case"close":x.current?.close(e.key);break;case"destroy":x.current?.destroy()}}),S(e=>{var t=e.filter(e=>!w.includes(e));return t.length===e.length?e:t}))},[w]),[E,e]}var Tl=(t,r)=>ft.useMemo(()=>{var e=t??r;return!!e&&{...Ze(r)?r:{},...Ze(e)?e:{}}},[t,r]);function Ol(e,t){return{...Ia(e)&&{"--notification-top":(0,Qe.unit)(e)},...Ia(t)&&{"--notification-bottom":(0,Qe.unit)(t)}}}function Hl(){return(Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Al=ft.forwardRef((e,t)=>ft.createElement(u,Hl({},e,{ref:t,icon:X().A})));let Dl=e=>{var{motionDurationMid:e,motionEaseInOut:t}=e;let r=e+" "+t;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(e=>e+" "+r).join(", ")}},Ll=(e,t)=>{var{componentCls:r,antCls:n,colorSuccess:o,colorInfo:a,colorWarning:l,colorError:i,colorTextHeading:s,colorText:c,boxShadow:d,borderRadiusLG:u,fontSize:p,lineHeight:m,notificationBg:f,notificationPadding:h,notificationMarginEdge:g,margin:v,calc:b}=e,r=r+"-notice",[n,y]=Q(n,"notification");return{[r]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${(0,Qe.unit)(b(g).mul(2).equal())})`,padding:h,pointerEvents:"auto",[n("icon-font-size")]:t.iconFontSize,[n("title-font-size")]:t.titleFontSize,[n("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:f,borderRadius:u,boxShadow:d,fontSize:p,lineHeight:m,wordWrap:"break-word",overflow:"visible",...Dl(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:b(v).mul(-1).equal(),height:v,content:'""'},...t.typeStyle&&{"&-success":{background:y("color-success-bg",f)},"&-error":{background:y("color-error-bg",f)},"&-info":{background:y("color-info-bg",f)},"&-warning":{background:y("color-warning-bg",f)}}},[r+"-wrapper"]:{display:"flex",...t.contentStyle},[r+"-title"]:{color:s,fontSize:y("title-font-size"),lineHeight:y("title-line-height")},[r+"-icon"]:{flex:"none",fontSize:y("icon-font-size"),lineHeight:1,[`&${r}-icon-success`]:{color:o},[`&${r}-icon-info, &${r}-icon-loading`]:{color:a},[`&${r}-icon-warning`]:{color:l},[`&${r}-icon-error`]:{color:i}}}},Fl=e=>{let{componentCls:t,progressBg:r,notificationProgressHeight:n,fontSize:o,borderRadiusLG:a,width:l,notificationIconSize:i,colorText:s,motionDurationMid:c,fontSizeLG:d,lineHeightLG:u,marginSM:p,marginXS:m,paddingLG:f,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:v,colorIcon:b,borderRadiusSM:y,colorIconHover:C,colorBgTextHover:x,colorBgTextActive:w}=e;var S=t+"-notice";return{...Ll(e,{width:l,iconFontSize:i,titleFontSize:d,titleLineHeight:u,contentStyle:{alignItems:"flex-start",gap:p},typeStyle:!0}),[S+"-section"]:{display:"flex",flexDirection:"column",flex:"auto",gap:m,minWidth:0},[S+"-description"]:{color:s,fontSize:o},[S+"-closable"]:{[S+`-title, ${S}-description`]:{paddingInlineEnd:f},[S+`-title + ${S}-description`]:{paddingInlineEnd:0}},[S+"-close"]:{position:"absolute",top:h,insetInlineEnd:g,display:"flex",alignItems:"center",justifyContent:"center",width:v,height:v,color:b,background:"none",border:"none",borderRadius:y,outline:"none",transition:["color","background-color"].map(e=>e+" "+c).join(", "),"&:hover":{color:C,backgroundColor:x},"&:active":{backgroundColor:w},...un(e)},[S+"-progress"]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,Qe.unit)(a)} * 2)`,blockSize:n,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:r},"&::-webkit-progress-value":{borderRadius:a,background:r}},[S+"-actions"]:{float:"right",marginTop:p}}};var Wl=e=>{var t=e.componentCls;return{[t]:Fl(e)}};let jl=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_l="--notification-margin-edge",Kl=(e,t)=>({blockEnd:"top"===e?"bottom":"top",inlineEnd:"left"===t?"right":"left"}),Vl=e=>`translate3d(${e?.x??"0"}, ${e?.y??"0"}, 0) scale(var(--notification-scale, 1))`,Xl=(e,t)=>{var r=e.startsWith("bottom")?"bottom":"top",n=e.endsWith("Right")?"right":"left",{blockEnd:o,inlineEnd:a}=Kl(r,n),l="top"===e||"bottom"===e,t="top"===e||e.endsWith("Left")?"-"+t:t;return{placement:e,vertical:r,blockEnd:o,horizontal:n,inlineEnd:a,motionOffset:l?{x:"-50%",y:t}:{x:t},baseMotionOffset:l?{x:"-50%"}:void 0,isCenterPlacement:l}},ql=e=>"bottom"===e?"column-reverse":"column",Gl=e=>{var t=`var(${_l}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},Yl=e=>"bottom"===e?"center top":"center bottom",Ul=e=>(0,Qe.unit)(e.calc(e.marginXXL).mul(-1).equal()),Ql=e=>{e=Ul(e);return`inset(${e} ${e} ${e} ${e})`},Zl=(e,t)=>{e=Ul(e);return"bottom"===t?`inset(${e} ${e} 50% ${e})`:`inset(50% ${e} ${e} ${e})`},Jl=(e,t)=>{var r=e.componentCls,{placement:n,vertical:o,blockEnd:a,horizontal:l,inlineEnd:i,isCenterPlacement:s}=t,c=r+"-notice",d=c+r+"-fade",u=Vl(t.motionOffset),t=Vl(t.baseMotionOffset),p=Yl(o);return{[`&${r}-`+n]:{[o]:Gl(o),[a]:"auto",display:"flex",flexDirection:ql(o),...s?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[l]:0,[i]:"auto"},[c]:{[o]:"var(--notification-y, 0)",...s?{left:"50%",transform:t}:{[l]:"var(--notification-x, 0)"},transformOrigin:p},[d+`-appear-prepare, ${d}-enter-prepare`]:{opacity:0,transform:u,transition:"none"},[d+`-appear-start, ${d}-enter-start`]:{opacity:0,transform:u},[d+`-appear-active, ${d}-enter-active`]:{opacity:1,transform:t},[d+"-leave-start"]:{opacity:1,transform:t},[d+"-leave-active"]:{opacity:0,transform:u},[`&${r}-stack:not(${r}-stack-expanded)`]:{[c]:{clipPath:Zl(e,o)},[c+"[data-notification-index='0']"]:{clipPath:Ql(e)}}}}},ei=(r,e=jl)=>{var t=r.notificationMotionOffset;let n=(0,Qe.unit)(t);return{...e.reduce((e,t)=>({...e,...Jl(r,Xl(t,n))}),{})}};var ti=e=>{var t=e.componentCls;return{[t]:ei(e)}};let ri=3;Wn=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0});let ni=e=>{var t=e.paddingMD;return ze(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:(0,Qe.unit)(e.paddingMD)+" "+(0,Qe.unit)(e.paddingContentHorizontalLG),notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},oi=e=>`inset(${e} ${e} ${e} ${e})`,ai=e=>{var{componentCls:t,motionDurationMid:r,motionDurationSlow:n,motionEaseInOut:o}=e,a=t+"-list"+"-content";return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${n} * 2) ${o} `+r}},[t+"-fade"]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},li=(e,t)=>{var{componentCls:r,notificationMarginEdge:n}=e,o="--notification-margin-edge",a=r+"-notice",l=r+"-list",i=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(n).mul(2)).equal():"100%",t=a+`:nth-last-child(n + ${(t.stackVisibleCount??ri)+1})`,s=(0,Qe.unit)(e.calc(e.marginXXL).mul(-1).equal()),s=oi(s);return{[r]:{...F(e),"--notification-margin-edge":(0,Qe.unit)(n),position:"fixed",zIndex:e.zIndexPopup,width:i,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[r+"-hook-holder"]:{position:"relative"},["&"+l]:{maxHeight:"100vh",padding:`var(${o})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...ai(e),[`&${r}-stack`]:{[a]:{clipPath:s},[`&:not(${r}-stack-expanded)`]:{[a]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[a+`:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[t]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[a+"-actions"]:{float:"left"}}}}},ii=uo(["Notification","PurePanel"],e=>(e=>{var{componentCls:t,width:r}=e,t=t+"-notice",n=t+"-actions",e=Fl(e);return{[t+"-pure-panel"]:{width:r,maxWidth:"100%",...e,[t]:{...e[t],position:"relative",width:"100%",maxWidth:"100%"},[n]:{...e[n],float:"none",textAlign:"end"}}}})(ni(e)),Wn),si=(e,t)=>{var r=t.itemStyle??Wl;return[li(e,t),r(e),ti(e)]};var ci=Be("Notification",e=>{e=ni(e);return si(e,{listWidthKey:"width"})},Wn);let di=e=>{var t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),r=e.paddingSM;return ze(ni(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:r})};e=e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:(e.controlHeightLG-e.fontSize*e.lineHeight)/2+`px ${e.paddingSM}px`});let ui=e=>{var{fontSize:t,fontSizeLG:r,lineHeight:n}=e;return Ll(e,{width:"max-content",iconFontSize:r,titleFontSize:t,titleLineHeight:n,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},pi=uo(["Message","PurePanel"],e=>{return e=di(e),t=e.componentCls,t+="-notice",e=ui(e),{[t+"-pure-panel"]:{width:"max-content",maxWidth:"100%",...e,[t]:{...e[t],position:"relative",width:"max-content",maxWidth:"100%"}}};var t},e),mi=e=>({[e.componentCls]:ui(e)});var fi=Be("Message",e=>{e=di(e);return[si(e,{stackVisibleCount:1,itemStyle:mi}),(e=>{var t=e.componentCls,r=t+"-notice",n=t+"-list-content";let{"&::after":o,...a}=ui(e)[r];r={...a,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} `+e.motionEaseInOut,`transform ${e.motionDurationFast} `+e.motionEaseInOut,`width ${e.motionDurationSlow} `+e.motionEaseInOut].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[n]:{isolation:"isolate","&::before":{...r,top:`calc(var(--top-notificiation-height) - ${(0,Qe.unit)(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${(0,Qe.unit)(e.margin)})`},"&::after":{...r,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${(0,Qe.unit)(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[n]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}})(e)]},e);let hi={info:ft.createElement(Go,null),success:ft.createElement(Fo,null),error:ft.createElement(jo,null),warning:ft.createElement(Xo,null),loading:ft.createElement(Al,null)},gi=(e,t)=>t||e&&hi[e]||null;Dn=e=>{let{prefixCls:t,className:r,style:n,type:o,icon:a,content:l,classNames:i,styles:s,...c}=e;var{getPrefixCls:d,className:u,style:p,classNames:m,styles:f}=Fe("message"),d=t||d("message"),h=d+"-notice",g=nl(d),[v,b]=fi(d,g),[m,f]=je([m,i],[f,s],{props:e}),e=gi(o,a),y=o?h+"-icon-"+o:void 0,y={wrapper:bt(o&&d+"-"+o,m.wrapper),icon:bt(y,m.icon),title:m.title},C={wrapper:f.wrapper,icon:f.icon,title:f.title};return ft.createElement("div",{className:bt(h+"-pure-panel",v,r,b,g,m.root),style:f.root},ft.createElement(pi,{prefixCls:d}),ft.createElement(xl,{...c,prefixCls:d,className:u,style:{...p,...n},duration:null,icon:e,title:l,classNames:y,styles:C}))};function vi(t){let r,n=new Promise(e=>{r=t(()=>{e(!0)})});var e=()=>{r?.()};return e.then=(e,t)=>n.then(e,t),e.promise=n,e}let bi=({children:e,prefixCls:t})=>{var r=nl(t),[t,n]=fi(t,r);return ft.createElement(Sl,{classNames:{list:bt(t,n,r)}},e)},yi=(e,{prefixCls:t,key:r})=>ft.createElement(bi,{prefixCls:t,key:r},e),Ci=ft.forwardRef((e,t)=>{let{top:r,prefixCls:n,getContainer:o,maxCount:a,duration:l=3,rtl:i,classNames:s,styles:c,transitionName:d,pauseOnHover:u=!0,stack:p,onAllRemoved:m}=e,{getPrefixCls:f,direction:h,getPopupContainer:g}=Fe("message"),v=ft.useContext(Ue).message,b=n||f("message");var y=We(v?.style),[y,e]=je([v?.classNames,s],[v?.styles,y,c],{props:e}),C=Tl(p,!1);let[x,w]=Bl({prefixCls:b,style:()=>Ol(r??8),className:()=>bt({[b+"-rtl"]:i??"rtl"===h}),motion:()=>{return e=b,{motionName:d??e+"-fade"};var e},closable:!1,duration:l,getContainer:()=>o?.()||g?.()||document.body,maxCount:a,onAllRemoved:m,classNames:y,styles:e,renderNotifications:yi,pauseOnHover:u,stack:C});return ft.useImperativeHandle(t,()=>({...x,prefixCls:b,message:v})),w}),xi=0;function wi(S){let k=ft.useRef(null);fl("Message");return[ft.useMemo(()=>{let w=e=>{k.current?.close(e)},i=e=>{if(!k.current)return(v=()=>{}).then=()=>{},v;let{open:t,prefixCls:r,message:n}=k.current,o=n?.className||{},a=r+"-notice",{content:l,icon:i,type:s,key:c,className:d,style:u,onClose:p,classNames:m={},styles:f={},...h}=e,g=c;Ia(g)||(xi+=1,g="antd-message-"+xi);var v={...S,...e};let b=Fa(m,{props:v}),y=Fa(f,{props:v}),C=gi(s,i),x=s?a+"-icon-"+s:void 0;return vi(e=>(t({...h,key:g,icon:C,title:l,classNames:{...b,wrapper:bt(s&&r+"-"+s,b?.wrapper),icon:bt(x,b?.icon)},styles:y,placement:"top",className:bt({[a+"-"+s]:s},d,o),style:u,onClose:()=>{p?.(),e()}}),()=>{w(g)}))};let e={open:i,destroy:e=>{void 0!==e?w(e):k.current?.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{e[l]=(e,t,r)=>{let n;n=Ze(e)&&"content"in e?e:{content:e};let o,a;e={onClose:a=Je(t)?t:(o=t,r),duration:o,...n,type:l};return i(e)}}),e},[]),ft.createElement(Ci,{key:"message-holder",...S,ref:k})]}function Si(e){return wi(e)}var ki=(0,ft.createContext)(void 0),Ei=t(4533);let Ni={...Ei.default.Modal},Ii=[],Mi=()=>Ii.reduce((e,t)=>({...e,...t}),Ei.default.Modal);var $i=(0,ft.createContext)(void 0);let Ri="internalMark";var Pi=e=>{let{locale:t={},children:r}=e;ft.useEffect(()=>{var e=t?.Modal;if(e){let t={...e};return Ii.push(t),Ni=Mi(),()=>{Ii=Ii.filter(e=>e!==t),Ni=Mi()}}Ni={...Ei.default.Modal}},[t]);e=ft.useMemo(()=>({...t,exist:!0}),[t]);return ft.createElement($i.Provider,{value:e},r)},zi=ft.createContext(null);let Bi=!1;let Ti=[];let Oi="rc-util-locker-"+Date.now(),Hi=0;function Ai(e){let r=!!e,[n]=ft.useState(()=>(Hi+=1,Oi+"_"+Hi));gt(()=>{var e,t;return r?(e=Kt(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,(0,pt.BD)(`
html body {
overflow-y: hidden;
${t?`width: calc(100% - ${e}px);`:""}
}`,n)):(0,pt.m6)(n),()=>{(0,pt.m6)(n)}},[r,n])}let Di=[],Li=200,Fi=0;let Wi=t=>{if("Escape"===t.key&&!t.isComposing){var e=Date.now();if(!(e-Fi<Li)){var r=Di.length;for(let e=r-1;0<=e;--e)Di[e].onEsc({top:e===r-1,event:t})}}},ji=()=>{Fi=Date.now()};function _i(e,t){let r=kt(),n=ht(t),o=()=>{Di.find(e=>e.id===r)||Di.push({id:r,onEsc:n})},a=()=>{Di=Di.filter(e=>e.id!==r)};(0,ft.useMemo)(()=>{(e?o:a)()},[e]),(0,ft.useEffect)(()=>{if(e)return o(),window.addEventListener("keydown",Wi),window.addEventListener("compositionend",ji),()=>{a(),0===Di.length&&(window.removeEventListener("keydown",Wi),window.removeEventListener("compositionend",ji))}},[e])}let Ki=e=>!1!==e&&((0,Ke.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null);var Vi=ft.forwardRef((e,t)=>{let{open:r,autoLock:n,getContainer:o,autoDestroy:a=!0,children:l,onEsc:i}=e,[s,c]=ft.useState(r);e=s||r;ft.useEffect(()=>{(a||r)&&c(r)},[r,a]);let[d,u]=ft.useState(()=>Ki(o));ft.useEffect(()=>{let e=Ki(o);u(()=>e??null)});var[p,m]=(e=>{let[t]=ft.useState(()=>(0,Ke.A)()?document.createElement("div"):null),r=ft.useRef(!1),n=ft.useContext(zi),[o,a]=ft.useState(Ti);var l=n||(r.current?void 0:t=>{a(e=>[t,...e])});function i(){t.parentElement||document.body.appendChild(t),r.current=!0}function s(){t.parentElement?.removeChild(t),r.current=!1}return gt(()=>(e?n?n(i):i():s(),s),[e]),gt(()=>{o.length&&(o.forEach(e=>e()),a(Ti))},[o]),[t,l]})(e&&!d),f=d??p;Ai(n&&r&&(0,Ke.A)()&&(f===p||f===document.body)),_i(r,i);let h=null;l&&Ie(l)&&t&&(h=St(l));p=wt(h,t);if(!e||!(0,Ke.A)()||void 0===d)return null;var g,e=!1===f||(Bi="boolean"==typeof g?g:Bi);let v=t?ft.cloneElement(l,{ref:p}):l;return ft.createElement(zi.Provider,{value:m},e?v:(0,yt().createPortal)(v,f))});function Xi(e){var t,r,n,o,{prefixCls:e,align:a,arrow:l,arrowPos:i}=e,{className:l,content:s,style:c}=l||{},{x:i=0,y:d=0}=i,u=ft.useRef(null);return a&&a.points?(!(t={position:"absolute"})!==a.autoArrow&&(n=a.points[0],a=a.points[1],r=n[0],n=n[1],o=a[0],a=a[1],r!==o&&["t","b"].includes(r)?"t"===r?t.top=0:t.bottom=0:t.top=d,n!==a&&["l","r"].includes(n)?"l"===n?t.left=0:t.right=0:t.left=i),ft.createElement("div",{ref:u,className:bt(e+"-arrow",l),style:{...t,...c}},s)):null}function qi(){return(qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gi(e){let{prefixCls:t,open:r,zIndex:n,mask:o,motion:a,mobile:l}=e;return o?ft.createElement(Na,qi({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:e})=>ft.createElement("div",{style:{zIndex:n},className:bt(t+"-mask",l&&t+"-mobile-mask",e)})):null}var Yi=ft.memo(({children:e})=>e,(e,t)=>t.cache);function Ui(e,t,r,n,o,a,l,i){var s="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:s,bottom:s};return e||!t&&r||(e=n.points,r=(t=n.dynamicInset||n._experimental?.dynamicInset)&&"r"===e[0][1],n=t&&"b"===e[0][0],r?(c.right=o,c.left=s):(c.left=l,c.right=s),n?(c.bottom=a,c.top=s):(c.top=i,c.bottom=s)),c}function Qi(){return(Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Zi=ft.forwardRef((e,o)=>{let{onEsc:t,popup:r,className:a,prefixCls:l,style:i,target:n,onVisibleChanged:s,open:c,keepDom:d,fresh:u,onClick:p,mask:m,arrow:f,arrowPos:h,align:g,motion:v,maskMotion:b,mobile:y,forceRender:C,getPopupContainer:x,autoDestroy:w,portal:S,children:k,zIndex:E,onMouseEnter:N,onMouseLeave:I,onPointerEnter:H,onPointerDownCapture:A,ready:D,offsetX:L,offsetY:F,offsetR:W,offsetB:j,onAlign:_,onPrepare:M,onResize:K,stretch:$,targetWidth:R,targetHeight:P}=e,V="function"==typeof r?r():r;e=c||d;let z=!!y,[X,q,G]=ft.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[m,b,v],[y,m,b,v]),B=0<x?.length,[T,Y]=ft.useState(!x||!B);gt(()=>{!T&&B&&n&&Y(!0)},[T,B,n]);var U=ht((e,t)=>{K?.(e,t),_()});let Q=Ui(z,D,c,g,W,j,L,F);if(!T)return null;let O={};return $&&($.includes("height")&&P?O.height=P:$.includes("minHeight")&&P&&(O.minHeight=P),$.includes("width")&&R?O.width=R:$.includes("minWidth")&&R&&(O.minWidth=R)),c||(O.pointerEvents="none"),ft.createElement(S,{open:C||e,getContainer:x&&(()=>x(n)),autoDestroy:w,onEsc:t},ft.createElement(Gi,{prefixCls:l,open:c,zIndex:E,mask:X,motion:q,mobile:z}),ft.createElement(gr,{onResize:U,disabled:!c},n=>ft.createElement(Na,Qi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:l+"-hidden"},G,{onAppearPrepare:M,onEnterPrepare:M,visible:c,onVisibleChanged:e=>{v?.onVisibleChanged?.(e),s(e)}}),({className:e,style:t},r)=>{e=bt(l,e,a,{[l+"-mobile"]:z});return ft.createElement("div",{ref:Ne(n,o,r),className:e,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...Q,...O,...t,boxSizing:"border-box",zIndex:E,...i},onMouseEnter:N,onMouseLeave:I,onPointerEnter:H,onClick:p,onPointerDownCapture:A},f&&ft.createElement(Xi,{prefixCls:l,arrow:f,arrowPos:h,align:g}),ft.createElement(Yi,{cache:!c&&!u},V))})),k)}),Ji=ft.createContext(null);let es=ft.createContext(null);function ts(e){return e?Array.isArray(e)?e:[e]:[]}function rs(t,r,e,n){var o,a,l,i,s=e.points,c=Object.keys(t);for(let e=0;e<c.length;e+=1){var d=c[e];if([o=[],a=[],l]=[t[d]?.points,s,n],void 0,i=(e,t)=>e[t]||"",l?i(o,0)===i(a,0):i(o,0)===i(a,0)&&i(o,1)===i(a,1))return r+"-placement-"+d}return""}function ns(e){return e.ownerDocument.defaultView}function os(e){var t=[];let r=e?.parentElement,n=["hidden","scroll","clip","auto"];for(;r;){var{overflowX:o,overflowY:a,overflow:l}=ns(r).getComputedStyle(r);[o,a,l].some(e=>n.includes(e))&&t.push(r),r=r.parentElement}return t}function as(e,t=1){return Number.isNaN(e)?t:e}function ls(e){return as(parseFloat(e),0)}function is(e,t){let h={...e};return(t||[]).forEach(r=>{if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var{overflow:n,overflowClipMargin:o,borderTopWidth:a,borderBottomWidth:l,borderLeftWidth:i,borderRightWidth:s}=ns(r).getComputedStyle(r),c=r.getBoundingClientRect(),{offsetHeight:r,clientHeight:d,offsetWidth:u,clientWidth:p}=r,a=ls(a),l=ls(l),i=ls(i),s=ls(s),m=as(Math.round(c.width/u*1e3)/1e3),f=as(Math.round(c.height/r*1e3)/1e3),u=(u-p-i-s)*m,p=(r-d-a-l)*f,r=a*f,d=l*f,a=i*m,l=s*m;let e=0,t=0;"clip"===n&&(i=ls(o),e=i*m,t=i*f);s=c.x+a-e,n=c.y+r-t,o=s+c.width+2*e-a-l-u,m=n+c.height+2*t-r-d-p;h.left=Math.max(h.left,s),h.top=Math.max(h.top,n),h.right=Math.min(h.right,o),h.bottom=Math.min(h.bottom,m)}}),h}function ss(e,t=0){var t=""+t,r=t.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(t)}function cs(e,t){var[t,r]=t||[];return[ss(e.width,t),ss(e.height,r)]}function ds(e=""){return[e[0],e[1]]}function us(e,t){var r=t[0],t=t[1];let n,o;return o="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:n="l"===t?e.x:"r"===t?e.x+e.width:e.x+e.width/2,y:o}}function ps(e,t){var r=[...e];return r[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",r}function ms(e){return e.join("")}function fs(e,_,t,r,n,o,K,a){let[l,V]=ft.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[r]||{}}),i=ft.useRef(0),s=ft.useMemo(()=>!_||a?[]:os(_),[_]),X=ft.useRef({});e||(X.current={});let c=ht(()=>{if(_&&t&&e&&!a){var g=_,v=g.ownerDocument,b=ns(g),y=b.getComputedStyle(g).position,C=g.style.left,x=g.style.top,w=g.style.right,S=g.style.bottom,k=g.style.overflow,E=g.style.overflowX,N=g.style.overflowY,I={...n[r],...o},M=v.createElement("div");g.parentElement?.appendChild(M),M.style.left=g.offsetLeft+"px",M.style.top=g.offsetTop+"px",M.style.position=y,M.style.height=g.offsetHeight+"px",M.style.width=g.offsetWidth+"px",g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden";let u,p=(u=Array.isArray(t)?{x:t[0],y:t[1],width:0,height:0}:((y=t.getBoundingClientRect()).x=y.x??y.left,y.y=y.y??y.top,{x:y.x,y:y.y,width:y.width,height:y.height}),g.getBoundingClientRect());var{height:y,width:b}=b.getComputedStyle(g),{clientWidth:v,clientHeight:$,scrollWidth:R,scrollHeight:P,scrollTop:z,scrollLeft:B}=(p.x=p.x??p.left,p.y=p.y??p.top,v.documentElement);let m=p.height,f=p.width;var T=u.height,O=u.width,v={left:0,top:0,right:v,bottom:$};let e=I.htmlRegion;$="visibleFirst",$=(e="scroll"!==e&&e!==$?"visible":e)===$,R=is({left:-B,top:-z,right:R-B,bottom:P-z},s),B=is(v,s);let h="visible"===e?B:R;P=$?B:h,z=(g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0",g.getBoundingClientRect()),v=(g.style.left=C,g.style.top=x,g.style.right=w,g.style.bottom=S,g.style.overflow=k,g.style.overflowX=E,g.style.overflowY=N,g.parentElement?.removeChild(M),as(Math.round(f/parseFloat(b)*1e3)/1e3)),R=as(Math.round(m/parseFloat(y)*1e3)/1e3);if(0!==v&&0!==R&&(!Ct(t)||mt(t))){var{offset:C,targetOffset:x}=I;let[t,r]=cs(p,C);var[w,S]=cs(u,x),[k,E]=(u.x-=w,u.y-=S,I.points||[]),N=ds(E),g=ds(k),M=us(u,N),b=us(p,g),y={...I};let n=[g,N],o=M.x-b.x+t,a=M.y-b.y+r;var C=W(o,a),x=W(o,a,B),w=us(u,["t","l"]),S=us(p,["t","l"]),E=us(u,["b","r"]),k=us(p,["b","r"]),{adjustX:M,adjustY:b,shiftX:I,shiftY:H}=I.overflow||{},A=e=>"boolean"==typeof e?e:0<=e;let e,l,i,s;j();var b=A(b),D=g[0]===N[0];if(b&&"t"===g[0]&&(l>P.bottom||X.current.bt)){let e=a;D?e-=m-T:e=w.y-k.y-r;var L=W(o,e),F=W(o,e,B);C<L||L===C&&(!$||x<=F)?(X.current.bt=!0,a=e,r=-r,n=[ps(n[0],0),ps(n[1],0)]):X.current.bt=!1}if(b&&"b"===g[0]&&(e<P.top||X.current.tb)){let e=a;D?e+=m-T:e=E.y-S.y-r;L=W(o,e),F=W(o,e,B);C<L||L===C&&(!$||x<=F)?(X.current.tb=!0,a=e,r=-r,n=[ps(n[0],0),ps(n[1],0)]):X.current.tb=!1}b=A(M),D=g[1]===N[1];if(b&&"l"===g[1]&&(s>P.right||X.current.rl)){let e=o;D?e-=f-O:e=w.x-k.x-t;L=W(e,a),F=W(e,a,B);C<L||L===C&&(!$||x<=F)?(X.current.rl=!0,o=e,t=-t,n=[ps(n[0],1),ps(n[1],1)]):X.current.rl=!1}if(b&&"r"===g[1]&&(i<P.left||X.current.lr)){let e=o;D?e+=f-O:e=E.x-S.x-t;A=W(e,a),M=W(e,a,B);C<A||A===C&&(!$||x<=M)?(X.current.lr=!0,o=e,t=-t,n=[ps(n[0],1),ps(n[1],1)]):X.current.lr=!1}y.points=[ms(n[0]),ms(n[1])],j();N=!0===I?0:I,w=("number"==typeof N&&(i<B.left&&(o-=i-B.left-t,u.x+O<B.left+N)&&(o+=u.x-B.left+O-N),s>B.right)&&(o-=s-B.right-t,u.x>B.right-N)&&(o+=u.x-B.right+N),!0===H?0:H),k=("number"==typeof w&&(e<B.top&&(a-=e-B.top-r,u.y+T<B.top+w)&&(a+=u.y-B.top+T-w),l>B.bottom)&&(a-=l-B.bottom-r,u.y>B.bottom-w)&&(a+=u.y-B.bottom+w),p.x+o),L=k+f,F=p.y+a,b=F+m,g=u.x,P=g+O,D=u.y,E=D+T,S=(Math.max(k,g)+Math.min(L,P))/2-k,A=(Math.max(F,D)+Math.min(b,E))/2-F;K?.(_,y);let c=z.right-p.x-(o+p.width),d=z.bottom-p.y-(a+p.height);1===v&&(o=Math.floor(o),c=Math.floor(c)),1===R&&(a=Math.floor(a),d=Math.floor(d));C={ready:!0,offsetX:o/v,offsetY:a/R,offsetR:c/v,offsetB:d/R,arrowX:S/v,arrowY:A/R,scaleX:v,scaleY:R,align:y};function W(e,t,r=h){var e=p.x+e,t=p.y+t,n=e+f,o=t+m,e=Math.max(e,r.left),t=Math.max(t,r.top),n=Math.min(n,r.right),o=Math.min(o,r.bottom);return Math.max(0,(n-e)*(o-t))}function j(){e=p.y+a,l=e+m,i=p.x+o,s=i+f}V(C)}}});let d=()=>{V(e=>({...e,ready:!1}))};return gt(d,[r]),gt(()=>{e||d()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,()=>{i.current+=1;let e=i.current;Promise.resolve().then(()=>{i.current===e&&c()})}]}function hs(){let r=ft.useRef(null),n=()=>{r.current&&(clearTimeout(r.current),r.current=null)};return ft.useEffect(()=>()=>{n()},[]),(e,t)=>{n(),0===t?e():r.current=setTimeout(()=>{e()},1e3*t)}}function gs(){return(gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vs=e=>{let{prefixCls:t,isMobile:r,ready:n,open:o,align:a,offsetR:l,offsetB:i,offsetX:s,offsetY:c,arrowPos:d,popupSize:u,motion:p,uniqueContainerClassName:m,uniqueContainerStyle:f}=e,h=t+"-unique-container",[g,v]=Re().useState(!1);e=Ui(r,n,o,a,l,i,s,c);let b=Re().useRef(e),y=(n&&(b.current=e),{});return u&&(y.width=u.width,y.height=u.height),Re().createElement(Na,gs({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:h+"-hidden"},p,{visible:o,onVisibleChanged:e=>{v(e)}}),({className:e,style:t})=>{e=bt(h,e,m,{[h+"-visible"]:g});return Re().createElement("div",{className:e,style:{"--arrow-x":`${d?.x||0}px`,"--arrow-y":`${d?.y||0}px`,...b.current,...y,...t,...f}})})},bs=({children:e,postTriggerProps:t})=>{let[r,n,o,a]=(()=>{let[e,t]=Re().useState(null),[r,n]=Re().useState(!1),[o,a]=Re().useState(!1),l=Re().useRef(null);var i=ht(e=>{!1===e?(l.current=null,n(!1)):o&&r?l.current=e:(n(!0),t(e),l.current=null,r||a(!0))}),s=ht(e=>{e?(a(!1),l.current&&(t(l.current),l.current=null)):(a(!1),l.current=null)});return[i,r,e,s]})(),l=ft.useMemo(()=>o&&t?t(o):o,[o,t]),[i,s]=ft.useState(null),[c,d]=ft.useState(null),u=ft.useRef(null);var p=ht(e=>{Ct(u.current=e)&&i!==e&&s(e)});let m=ft.useRef(null),f=hs(),h=ht((e,t)=>{m.current=t,f(()=>{r(e)},e.delay)});var g=ht(e=>{a(e)});let[v,b,y,C,x,w,S,,,k,E]=fs(n,i,l?.target,l?.popupPlacement,l?.builtinPlacements||{},l?.popupAlign,void 0,!1);var N=ft.useMemo(()=>l?bt(rs(l.builtinPlacements||{},l.prefixCls||"",k,!1),l.getPopupClassNameFromAlign?.(k)):"",[k,l?.getPopupClassNameFromAlign,l?.builtinPlacements,l?.prefixCls]),I=ft.useMemo(()=>({show:h,hide:e=>{f(()=>{m.current?.()||r(!1)},e)}}),[]),M=(ft.useEffect(()=>{E()},[l?.target]),ht(()=>(E(),Promise.resolve())));let $=ft.useRef({}),R=ft.useContext(Ji);var P=ft.useMemo(()=>({registerSubPopup:(e,t)=>{$.current[e]=t,R?.registerSubPopup(e,t)}}),[R]),z=l?.prefixCls;return ft.createElement(es.Provider,{value:I},e,l&&ft.createElement(Ji.Provider,{value:P},ft.createElement(Zi,{ref:p,portal:Vi,onEsc:l.onEsc,prefixCls:z,popup:l.popup,className:bt(l.popupClassName,N,z+"-unique-controlled"),style:l.popupStyle,target:l.target,open:n,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:g,ready:v,offsetX:b,offsetY:y,offsetR:C,offsetB:x,onAlign:E,onPrepare:M,onResize:e=>d({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:w,y:S},align:k,zIndex:l.zIndex,mask:l.mask,arrow:l.arrow,motion:l.popupMotion,maskMotion:l.maskMotion,getPopupContainer:l.getPopupContainer},ft.createElement(vs,{prefixCls:z,isMobile:!1,ready:v,open:n,align:k,offsetR:C,offsetB:x,offsetX:b,offsetY:y,arrowPos:{x:w,y:S},popupSize:c,motion:l.popupMotion,uniqueContainerClassName:bt(l.uniqueContainerClassName,N),uniqueContainerStyle:l.uniqueContainerStyle}))))};[ys=Vi]=[Vi];var ys,Cs=ft.forwardRef((e,H)=>{let{prefixCls:t="rc-trigger-popup",children:r,action:A="hover",showAction:D,hideAction:L,disabled:F=!1,popupVisible:n,defaultPopupVisible:W,onOpenChange:j,afterOpenChange:_,onPopupVisibleChange:K,afterPopupVisibleChange:V,mouseEnterDelay:o,mouseLeaveDelay:a=.1,focusDelay:X,blurDelay:q,mask:l,maskClosable:G=!0,getPopupContainer:Y,forceRender:U,autoDestroy:Q,popup:Z,popupClassName:J,uniqueContainerClassName:ee,uniqueContainerStyle:te,popupStyle:re,popupPlacement:i,builtinPlacements:s={},popupAlign:c,zIndex:ne,stretch:oe,getPopupClassNameFromAlign:d,fresh:ae,unique:u,alignPoint:p,onPopupClick:le,onPopupAlign:ie,arrow:m,popupMotion:se,maskMotion:ce,mobile:de,...ue}=e;e=Q||!1;let pe=void 0===n;var me=!!de;let fe=ft.useRef({}),f=ft.useContext(Ji);var he=ft.useMemo(()=>({registerSubPopup:(e,t)=>{fe.current[e]=t,f?.registerSubPopup(e,t)}}),[f]);let h=ft.useContext(es),ge=kt(),[g,ve]=ft.useState(null),be=ft.useRef(null);var ye=ht(e=>{Ct(be.current=e)&&g!==e&&ve(e),f?.registerSubPopup(ge,e)});let[v,Ce]=ft.useState(null),xe=ft.useRef(null);var b=ht(e=>{e=xt(e);Ct(e)&&v!==e&&(Ce(e),xe.current=e)});let y={};var C=ht(t=>{var e=v;return e?.contains(t)||At(e)?.host===t||t===e||g?.contains(t)||At(g)?.host===t||t===g||Object.values(fe.current).some(e=>e?.contains(t)||t===e)});let we=m?{...!0!==m?m:{}}:null,[Se,ke]=vt(W||!1,n),Ee=Se||!1,x=Ee&&!F;var w,Ne,Ie,Me=ft.useMemo(()=>{var e="function"==typeof r?r({open:x}):r;return ft.Children.only(e)},[r,x]);let S=Me?.props||{},$e=ht(()=>x),Re=ht((e=0)=>({popup:Z,target:v,delay:e,prefixCls:t,popupClassName:J,uniqueContainerClassName:ee,uniqueContainerStyle:te,popupStyle:re,popupPlacement:i,builtinPlacements:s,popupAlign:c,zIndex:ne,mask:l,maskClosable:G,popupMotion:se,maskMotion:ce,arrow:we,getPopupContainer:Y,getPopupClassNameFromAlign:d,id:ge,onEsc:Be})),k=(gt(()=>{h&&u&&v&&!pe&&!f&&(x?h.show(Re(o),$e):h.hide(a))},[x,v]),ft.useRef(x)),Pe=(k.current=x,ht(e=>{(0,yt().flushSync)(()=>{Ee!==e&&(ke(e),j?.(e),K?.(e))})})),ze=hs(),E=(e,t=0)=>{void 0===n&&h&&u&&pe&&!f?e?h.show(Re(t),$e):h.hide(t):ze(()=>{Pe(e)},t)};function Be({top:e}){e&&E(!1)}let[N,Te]=ft.useState(!1),[Oe,He]=(gt(e=>{e&&!x||Te(!0)},[x]),ft.useState(null)),[Ae,De]=ft.useState(null),Le=e=>{De([e.clientX,e.clientY])},[Fe,We,je,_e,Ke,Ve,Xe,qe,Ge,I,Ye]=fs(x,g,p&&null!==Ae?Ae:v,i,s,c,ie,me),[M,$]=(w=A,Ne=D,Ie=L,ft.useMemo(()=>{var e=ts(Ne??w),t=ts(Ie??w),e=new Set(e),t=new Set(t);return e.has("hover")&&!e.has("click")&&e.add("touch"),t.has("hover")&&!t.has("click")&&t.add("touch"),[e,t]},[w,Ne,Ie])),Ue=M.has("click"),R=$.has("click")||$.has("contextMenu"),P=ht(()=>{N||Ye()});Qe=x,z=v,B=g,Ze=P,Je=()=>{k.current&&p&&R&&E(!1)},gt(()=>{if(Qe&&z&&B){var r=B,n=os(z),o=os(r);let t=ns(r),e=new Set([t,...n,...o]);function a(){Ze(),Je()}return e.forEach(e=>{e.addEventListener("scroll",a,{passive:!0})}),t.addEventListener("resize",a,{passive:!0}),Ze(),()=>{e.forEach(e=>{e.removeEventListener("scroll",a),t.removeEventListener("resize",a)})}}},[Qe,z,B]),gt(()=>{P()},[Ae,i]),gt(()=>{x&&!s?.[i]&&P()},[JSON.stringify(c)]);var Qe,z,B,Ze,Je,et=ft.useMemo(()=>bt(rs(s,t,I,p),d?.(I)),[I,d,s,t,p]);ft.useImperativeHandle(H,()=>({nativeElement:xe.current,popupElement:be.current,forceAlign:P}));let[tt,rt]=ft.useState(0),[nt,ot]=ft.useState(0),at=()=>{var e;oe&&v&&(e=v.getBoundingClientRect(),rt(e.width),ot(e.height))};function T(r,n,o,a,l){y[r]=(e,...t)=>{l&&l()||(a?.(e),E(n,o)),S[r]?.(e,...t)}}gt(()=>{Oe&&(Ye(),Oe(),He(null))},[Oe]);let lt=M.has("touch"),it=$.has("touch"),st=ft.useRef(!1);(lt||it)&&(y.onTouchStart=(...e)=>{st.current=!0,k.current&&it?E(!1):!k.current&<&&E(!0),S.onTouchStart?.(...e)}),(Ue||R)&&(y.onClick=(e,...t)=>{k.current&&R?E(!1):!k.current&&Ue&&(Le(e),E(!0)),S.onClick?.(e,...t),st.current=!1});var H=((e,t,o,a,r,n,l,i)=>{let s=ft.useRef(e),c=(s.current=e,ft.useRef(!1));return ft.useEffect(()=>{if(t&&a&&(!r||n)){let e=()=>{c.current=!1},t=e=>{!s.current||l(e.composedPath?.()?.[0]||e.target)||c.current||i(!1)},r=ns(a),n=(r.addEventListener("pointerdown",e,!0),r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0),At(o));return n&&(n.addEventListener("mousedown",t,!0),n.addEventListener("contextmenu",t,!0)),()=>{r.removeEventListener("pointerdown",e,!0),r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0),n&&(n.removeEventListener("mousedown",t,!0),n.removeEventListener("contextmenu",t,!0))}}},[t,o,a,r,n]),function(){c.current=!0}})(x,R||it,v,g,l,G,C,E),C=M.has("hover"),ct=$.has("hover");let dt,ut;var O=()=>st.current,C=(C&&(C=e=>{Le(e)},T("onMouseEnter",!0,o,C,O),T("onPointerEnter",!0,o,C,O),dt=e=>{(x||N)&&g?.contains(e.target)&&E(!0,o)},p)&&(y.onMouseMove=e=>{S.onMouseMove?.(e)}),ct&&(T("onMouseLeave",!1,a,void 0,O),T("onPointerLeave",!1,a,void 0,O),ut=()=>{E(!1,a)}),M.has("focus")&&T("onFocus",!0,X),$.has("focus")&&T("onBlur",!1,q),M.has("contextMenu")&&(y.onContextMenu=(e,...t)=>{k.current&&$.has("contextMenu")?E(!1):(Le(e),E(!0)),e.preventDefault(),S.onContextMenu?.(e,...t)}),ft.useRef(!1));C.current||=U||x||N;let pt={...S,...y},mt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(t=>{ue[t]&&(mt[t]=(...e)=>{pt[t]?.(...e),ue[t](...e)})});ct={x:Ve,y:Xe},dr(x,v,()=>{at(),P()}),O=wt(b,St(Me)),b=ft.cloneElement(Me,{...pt,...mt,ref:O});return ft.createElement(ft.Fragment,null,b,C.current&&(!h||!u)&&ft.createElement(Ji.Provider,{value:he},ft.createElement(Zi,{portal:ys,ref:ye,prefixCls:t,popup:Z,className:bt(J,!me&&et),style:re,target:v,onMouseEnter:dt,onMouseLeave:ut,onPointerEnter:dt,zIndex:ne,open:x,keepDom:N,fresh:ae,onClick:le,onPointerDownCapture:H,mask:l,motion:se,maskMotion:ce,onVisibleChanged:e=>{Te(!1),Ye(),_?.(e),V?.(e)},onPrepare:()=>new Promise(e=>{at(),He(()=>e)}),forceRender:U,autoDestroy:e,getPopupContainer:Y,onEsc:Be,align:I,arrow:we,arrowPos:ct,ready:Fe,offsetX:We,offsetY:je,offsetR:_e,offsetB:Ke,onAlign:P,stretch:oe,targetWidth:tt/qe,targetHeight:nt/Ge,mobile:de})))});function xs(e){return e&&Re().isValidElement(e)&&e.type===Re().Fragment}let ws=(e,t,r)=>Re().isValidElement(e)?Re().cloneElement(e,Je(r)?r(e.props||{}):r):t;function Ss(e,t){return ws(e,e,t)}var ks=({children:e})=>{var t=Re().useContext(Ue).getPrefixCls,t=t();return Re().isValidElement(e)?Re().createElement(Na,{visible:!0,motionName:t+"-fade",motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:r})=>Ss(e,e=>({className:bt(e.className,r),style:{...e.style,...t}}))):e};let Es=[null,null];var Ns=({children:e})=>Re().createElement(bs,{postTriggerProps:e=>{var{id:t,builtinPlacements:r,popup:n}=e,n=Je(n)?n():n,r=(r=>{if(Es[0]!==r){let t={};Object.keys(r).forEach(e=>{t[e]={...r[e],dynamicInset:!1}}),Es[0]=r,Es[1]=t}return Es[1]})(r);return{...e,getPopupContainer:null,arrow:!1,popup:Re().createElement(ks,{key:t},n),builtinPlacements:r}}},e);let Is=ft.createContext(!1),Ms=({children:e,disabled:t})=>{var r=ft.useContext(Is);return ft.createElement(Is.Provider,{value:t??r},e)};var $s=Is;let Rs=ft.createContext(void 0),Ps=({children:e,size:t})=>{var r=ft.useContext(Rs);return ft.createElement(Rs.Provider,{value:t||r},e)};var zs=Rs;function Bs(){return{componentDisabled:(0,ft.useContext)($s),componentSize:(0,ft.useContext)(zs)}}let Ts=ft.createContext(!0);function Os(e){var t=ft.useContext(Ts),e=e.children,[,r]=so(),r=r.motion,n=ft.useRef(!1);return n.current||(n.current=t!==r),n.current?ft.createElement(Ts.Provider,{value:r},ft.createElement(Uo,{motion:r},e)):e}var Hs=()=>null,As=(e,t)=>{var[r,n]=so();return(0,Qe.useStyleRegister)({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>pn(e))};let Ds=({iconPrefixCls:e,csp:t})=>(As(e,t),null);let Ls=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Fs,Ws,js,_s;function Ks(){return Fs||"ant"}let Vs=()=>({getPrefixCls:(e,t)=>t||(e?Ks()+"-"+e:Ks()),getIconPrefixCls:function(){return Ws||wr},getRootPrefixCls:()=>Fs||Ks(),getTheme:()=>js,holderRender:_s}),Xs=n=>{let{children:e,csp:t,autoInsertSpaceInButton:r,alert:o,affix:a,anchor:l,app:i,form:s,locale:c,componentSize:d,direction:u,space:p,splitter:m,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:b,parentContext:y,iconPrefixCls:C,theme:x,componentDisabled:w,segmented:S,statistic:H,spin:A,calendar:D,carousel:L,cascader:F,collapse:W,typography:j,checkbox:_,descriptions:K,divider:V,drawer:X,skeleton:q,steps:G,image:Y,layout:U,list:Q,listy:Z,mentions:J,modal:ee,progress:te,result:re,slider:ne,breadcrumb:oe,masonry:ae,menu:le,pagination:ie,input:se,inputPassword:ce,inputSearch:de,textArea:ue,otp:pe,empty:me,badge:fe,borderBeam:he,radio:ge,rate:ve,ribbon:be,switch:ye,transfer:Ce,avatar:xe,message:we,tag:Se,table:ke,card:Ee,cardMeta:Ne,tabs:Ie,timeline:Me,timePicker:$e,upload:Re,notification:Pe,tree:ze,colorPicker:Be,datePicker:Te,rangePicker:Oe,flex:He,wave:Ae,dropdown:De,warning:Le,tour:Fe,tooltip:k,popover:We,popconfirm:je,qrcode:_e,floatButton:Ke,floatButtonGroup:Ve,variant:Xe,inputNumber:qe,treeSelect:Ge,watermark:Ye}=n;var E=ft.useMemo(()=>Ze(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&c.default?.locale?c.default:c,[c]),N=ft.useCallback((e,t)=>{var r=n.prefixCls;return t||(t=r||y.getPrefixCls(""),e?t+"-"+e:t)},[y.getPrefixCls,n.prefixCls]);let I=C||y.iconPrefixCls||wr,M=t||y.csp,$=((r,n,o)=>{fl("ConfigProvider");let a=r||{},l=!1!==a.inherit&&n?n:{...vn,hashed:n?.hashed??vn.hashed,cssVar:n?.cssVar},i=(0,ft.useId)();return(0,tt.A)(()=>{if(!r)return n;let t={...l.components};Object.keys(r.components||{}).forEach(e=>{t[e]={...t[e],...r.components[e]}});var e="css-var-"+i.replace(/:/g,""),e={prefix:o?.prefixCls,...l.cssVar,...a.cssVar,key:a.cssVar?.key||e};return{...l,...a,token:{...l.token,...a.token},components:t,cssVar:e}},[a,l,o?.prefixCls,i],(e,r)=>e.some((e,t)=>{t=r[t];return!(0,Vt.A)(e,t,!0)}))})(x,y.theme,{prefixCls:N("")}),R={csp:M,autoInsertSpaceInButton:r,alert:o,affix:a,anchor:l,app:i,locale:E||b,direction:u,space:p,splitter:m,virtual:f,popupMatchSelectWidth:g??h,popupOverflow:v,getPrefixCls:N,iconPrefixCls:I,theme:$,segmented:S,statistic:H,spin:A,calendar:D,carousel:L,cascader:F,collapse:W,typography:j,checkbox:_,descriptions:K,divider:V,drawer:X,skeleton:q,steps:G,image:Y,input:se,inputPassword:ce,inputSearch:de,textArea:ue,otp:pe,layout:U,list:Q,listy:Z,mentions:J,modal:ee,progress:te,result:re,slider:ne,breadcrumb:oe,masonry:ae,menu:le,pagination:ie,empty:me,badge:fe,borderBeam:he,radio:ge,rate:ve,ribbon:be,switch:ye,transfer:Ce,avatar:xe,message:we,tag:Se,table:ke,card:Ee,cardMeta:Ne,tabs:Ie,timeline:Me,timePicker:$e,upload:Re,notification:Pe,tree:ze,colorPicker:Be,datePicker:Te,rangePicker:Oe,flex:He,wave:Ae,dropdown:De,warning:Le,tour:Fe,tooltip:k,popover:We,popconfirm:je,qrcode:_e,floatButton:Ke,floatButtonGroup:Ve,variant:Xe,inputNumber:qe,treeSelect:Ge,watermark:Ye},P={...y},z=(Object.keys(R).forEach(e=>{void 0!==R[e]&&(P[e]=R[e])}),Ls.forEach(e=>{var t=n[e];t&&(P[e]=t)}),void 0!==r&&(P.button={autoInsertSpace:r,...P.button}),(0,tt.A)(()=>P,P,(t,r)=>{var e=Object.keys(t),n=Object.keys(r);return e.length!==n.length||e.some(e=>t[e]!==r[e])})),B=ft.useContext(Qe.StyleContext).layer;N=ft.useMemo(()=>({prefixCls:I,csp:M,layer:B?"antd":void 0,zeroRuntime:!!B||$?.zeroRuntime}),[I,M,B,$?.zeroRuntime]);let T=ft.createElement(ft.Fragment,null,ft.createElement(Ds,{iconPrefixCls:I,csp:M}),ft.createElement(Hs,{dropdownMatchSelectWidth:h}),e);var O=ft.useMemo(()=>lr(Ei.default.Form?.defaultValidateMessages||{},z.locale?.Form?.defaultValidateMessages||{},z.form?.validateMessages||{},s?.validateMessages||{}),[z,s?.validateMessages]),O=(0<Object.keys(O).length&&(T=ft.createElement(ki.Provider,{value:O},T)),E&&(T=ft.createElement(Pi,{locale:E,_ANT_MARK__:Ri},T)),(I||M)&&(T=ft.createElement(yo.Provider,{value:N},T)),d&&(T=ft.createElement(Ps,{size:d},T)),T=ft.createElement(Os,null,T),k?.unique&&(T=ft.createElement(Ns,null,T)),ft.useMemo(()=>{let{algorithm:e,token:t,components:r,cssVar:n,...o}=$||{},a=e&&(!Array.isArray(e)||0<e.length)?(0,Qe.createTheme)(e):eo,l={};Object.entries(r||{}).forEach(([e,t])=>{t={...t};"algorithm"in t&&(!0===t.algorithm?t.theme=a:(Array.isArray(t.algorithm)||Je(t.algorithm))&&(t.theme=(0,Qe.createTheme)(t.algorithm)),delete t.algorithm),l[e]=t});var i={...gn,...t};return{...o,theme:a,token:i,components:l,override:{override:i,...l},cssVar:n}},[$]));return x&&(T=ft.createElement(bn.Provider,{value:O},T)),z.warning&&(T=ft.createElement(pl.Provider,{value:z.warning},T)),void 0!==w&&(T=ft.createElement(Ms,{disabled:w},T)),ft.createElement(Ue.Provider,{value:z},T)};var n=e=>{var t=ft.useContext(Ue),r=ft.useContext($i);return ft.createElement(Xs,{parentContext:t,legacyLocale:r,...e})},qs=(n.ConfigContext=Ue,n.SizeContext=zs,n.config=e=>{var{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;void 0!==t&&(Fs=t),void 0!==r&&(Ws=r),"holderRender"in e&&(_s=o),n&&(js=n)},n.useConfig=Bs,Object.defineProperty(n,"SizeContext",{get:()=>zs}),n);function Gs(...e){return e.find(e=>void 0!==e)}let Ys=(e,t)=>{let r={};return Ze(e)&&(r=e),void 0===(r="boolean"==typeof e?{enabled:e}:r).closable&&void 0!==t&&(r.closable=t),r},Us=(r,n,o,a)=>(0,ft.useMemo)(()=>{var e=Ys(r,a),t=Ys(n),e={blur:!1,...t,...e,closable:e.closable??a??t.closable??!0};return[!1!==e.enabled,{mask:e.blur?o+"-mask-blur":void 0},!!e.closable]},[r,n,o,a]),Qs=()=>({height:0,opacity:0}),Zs=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),Js=e=>({height:e?.offsetHeight??0}),ec=(e,t)=>!0===t?.deadline||Pa(t)&&"height"===t.propertyName;let tc=(e,t,r)=>void 0!==r?r:e+"-"+t;var rc=(e="ant")=>({motionName:e+"-motion-collapse",onAppearStart:Qs,onEnterStart:Qs,onAppearActive:Zs,onEnterActive:Zs,onLeaveStart:Js,onLeaveActive:Qs,onAppearEnd:ec,onEnterEnd:ec,onLeaveEnd:ec,motionDeadline:500}),nc=(r,n)=>{let o=ft.useContext($i);return[ft.useMemo(()=>{var e=n||Ei.default[r],t=o?.[r]??{};return{...Je(e)?e():e,...t||{}}},[r,n,o]),ft.useMemo(()=>{var e=o?.locale;return o?.exist&&!e?Ei.default.locale:e},[o])]},oc=co("Wave",e=>{let{componentCls:t,colorPrimary:r,motionDurationSlow:n,motionEaseInOut:o,motionEaseOutCirc:a,antCls:l}=e;var[,e]=Q(l,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:e("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(e=>e+" "+a).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(e=>`${e} ${n} `+o).join(",")}}}}});let ac="ant-wave-target",lc=e=>!!e&&$a(e)&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&"transparent"!==e&&"canvastext"!==e;function ic(e){return Number.isNaN(e)?0:e}let sc=e=>{let{className:r,target:o,component:t,colorSource:a}=e,n=ft.useRef(null);var e=ft.useContext(Ue).getPrefixCls,e=e(),[e]=Q(e,"wave");let[l,i]=ft.useState(null),[s,c]=ft.useState([]),[d,u]=ft.useState(0),[p,m]=ft.useState(0),[f,h]=ft.useState(0),[g,v]=ft.useState(0),[b,y]=ft.useState(!1),C={left:d,top:p,width:f,height:g,borderRadius:s.map(e=>e+"px").join(" ")};function x(){var e=getComputedStyle(o),t=(i(((e,t=null)=>{var{borderTopColor:r,borderColor:n,backgroundColor:o}=e=getComputedStyle(e);return t&&lc(e[t])?e[t]:[r,n,o].find(lc)??null})(o,a)),"static"===e.position),{borderLeftWidth:r,borderTopWidth:n}=e,{borderTopLeftRadius:r,borderTopRightRadius:t,borderBottomLeftRadius:n,borderBottomRightRadius:e}=(u(t?o.offsetLeft:ic(-Number.parseFloat(r))),m(t?o.offsetTop:ic(-Number.parseFloat(n))),h(o.offsetWidth),v(o.offsetHeight),e);c([r,t,e,n].map(e=>ic(Number.parseFloat(e))))}if(l&&(C[e("color")]=l),ft.useEffect(()=>{if(o){let e=$e(()=>{x(),y(!0)}),t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x)).observe(o),()=>{$e.cancel(e),t?.disconnect()}}},[o]),!b)return null;let w=("Checkbox"===t||"Radio"===t)&&o?.classList.contains(ac);return ft.createElement(Na,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||Pa(t)&&"opacity"===t.propertyName){let e=n.current?.parentElement;cr(e).then(()=>{e?.remove()})}return!1}},({className:e},t)=>ft.createElement("div",{ref:Ne(n,t),className:bt(r,e,{"wave-quick":w}),style:C}))};var cc=(e,t)=>{var r=t.component;"Checkbox"===r&&!e.querySelector("input")?.checked||((r=document.createElement("div")).style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),sr(ft.createElement(sc,{...t,target:e}),r))},dc=(n,o,a,l)=>{let i=ft.useContext(Ue).wave,[,s,c]=so(),t=ht(e=>{var t,r=n.current;!i?.disabled&&r&&(r=r.querySelector("."+ac)||r,t=(i||{}).showEffect,(t||cc)(r,{className:o,token:s,component:a,event:e,hashId:c,colorSource:l}))}),r=ft.useRef(null);ft.useEffect(()=>()=>{$e.cancel(r.current)},[]);return e=>{$e.cancel(r.current),r.current=$e(()=>{t(e)})}};let uc={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"};var pc=e=>{let{children:t,disabled:o,component:r,colorSource:n}=e,{getPrefixCls:a,wave:l}=(0,ft.useContext)(Ue),i=(0,ft.useRef)(null);var e=a("wave"),s=oc(e);let c=dc(i,bt(e,s),r,n);return Re().useEffect(()=>{let r=i.current;if(r&&r.nodeType===window.Node.ELEMENT_NODE&&!o){let e=e=>{!mt(e.target)||!r.getAttribute||r.getAttribute("disabled")||r.disabled||r.className.includes("disabled")&&!r.className.includes("disabled:")||"true"===r.getAttribute("aria-disabled")||r.className.includes("-leave")||c(e)};var n=l?.triggerType;let t=n&&n in uc?uc[n]:"click";return r.addEventListener(t,e,!0),()=>{r.removeEventListener(t,e,!0)}}},[o,l?.triggerType]),Re().isValidElement(t)?Ss(t,{ref:Ie(t)?Ne(St(t),i):i}):t??null},mc=e=>{let t=Re().useContext(zs);return Re().useMemo(()=>e?$a(e)?e??t:Je(e)?e(t):t:t,[e,t])};let fc=e=>"horizontal"===e||"vertical"===e,hc=(r,n,o)=>(0,ft.useMemo)(()=>{var e=fc(r);let t;return[t=e?r:"boolean"==typeof n?n?"vertical":"horizontal":fc(o)?o:"horizontal","vertical"===t]},[o,r,n]);var gc=Be(["Space","Compact"],e=>{e=e.componentCls;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1});let vc=ft.createContext(null),bc=(n,o)=>{let a=ft.useContext(vc);var e=ft.useMemo(()=>{var e,t,r;return a?({compactDirection:r,isFirstItem:e,isLastItem:t}=a,bt(n+`-compact${r="vertical"===r?"-vertical-":"-"}item`,{[n+`-compact${r}first-item`]:e,[n+`-compact${r}last-item`]:t,[n+`-compact${r}item-rtl`]:"rtl"===o})):""},[n,o,a]);return{compactSize:a?.compactSize,compactDirection:a?.compactDirection,compactItemClassnames:e}},yc=e=>{e=e.children;return ft.createElement(vc.Provider,{value:null},e)},Cc=e=>{let{children:t,...r}=e;return ft.createElement(vc.Provider,{value:ft.useMemo(()=>r,[r])},t)};var xc=ft.forwardRef((e,t)=>{var{getPrefixCls:r,direction:n}=ft.useContext(Ue);let{size:o,direction:a,orientation:l,block:i,prefixCls:s,className:c,rootClassName:d,children:u,vertical:p,...m}=e,[f,h]=hc(l,p,a),g=mc(e=>o??e),v=r("space-compact",s);var[e]=gc(v),r=bt(v,e,{[v+"-rtl"]:"rtl"===n,[v+"-block"]:i,[v+"-vertical"]:h},c,d);let b=ft.useContext(vc),y=ft.useRef(null),C=(ft.useImperativeHandle(t,()=>({nativeElement:y.current})),ke(u));e=ft.useMemo(()=>C.map((e,t)=>{var r=e?.key||v+"-item-"+t;return ft.createElement(Cc,{key:r,compactSize:g,compactDirection:f,isFirstItem:0===t&&(!b||b?.isFirstItem),isLastItem:t===C.length-1&&(!b||b?.isLastItem)},e)}),[C,b,f,g,v]);return 0===C.length?null:ft.createElement("div",{ref:y,className:r,...m},e)});let wc=ft.createContext(void 0);o=e=>{var{getPrefixCls:t,direction:r}=ft.useContext(Ue);let{prefixCls:n,size:o,className:a,...l}=e;var e=t("btn-group",n),[,,t]=so(),i=ft.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),i=bt(e,{[e+"-"+i]:i,[e+"-rtl"]:"rtl"===r},a,t);return ft.createElement(wc.Provider,{value:o},ft.createElement("div",{...l,className:i}))},a=/^[\u4E00-\u9FA5]{2}$/;let Sc=a.test.bind(a);function kc(e){return"danger"===e?{danger:!0}:{type:e}}function Ec(e){return"text"===e||"link"===e}function Nc(e,r,n,l){let o=!1,a=[];return Re().Children.forEach(e,e=>{var t,r,n=$a(e)||Ma(e);o&&n?(t=a.length-1,r=a[t],a[t]=""+r+e):a.push(e),o=n}),Re().Children.map(a,e=>{var t=r,o=n,a=l;if(Se(e)){let n=t?" ":"";return!$a(e)&&!Ma(e)&&$a(e.type)&&Sc(e.props.children)?Ss(e,e=>{var t=bt(e.className,a)||void 0,r={...o,...e.style};return{...e,children:e.children.split("").join(n),className:t,style:r}}):$a(e)?Re().createElement("span",{className:a,style:o},Sc(e)?e.split("").join(n):e):xs(e)?Re().createElement("span",{className:a,style:o},e):Ss(e,e=>({...e,className:bt(e.className,a)||void 0,style:{...e.style,...o}}))}})}["default","primary","danger"].concat(Pe(_n));var Ic=(0,ft.forwardRef)((e,t)=>{var{className:e,style:r,children:n,prefixCls:o}=e,o=bt(o+"-icon",e);return Re().createElement("span",{ref:t,className:o,style:r},n)});let Mc=(0,ft.forwardRef)((e,t)=>{var{prefixCls:e,className:r,style:n,iconClassName:o}=e,r=bt(e+"-loading-icon",r);return Re().createElement(Ic,{prefixCls:e,className:r,style:n,ref:t},Re().createElement(Al,{className:o}))}),$c=()=>({width:0,opacity:0,transform:"scale(0)"}),Rc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var Pc=e=>{let{prefixCls:n,loading:t,existIcon:r,className:o,style:a,mount:l}=e;e=!!t;return r?Re().createElement(Mc,{prefixCls:n,className:o,style:a}):Re().createElement(Na,{visible:e,motionName:n+"-loading-icon-motion",motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:$c,onAppearActive:Rc,onEnterStart:$c,onEnterActive:Rc,onLeaveStart:Rc,onLeaveActive:$c},({className:e,style:t},r)=>{t={...a,...t};return Re().createElement(Mc,{prefixCls:n,className:bt(o,e),style:t,ref:r})})};let zc=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),Bc=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),Tc=(e,t)=>({["> span, > "+e]:{"&:not(:last-child)":{["&, & > "+e]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > "+e]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Oc=e=>{var{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[t+"-group"]:[{position:"relative",display:"inline-flex",["> span, > "+t]:{"&:not(:last-child)":{["&, & > "+t]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),["&, & > "+t]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[t+"-icon-only"]:{fontSize:r}},Tc(t+"-primary",o),Tc(t+"-danger",a)]}};let Hc=e=>Math.round(Number(e||0));class Ac extends kn{constructor(e){super((r=>{if(r instanceof kn)return r;if(r&&"object"==typeof r&&"h"in r&&"b"in r){let{b:e,...t}=r;return{...t,v:e}}return"string"==typeof r&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r})(e))}toHsbString(){var e=this.toHsb(),t=Hc(100*e.s),r=Hc(100*e.b),n=Hc(e.h),e=e.a,o=`hsb(${n}, ${t}%, ${r}%)`,n=`hsba(${n}, ${t}%, ${r}%, ${e.toFixed(0===e?0:2)})`;return 1===e?o:n}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}let Dc=e=>e instanceof Ac?e:new Ac(e),Lc=Dc("#1677ff"),Fc=e=>{var{offset:e,targetRef:t,containerRef:r,color:n,type:o}=e,{width:r,height:a}=r.current.getBoundingClientRect(),{width:t,height:l}=t.current.getBoundingClientRect(),t=t/2,i=(e.x+t)/r,l=1-(e.y+l/2)/a,s=n.toHsb(),c=i,d=(e.x+t)/r*360;if(o)switch(o){case"hue":return Dc({...s,h:d<=0?0:d});case"alpha":return Dc({...s,a:c<=0?0:c})}return Dc({h:s.h,s:i<=0?0:i,b:1<=l?1:l,a:s.a})},Wc=(e,t)=>{var r=e.toHsb();switch(t){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*r.s,y:100*(1-r.b)}}};var jc=({color:e,prefixCls:t,className:r,style:n,innerClassName:o,innerStyle:a,onClick:l})=>{t+="-color-block";return Re().createElement("div",{className:bt(t,r),style:n,onClick:l},Re().createElement("div",{className:bt(t+"-inner",o),style:{background:e,...a}}))};var _c=function(e){let{targetRef:d,containerRef:u,direction:p,onDragChange:m,onDragChangeComplete:t,calculate:r,color:n,disabledDrag:o}=e,[f,a]=(0,ft.useState)({x:0,y:0}),l=(0,ft.useRef)(null),i=(0,ft.useRef)(null),s=((0,ft.useEffect)(()=>{a(r())},[n]),(0,ft.useEffect)(()=>()=>{document.removeEventListener("mousemove",l.current),document.removeEventListener("mouseup",i.current),document.removeEventListener("touchmove",l.current),document.removeEventListener("touchend",i.current),l.current=null,i.current=null},[]),e=>{e="touches"in(e=e)?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;var{pageX:t,pageY:e}={pageX:e.pageX-t,pageY:e.pageY-r},{x:r,y:n,width:o,height:a}=u.current.getBoundingClientRect(),{width:l,height:i}=d.current.getBoundingClientRect(),s=l/2,c=i/2,t=Math.max(0,Math.min(t-r,o))-s,r=Math.max(0,Math.min(e-n,a))-c,o={x:t,y:"x"===p?f.y:r};if(0===l&&0===i||l!==i)return!1;m?.(o)}),c=e=>{e.preventDefault(),s(e)},h=e=>{e.preventDefault(),document.removeEventListener("mousemove",l.current),document.removeEventListener("mouseup",i.current),document.removeEventListener("touchmove",l.current),document.removeEventListener("touchend",i.current),l.current=null,i.current=null,t?.()};return[f,e=>{document.removeEventListener("mousemove",l.current),document.removeEventListener("mouseup",i.current),o||(s(e),document.addEventListener("mousemove",c),document.addEventListener("mouseup",h),document.addEventListener("touchmove",c),document.addEventListener("touchend",h),l.current=c,i.current=h)}]},Kc=({size:e="default",color:t,prefixCls:r})=>Re().createElement("div",{className:bt(r+"-handler",{[r+"-handler-sm"]:"small"===e}),style:{backgroundColor:t}}),Vc=({children:e,style:t,prefixCls:r})=>Re().createElement("div",{className:r+"-palette",style:{position:"relative",...t}},e),Xc=(0,ft.forwardRef)((e,t)=>{var{children:e,x:r,y:n}=e;return Re().createElement("div",{ref:t,style:{position:"absolute",left:r+"%",top:n+"%",zIndex:1,transform:"translate(-50%, -50%)"}},e)}),qc=({color:t,onChange:r,prefixCls:e,onChangeComplete:n,disabled:o})=>{let a=(0,ft.useRef)(),l=(0,ft.useRef)(),i=(0,ft.useRef)(t);var s=ht(e=>{e=Fc({offset:e,targetRef:l,containerRef:a,color:t});i.current=e,r(e)}),[s,o]=_c({color:t,containerRef:a,targetRef:l,calculate:()=>Wc(t),onDragChange:s,onDragChangeComplete:()=>n?.(i.current),disabledDrag:o});return Re().createElement("div",{ref:a,className:e+"-select",onMouseDown:o,onTouchStart:o},Re().createElement(Vc,{prefixCls:e},Re().createElement(Xc,{x:s.x,y:s.y,ref:l},Re().createElement(Kc,{color:t.toRgbString(),prefixCls:e})),Re().createElement("div",{className:e+"-saturation",style:{backgroundColor:`hsl(${t.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Gc=(e,t)=>{let[r,n]=vt(e,t);return[(0,ft.useMemo)(()=>Dc(r),[r]),n]},Yc=({colors:n,children:e,direction:t="to right",type:o,prefixCls:r})=>{var a=(0,ft.useMemo)(()=>n.map((e,t)=>{let r=Dc(e);return(r="alpha"===o&&t===n.length-1?new Ac(r.setA(1)):r).toRgbString()}).join(","),[n,o]);return Re().createElement("div",{className:r+"-gradient",style:{position:"absolute",inset:0,background:`linear-gradient(${t}, ${a})`}},e)},Uc=e=>{let{prefixCls:t,colors:r,disabled:n,onChange:o,onChangeComplete:a,color:l,type:i}=e,s=(0,ft.useRef)(null),c=(0,ft.useRef)(null),d=(0,ft.useRef)(l),u=e=>"hue"===i?e.getHue():100*e.a;var e=ht(e=>{e=Fc({offset:e,targetRef:c,containerRef:s,color:l,type:i});d.current=e,o(u(e))}),[e,p]=_c({color:l,targetRef:c,containerRef:s,calculate:()=>Wc(l,i),onDragChange:e,onDragChangeComplete(){a(u(d.current))},direction:"x",disabledDrag:n}),m=Re().useMemo(()=>{var e;return"hue"===i?((e=l.toHsb()).s=1,e.b=1,e.a=1,new Ac(e)):l},[l,i]),f=Re().useMemo(()=>r.map(e=>e.color+` ${e.percent}%`),[r]);return Re().createElement("div",{ref:s,className:bt(t+"-slider",t+"-slider-"+i),onMouseDown:p,onTouchStart:p},Re().createElement(Vc,{prefixCls:t},Re().createElement(Xc,{x:e.x,y:e.y,ref:c},Re().createElement(Kc,{size:"small",color:m.toHexString(),prefixCls:t})),Re().createElement(Yc,{colors:f,type:i,prefixCls:t})))};function Qc(){return(Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let Zc=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}];var Jc=(0,ft.forwardRef)((e,t)=>{let{value:r,defaultValue:n,prefixCls:o="rc-color-picker",onChange:a,onChangeComplete:l,className:i,style:s,panelRender:c,disabledAlpha:d=!1,disabled:u=!1,components:p}=e;m=p;var m,[e]=ft.useMemo(()=>{var e=(m||{}).slider;return[e||Uc]},[m]);let[f,h]=Gc(n||Lc,r);var g=(0,ft.useMemo)(()=>f.setA(1).toRgbString(),[f]);let v=(e,t)=>{r||h(e),a?.(e,t)},b=e=>new Ac(f.setHue(e)),y=e=>new Ac(f.setA(e/100));var C=bt(o+"-panel",i,{[o+"-panel-disabled"]:u}),x={prefixCls:o,disabled:u,color:f},e=Re().createElement(Re().Fragment,null,Re().createElement(qc,Qc({onChange:v},x,{onChangeComplete:l})),Re().createElement("div",{className:o+"-slider-container"},Re().createElement("div",{className:bt(o+"-slider-group",{[o+"-slider-group-disabled-alpha"]:d})},Re().createElement(e,Qc({},x,{type:"hue",colors:Zc,min:0,max:359,value:f.getHue(),onChange:e=>{v(b(e),{type:"hue",value:e})},onChangeComplete:e=>{l&&l(b(e))}})),!d&&Re().createElement(e,Qc({},x,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:g}],min:0,max:100,value:100*f.a,onChange:e=>{v(y(e),{type:"alpha",value:e})},onChangeComplete:e=>{l&&l(y(e))}}))),Re().createElement(jc,{color:f.toRgbString(),prefixCls:o})));return Re().createElement("div",{className:C,style:s,ref:t},"function"==typeof c?c(e):e)});let ed=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",td=(()=>Pr(function r(e){var t;$r(this,r),this.cleared=!1,e instanceof r?(this.metaColor=e.metaColor.clone(),this.colors=e.colors?.map(e=>({color:new r(e.color),percent:e.percent})),this.cleared=e.cleared):((t=Array.isArray(e))&&e.length?(this.colors=e.map(({color:e,percent:t})=>({color:new r(e),percent:t})),this.metaColor=new Ac(this.colors[0].color.metaColor)):this.metaColor=new Ac(t?"":e),e&&(!t||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0))},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?ed(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){var e=this.colors;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!(!r||this.isGradient()!==r.isGradient())&&(this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((e,t)=>{t=r.colors[t];return e.percent===t.percent&&e.color.equals(t.color)}):this.toHexString()===r.toHexString())}}]))();function rd(){return(rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var nd=ft.forwardRef((e,t)=>ft.createElement(u,rd({},e,{ref:t,icon:re().A})));function od(){return(od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)!{}.hasOwnProperty.call(n,r)||(e[r]=n[r])}return e}).apply(null,arguments)}var ad=Re().forwardRef((e,t)=>{let{prefixCls:r,forceRender:n,className:o,style:a,children:l,isActive:i,role:s,classNames:c,styles:d}=e,[u,p]=Re().useState(i||n);return Re().useEffect(()=>{(n||i)&&p(!0)},[n,i]),u?Re().createElement("div",{ref:t,className:bt(r+"-panel",{[r+"-panel-active"]:i,[r+"-panel-inactive"]:!i},o),style:a,role:s},Re().createElement("div",{className:bt(r+"-body",c?.body),style:d?.body},l)):null}),ld=Re().forwardRef((e,t)=>{let{showArrow:r=!0,headerClass:n,isActive:o,onItemClick:a,forceRender:l,className:i,classNames:s={},styles:c={},prefixCls:d,collapsible:u,accordion:p,panelKey:m,extra:f,header:h,expandIcon:g,openMotion:v,destroyOnHidden:b,children:y,...C}=e;var x="disabled"===u,w=null!=f&&"boolean"!=typeof f,S={onClick:()=>{a?.(m)},onKeyDown:e=>{"Enter"!==e.key&&e.keyCode!==Ce.ENTER&&e.which!==Ce.ENTER||a?.(m)},role:p?"tab":"button","aria-expanded":o,"aria-disabled":x,tabIndex:x?-1:0},e="function"==typeof g?g(e):Re().createElement("i",{className:"arrow"}),e=e&&Re().createElement("div",od({className:bt(d+"-expand-icon",s?.icon),style:c?.icon},["header","icon"].includes(u)?S:{}),e),x=bt(d+"-item",{[d+"-item-active"]:o,[d+"-item-disabled"]:x},i),k={className:bt(n,d+"-header",{[d+"-collapsible-"+u]:!!u},s?.header),style:c?.header,...["header","icon"].includes(u)?{}:S};return Re().createElement("div",od({},C,{ref:t,className:x}),Re().createElement("div",k,r&&e,Re().createElement("span",od({className:bt(d+"-title",s?.title),style:c?.title},"header"===u?S:{}),h),w&&Re().createElement("div",{className:d+"-extra"},f)),Re().createElement(Na,od({visible:o,leavedClassName:d+"-panel-hidden"},v,{forceRender:l,removeOnLeave:b}),({className:e,style:t},r)=>Re().createElement(ad,{ref:r,prefixCls:d,className:e,classNames:s,style:t,styles:c,isActive:o,forceRender:l,role:p?"tabpanel":void 0},y)))});function id(t,r,n){if(!t||!r)return t||r;var e=Array.from(new Set([...Object.keys(t),...Object.keys(r)]));let o={};return e.forEach(e=>{o[e]=n(t[e],r[e])}),o}let sd=(e,t)=>{let{prefixCls:m,accordion:f,collapsible:h,destroyOnHidden:g,onItemClick:v,activeKey:b,openMotion:y,expandIcon:C,classNames:x,styles:w}=t;return e.map((e,t)=>{let{children:r,label:n,key:o,collapsible:a,onItemClick:l,destroyOnHidden:i,classNames:s,styles:c,...d}=e;e=String(o??t);let u=a??h;t=i??g;let p=!1;return p=f?b[0]===e:-1<b.indexOf(e),Re().createElement(ld,od({},d,{classNames:id(x,s,(e,t)=>vr(e,t)),styles:id(w,c,(e,t)=>({...e,...t})),prefixCls:m,key:e,panelKey:e,isActive:p,accordion:f,openMotion:y,expandIcon:C,header:n,collapsible:u,onItemClick:e=>{"disabled"!==u&&(v(e),l?.(e))},destroyOnHidden:t}),r)})},cd=(e,t,r)=>{if(!e)return null;let{prefixCls:n,accordion:o,collapsible:a,destroyOnHidden:l,onItemClick:i,activeKey:s,openMotion:c,expandIcon:d,classNames:u,styles:p}=r;r=e.key||String(t);let{header:m,headerClass:f,destroyOnHidden:h,collapsible:g,onItemClick:v}=e.props,b=!1,y=(b=o?s[0]===r:-1<s.indexOf(r),g??a);let C={key:r,panelKey:r,header:m,headerClass:f,classNames:u,styles:p,isActive:b,prefixCls:n,destroyOnHidden:h??l,openMotion:c,accordion:o,children:e.props.children,onItemClick:e=>{"disabled"!==y&&(i(e),v?.(e))},expandIcon:d,collapsible:y};return"string"==typeof e.type?e:(Object.keys(C).forEach(e=>{void 0===C[e]&&delete C[e]}),Re().cloneElement(e,C))};var dd=function(e,t,r){return Array.isArray(e)?sd(e,r):ke(t).map((e,t)=>cd(e,t,r))};function ud(e){let t=e;return Array.isArray(t)||(e=typeof t,t="number"==e||"string"==e?[t]:[]),t.map(e=>String(e))}var Fn=Re().forwardRef((e,t)=>{let{prefixCls:r="rc-collapse",destroyOnHidden:n=!1,style:o,accordion:a,className:l,children:i,collapsible:s,openMotion:c,expandIcon:d,activeKey:u,defaultActiveKey:p,onChange:m,items:f,classNames:h,styles:g}=e;var v=bt(r,l);let[b,y]=vt(p,u),C=ud(b),x=ht(e=>{e=ud(e);y(e),m?.(e)});(0,Te.Ay)(!i,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=dd(f,i,{prefixCls:r,accordion:a,openMotion:c,expandIcon:d,collapsible:s,destroyOnHidden:n,onItemClick:t=>{a?x(C[0]===t?[]:[t]):x(C.includes(t)?C.filter(e=>e!==t):[...C,t])},activeKey:C,classNames:h,styles:g});return Re().createElement("div",od({ref:t,className:v,style:o,role:a?"tablist":void 0},Jt(e,{aria:!0,data:!0})),w)}),l=Object.assign(Fn,{Panel:ld}),pd=l,{}=l,i=ft.forwardRef((e,t)=>{var r=ft.useContext(Ue).getPrefixCls,{prefixCls:n,className:o,showArrow:a=!0}=e,r=r("collapse",n),n=bt({[r+"-no-arrow"]:!a},o);return ft.createElement(pd.Panel,{ref:t,...e,prefixCls:r,className:n})}),md=e=>{let{componentCls:t,antCls:r,motionDurationMid:n,motionEaseInOut:o}=e;return{[t]:{[r+"-motion-collapse-legacy"]:{overflow:"hidden","&-active":{transition:["height","opacity"].map(e=>`${e} ${n} `+o).join(", ")+" !important"}},[r+"-motion-collapse"]:{overflow:"hidden",transition:["height","opacity"].map(e=>`${e} ${n} `+o).join(", ")+" !important"}}}};var fd=Be("Collapse",e=>{e=ze(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[(e=>{var{componentCls:t,contentBg:r,padding:n,headerBg:o,headerPadding:a,headerPaddingSM:l,headerPaddingLG:i,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:m,colorTextDisabled:f,fontSizeLG:h,lineHeight:g,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:C,paddingXS:x,motionDurationSlow:w,fontSizeIcon:S,contentPadding:k,contentPaddingSM:E,contentPaddingLG:N,fontHeight:I,fontHeightLG:M}=e,c=(0,Qe.unit)(c)+` ${d} `+u;return{[t]:{...F(e),backgroundColor:o,border:c,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:c,"&:first-child":{[`
&,
& > ${t}-header`]:{borderRadius:`${(0,Qe.unit)(s)} ${(0,Qe.unit)(s)} 0 0`}},"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${(0,Qe.unit)(s)} `+(0,Qe.unit)(s)}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:m,lineHeight:g,cursor:"pointer",transition:`all ${w}, visibility 0s`,...un(e),[`> ${t}-title`]:{flex:"auto"},[t+"-expand-icon"]:{height:I,display:"flex",alignItems:"center",marginInlineEnd:b},[t+"-arrow"]:{...ln(),fontSize:S,transition:"transform "+w,svg:{transition:"transform "+w}},[t+"-title"]:{marginInlineEnd:"auto","> svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}}},[t+"-collapsible-header"]:{cursor:"default",[t+"-title"]:{flex:"none",cursor:"pointer"},[t+"-expand-icon"]:{cursor:"pointer"}},[t+"-collapsible-icon"]:{cursor:"unset",[t+"-expand-icon"]:{cursor:"pointer"}}},[t+"-panel"]:{color:p,backgroundColor:r,borderTop:c,[`& > ${t}-body`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:v,[`> ${t}-header`]:{padding:i,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc(C).sub(n).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:N}}},[t+"-item:last-child"]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${(0,Qe.unit)(s)} `+(0,Qe.unit)(s)}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:f,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[t+"-expand-icon"]:{order:1,marginInlineEnd:0,marginInlineStart:b}}}}}}})(e),(e=>{var{componentCls:t,headerBg:r,borderlessContentPadding:n,borderlessContentBg:o,colorBorder:a}=e;return{[t+"-borderless"]:{backgroundColor:r,border:0,[`> ${t}-item`]:{borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+a},[`
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:n}}}})(e),(e=>{var{componentCls:e,paddingSM:t}=e;return{[e+"-ghost"]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-panel`]:{backgroundColor:"transparent",border:0,[`> ${e}-body`]:{paddingBlock:t}}}}}})(e),(e=>{e=e.componentCls;return{[e+"-rtl"]:{[`> ${e}-item > ${e}-header ${e}-arrow`]:{transform:"rotate(180deg)"}}}})(e),md(e)]},e=>({headerPadding:(0,Qe.unit)(e.paddingSM)+" "+(0,Qe.unit)(e.padding),headerPaddingSM:`${(0,Qe.unit)(e.paddingXS)} ${(0,Qe.unit)(e.paddingSM)} ${(0,Qe.unit)(e.paddingXS)} `+(0,Qe.unit)(e.paddingXS),headerPaddingLG:`${(0,Qe.unit)(e.padding)} ${(0,Qe.unit)(e.paddingLG)} ${(0,Qe.unit)(e.padding)} `+(0,Qe.unit)(e.padding),headerBg:e.colorFillAlter,contentPadding:(0,Qe.unit)(e.padding)+" "+(0,Qe.unit)(16),contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${(0,Qe.unit)(e.paddingXXS)} ${(0,Qe.unit)(16)} `+(0,Qe.unit)(e.padding),borderlessContentBg:"transparent"})),s=ft.forwardRef((e,t)=>{let{getPrefixCls:r,direction:n,expandIcon:o,className:a,style:l,classNames:i,styles:s}=Fe("collapse"),{prefixCls:c,className:d,rootClassName:u,style:p,bordered:m=!0,ghost:f,size:h,expandIconPlacement:g,expandIconPosition:v,children:b,destroyInactivePanel:y,destroyOnHidden:C,expandIcon:x,classNames:w,styles:S}=e;var k=mc(e=>h??e??"middle");let E=r("collapse",c),N=r();var[I,M]=fd(E),$=g??v??"start",R={...e,size:k,bordered:m,expandIconPlacement:$},P=We(l),z=We(p),[P,z]=je([i,w],[s,P,S,z],{props:R});let B=x??o;R=ft.useCallback((e={})=>{var t="header"===e.collapsible||"icon"===e.collapsible;return Ss(Je(B)?B(e):ft.createElement(nd,{rotate:e.isActive?"rtl"===n?-90:90:void 0,...t?{"aria-label":e.isActive?"expanded":"collapsed"}:{"aria-hidden":!0}}),e=>({className:bt(e.className,E+"-arrow")}))},[B,E,n]),$=bt(E+"-icon-placement-"+$,{[E+"-borderless"]:!m,[E+"-rtl"]:"rtl"===n,[E+"-ghost"]:!!f,[E+"-large"]:"large"===k,[E+"-small"]:"small"===k},a,d,u,I,M,P.root),k=ft.useMemo(()=>({...rc(N),motionAppear:!1,leavedClassName:E+"-panel-hidden"}),[N,E]),I=ft.useMemo(()=>b?ke(b).map(e=>e):null,[b]);return ft.createElement(pd,{ref:t,openMotion:k,...at(e,["rootClassName"]),expandIcon:R,prefixCls:E,className:$,style:z.root,classNames:P,styles:z,destroyOnHidden:C??y},I)}),hd=Object.assign(s,{Panel:i});let gd=e=>e instanceof td?e:new td(e),vd=e=>Math.round(Number(e||0)),bd=e=>vd(100*e.toHsb().a),yd=(e,t)=>{var r=e.toRgb();return r.r||r.g||r.b?r.a=t||1:(r=e.toHsb()).a=t||1,gd(r)},Cd=(e,t)=>{var r=[{percent:0,color:e[0].color}].concat(Pe(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<r.length-1;e+=1){var n=r[e].percent,o=r[e+1].percent,a=r[e].color,l=r[e+1].color;if(n<=t&&t<=o)return 0==(o=o-n)?a:(n=(t-n)/o*100,o=new Ac(a),a=new Ac(l),o.mix(a,n).toRgbString())}return""},xd=e=>e.map(e=>(e.colors=e.colors.map(gd),e)),wd=(e,t)=>{var{r,g:n,b:o,a}=e.toRgb(),e=new Ac(e.toRgbString()).onBackground(t).toHsv();return a<=.5?.5<e.v:192<.299*r+.587*n+.114*o},Sd=(e,t)=>"panel-"+(e.key??t);var kd=({prefixCls:n,presets:e,value:o,onChange:a})=>{let[r]=nc("ColorPicker"),[,l]=so(),t=(0,ft.useMemo)(()=>xd(e),[e]),i=n+"-presets";var s=(0,ft.useMemo)(()=>t.reduce((e,t,r)=>{var{defaultOpen:n=!0}=t;return n&&e.push(Sd(t,r)),e},[]),[t]);var c=t.map((e,t)=>({key:Sd(e,t),label:Re().createElement("div",{className:i+"-label"},e?.label),children:Re().createElement("div",{className:i+"-items"},Array.isArray(e?.colors)&&0<e.colors?.length?e.colors.map((t,e)=>{var r=gd(t);return Re().createElement(jc,{key:`preset-${e}-`+t.toHexString(),color:r.toCssString(),prefixCls:n,className:bt(i+"-color",{[i+"-color-checked"]:t.toCssString()===o?.toCssString(),[i+"-color-bright"]:wd(t,l.colorBgElevated)}),onClick:()=>{var e;e=t,a?.(e)}})}):Re().createElement("span",{className:i+"-empty"},r.presetEmpty))}));return Re().createElement("div",{className:i},Re().createElement(hd,{defaultActiveKey:s,ghost:!0,items:c}))};let Ed=e=>{var{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return ze(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})};var c=r=>{var e=r.contentFontSize??r.fontSize,t=r.contentFontSizeSM??r.fontSize,n=r.contentFontSizeLG??r.fontSizeLG,o=r.contentLineHeight??qn(e),a=r.contentLineHeightSM??qn(t),l=r.contentLineHeightLG??qn(n),i=wd(new td(r.colorBgSolid),"#fff")?"#000":"#fff",s=_n.reduce((e,t)=>({...e,[t+"ShadowColor"]:`0 ${(0,Qe.unit)(r.controlOutlineWidth)} 0 `+ro(r[t+"1"],r.colorBgContainer)}),{}),c=r.colorBgContainerDisabled,d=r.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:r.marginXS,defaultShadow:`0 ${r.controlOutlineWidth}px 0 `+r.controlTmpOutline,primaryShadow:`0 ${r.controlOutlineWidth}px 0 `+r.controlOutline,dangerShadow:`0 ${r.controlOutlineWidth}px 0 `+r.colorErrorOutline,primaryColor:r.colorTextLightSolid,dangerColor:r.colorTextLightSolid,borderColorDisabled:r.colorBorderDisabled,defaultGhostColor:r.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:r.colorBgContainer,paddingInline:r.paddingContentHorizontal-r.lineWidth,paddingInlineLG:r.paddingContentHorizontal-r.lineWidth,paddingInlineSM:8-r.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:r.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:r.colorText,textTextHoverColor:r.colorText,textTextActiveColor:r.colorText,textHoverBg:r.colorFillTertiary,defaultColor:r.colorText,defaultBg:r.colorBgContainer,defaultBorderColor:r.colorBorder,defaultBorderColorDisabled:r.colorBorder,defaultHoverBg:r.colorBgContainer,defaultHoverColor:r.colorPrimaryHover,defaultHoverBorderColor:r.colorPrimaryHover,defaultActiveBg:r.colorBgContainer,defaultActiveColor:r.colorPrimaryActive,defaultActiveBorderColor:r.colorPrimaryActive,solidTextColor:i,contentFontSize:e,contentFontSizeSM:t,contentFontSizeLG:n,contentLineHeight:o,contentLineHeightSM:a,contentLineHeightLG:l,paddingBlock:Math.max((r.controlHeight-e*o)/2-r.lineWidth,0),paddingBlockSM:Math.max((r.controlHeightSM-t*a)/2-r.lineWidth,0),paddingBlockLG:Math.max((r.controlHeightLG-n*l)/2-r.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:d}},Nd=s=>{let{componentCls:c,antCls:e,lineWidth:t,lineType:r}=s,[d,n]=Q(e,"btn");return{[c]:[{[d("border-width")]:t,[d("border-color")]:"#000",[d("border-color-hover")]:n("border-color"),[d("border-color-active")]:n("border-color"),[d("border-color-disabled")]:n("border-color"),[d("border-style")]:r,[d("text-color")]:"#000",[d("text-color-hover")]:n("text-color"),[d("text-color-active")]:n("text-color"),[d("text-color-disabled")]:n("text-color"),[d("bg-color")]:"#ddd",[d("bg-color-hover")]:n("bg-color"),[d("bg-color-active")]:n("bg-color"),[d("bg-color-disabled")]:s.colorBgContainerDisabled,[d("bg-color-container")]:s.colorBgContainer,[d("shadow")]:"none"},{border:[n("border-width"),n("border-style"),n("border-color")].join(" "),color:n("text-color"),backgroundColor:n("bg-color"),[`&:not(:disabled):not(${c}-disabled)`]:{"&:hover":{border:[n("border-width"),n("border-style"),n("border-color-hover")].join(" "),color:n("text-color-hover"),backgroundColor:n("bg-color-hover")},"&:active":{border:[n("border-width"),n("border-style"),n("border-color-active")].join(" "),color:n("text-color-active"),backgroundColor:n("bg-color-active")}}},{[`&${c}-variant-solid`]:{[d("solid-bg-color")]:n("color-base"),[d("solid-bg-color-hover")]:n("color-hover"),[d("solid-bg-color-active")]:n("color-active"),[d("border-color")]:"transparent",[d("text-color")]:s.colorTextLightSolid,[d("bg-color")]:n("solid-bg-color"),[d("bg-color-hover")]:n("solid-bg-color-hover"),[d("bg-color-active")]:n("solid-bg-color-active"),boxShadow:n("shadow")},[`&${c}-variant-outlined, &${c}-variant-dashed`]:{[d("border-color")]:n("color-base"),[d("border-color-hover")]:n("color-hover"),[d("border-color-active")]:n("color-active"),[d("bg-color")]:n("bg-color-container"),[d("text-color")]:n("color-base"),[d("text-color-hover")]:n("color-hover"),[d("text-color-active")]:n("color-active"),boxShadow:n("shadow")},[`&${c}-variant-dashed`]:{[d("border-style")]:"dashed",[d("bg-color-disabled")]:s.dashedBgDisabled},[`&${c}-variant-filled`]:{[d("border-color")]:"transparent",[d("text-color")]:n("color-base"),[d("bg-color")]:n("color-light"),[d("bg-color-hover")]:n("color-light-hover"),[d("bg-color-active")]:n("color-light-active")},[`&${c}-variant-text, &${c}-variant-link`]:{[d("border-color")]:"transparent",[d("text-color")]:n("color-base"),[d("text-color-hover")]:n("color-hover"),[d("text-color-active")]:n("color-active"),[d("bg-color")]:"transparent",[d("bg-color-hover")]:"transparent",[d("bg-color-active")]:"transparent",[`&:disabled, &${s.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${c}-variant-text`]:{[d("bg-color-hover")]:n("color-light"),[d("bg-color-active")]:n("color-light-active")}},{[`&${c}-variant-link`]:{[d("color-base")]:s.colorLink,[d("color-hover")]:s.colorLinkHover,[d("color-active")]:s.colorLinkActive,[d("bg-color-hover")]:s.linkHoverBg},[`&${c}-color-primary`]:{[d("color-base")]:s.colorPrimary,[d("color-hover")]:s.colorPrimaryHover,[d("color-active")]:s.colorPrimaryActive,[d("color-light")]:s.colorPrimaryBg,[d("color-light-hover")]:s.colorPrimaryBgHover,[d("color-light-active")]:s.colorPrimaryBorder,[d("shadow")]:s.primaryShadow,[`&${c}-variant-solid`]:{[d("text-color")]:s.primaryColor,[d("text-color-hover")]:n("text-color"),[d("text-color-active")]:n("text-color")}},[`&${c}-color-dangerous`]:{[d("color-base")]:s.colorError,[d("color-hover")]:s.colorErrorHover,[d("color-active")]:s.colorErrorActive,[d("color-light")]:s.colorErrorBg,[d("color-light-hover")]:s.colorErrorBgFilledHover,[d("color-light-active")]:s.colorErrorBgActive,[d("shadow")]:s.dangerShadow,[`&${c}-variant-solid`]:{[d("text-color")]:s.dangerColor,[d("text-color-hover")]:n("text-color"),[d("text-color-active")]:n("text-color")}},[`&${c}-color-default`]:{[d("solid-bg-color")]:s.colorBgSolid,[d("solid-bg-color-hover")]:s.colorBgSolidHover,[d("solid-bg-color-active")]:s.colorBgSolidActive,[d("color-base")]:s.defaultBorderColor,[d("color-hover")]:s.defaultHoverBorderColor,[d("color-active")]:s.defaultActiveBorderColor,[d("color-light")]:s.colorFillTertiary,[d("color-light-hover")]:s.colorFillSecondary,[d("color-light-active")]:s.colorFill,[d("text-color")]:s.defaultColor,[d("text-color-hover")]:s.defaultHoverColor,[d("text-color-active")]:s.defaultActiveColor,[d("shadow")]:s.defaultShadow,[`&${c}-variant-outlined`]:{[d("bg-color-disabled")]:s.defaultBgDisabled},[`&${c}-variant-solid`]:{[d("text-color")]:s.solidTextColor,[d("text-color-hover")]:n("text-color"),[d("text-color-active")]:n("text-color")},[`&${c}-variant-filled, &${c}-variant-text`]:{[d("text-color-hover")]:n("text-color"),[d("text-color-active")]:n("text-color")},[`&${c}-variant-outlined, &${c}-variant-dashed`]:{[d("text-color")]:s.defaultColor,[d("text-color-hover")]:s.defaultHoverColor,[d("text-color-active")]:s.defaultActiveColor,[d("bg-color-container")]:s.defaultBg,[d("bg-color-hover")]:s.defaultHoverBg,[d("bg-color-active")]:s.defaultActiveBg},[`&${c}-variant-text`]:{[d("text-color")]:s.textTextColor,[d("text-color-hover")]:s.textTextHoverColor,[d("text-color-active")]:s.textTextActiveColor,[d("bg-color-hover")]:s.textHoverBg},[`&${c}-background-ghost`]:{[`&${c}-variant-outlined, &${c}-variant-dashed`]:{[d("text-color")]:s.defaultGhostColor,[d("border-color")]:s.defaultGhostBorderColor}}}},_n.map(e=>{var t=s[e+"6"],r=s[e+"1"],n=s[e+"Hover"],o=s[e+"2"],a=s[e+"3"],l=s[e+"Active"],i=s[e+"ShadowColor"];return{[`&${c}-color-`+e]:{[d("color-base")]:t,[d("color-hover")]:n,[d("color-active")]:l,[d("color-light")]:r,[d("color-light-hover")]:o,[d("color-light-active")]:a,[d("shadow")]:i}}}),{[`&:disabled, &${s.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:s.colorBorderDisabled,background:n("bg-color-disabled"),color:s.colorTextDisabled,boxShadow:"none"}},{[`&${c}-background-ghost`]:{[d("bg-color")]:s.ghostBg,[d("bg-color-hover")]:s.ghostBg,[d("bg-color-active")]:s.ghostBg,[d("shadow")]:"none",[`&${c}-variant-outlined, &${c}-variant-dashed`]:{[d("bg-color-hover")]:s.ghostBg,[d("bg-color-active")]:s.ghostBg}}}]}};let Id=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Md=(e,t="")=>{var{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:l,iconCls:i,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:(0,Qe.unit)(s)+" "+(0,Qe.unit)(l),borderRadius:a,[`&${r}-icon-only`]:{width:n,[i]:{fontSize:c}}}},{[""+r+r+"-circle"+t]:Id(e)},{[""+r+r+"-round"+t]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]};var $d=Be("Button",e=>{var t,r,e=Ed(e);return[(e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:l,iconGap:i,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:i,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} `+e.motionEaseInOut,userSelect:"none",touchAction:"manipulation",...zc(),"&:disabled > *":{pointerEvents:"none"},[t+"-icon > svg"]:ln(),[t+"-icon"]:{display:"inline-flex",alignItems:"center",[r]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":un(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[t+"-loading-icon"]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} `+l).join(",")},[`&:not(${t}-icon-end)`]:{[t+"-loading-icon-motion"]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:s(i).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(i).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[t+"-loading-icon-motion"]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:s(i).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(i).mul(-1).equal()}}}}}})(e),(r=ze(t=e,{fontSize:t.contentFontSize}),Md(r,t.componentCls)),(t=ze(r=e,{controlHeight:r.controlHeightSM,fontSize:r.contentFontSizeSM,padding:r.paddingXS,buttonPaddingHorizontal:r.paddingInlineSM,buttonPaddingVertical:0,borderRadius:r.borderRadiusSM,buttonIconOnlyFontSize:r.onlyIconSizeSM}),Md(t,r.componentCls+"-sm")),(r=ze(t=e,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG}),Md(r,t.componentCls+"-lg")),(e=>{e=e.componentCls;return{[e]:{[`&${e}-block`]:{width:"100%"}}}})(e),Nd(e),Oc(e)]},c,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rd(e,t={focus:!0}){var r=e.componentCls,n=t.componentCls,n=n||r,r=n+"-compact";return{[r]:{...((e,t,r,n)=>{var{focusElCls:r,focus:o,borderElCls:a}=r;let l=(a=a?"> *":"")?" "+a:"";var i=(s=e=>e.filter(Boolean).map(e=>"&:"+e+l).join(","))(["hover",r?"hover"+r:null]),s=s([o?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{[s]:{zIndex:3},[i]:{zIndex:4},...r?{["&"+r]:{zIndex:3}}:{},["&[disabled] "+a]:{zIndex:0}}}})(e,r,t,n),...(e=n,n=r,r=t,r=r.borderElCls,{[`&-item:not(${n}-first-item):not(${n}-last-item) `+(r=r?"> "+r:"")]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg `+r]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg `+r]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}}}var Pd=uo(["Button","compact"],e=>{var t,r,n,o,a,e=Ed(e);return[Rd(e),{[a=(t=e).componentCls+"-compact-vertical"]:{...(r=t,n=a,o=t.componentCls,{[`&-item:not(${n}-last-item)`]:{marginBottom:r.calc(r.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}),...(n=t.componentCls,r=a,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}},(e=>{let{antCls:t,componentCls:r,lineWidth:n,calc:o,colorBgContainer:a}=e,l=r+"-variant-solid:not([disabled])",i=o(n).mul(-1).equal(),[s,c]=Q(t,"btn");e=e=>({[r+`-compact${e?"-vertical":""}-item`]:{[s("compact-connect-border-color")]:c("bg-color-hover"),["&"+l]:{transition:"none",[`& + ${l}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:i,insetInline:i,height:n}:{insetBlock:i,insetInlineStart:i,width:n}],"&:hover:before":{display:"none"}}}});return[e(),e(!0),{[l+r+"-color-default"]:{[s("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${a})`}}]})(e)]},c);let zd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]};var d=Re().forwardRef((t,e)=>{let{_skipSemantic:H,loading:r=!1,prefixCls:A,color:n,variant:o,type:a,danger:l=!1,shape:D,size:L,disabled:F,className:W,rootClassName:j,children:i,icon:s,iconPosition:_,iconPlacement:K,ghost:c=!1,block:V=!1,htmlType:X="button",classNames:q,styles:G,style:Y,autoInsertSpace:U,autoFocus:Q,...Z}=t;var d=ke(i);let u=a||"default",{getPrefixCls:J,direction:ee,autoInsertSpace:te,className:re,style:ne,classNames:oe,styles:ae,loadingIcon:le,shape:ie,color:p,variant:m}=Fe("button");var f=D||ie||"default";let[h,g]=(0,ft.useMemo)(()=>{var e;return n&&o?[n,o]:a||l?(e=zd[u]||[],l?["danger",e[1]]:e):"solid"===o?["primary",o]:p&&m?[p,m]:"solid"===m?["primary",m]:["default","outlined"]},[n,o,a,l,p,m,u]);var[v,b]=(0,ft.useMemo)(()=>c&&"solid"===g?[h,"outlined"]:[h,g],[h,g,c]),y="danger"===v,C=y?"dangerous":v;let x=U??te??!0,w=J("btn",A);var[S,k]=$d(w),E=(0,ft.useContext)($s);let N=F??E,se=(0,ft.useContext)(wc),I=(0,ft.useMemo)(()=>{return e=r,Ze(e)?(t=e?.delay,{loading:(t=Ma(t)?t:0)<=0,delay:t}):{loading:!!e,delay:0};var e,t},[r]),[M,ce]=lt(I.loading),[$,de]=(0,ft.useState)(!1),R=(0,ft.useRef)(null);E=wt(e,R);let ue=1===d.length&&!s&&!Ec(b),P=(0,ft.useRef)(!0);Re().useEffect(()=>(P.current=!1,()=>{P.current=!0}),[]),gt(()=>{0<I.delay?ce(!0,{ms:I.delay}):ce(I.loading,!0)},[I.delay,I.loading]),(0,ft.useEffect)(()=>{var e;R.current&&x&&(e=R.current.textContent||"",ue&&Sc(e)?$||de(!0):$&&de(!1))}),(0,ft.useEffect)(()=>{Q&&R.current?.focus()},[]);e=Re().useCallback(e=>{M||N?e.preventDefault():t.onClick?.((0 in t,e))},[t.onClick,M,N]);let{compactSize:pe,compactItemClassnames:me}=bc(w,ee);var d=mc(e=>L??pe??se??e),fe=M?"loading":s,he=K??_??"start",z=at(Z,["navigate"]),v={...t,type:u,color:v,variant:b,danger:y,shape:f,size:d,disabled:N,loading:M,iconPlacement:he},y=We(ne),B=We(Y),[y,B]=je([H?void 0:oe,q],[H?void 0:ae,y,G,B],{props:v}),v=bt(w,S,k,{[w+"-"+f]:"default"!==f&&"square"!==f&&f,[w+"-"+u]:u,[w+"-dangerous"]:l,[w+"-color-"+C]:C,[w+"-variant-"+b]:b,[w+"-lg"]:"large"===d,[w+"-sm"]:"small"===d,[w+"-icon-only"]:!i&&0!==i&&!!fe,[w+"-background-ghost"]:c&&!Ec(b),[w+"-loading"]:M,[w+"-two-chinese-chars"]:$&&x&&!M,[w+"-block"]:V,[w+"-rtl"]:"rtl"===ee,[w+"-icon-end"]:"end"===he},me,W,j,re,y.root);let ge={className:y.icon,style:B.icon};S=e=>Re().createElement(Ic,{prefixCls:w,...ge},e),k=Re().createElement(Pc,{existIcon:!!s,prefixCls:w,loading:M,mount:P.current,...ge}),f=Ze(r)&&r.icon||le;let T;T=s&&!M?S(s):r&&f?S(f):k;C=Se(i)?Nc(i,ue&&x,B.content,y.content):null;if(void 0!==z.href)return Re().createElement("a",{...z,className:bt(v,{[w+"-disabled"]:N}),href:N?void 0:z.href,style:B.root,onClick:e,ref:E,tabIndex:N?-1:0,"aria-disabled":N},T,C);let O=Re().createElement("button",{...Z,type:X,className:v,style:B.root,onClick:e,disabled:N,ref:E},T,C,me&&Re().createElement(Pd,{prefixCls:w}));return O=Ec(b)?O:Re().createElement(pc,{component:"Button",disabled:M},O)}),Bd=(d.Group=o,d.__ANT_BUTTON=!0,d),Td=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:a,autoFocus:l,emitEvent:i,isSilent:s,quitOnNullishReturnValue:c,actionFn:d}=e,u=ft.useRef(!1),p=ft.useRef(null),[m,f]=Ge(!1),h=(...e)=>{a?.(...e)};ft.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{p.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[l]);return ft.createElement(Bd,{...kc(t),onClick:t=>{if(!u.current)if(u.current=!0,d){let e;if(i){if(e=d(t),c&&!Ra(e))return u.current=!1,void h(t)}else if(d.length)e=d(a),u.current=!1;else if(e=d(),!Ra(e))return void h();t=e,Ra(t)&&(f(!0),t.then((...e)=>{f(!1,!0),h.apply(void 0,e),u.current=!1},e=>{if(f(!1,!0),u.current=!1,!s?.())return Promise.reject(e)}))}else h()},loading:m,prefixCls:n,...o,ref:p},r)};let Od=Re().createContext({}),Hd=Od.Provider;var Ad=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:o,rootPrefixCls:a,close:l,onCancel:i,onConfirm:s,onClose:c}=(0,ft.useContext)(Od);return o?Re().createElement(Td,{isSilent:n,actionFn:i,close:(...e)=>{l?.(...e),s?.(!1),c?.()},autoFocus:"cancel"===e,buttonProps:t,prefixCls:a+"-btn"},r):null},Dd=()=>{let{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:o,okTextLocale:a,okType:l,onConfirm:i,onOk:s,onClose:c}=(0,ft.useContext)(Od);return Re().createElement(Td,{isSilent:r,type:l||"primary",actionFn:s,close:(...e)=>{t?.(...e),i?.(!0),c?.()},autoFocus:"ok"===e,buttonProps:n,prefixCls:o+"-btn"},a)};let Ld=ft.createContext({});function Fd(e,t,r){let n=t;return n=!n&&r?e+"-"+r:n}function Wd(e,t){let r=e[`page${t?"Y":"X"}Offset`];t="scroll"+(t?"Top":"Left");return r="number"!=typeof r&&(e=e.document,"number"!=typeof(r=e.documentElement[t]))?e.body[t]:r}var jd=ft.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function _d(){return(_d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Kd=Re().forwardRef((e,t)=>{let{prefixCls:r,className:n,style:o,title:a,ariaId:l,footer:i,closable:s,closeIcon:c,onClose:d,children:u,bodyStyle:p,bodyProps:m,modalRender:f,onMouseDown:h,onMouseUp:g,holderRef:v,visible:b,forceRender:y,width:C,height:x,classNames:w,styles:S,isFixedPos:k,focusTrap:E}=e;e=Re().useContext(Ld).panel;let N=(0,ft.useRef)(null);e=wt(v,e,N);let[I]=Ot(b&&k&&!1!==E,()=>N.current);Re().useImperativeHandle(t,()=>({focus:()=>{N.current?.focus({preventScroll:!0})}}));var t={},M=(void 0!==C&&(t.width=C),void 0!==x&&(t.height=x),i?Re().createElement("div",{className:bt(r+"-footer",w?.footer),style:{...S?.footer}},i):null),$=a?Re().createElement("div",{className:bt(r+"-header",w?.header),style:{...S?.header}},Re().createElement("div",{className:bt(r+"-title",w?.title),id:l,style:{...S?.title}},a)):null,R=(0,ft.useMemo)(()=>"object"==typeof s&&null!==s?s:s?{closeIcon:c??Re().createElement("span",{className:r+"-close-x"})}:{},[s,c,r]),P=Jt(R,!0),z="object"==typeof s&&s.disabled,P=s?Re().createElement("button",_d({type:"button",onClick:d,"aria-label":"Close"},P,{className:bt(r+"-close",w?.close),disabled:z,style:S?.close}),R.closeIcon):null,z=Re().createElement("div",{className:bt(r+"-container",w?.container),style:S?.container},P,$,Re().createElement("div",_d({className:bt(r+"-body",w?.body),style:{...p,...S?.body}},m),u),M);return Re().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:e,style:{...o,...t},className:bt(r,n),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{I(e.target)}},Re().createElement(jd,{shouldUpdate:b||y},f?f(z):z))});function Vd(){return(Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Xd=ft.forwardRef((n,e)=>{let{prefixCls:o,title:a,style:l,className:i,visible:t,forceRender:r,destroyOnHidden:s,motionName:c,ariaId:d,onVisibleChanged:u,mousePosition:p}=n,m=(0,ft.useRef)(null),f=(0,ft.useRef)(null),[h,g]=(ft.useImperativeHandle(e,()=>({...f.current,inMotion:m.current.inMotion,enableMotion:m.current.enableMotion})),ft.useState()),v={};function b(){var e,t;m.current?.nativeElement&&(e=m.current.nativeElement,t={left:(t=e.getBoundingClientRect()).left,top:t.top},e=(e=e.ownerDocument).defaultView||e.parentWindow,t.left+=Wd(e),t.top+=Wd(e,!0),e=t,g(p&&(p.x||p.y)?`${p.x-e.left}px ${p.y-e.top}px`:""))}return h&&(v.transformOrigin=h),ft.createElement(Na,{visible:t,onVisibleChanged:u,onAppearPrepare:b,onEnterPrepare:b,forceRender:r,motionName:c,removeOnLeave:s,ref:m},({className:e,style:t},r)=>ft.createElement(Kd,Vd({},n,{ref:f,title:a,ariaId:d,prefixCls:o,holderRef:r,style:{...t,...l,...v},className:bt(i,e)})))});function qd(){return(qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Gd=e=>{let{prefixCls:n,style:o,visible:t,maskProps:a,motionName:r,className:l}=e;return ft.createElement(Na,{key:"mask",visible:t,motionName:r,leavedClassName:n+"-mask-hidden"},({className:e,style:t},r)=>ft.createElement("div",qd({ref:r,style:{...t,...o},className:bt(n+"-mask",e,l)},a)))};function Yd(){return(Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ud=e=>{let{prefixCls:t="rc-dialog",zIndex:r,visible:n=!1,focusTriggerAfterClose:o=!0,wrapStyle:a,wrapClassName:l,wrapProps:i,onClose:s,afterOpenChange:c,afterClose:d,transitionName:u,animation:p,closable:m=!0,mask:f=!0,maskTransitionName:h,maskAnimation:g,maskClosable:v=!0,maskStyle:b,maskProps:y,rootClassName:C,rootStyle:x,classNames:w,styles:S}=e,k=(0,ft.useRef)(null),E=(0,ft.useRef)(null),N=(0,ft.useRef)(null),[I,M]=ft.useState(n),[$,R]=ft.useState(!1);var P=kt();function z(){if(M(!1),f&&k.current&&o){try{k.current.focus({preventScroll:!0})}catch(e){}k.current=null}I&&d?.()}function B(e){s?.(e)}let T=(0,ft.useRef)(!1),O=null;v&&(O=e=>{E.current===e.target&&T.current&&B(e)}),(0,ft.useEffect)(()=>{var e;n?(T.current=!1,M(!0),(0,ut.A)(E.current,document.activeElement)||(k.current=document.activeElement),E.current&&(e=getComputedStyle(E.current),R("fixed"===e.position))):I&&N.current.enableMotion()&&!N.current.inMotion()&&z()},[n]);var H={zIndex:r,...a,...S?.wrapper,display:I?null:"none"};return ft.createElement("div",Yd({className:bt(t+"-root",C),style:x},Jt(e,{data:!0})),ft.createElement(Gd,{prefixCls:t,visible:f&&n,motionName:Fd(t,h,g),style:{zIndex:r,...b,...S?.mask},maskProps:y,className:w?.mask}),ft.createElement("div",Yd({className:bt(t+"-wrap",l,w?.wrapper),ref:E,onClick:O,onMouseDown:function(e){T.current=e.target===E.current},style:H},i),ft.createElement(Xd,Yd({},e,{isFixedPos:$,ref:N,closable:m,ariaId:P,prefixCls:t,visible:n&&I,onClose:B,onVisibleChanged:function(e){e?(0,ut.A)(E.current,document.activeElement)||N.current?.focus():z(),c?.(e)},motionName:Fd(t,u,p)}))))};function Qd(){return(Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Zd=e=>{let{visible:t,getContainer:r,forceRender:n,destroyOnHidden:o=!1,afterClose:a,closable:l,panelRef:i,keyboard:s=!0,scrollLock:c=!0,onClose:d}=e,{scrollLock:u,...p}=e,[m,f]=ft.useState(t);e=ft.useMemo(()=>({panel:i}),[i]);return ft.useEffect(()=>{t&&f(!0)},[t]),n||!o||m?ft.createElement(Ld.Provider,{value:e},ft.createElement(Vi,{open:t||n||m,onEsc:({top:e,event:t})=>{e&&s&&(t.stopPropagation(),d?.(t))},autoDestroy:!1,getContainer:r,autoLock:c&&(t||m)},ft.createElement(Ud,Qd({},p,{destroyOnHidden:o,afterClose:()=>{var e=((l&&"object"==typeof l?l:{})||{}).afterClose;e?.(),a?.(),f(!1)}})))):null};let Jd="RC_FORM_INTERNAL_HOOKS",eu=()=>{(0,Te.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};var tu=ft.createContext({getFieldValue:eu,getFieldsValue:eu,getFieldError:eu,getFieldWarning:eu,getFieldsError:eu,isFieldsTouched:eu,isFieldTouched:eu,isFieldValidating:eu,isFieldsValidating:eu,resetFields:eu,setFields:eu,setFieldValue:eu,setFieldsValue:eu,validateFields:eu,submit:eu,getInternalHooks:()=>(eu(),{dispatch:eu,initEntityValue:eu,registerField:eu,useSubscribe:eu,setInitialValues:eu,destroyForm:eu,setCallbacks:eu,registerWatch:eu,getFields:eu,setValidateMessages:eu,setPreserve:eu,getInitialValue:eu})}),ru=ft.createContext(null);function nu(e){return null==e?[]:Array.isArray(e)?e:[e]}function ou(){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",tel:"%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(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}let au=ou(),lu=/%[sdj%]/g;function iu(e){if(!e||!e.length)return null;let r={};return e.forEach(e=>{var t=e.field;r[t]=r[t]||[],r[t].push(e)}),r}function su(e,...t){let r=0,n=t.length;return"function"==typeof e?e.apply(null,t):"string"==typeof e?e.replace(lu,e=>{if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}default:return e}}):e}function cu(e,t){return null==e||"array"===t&&Array.isArray(e)&&!e.length||!("string"!==(t=t)&&"url"!==t&&"hex"!==t&&"email"!==t&&"date"!==t&&"pattern"!==t&&"tel"!==t||"string"!=typeof e||e)}function du(r,n,o){let a=0,l=r.length;!function e(t){t&&t.length?o(t):(t=a,a+=1,t<l?n(r[t],e):o([]))}([])}class uu extends Error{errors;fields;constructor(e,t){super("Async Validation Error"),this.errors=e,this.fields=t}}function pu(n,e,c,o,a){if(e.first){let e=new Promise((t,r)=>{du((t=>{let r=[];return Object.keys(t).forEach(e=>{r.push(...t[e]||[])}),r})(n),c,e=>(o(e),e.length?r(new uu(e,iu(e))):t(a)))});return e.catch(e=>e),e}let d=!0===e.firstFields?Object.keys(n):e.firstFields||[],l=Object.keys(n),i=l.length,u=0,p=[],t=new Promise((t,r)=>{let s=e=>{if(p.push.apply(p,e),++u===i)return o(p),p.length?r(new uu(p,iu(p))):t(a)};l.length||(o(p),t(a)),l.forEach(e=>{var o=n[e];if(-1===d.indexOf(e)){e=o;var a=c;var l=s;let t=[],r=0,n=e.length;function i(e){t.push(...e||[]),++r===n&&l(t)}e.forEach(e=>{a(e,i)})}else du(o,c,s)})});return t.catch(e=>e),t}function mu(n,o){return e=>{let t;var r;return t=n.fullFields?((e,t)=>{let r=e;for(let e=0;e<t.length;e++){if(null==r)return r;r=r[t[e]]}return r})(o,n.fullFields):o[e.field||n.fullField],(r=e)&&void 0!==r.message?(e.field=e.field||n.fullField,e.fieldValue=t,e):{message:"function"==typeof e?e():e,fieldValue:t,field:e.field||n.fullField}}}function fu(e,t){if(t)for(var r in t){var n;t.hasOwnProperty(r)&&("object"==typeof(n=t[r])&&"object"==typeof e[r]?e[r]={...e[r],...n}:e[r]=n)}return e}let hu="enum";var gu=(e,t,r,n,o,a)=>{!e.required||r.hasOwnProperty(e.field)&&!cu(t,a||e.type)||n.push(su(o.messages.required,e.fullField))};let vu;let bu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},yu={integer(e){return yu.number(e)&&parseInt(e,10)===e},float(e){return yu.number(e)&&!yu.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number(e){return!isNaN(e)&&"number"==typeof e},object(e){return"object"==typeof e&&!yu.array(e)},method(e){return"function"==typeof e},email(e){return"string"==typeof e&&e.length<=320&&!!e.match(bu.email)},tel(e){return"string"==typeof e&&e.length<=32&&!!e.match(bu.tel)},url(e){return"string"==typeof e&&e.length<=2048&&!!e.match((()=>{if(!vu){let t="[a-fA-F\\d:]",r=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${t})|(?<=${t})(?=\\s|$))`:"",n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";var e="[a-fA-F\\d]{1,4}";let o=`(?:${[`(?:${e}:){7}(?:${e}|:)`,`(?:${e}:){6}(?:${n}|:${e}|:)`,`(?:${e}:){5}(?::${n}|(?::${e}){1,2}|:)`,`(?:${e}:){4}(?:(?::${e}){0,1}:${n}|(?::${e}){1,3}|:)`,`(?:${e}:){3}(?:(?::${e}){0,2}:${n}|(?::${e}){1,4}|:)`,`(?:${e}:){2}(?:(?::${e}){0,3}:${n}|(?::${e}){1,5}|:)`,`(?:${e}:){1}(?:(?::${e}){0,4}:${n}|(?::${e}){1,6}|:)`,`(?::(?:(?::${e}){0,5}:${n}|(?::${e}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,a=new RegExp(`(?:^${n}$)|(?:^${o}$)`),l=new RegExp(`^${n}$`),i=new RegExp(`^${o}$`);e=e=>e&&e.exact?a:new RegExp(`(?:${r(e)}${n}${r(e)})|(?:${r(e)}${o}${r(e)})`,"g"),e=(e.v4=e=>e&&e.exact?l:new RegExp(""+r(e)+n+r(e),"g"),e.v6=e=>e&&e.exact?i:new RegExp(""+r(e)+o+r(e),"g"),`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${e.v4().source}|${e.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`);vu=new RegExp(`(?:^${e}$)`,"i")}return vu})())},hex(e){return"string"==typeof e&&!!e.match(bu.hex)}};var Cu={required:gu,whitespace:(e,t,r,n,o)=>{!/^\s+$/.test(t)&&""!==t||n.push(su(o.messages.whitespace,e.fullField))},type:(e,t,r,n,o)=>{e.required&&void 0===t?gu(e,t,r,n,o):-1<["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(r=e.type)?yu[r](t)||n.push(su(o.messages.types[r],e.fullField,e.type)):r&&typeof t!==e.type&&n.push(su(o.messages.types[r],e.fullField,e.type))},range:(e,t,r,n,o)=>{var a="number"==typeof e.len,l="number"==typeof e.min,i="number"==typeof e.max;let s=t,c=null;var d="number"==typeof t,u="string"==typeof t,p=Array.isArray(t);if(d?c="number":u?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),u&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&n.push(su(o.messages[c].len,e.fullField,e.len)):l&&!i&&s<e.min?n.push(su(o.messages[c].min,e.fullField,e.min)):i&&!l&&s>e.max?n.push(su(o.messages[c].max,e.fullField,e.max)):l&&i&&(s<e.min||s>e.max)&&n.push(su(o.messages[c].range,e.fullField,e.min,e.max))},enum:(e,t,r,n,o)=>{e[hu]=Array.isArray(e[hu])?e[hu]:[],-1===e[hu].indexOf(t)&&n.push(su(o.messages[hu],e.fullField,e[hu].join(", ")))},pattern:(e,t,r,n,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(su(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||n.push(su(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}};let xu="enum";var Wn=(e,t,r,n,o)=>{var a=e.type,l=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t,a)&&!e.required)return r();Cu.required(e,t,n,l,o,a),cu(t,a)||Cu.type(e,t,n,l,o)}r(l)},wu={string:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t,"string")&&!e.required)return r();Cu.required(e,t,n,a,o,"string"),cu(t,"string")||(Cu.type(e,t,n,a,o),Cu.range(e,t,n,a,o),Cu.pattern(e,t,n,a,o),!0===e.whitespace&&Cu.whitespace(e,t,n,a,o))}r(a)},method:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&Cu.type(e,t,n,a,o)}r(a)},number:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t=""===t?void 0:t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&(Cu.type(e,t,n,a,o),Cu.range(e,t,n,a,o))}r(a)},boolean:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&Cu.type(e,t,n,a,o)}r(a)},regexp:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),cu(t)||Cu.type(e,t,n,a,o)}r(a)},integer:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&(Cu.type(e,t,n,a,o),Cu.range(e,t,n,a,o))}r(a)},float:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&(Cu.type(e,t,n,a,o),Cu.range(e,t,n,a,o))}r(a)},array:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();Cu.required(e,t,n,a,o,"array"),null!=t&&(Cu.type(e,t,n,a,o),Cu.range(e,t,n,a,o))}r(a)},object:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&Cu.type(e,t,n,a,o)}r(a)},enum:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o),void 0!==t&&Cu[xu](e,t,n,a,o)}r(a)},pattern:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t,"string")&&!e.required)return r();Cu.required(e,t,n,a,o),cu(t,"string")||Cu.pattern(e,t,n,a,o)}r(a)},date:(t,r,e,n,o)=>{var a=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(cu(r,"date")&&!t.required)return e();if(Cu.required(t,r,n,a,o),!cu(r,"date")){let e;e=r instanceof Date?r:new Date(r),Cu.type(t,e,n,a,o),e&&Cu.range(t,e.getTime(),n,a,o)}}e(a)},url:Wn,hex:Wn,email:Wn,tel:Wn,required:(e,t,r,n,o)=>{var a=[],l=Array.isArray(t)?"array":typeof t;Cu.required(e,t,n,a,o,l),r(a)},any:(e,t,r,n,o)=>{var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(cu(t)&&!e.required)return r();Cu.required(e,t,n,a,o)}r(a)}};class Su{static register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");wu[e]=t};static warning=()=>{};static messages=au;static validators=wu;rules=null;_messages=au;constructor(e){this.define(e)}define(r){if(!r)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof r||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(e=>{var t=r[e];this.rules[e]=Array.isArray(t)?t:[t]})}messages(e){return e&&(this._messages=fu(ou(),e)),this._messages}validate(o,e={},t=()=>{}){let s=o,c=e,a=t;if("function"==typeof c&&(a=c,c={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,s),Promise.resolve(s);function r(t){let r=[];var e,n;for(let e=0;e<t.length;e++)n=t[e],Array.isArray(n)?r=r.concat(...n):r.push(n);r.length?(e=iu(r),a(r,e)):a(null,s)}if(c.messages){let e=this.messages();fu(e=e===au?ou():e,c.messages),c.messages=e}else c.messages=this.messages();let l={};(c.keys||Object.keys(this.rules)).forEach(r=>{var e=this.rules[r];let n=s[r];e.forEach(e=>{let t=e;"function"==typeof t.transform&&(s===o&&(s={...s}),null!=(n=s[r]=t.transform(n)))&&(t.type=t.type||(Array.isArray(n)?"array":typeof n)),(t="function"==typeof t?{validator:t}:{...t}).validator=this.getValidationMethod(t),t.validator&&(t.field=r,t.fullField=t.fullField||r,t.type=this.getType(t),l[r]=l[r]||[],l[r].push({rule:t,value:n,source:s,field:r}))})});let n={};return pu(l,c,(a,l)=>{let i=a.rule,r=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function t(e=[]){let t=Array.isArray(e)?e:[e],o=(!c.suppressWarning&&t.length&&Su.warning("async-validator:",t),(t=t.length&&null!=i.message?[].concat(i.message):t).map(mu(i,s)));if(c.first&&o.length)return n[i.field]=1,l(o);if(r){if(i.required&&!a.value)return void 0!==i.message?o=[].concat(i.message).map(mu(i,s)):c.error&&(o=[c.error(i,su(c.messages.required,i.field))]),l(o);let r={},n=(i.defaultField&&Object.keys(a.value).map(e=>{r[e]=i.defaultField}),r={...r,...a.rule.fields},{});Object.keys(r).forEach(e=>{var t=r[e],t=Array.isArray(t)?t:[t];n[e]=t.map(function(e,t){return{...t,fullField:i.fullField+"."+e,fullFields:i.fullFields?[...i.fullFields,e]:[e]}}.bind(null,e))});e=new Su(n);e.messages(c.messages),a.rule.options&&(a.rule.options.messages=c.messages,a.rule.options.error=c.error),e.validate(a.value,a.rule.options||c,e=>{var t=[];o&&o.length&&t.push(...o),e&&e.length&&t.push(...e),l(t.length?t:null)})}else l(o)}r=r&&(i.required||!i.required&&a.value),i.field=a.field;let e;if(i.asyncValidator)e=i.asyncValidator(i,a.value,t,a.source,c);else if(i.validator){try{e=i.validator(i,a.value,t,a.source,c)}catch(e){console.error?.(e),c.suppressValidatorError||setTimeout(()=>{throw e},0),t(e.message)}!0===e?t():!1===e?t("function"==typeof i.message?i.message(i.fullField||i.field):i.message||`${i.fullField||i.field} fails`):e instanceof Array?t(e):e instanceof Error&&t(e.message)}e&&e.then&&e.then(()=>t(),e=>t(e))},e=>{r(e)},s)}getType(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!wu.hasOwnProperty(e.type))throw new Error(su("Unknown rule type %s",e.type));return e.type||"string"}getValidationMethod(e){var t,r;return"function"==typeof e.validator?e.validator:(-1!==(r=(t=Object.keys(e)).indexOf("message"))&&t.splice(r,1),1===t.length&&"required"===t[0]?wu.required:wu[this.getType(e)]||void 0)}}e=Su,n="'${name}' is not a valid ${type}";let ku={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,tel:n,url:n,hex:n},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Eu=e;let Nu="CODE_LOGIC_ERROR";async function Iu(r,e,t,n,o){var a={...t};if(delete a.ruleIndex,Eu.warning=()=>{},a.validator){let t=a.validator;a.validator=(...e)=>{try{return t(...e)}catch(e){return console.error(e),Promise.reject(Nu)}}}let l=null;a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField);a=new Eu({[r]:[a]});let i=lr(ku,n.validateMessages),s=(a.messages(i),[]);try{await Promise.resolve(a.validate({[r]:e},{...n}))}catch(e){e.errors&&(s=e.errors.map(({message:e},t)=>{e=e===Nu?i.default:e;return ft.isValidElement(e)?ft.cloneElement(e,{key:"error_"+t}):e}))}if(!s.length&&l&&Array.isArray(e)&&0<e.length)return(await Promise.all(e.map((e,t)=>Iu(r+"."+t,e,l,n,o)))).reduce((e,t)=>[...e,...t],[]);let c={...t,name:r,enum:(t.enum||[]).join(", "),...o};return s.map(e=>{var t,r;return"string"==typeof e?(t=e,r=c,t.replace(/\\?\$\{\w+\}/g,e=>e.startsWith("\\")?e.slice(1):(e=e.slice(2,-1),r[e]))):e})}function Mu(e,o,t,a,r,l){let i=e.join("."),s=t.map((e,t)=>{let o=e.validator;e={...e,ruleIndex:t};return o&&(e.validator=(e,t,r)=>{let n=!1;e=o(e,t,(...e)=>{Promise.resolve().then(()=>{(0,Te.Ay)(!n,"Your validator function has already return a promise. `callback` will be ignored."),n||r(...e)})});n=e&&"function"==typeof e.then&&"function"==typeof e.catch,(0,Te.Ay)(n,"`callback` is deprecated. Please return a promise instead."),n&&e.then(()=>{r()}).catch(e=>{r(e||" ")})}),e}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:r,ruleIndex:n})=>!!e==!!r?t-n:e?1:-1),n;return(n=!0===r?new Promise(async(e,t)=>{for(let e=0;e<s.length;e+=1){var r=s[e],n=await Iu(i,o,r,a,l);if(n.length)return void t([{errors:n,rule:r}])}e([])}):(r?async r=>{let n=0;return new Promise(t=>{r.forEach(e=>{e.then(e=>{e.errors.length&&t([e]),(n+=1)===r.length&&t([])})})})}:async e=>Promise.all(e).then(e=>[].concat(...e)))(s.map(t=>Iu(i,o,t,a,l).then(e=>({errors:e,rule:t})))).then(e=>Promise.reject(e))).catch(e=>e),n}function $u(e){return nu(e)}function Ru(r,e){let n={};return e.forEach(e=>{var t=tr(r,e);n=rr(n,e,t)}),n}function Pu(e,t,r=!1){return e&&e.some(e=>zu(t,e,r))}function zu(r,e,t=!1){return!(!r||!e||!t&&r.length!==e.length)&&e.every((e,t)=>r[t]===e)}function Bu(e,t,r){var n,o,a=e.length;return t<0||a<=t||r<0||a<=r?e:(n=e[t],0<(o=t-r)?[...e.slice(0,r),n,...e.slice(r,t),...e.slice(t+1,a)]:o<0?[...e.slice(0,t),...e.slice(t+1,r+1),n,...e.slice(r+1,a)]:e)}let Tu=e=>{var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class Ou{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(t=>{this.namePathList.every(e=>!zu(e,t))&&this.namePathList.push(t)}),this.doBatch()}doBatch(){this.taskId+=1;let t=this.taskId;Tu(()=>{if(t===this.taskId&&this.watcherList.size){var e=this.form.getForm();let t=e.getFieldsValue(),r=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,r,this.namePathList)}),this.namePathList=[]}})}}function Hu(){return(Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let Au=[],Du=[];function Lu(e,t,r,n,o,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==o}class Fu extends ft.PureComponent{static contextType=tu;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Au;warnings=Du;constructor(e){super(e),e.fieldContext&&(e=e.fieldContext.getInternalHooks,e=e(Jd).initEntityValue,e(this))}componentDidMount(){var{shouldUpdate:e,fieldContext:t}=this.props;this.mounted=!0,t&&(t=t.getInternalHooks,t=t(Jd).registerField,this.cancelRegisterFunc=t(this)),!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{var{preserve:e,isListField:t,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,$u(r)),this.cancelRegisterFunc=null};getNamePath=()=>{var{name:e,fieldContext:t}=this.props,{prefixName:t=[]}=t;return void 0!==e?[...t,...e]:[]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"==typeof e?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{var t=this.props.onMetaChange;t?(e={...this.getMeta(),destroy:e},(0,Vt.A)(this.metaCache,e)||t(e),this.metaCache=e):this.metaCache=null};onStoreChange=(e,t,r)=>{var{shouldUpdate:n,dependencies:o=[],onReset:a}=this.props,l=r.store,i=this.getNamePath(),s=this.getValue(e),c=this.getValue(l),d=t&&Pu(t,i);switch("valueUpdate"!==r.type||"external"!==r.source||(0,Vt.A)(s,c)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Au,this.warnings=Du,this.triggerMetaEvent()),r.type){case"reset":if(!t||d)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Au,this.warnings=Du,this.triggerMetaEvent(),a?.(),void this.refresh();break;case"remove":if(n&&Lu(n,e,l,s,c,r))return void this.reRender();break;case"setField":var u=r.data;if(d)return"touched"in u&&(this.touched=u.touched),"validating"in u&&!("originRCField"in u)&&(this.validatePromise=u.validating?Promise.resolve([]):null),"errors"in u&&(this.errors=u.errors||Au),"warnings"in u&&(this.warnings=u.warnings||Du),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in u&&Pu(t,i,!0))return void this.reRender();if(n&&!i.length&&Lu(n,e,l,s,c,r))return void this.reRender();break;case"dependenciesUpdate":if(o.map($u).some(e=>Pu(r.relatedFields,e)))return void this.reRender();break;default:if(d||(!o.length||i.length||n)&&Lu(n,e,l,s,c,r))return void this.reRender()}!0===n&&this.reRender()};validateRules=a=>{let l=this.getNamePath(),i=this.getValue(),{triggerName:s,validateOnly:e=!1,delayFrame:c}=a||{},d=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:e=!1,messageVariables:t,validateDebounce:r}=this.props,n=(c&&await new Promise(e=>{Tu(()=>{$e(()=>{e()})})}),this.getRules());var o;return s&&(n=n.filter(e=>e).filter(e=>{e=e.validateTrigger;return!e||nu(e).includes(s)})),r&&s&&(await new Promise(e=>{setTimeout(e,r)}),this.validatePromise!==d)?[]:((o=Mu(l,i,n,a,e,t)).catch(e=>e).then((e=Au)=>{if(this.validatePromise===d){this.validatePromise=null;let r=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:t=Au})=>{(e?n:r).push(...t)}),this.errors=r,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),o)});return e||(this.validatePromise=d,this.dirty=!0,this.errors=Au,this.warnings=Du,this.triggerMetaEvent(),this.reRender()),d};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{var e;return!(!this.dirty&&void 0===this.props.initialValue)||(e=this.props.fieldContext,e=e.getInternalHooks(Jd).getInitialValue,void 0!==e(this.getNamePath()))};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise});getOnlyChild=e=>{var t;return"function"==typeof e?(t=this.getMeta(),{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}):1===(t=ke(e)).length&&ft.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{var t=this.props.fieldContext.getFieldsValue,r=this.getNamePath();return tr(e||t(!0),r)};getControlled=(e={})=>{let{name:t,trigger:r="onChange",validateTrigger:n,getValueFromEvent:a,normalize:l,valuePropName:i="value",getValueProps:o,fieldContext:s}=this.props;var c=void 0!==n?n:s.validateTrigger;let d=this.getNamePath(),{getInternalHooks:u,getFieldsValue:p}=s,m=u(Jd).dispatch;var f=this.getValue(),h=o||(e=>({[i]:e}));let g=e[r];h=void 0!==t?h(f):{};let v={...e,...h};return v[r]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();var t,r,n=this.getValue();let o;o=a?a(...e):([t,...r]=[i,...e],(r=r[0])&&r.target&&"object"==typeof r.target&&t in r.target?r.target[t]:r),(o=l?l(o,n,p(!0)):o)!==n&&m({type:"updateValue",namePath:d,value:o}),g&&g(...e)},nu(c||[]).forEach(t=>{let r=v[t];v[t]=(...e)=>{r&&r(...e);e=this.props.rules;e&&e.length&&m({type:"validateField",namePath:d,triggerName:t})}}),v};render(){var e=this.state.resetCount,t=this.props.children,{child:t,isFunction:r}=this.getOnlyChild(t);let n;return n=r?t:ft.isValidElement(t)?ft.cloneElement(t,this.getControlled(t.props)):((0,Te.Ay)(!t,"`children` of Field is not validate ReactElement."),t),ft.createElement(ft.Fragment,{key:e},n)}}var Wu=function({name:e,...t}){var r=ft.useContext(tu),n=ft.useContext(ru),e=void 0!==e?$u(e):void 0,n=t.isListField??!!n;let o="keep";return n||(o="_"+(e||[]).join("_")),ft.createElement(Fu,Hu({key:o,name:e,isListField:n},t,{fieldContext:r}))};var ju=function({name:e,initialValue:t,children:i,rules:r,validateTrigger:n,isListField:o}){let s=ft.useContext(tu);var a=ft.useContext(ru);let c=ft.useRef({keys:[],id:0}).current,d=ft.useMemo(()=>[...$u(s.prefixName)||[],...$u(e)],[s.prefixName,e]);var l=ft.useMemo(()=>({...s,prefixName:d}),[s,d]),u=ft.useMemo(()=>({getKey:e=>{var t=d.length,r=e[t];return[c.keys[r],e.slice(t+1)]}}),[c,d]);return"function"!=typeof i?((0,Te.Ay)(!1,"Form.List only accepts function as children."),null):ft.createElement(ru.Provider,{value:u},ft.createElement(tu.Provider,{value:l},ft.createElement(Wu,{name:[],shouldUpdate:(e,t,{source:r})=>"internal"!==r&&e!==t,rules:r,validateTrigger:n,initialValue:t,isList:!0,isListField:o??!!a},({value:e=[],onChange:n},t)=>{let r=s.getFieldValue,o=()=>r(d||[])||[];var a={add:(e,t)=>{var r=o();0<=t&&t<=r.length?(c.keys=[...c.keys.slice(0,t),c.id,...c.keys.slice(t)],n([...r.slice(0,t),e,...r.slice(t)])):(c.keys=[...c.keys,c.id],n([...r,e])),c.id+=1},remove:e=>{var t=o();let r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),n(t.filter((e,t)=>!r.has(t))))},move(e,t){var r;e===t||(r=o(),e<0)||e>=r.length||t<0||t>=r.length||(c.keys=Bu(c.keys,e,t),n(Bu(r,e,t)))}};let l=e||[];return Array.isArray(l)||(l=[]),i(l.map((e,t)=>{let r=c.keys[t];return void 0===r&&(c.keys[t]=c.id,r=c.keys[t],c.id+=1),{name:t,key:r,isListField:!0}}),a,t)})))};let _u="__@field_split__";function Ku(e){return e.map(e=>typeof e+":"+e).join(_u)}var Vu=class{kvs=new Map;set(e,t){this.kvs.set(Ku(e),t)}get(e){return this.kvs.get(Ku(e))}getAsPrefix(e){e=Ku(e);let r=e+_u,n=[];e=this.kvs.get(e);return void 0!==e&&n.push(e),this.kvs.forEach((e,t)=>{t.startsWith(r)&&n.push(e)}),n}update(e,t){t=t(this.get(e));t?this.set(e,t):this.delete(e)}delete(e){this.kvs.delete(Ku(e))}map(r){return[...this.kvs.entries()].map(([e,t])=>{e=e.split(_u);return r({key:e.map(e=>{var[,e,t]=e.match(/^([^:]*):(.*)$/);return"number"===e?Number(t):t}),value:t})})}toJSON(){let r={};return this.map(({key:e,value:t})=>(r[e.join(".")]=t,null)),r}};class Xu{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Ou(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===Jd?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):((0,Te.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(r,e)=>{if(this.initialValues=r||{},e){let t=lr(r,this.store);this.prevWithoutPreserves?.map(({key:e})=>{t=rr(t,e,tr(r,e))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let t=new Vu;this.getFieldEntities(!0).forEach(e=>{this.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),this.prevWithoutPreserves=t}};getInitialValue=e=>{var t=tr(this.initialValues,e);return e.length?lr(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let r=new Vu;return this.getFieldEntities(e).forEach(e=>{var t=e.getNamePath();r.set(t,e)}),r};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let r=this.getFieldsMap(!0);return t?e.flatMap(e=>{var e=$u(e),t=r.getAsPrefix(e);return t.length?t:[{INVALIDATE_NAME_PATH:e}]}):e.map(e=>{var t=$u(e);return r.get(t)||{INVALIDATE_NAME_PATH:$u(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let r,n;if(!0===e||Array.isArray(e)?(r=e,n=t):e&&"object"==typeof e&&(n=e.filter),!0===r&&!n)return this.store;t=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0);let o=[],a=[],l=(t.forEach(e=>{var t=e.INVALIDATE_NAME_PATH||e.getNamePath();e.isList?.()?a.push(t):n&&(e="getMeta"in e?e.getMeta():null,!n(e))||o.push(t)}),Ru(this.store,o.map($u)));return a.forEach(e=>{tr(l,e)||(l=rr(l,e,[]))}),l};getFieldValue=e=>{this.warningUnhooked();e=$u(e);return tr(this.store,e)};getFieldsError=r=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(r).map((e,t)=>e&&!e.INVALIDATE_NAME_PATH?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:$u(r[t]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();e=$u(e);return this.getFieldsError([e])[0].errors};getFieldWarning=e=>{this.warningUnhooked();e=$u(e);return this.getFieldsError([e])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();var[t,r]=e;let n,o=!1;0===e.length?n=null:o=1===e.length?Array.isArray(t)?(n=t.map($u),!1):(n=null,t):(n=t.map($u),r);e=this.getFieldEntities(!0);let a=e=>e.isFieldTouched();if(!n)return o?e.every(e=>a(e)||e.isList()):e.some(a);let l=new Vu;n.forEach(e=>{l.set(e,[])}),e.forEach(t=>{let r=t.getNamePath();n.forEach(e=>{e.every((e,t)=>r[t]===e)&&l.update(e,e=>[...e,t])})});t=e=>e.some(a),r=l.map(({value:e})=>e);return o?r.every(t):r.some(t)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();var t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let r=e.map($u);return t.some(e=>{var t=e.getNamePath();return Pu(r,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(o={})=>{let a=new Vu;var e=this.getFieldEntities(!0);e.forEach(e=>{var t,r=e.props.initialValue,n=e.getNamePath();void 0!==r&&((t=a.get(n)||new Set).add({entity:e,value:r}),a.set(n,t))});let t;o.entities?t=o.entities:o.namePathList?(t=[],o.namePathList.forEach(e=>{e=a.get(e);e&&t.push(...[...e].map(e=>e.entity))})):t=e,t.forEach(e=>{var t,r,n=e.props.initialValue;void 0!==n&&(n=e.getNamePath(),void 0!==this.getInitialValue(n)?(0,Te.Ay)(!1,`Form already set 'initialValues' with path '${n.join(".")}'. Field can not overwrite it.`):(t=a.get(n))&&1<t.size?(0,Te.Ay)(!1,`Multiple Field with path '${n.join(".")}' set 'initialValue'. Can not decide which one to pick.`):t&&(r=this.getFieldValue(n),e.isListField()||o.skipExist&&void 0!==r||this.updateStore(rr(this.store,n,[...t][0].value))))})};resetFields=e=>{this.warningUnhooked();var t=this.store;e?((e=e.map($u)).forEach(e=>{var t=this.getInitialValue(e);this.updateStore(rr(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:e}),this.notifyObservers(t,e,{type:"reset"}),this.notifyWatch(e)):(this.updateStore(lr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),this.notifyWatch())};setFields=e=>{this.warningUnhooked();let o=this.store,a=[];e.forEach(e=>{let{name:t,...r}=e;var n=$u(t);a.push(n),"value"in r&&this.updateStore(rr(this.store,n,r.value)),this.notifyObservers(o,[n],{type:"setField",data:e})}),this.notifyWatch(a)};getFields=()=>this.getFieldEntities(!0).map(e=>{var t=e.getNamePath(),e={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(e,"originRCField",{value:!0}),e});initEntityValue=e=>{var t=e.props.initialValue;void 0!==t&&(e=e.getNamePath(),void 0===tr(this.store,e))&&this.updateStore(rr(this.store,e,t))};isMergedPreserve=e=>(void 0!==e?e:this.preserve)??!0;registerField=n=>{this.fieldEntities.push(n);let o=n.getNamePath();var e;return this.notifyWatch([o]),void 0!==n.props.initialValue&&(e=this.store,this.resetWithFieldInitialValue({entities:[n],skipExist:!0}),this.notifyObservers(e,[n.getNamePath()],{type:"valueUpdate",source:"internal"})),(e,t,r=[])=>{this.fieldEntities=this.fieldEntities.filter(e=>e!==n),this.isMergedPreserve(t)||e&&!(1<r.length)||(t=e?void 0:this.getInitialValue(o),o.length&&this.getFieldValue(o)!==t&&this.fieldEntities.every(e=>!zu(e.getNamePath(),o))&&(r=this.store,this.updateStore(rr(r,o,t,!0)),this.notifyObservers(r,[o],{type:"remove"}),this.triggerDependenciesUpdate(r,o))),this.notifyWatch([o])}};dispatch=e=>{switch(e.type){case"updateValue":var{namePath:t,value:r}=e;this.updateValue(t,r);break;case"validateField":var{namePath:t,triggerName:r}=e;this.validateFields([t],{triggerName:r})}};notifyObservers=(r,n,e)=>{if(this.subscribable){let t={...e,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:e})=>{e(r,n,t)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{var r=this.getDependencyChildrenFields(t);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t,...r]}),r};updateValue=(e,t)=>{var e=$u(e),r=this.store,t=(this.updateStore(rr(this.store,e,t)),this.notifyObservers(r,[e],{type:"valueUpdate",source:"internal"}),this.notifyWatch([e]),this.triggerDependenciesUpdate(r,e)),r=this.callbacks.onValuesChange;r&&r(r=Ru(this.store,[e]),rr(this.getFieldsValue(),e,tr(r,e))),this.triggerOnFieldsChange([e,...t])};setFieldsValue=e=>{this.warningUnhooked();var t=this.store;e&&(e=lr(this.store,e),this.updateStore(e)),this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let r=new Set,n=[],o=new Vu,a=(this.getFieldEntities().forEach(t=>{var e=t.props.dependencies;(e||[]).forEach(e=>{e=$u(e);o.update(e,(e=new Set)=>(e.add(t),e))})}),e=>{(o.get(e)||new Set).forEach(e=>{var t;r.has(e)||(r.add(e),t=e.getNamePath(),e.isFieldDirty()&&t.length&&(n.push(t),a(t)))})});return a(e),n};triggerOnFieldsChange=(t,e)=>{var r=this.callbacks.onFieldsChange;if(r){var n=this.getFields();if(e){let r=new Vu;e.forEach(({name:e,errors:t})=>{r.set(e,t)}),n.forEach(e=>{e.errors=r.get(e.name)||e.errors})}e=n.filter(({name:e})=>Pu(t,e));e.length&&r(e,n)}};validateFields=(e,t)=>{this.warningUnhooked();let r,n,o=(n=Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,t):e,!!r),a=o?r.map($u):[],l=[...a],i=[],s=String(Date.now()),c=new Set,{recursive:d,dirty:u}=n||{},p=(this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();o||(e.isList()&&a.some(e=>zu(e,t,!0))||l.push(t),a.push(t)),e.props.rules&&e.props.rules.length&&(u&&!e.isFieldDirty()||(c.add(t.join(s)),o&&!Pu(a,t,d))||(e=e.validateRules({validateMessages:{...ku,...this.validateMessages},...n}),i.push(e.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let r=[],n=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{(e?n:r).push(...t)}),r.length?Promise.reject({name:t,errors:r,warnings:n}):{name:t,errors:r,warnings:n}}))))}),(e=>{let o=!1,a=e.length,l=[];return e.length?new Promise((r,n)=>{e.forEach((e,t)=>{e.catch(e=>(o=!0,e)).then(e=>{--a,l[t]=e,0<a||(o&&n(l),r(l))})})}):Promise.resolve([])})(i));(this.lastValidatePromise=p).catch(e=>e).then(e=>{var t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});t=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(e=>{var e=e.filter(e=>e&&e.errors.length),t=e[0]?.errors?.[0];return Promise.reject({message:t,values:this.getFieldsValue(a),errorFields:e,outOfDate:this.lastValidatePromise!==p})}),t.catch(e=>e),e=a.filter(e=>c.has(e.join(s)));return this.triggerOnFieldsChange(e),t};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{var t=this.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{var t=this.callbacks.onFinishFailed;t&&t(e)})}}var qu=function(e){var t=ft.useRef(null);let[,r]=ft.useState({});return t.current||(e?t.current=e:(e=new Xu(()=>{r({})}),t.current=e.getForm())),[t.current]};let Gu=ft.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Yu=({validateMessages:e,onFormChange:r,onFormFinish:n,children:t})=>{let o=ft.useContext(Gu),a=ft.useRef({});return ft.createElement(Gu.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(e,t)=>{r&&r(e,{changedFields:t,forms:a.current}),o.triggerFormChange(e,t)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),o.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),o.registerForm(e,t)},unregisterForm:e=>{var t={...a.current};delete t[e],a.current=t,o.unregisterForm(e)}}},t)};var Uu=Gu;function Qu(){return(Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zu(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Ju(...e){let[r,t={}]=e,n=(e=t)&&e._init?{form:t}:t,[o,a]=(e=n.form,(0,ft.useState)(()=>"function"==typeof r?r({}):void 0));var l=(0,ft.useMemo)(()=>Zu(o),[o]),l=((0,ft.useRef)(l).current=l,(0,ft.useContext)(tu));let i=(e=e||l)&&e._init,{getFieldsValue:s,getInternalHooks:c}=e,d=c(Jd).registerWatch,u=ht((e,t)=>{t=n.preserve?t??s(!0):e??s(),e="function"==typeof r?r(t):tr(t,$u(r));Zu(o)!==Zu(e)&&a(e)});return l="function"==typeof r?r:JSON.stringify(r),(0,ft.useEffect)(()=>{i&&u()},[i,l]),(0,ft.useEffect)(()=>{if(i)return d((e,t)=>{u(e,t)})},[i]),o}var a=ft.forwardRef((e,t)=>{let{name:r,initialValues:n,fields:o,form:a,preserve:l,children:i,component:s="form",validateMessages:c,validateTrigger:d="onChange",onValuesChange:u,onFieldsChange:p,onFinish:m,onFinishFailed:f,clearOnDestroy:h,...g}=e,v=ft.useRef(null),b=ft.useContext(Uu),[y]=qu(a),{useSubscribe:C,setInitialValues:x,setCallbacks:w,setValidateMessages:S,setPreserve:k,destroyForm:E}=y.getInternalHooks(Jd);ft.useImperativeHandle(t,()=>({...y,nativeElement:v.current})),ft.useEffect(()=>(b.registerForm(r,y),()=>{b.unregisterForm(r)}),[b,y,r]),S({...b.validateMessages,...c}),w({onValuesChange:u,onFieldsChange:(e,...t)=>{b.triggerFormChange(r,e),p&&p(e,...t)},onFinish:e=>{b.triggerFormFinish(r,e),m&&m(e)},onFinishFailed:f}),k(l);e=ft.useRef(null);x(n,!e.current),e.current||(e.current=!0),ft.useEffect(()=>()=>E(h),[]);let N;t="function"==typeof i;N=t?(e=y.getFieldsValue(!0),i(e,y)):i,C(!t);let I=ft.useRef(null);ft.useEffect(()=>{var r,n,e,t;r=I.current||[],n=o||[],r===n||!(!r&&n||r&&!n)&&r&&n&&"object"==typeof r&&"object"==typeof n&&(e=Object.keys(r),t=Object.keys(n),[...new Set([...e,...t])].every(e=>{var t=r[e],e=n[e];return"function"==typeof t&&"function"==typeof e||t===e}))||y.setFields(o||[]),I.current=o},[o,y]);e=ft.useMemo(()=>({...y,validateTrigger:d}),[y,d]),t=ft.createElement(ru.Provider,{value:null},ft.createElement(tu.Provider,{value:e},N));return!1===s?t:ft.createElement(s,Qu({},g,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),g.onReset?.(e)}}),t)}),ep=(a.FormProvider=Yu,a.Field=Wu,a.List=ju,a.useForm=qu,a.useWatch=Ju,a);let tp=ft.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),rp=ft.createContext(null),np=e=>{e=at(e,["prefixCls"]);return ft.createElement(Yu,{...e})},op=ft.createContext({prefixCls:""}),ap=ft.createContext({}),lp=({children:e,status:t,override:r})=>{let n=ft.useContext(ap);var o=ft.useMemo(()=>{var e={...n};return r&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,r,n]);return ft.createElement(ap.Provider,{value:o},e)},ip=ft.createContext(void 0);var sp=e=>{var{space:e,form:t,children:r}=e;if(!Se(r))return null;let n=r;return t&&(n=Re().createElement(lp,{override:!0,status:!0},n)),n=e?Re().createElement(yc,null,n):n};let cp=e=>{var t;if(e)return{closable:e,closeIcon:t}=e,{closable:e,closeIcon:t}},dp={},up=(e,t)=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(!Ia(e)&&!Ia(t))return null;let r={closeIcon:"boolean"!=typeof t&&Ia(t)?t:void 0};return r=Ze(e)?{...r,...e}:r},pp=(e,t,r)=>!1!==e&&(e?er(r,t,e):!1!==t&&(t?er(r,t):!!r.closable&&r)),mp=(e,t,r)=>{t=t.closeIconRender;let{closeIcon:n,...o}=e,a=n;e=Jt(o,!0);return Ia(a)&&(t&&(a=t(a)),a=Re().isValidElement(a)?Re().cloneElement(a,{"aria-label":r,...a.props,...e}):Re().createElement("span",{"aria-label":r,...e},a)),[a,{"aria-label":r,...e}]},fp=(e,t,r=dp,n="Close")=>{var e=up(e?.closable,e?.closeIcon),t=up(t?.closable,t?.closeIcon),r={closeIcon:Re().createElement(Ko,null),...r},e=pp(e,t,r),t="boolean"!=typeof e&&!!e?.disabled;return!1===e?[!1,null,t,{}]:([e,r]=mp(e,r,n),[!0,e,t,r])},hp=(e,t,r=dp)=>{let[n]=nc("global",Ei.default.global);return Re().useMemo(()=>fp(e,t,{closeIcon:Re().createElement(Ko,null),...r},n.close),[e,t,r,n.close])};var gp=Re().createContext(void 0),Fn=100;let vp={Modal:Fn,Drawer:Fn,Popover:Fn,Popconfirm:Fn,Tooltip:Fn,Tour:Fn,FloatButton:Fn},bp={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},yp=e=>e in vp,Cp=(t,r)=>{var[,n]=so(),o=Re().useContext(gp),a=yp(t);let l;if(void 0!==r)l=[r,r];else{let e=o??0;e+=a?(o?0:n.zIndexPopupBase)+vp[t]:bp[t],l=[void 0===o?r:e,e]}return l};function xp(e,t,r){return(0,ft.useMemo)(()=>({...{trap:t??!0,focusTriggerAfterClose:r??!0},...e}),[e,t,r])}var wp=e=>{let{prefixCls:t,className:r,style:n,size:o,shape:a}=e;var e=bt({[t+"-lg"]:"large"===o,[t+"-sm"]:"small"===o}),l=bt({[t+"-circle"]:"circle"===a,[t+"-square"]:"square"===a,[t+"-round"]:"round"===a}),i=ft.useMemo(()=>Ma(o)?{width:o,height:o,lineHeight:o+"px"}:{},[o]);return ft.createElement("span",{className:bt(t,e,l,r),style:{...i,...n}})};let Sp=new Qe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),kp=e=>({height:e,lineHeight:(0,Qe.unit)(e)}),Ep=e=>({width:e,...kp(e)}),Np=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Sp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ip=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...kp(e)}),Mp=e=>{var{skeletonAvatarCls:e,gradientFromColor:t,controlHeight:r,controlHeightLG:n,controlHeightSM:o}=e;return{[e]:{display:"inline-block",verticalAlign:"top",background:t,...Ep(r)},[""+e+e+"-circle"]:{borderRadius:"50%"},[""+e+e+"-lg"]:{...Ep(n)},[""+e+e+"-sm"]:{...Ep(o)}}},$p=e=>{var{controlHeight:e,borderRadiusSM:t,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,...Ip(e,l)},[r+"-lg"]:{...Ip(n,l)},[r+"-sm"]:{...Ip(o,l)}}},Rp=e=>{var{gradientFromColor:e,borderRadiusSM:t,imageSizeBase:r,calc:n}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:e,borderRadius:t,...Ep(n(r).mul(2).equal())}},Pp=e=>({[e.skeletonNodeCls]:{...Rp(e)}}),zp=e=>{var{skeletonImageCls:t,imageSizeBase:r,calc:n}=e;return{[t]:{...Rp(e),[t+"-path"]:{fill:"#bfbfbf"},[t+"-svg"]:{...Ep(r),maxWidth:n(r).mul(4).equal(),maxHeight:n(r).mul(4).equal()},[t+`-svg${t}-svg-circle`]:{borderRadius:"50%"}},[""+t+t+"-circle"]:{borderRadius:"50%"}}},Bp=(e,t,r)=>{e=e.skeletonButtonCls;return{[""+r+e+"-circle"]:{width:t,minWidth:t,borderRadius:"50%"},[""+r+e+"-round"]:{borderRadius:t}}},Tp=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...kp(e)}),Op=e=>{var{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:o,controlHeightSM:a,gradientFromColor:l,calc:i}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:i(n).mul(2).equal(),minWidth:i(n).mul(2).equal(),...Tp(n,i)},...Bp(e,n,r),[r+"-lg"]:{...Tp(o,i)},...Bp(e,o,r+"-lg"),[r+"-sm"]:{...Tp(a,i)},...Bp(e,a,r+"-sm")}};var Hp=Be("Skeleton",e=>{var{componentCls:t,calc:r}=e;return(e=>{var{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:l,skeletonNodeCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:d,controlHeightSM:u,gradientFromColor:p,padding:m,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:v,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[t+"-header"]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[r]:{display:"inline-block",verticalAlign:"top",background:p,...Ep(c)},[r+"-circle"]:{borderRadius:"50%"},[r+"-lg"]:{...Ep(d)},[r+"-sm"]:{...Ep(u)}},[t+"-section"]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:g,background:p,borderRadius:v,["+ "+o]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:p,borderRadius:v,"+ li":{marginBlockStart:y}}},[o+"> li:last-child:not(:first-child):not(:nth-child(2))"]:{width:"61%"}},[`&-round ${t}-section`]:{[n+`, ${o} > li`]:{borderRadius:h}}},[t+`-with-avatar ${t}-section`]:{[n]:{marginBlockStart:f,["+ "+o]:{marginBlockStart:C}}},[""+t+t+"-element"]:{display:"inline-block",width:"auto",...Op(e),...Mp(e),...$p(e),...Pp(e),...zp(e)},[""+t+t+"-block"]:{width:"100%",[a]:{width:"100%"},[l]:{width:"100%"}},[""+t+t+"-active"]:{[`
${n},
${o} > li,
${r},
${a},
${l},
${i},
${s}
`]:{...Np(e)}}}})(ze(e,{skeletonAvatarCls:t+"-avatar",skeletonTitleCls:t+"-title",skeletonParagraphCls:t+"-paragraph",skeletonButtonCls:t+"-button",skeletonInputCls:t+"-input",skeletonNodeCls:t+"-node",skeletonImageCls:t+"-image",imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{var{colorFillContent:t,colorFill:r}=e;return{color:t,colorGradientEnd:r,gradientFromColor:t,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),l=e=>{let{prefixCls:t,className:r,classNames:n,rootClassName:o,active:a,style:l,styles:i,shape:s="circle",size:c,...d}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("skeleton",t),[u,p]=Hp(e),m=mc(e=>c??e),u=bt(e,e+"-element",{[e+"-active"]:a},n?.root,r,o,u,p);return ft.createElement("div",{className:u,style:i?.root},ft.createElement(wp,{prefixCls:e+"-avatar",className:n?.content,style:{...i?.content,...l},shape:s,size:m,...d}))},s=e=>{let{prefixCls:t,className:r,rootClassName:n,classNames:o,active:a,style:l,styles:i,block:s=!1,size:c,...d}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("skeleton",t),[u,p]=Hp(e),m=mc(e=>c??e),u=bt(e,e+"-element",{[e+"-active"]:a,[e+"-block"]:s},o?.root,r,n,u,p);return ft.createElement("div",{className:u,style:i?.root},ft.createElement(wp,{prefixCls:e+"-button",className:o?.content,style:{...i?.content,...l},size:m,...d}))},Ap=e=>{var{prefixCls:e,className:t,classNames:r,rootClassName:n,internalClassName:o,style:a,styles:l,active:i,children:s}=e,c=ft.useContext(Ue).getPrefixCls,c=c("skeleton",e),[e,d]=Hp(c),i=bt(c,c+"-element",{[c+"-active"]:i},e,r?.root,t,n,d);return ft.createElement("div",{className:i,style:l?.root},ft.createElement("div",{className:bt(r?.content,o||c+"-node"),style:{...l?.content,...a}},s))},i=e=>{var t=ft.useContext(Ue).getPrefixCls,t=t("skeleton",e.prefixCls);return ft.createElement(Ap,{...e,internalClassName:t+"-image"},ft.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:t+"-image-svg","aria-hidden":"true",focusable:"false"},ft.createElement("title",null,"Image placeholder"),ft.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:t+"-image-path"})))},c=e=>{let{prefixCls:t,className:r,classNames:n,rootClassName:o,active:a,block:l,style:i,styles:s,size:c,...d}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("skeleton",t),[u,p]=Hp(e),m=mc(e=>c??e),u=bt(e,e+"-element",{[e+"-active"]:a,[e+"-block"]:l},n?.root,r,o,u,p);return ft.createElement("div",{className:u,style:s?.root},ft.createElement(wp,{prefixCls:e+"-input",className:n?.content,style:{...s?.content,...i},size:m,...d}))};let Dp=(e,t)=>{var{width:t,rows:r=2}=t;return Array.isArray(t)?t[e]:r-1===e?t:void 0};var Lp=r=>{var{prefixCls:e,className:t,style:n,rows:o=0}=r,o=Array.from({length:o}).map((e,t)=>ft.createElement("li",{key:t,style:{width:Dp(t,r)}}));return ft.createElement("ul",{className:bt(e,t),style:n},o)},Fp=({prefixCls:e,className:t,width:r,style:n})=>ft.createElement("h3",{className:bt(e,t),style:{width:r,...n}});function Wp(e){return Ze(e)?e:{}}o=Re().forwardRef((n,o)=>{var{prefixCls:t,loading:a,className:l,rootClassName:i,classNames:s,style:c,styles:d,children:u,avatar:p=!1,title:m=!0,paragraph:f=!0,active:h,round:g}=n,{getPrefixCls:v,direction:b,className:y,style:C,classNames:x,styles:w}=Fe("skeleton"),v=v("skeleton",t),[t,S]=Hp(v),k={...n,avatar:p,title:m,paragraph:f},C=We(C),c=We(c),[x,s]=je([x,s],[w,C,d,c],{props:k});let E=Re().useRef(null);if(Re().useImperativeHandle(o,()=>({nativeElement:E.current})),!a&&"loading"in n)return u??null;{w=!!p,C=!!m,d=!!f;let e;w&&(c={className:x.avatar,prefixCls:v+"-avatar",...C&&!d?{size:"large",shape:"square"}:{size:"large",shape:"circle"},...Wp(p),style:s.avatar},e=Re().createElement("div",{className:bt(x.header,v+"-header"),style:s.header},Re().createElement(wp,{...c})));let r;if(C||d){let e;C&&(a={className:x.title,prefixCls:v+"-title",...(k=w,o=d,!k&&o?{width:"38%"}:k&&o?{width:"50%"}:{}),...Wp(m),style:s.title},e=Re().createElement(Fp,{...a}));let t;d&&(c={className:x.paragraph,prefixCls:v+"-paragraph",...(n=w,u=C,p={},n&&u||(p.width="61%"),p.rows=!n&&u?3:2,p),...Wp(f),style:s.paragraph},t=Re().createElement(Lp,{...c})),r=Re().createElement("div",{className:bt(x.section,v+"-section"),style:s.section},e,t)}k=bt(v,{[v+"-with-avatar"]:w,[v+"-active"]:h,[v+"-rtl"]:"rtl"===b,[v+"-round"]:g},x.root,y,l,i,t,S);return Re().createElement("div",{ref:E,className:k,style:s.root},e,r)}});o.Button=s,o.Avatar=l,o.Input=c,o.Image=i,o.Node=Ap;var jp=o;function _p(){}let Kp=ft.createContext({add:_p,remove:_p});function Vp(t){let r=ft.useContext(Kp),n=ft.useRef(null);return ht(e=>{e?(e=t?e.querySelector(t):e)&&(r.add(e),n.current=e):r.remove(n.current)})}var Xp=Kp,qp=()=>{var{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=(0,ft.useContext)(Od);return Re().createElement(Bd,{onClick:r,...e},t)},Gp=()=>{var{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:o}=(0,ft.useContext)(Od);return Re().createElement(Bd,{...kc(r),loading:e,onClick:o,...t},n)};function Yp(e,t){return Re().createElement("span",{className:e+"-close-x"},t||Re().createElement(Ko,{className:e+"-close-icon"}))}let Up=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:a,onCancel:l,okButtonProps:i,cancelButtonProps:s,footer:c}=e;var[e]=nc("Modal",Ni);let d=t||e?.okText,u=n||e?.cancelText;e=Re().useMemo(()=>({confirmLoading:o,okButtonProps:i,cancelButtonProps:s,okTextLocale:d,cancelTextLocale:u,okType:r,onOk:a,onCancel:l}),[o,i,s,d,u,r,a,l]);let p;return p=Je(c)||void 0===c?(p=Re().createElement(Re().Fragment,null,Re().createElement(qp,null),Re().createElement(Gp,null)),Je(c)&&(p=c(p,{OkBtn:Gp,CancelBtn:qp})),Re().createElement(Hd,{value:e},p)):c,Re().createElement(Ms,{disabled:!1},p)};let Qp=(e,t)=>{var{componentCls:r,gridColumns:n,antCls:e}=e,[o,a]=Q(e,"grid"),[,e]=Q(e,"col"),l={};for(let e=n;0<=e;e--)0===e?(l[""+r+t+"-"+e]={display:"none"},l[r+"-push-"+e]={insetInlineStart:"auto"},l[r+"-pull-"+e]={insetInlineEnd:"auto"},l[""+r+t+"-push-"+e]={insetInlineStart:"auto"},l[""+r+t+"-pull-"+e]={insetInlineEnd:"auto"},l[""+r+t+"-offset-"+e]={marginInlineStart:0},l[""+r+t+"-order-"+e]={order:0}):(l[""+r+t+"-"+e]=[{[o("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${e/n*100}%`,maxWidth:e/n*100+"%"}],l[""+r+t+"-push-"+e]={insetInlineStart:e/n*100+"%"},l[""+r+t+"-pull-"+e]={insetInlineEnd:e/n*100+"%"},l[""+r+t+"-offset-"+e]={marginInlineStart:e/n*100+"%"},l[""+r+t+"-order-"+e]={order:e});return l[""+r+t+"-flex"]={flex:e(t.replace(/-/,"")+"-flex")},l},Zp=(e,t)=>Qp(e,t);let Jp=Be("Grid",e=>{e=e.componentCls;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),em=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),tm=Be("Grid",e=>{let n=ze(e,{gridColumns:24}),o=em(n);return delete o.xs,[(e=>{e=e.componentCls;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}})(n),Zp(n,""),Zp(n,"-xs"),Object.keys(o).map(e=>{return t=n,r=o[e],e="-"+e,{[`@media (min-width: ${(0,Qe.unit)(r)})`]:{...Zp(t,e)}};var t,r}).reduce((e,t)=>({...e,...t}),{})]},()=>({})),rm=e=>({animationDuration:e,animationFillMode:"both"}),nm=(e,t,r,n,o=!1)=>{o=o?"&":"";return{[`
${o}${e}-enter,
${o}${e}-appear
`]:{...rm(n),animationPlayState:"paused"},[o+e+"-leave"]:{...rm(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"}}},om=new Qe.Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),am=new Qe.Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),lm=(e,t=!1)=>{var r=e.antCls,r=r+"-fade",n=t?"&":"";return[nm(r,om,am,e.motionDurationMid,t),{[`
${n}${r}-enter,
${n}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[n+r+"-leave"]:{animationTimingFunction:"linear"}}]},im=new Qe.Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}});d=new Qe.Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Wn=new Qe.Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),n=new Qe.Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),e=new Qe.Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),a=new Qe.Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Fn=new Qe.Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),s=new Qe.Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),l=new Qe.Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),c=new Qe.Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),i=new Qe.Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),o=new Qe.Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}});let sm={zoom:{inKeyframes:im,outKeyframes:d},"zoom-big":{inKeyframes:Wn,outKeyframes:n},"zoom-big-fast":{inKeyframes:Wn,outKeyframes:n},"zoom-left":{inKeyframes:Fn,outKeyframes:s},"zoom-right":{inKeyframes:l,outKeyframes:c},"zoom-up":{inKeyframes:e,outKeyframes:a},"zoom-down":{inKeyframes:i,outKeyframes:o}},cm=(e,t)=>{var r=e.antCls,r=r+"-"+t,{inKeyframes:n,outKeyframes:o}=sm[t];return[nm(r,n,o,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[r+"-leave"]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function dm(e){return{position:e,inset:0}}let um=e=>{var t=e.padding,r=e.fontSizeHeading5;return ze(e,{modalHeaderHeight:e.calc(e.calc(e.lineHeightHeading5).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})};var d=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:(0,Qe.unit)(e.paddingMD)+" "+(0,Qe.unit)(e.paddingContentHorizontalLG),headerPadding:e.wireframe?(0,Qe.unit)(e.padding)+" "+(0,Qe.unit)(e.paddingLG):0,headerBorderBottom:e.wireframe?`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?(0,Qe.unit)(e.paddingXS)+" "+(0,Qe.unit)(e.padding):0,footerBorderTop:e.wireframe?`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Qe.unit)(e.borderRadiusLG)} `+(0,Qe.unit)(e.borderRadiusLG):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Qe.unit)(2*e.padding)} ${(0,Qe.unit)(2*e.padding)} `+(0,Qe.unit)(e.paddingLG):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),pm=Be("Modal",e=>{e=um(e);return[(e=>{let{componentCls:t,motionDurationMid:r}=e;return[{[t+"-root"]:{[t+"-wrap-rtl"]:{direction:"rtl"},[t+"-centered"]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:(0,Qe.unit)(e.marginXS)+" auto"},[t+"-centered"]:{[t]:{flex:1}}}}},{[t]:{...F(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Qe.unit)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...dn(e)},[t+"-title"]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[t+"-container"]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[t+"-close"]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(e=>e+" "+r).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,Qe.unit)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...un(e)},[t+"-header"]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[t+"-body"]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[t+"-body-skeleton"]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:(0,Qe.unit)(e.margin)+" auto"}},[t+"-footer"]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[t+"-open"]:{overflow:"hidden"}}},{[t+"-pure-panel"]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[t+`-container,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[t+"-confirm-body"]:{marginBottom:"auto"}}}]})(e),(e=>{e=e.componentCls;return{[e+"-root"]:{[e+"-wrap-rtl"]:{direction:"rtl",[e+"-confirm-body"]:{direction:"rtl"}}}}})(e),(e=>{var{componentCls:t,antCls:r}=e;return[{[t+"-root"]:{[""+t+r+`-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[""+t+r+`-zoom-leave ${t}-container`]:{pointerEvents:"none"},[t+"-mask"]:{...dm("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[t+"-hidden"]:{display:"none"}},[t+"-wrap"]:{...dm("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[t+"-root"]:lm(e)}]})(e),cm(e,"zoom"),(e=>{var t=e.componentCls;let r=em(e),n={...r},o=(delete n.xs,`--${t.replace(".","")}-`);e=Object.keys(n).map(e=>({[`@media (min-width: ${(0,Qe.unit)(n[e])})`]:{width:`var(${o}${e}-width)`}}));return{[t+"-root"]:{[t]:[].concat(Pe(Object.keys(r).map((e,t)=>{t=Object.keys(r)[t-1];return t?{[o+e+"-width"]:`var(${o}${t}-width)`}:null})),[{width:`var(${o}xs-width)`}],Pe(e))}}})(e)]},d,{unitless:{titleLineHeight:!0}});let mm;(0,Ke.A)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{mm={x:e.pageX,y:e.pageY},setTimeout(()=>{mm=null},100)},!0);var fm=e=>{let{prefixCls:t,className:r,rootClassName:n,open:o,wrapClassName:a,centered:l,getContainer:i,style:H,width:s=520,footer:A,classNames:D,styles:L,children:F,loading:c,confirmLoading:W,zIndex:j,mousePosition:_,onOk:K,onCancel:V,okButtonProps:X,cancelButtonProps:q,destroyOnHidden:G,destroyOnClose:Y,panelRef:d=null,closable:u,mask:U,modalRender:p,maskClosable:Q,_semanticOmit:m,scrollLock:Z,focusTriggerAfterClose:J,focusable:ee,_renderSemanticContent:f,...te}=e;var{getPopupContainer:re,getPrefixCls:h,direction:g,className:ne,style:oe,classNames:v,styles:b,centered:y,cancelButtonProps:C,okButtonProps:x,mask:w,focusable:S}=Fe("modal"),k=ft.useContext(Ue).modal;let[ae,E]=ft.useMemo(()=>"boolean"==typeof u?[void 0,void 0]:[u?.afterClose,u?.onClose],[u]),N=h("modal",t);var h=h(),[w,I,M]=Us(U,w,N,Q),S=xp({...S,...ee},w,J),$=e=>{W||(V?.(e),E?.())},R=nl(N),[P,le]=pm(N,R),y=bt(a,{[N+"-centered"]:l??y,[N+"-wrap-rtl"]:"rtl"===g}),g=null===A||c?null:ft.createElement(Up,{...e,okButtonProps:{...x,...X},onOk:e=>{K?.(e),E?.()},cancelButtonProps:{...C,...q},onCancel:$}),[x,C,k,z]=hp(cp(e),cp(k),{closable:!0,closeIcon:ft.createElement(Ko,{className:N+"-close-icon"}),closeIconRender:e=>Yp(N,e)}),x=!!x&&{disabled:k,closeIcon:C,afterClose:ae,...z},k=p?e=>ft.createElement("div",{className:N+"-render"},p(e)):void 0,z=Vp(`.${N}-`+(p?"render":"container")),z=Ne(d,z),[B,ie]=Cp("Modal",j),T={...e,width:s,panelRef:d,focusTriggerAfterClose:S.focusTriggerAfterClose,focusable:S,mask:w,maskClosable:M,zIndex:B},[v,I]=je([v,D,I],[b,L],{props:T}),b=m?at(v,m):v,T=m?at(I,m):I,v=f?f({classNames:v,styles:I}):F;let[se,O]=ft.useMemo(()=>Ze(s)?[void 0,s]:[s,void 0],[s]);I=ft.useMemo(()=>{let r={};return O&&Object.keys(O).forEach(e=>{var t=O[e];Ia(t)&&(r[`--${N}-${e}-width`]=Ma(t)?t+"px":t)}),r},[N,O]);return ft.createElement(sp,{form:!0,space:!0},ft.createElement(gp.Provider,{value:ie},ft.createElement(Zd,{width:se,...te,zIndex:B,getContainer:void 0===i?re:i,prefixCls:N,rootClassName:bt(P,n,le,R,b.root),rootStyle:T.root,footer:g,visible:o,mousePosition:_??mm,onClose:$,closable:x,closeIcon:C,transitionName:tc(h,"zoom",e.transitionName),maskTransitionName:tc(h,"fade",e.maskTransitionName),mask:w,maskClosable:M,scrollLock:Z,className:bt(P,r,ne),style:{...oe,...H,...I},classNames:{...b,wrapper:bt(b.wrapper,y)},styles:T,panelRef:z,destroyOnHidden:G??Y,modalRender:k,focusTriggerAfterClose:S.focusTriggerAfterClose,focusTrap:S.trap},c?ft.createElement(jp,{active:!0,title:!1,paragraph:{rows:4},className:N+"-body-skeleton"}):v)))};var hm=uo(["Modal","confirm"],e=>(e=>{var{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:o,fontSize:a,lineHeight:l,modalTitleHeight:i,fontHeight:s,confirmBodyPadding:c}=e,d=t+"-confirm";return{[d]:{"&-rtl":{direction:"rtl"},[e.antCls+"-modal-header"]:{display:"none"},[d+"-body-wrapper"]:{...cn()},[`&${t} ${t}-body`]:{padding:c},[d+"-body"]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> "+e.iconCls]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},["&-has-title > "+e.iconCls]:{marginTop:e.calc(e.calc(i).sub(o).equal()).div(2).equal()}},[d+"-paragraph"]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,Qe.unit)(e.marginSM)})`},[d+`-body-no-icon ${d}-paragraph`]:{maxWidth:"100%"},[e.iconCls+` + ${d}-paragraph`]:{maxWidth:`calc(100% - ${(0,Qe.unit)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[d+"-title"]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[d+"-container"]:{color:e.colorText,fontSize:a,lineHeight:l},[d+"-btns"]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[e.antCls+`-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[d+`-error ${d}-body > `+e.iconCls]:{color:e.colorError},[d+`-warning ${d}-body > ${e.iconCls},
${d}-confirm ${d}-body > `+e.iconCls]:{color:e.colorWarning},[d+`-info ${d}-body > `+e.iconCls]:{color:e.colorInfo},[d+`-success ${d}-body > `+e.iconCls]:{color:e.colorSuccess}}})(um(e)),d,{order:-1e3});let gm=["body"],vm=e=>{let{prefixCls:t,icon:r,okText:n,cancelText:o,confirmPrefixCls:a,type:l,okCancel:i,footer:s,locale:c,autoFocusButton:d,focusable:u,contentClassName:p,contentStyle:m,...f}=e;var{infoIcon:h,successIcon:g,errorIcon:v,warningIcon:b}=Fe("modal");let y=r;if(void 0===r)switch(l){case"info":y=Gs(h,ft.createElement(Go,null));break;case"success":y=Gs(g,ft.createElement(Fo,null));break;case"error":y=Gs(v,ft.createElement(jo,null));break;default:y=Gs(b,ft.createElement(Xo,null))}let C=i??"confirm"===l,x=ft.useMemo(()=>{var e=u?.autoFocusButton||d;return e||null===e?e:"ok"},[d,u?.autoFocusButton]);var[w]=nc("Modal"),w=c||w;let S=n||(C?w?.okText:w?.justOkText),k=o||w?.cancelText;w=f.closable;let E=(Ze(w)?w:{}).onClose;var w=ft.useMemo(()=>({autoFocusButton:x,cancelTextLocale:k,okTextLocale:S,mergedOkCancel:C,onClose:E,...f}),[x,k,S,C,E,f]),N=ft.createElement(ft.Fragment,null,ft.createElement(Ad,null),ft.createElement(Dd,null)),I=Se(e.title),M=Se(y),$=a+"-body";return ft.createElement("div",{className:a+"-body-wrapper"},ft.createElement("div",{className:bt($,{[$+"-has-title"]:I,[$+"-no-icon"]:!M})},y,ft.createElement("div",{className:a+"-paragraph"},I&&ft.createElement("span",{className:a+"-title"},e.title),ft.createElement("div",{className:bt(a+"-content",p),style:m},e.content))),void 0===s||Je(s)?ft.createElement(Hd,{value:w},ft.createElement("div",{className:a+"-btns"},Je(s)?s(N,{OkBtn:Dd,CancelBtn:Ad}):N)):s,ft.createElement(hm,{prefixCls:t}))},bm=r=>{let{close:e,zIndex:t,maskStyle:n,direction:o,prefixCls:a,wrapClassName:l,rootPrefixCls:i,bodyStyle:s,closable:c=!1,onConfirm:d,styles:u,title:p,mask:m,maskClosable:f,okButtonProps:h,cancelButtonProps:g}=r,{cancelButtonProps:v,okButtonProps:b}=Fe("modal"),y=a+"-confirm";var C=r.width||416,x=r.style||{},w=Je(u)?e=>({body:s,mask:n,...u(e)}):{body:s,mask:n,...u},S=at(r,["bodyStyle","maskStyle"]),k=bt(y,y+"-"+r.type,{[y+"-rtl"]:"rtl"===o},r.className),E=ft.useMemo(()=>{var e=Ys(m,f);return e.closable??(e.closable=!1),e},[m,f]);let[,N]=so();var I=ft.useMemo(()=>void 0!==t?t:N.zIndexPopupBase+1e3,[t,N]);return ft.createElement(fm,{...S,className:k,wrapClassName:bt({[y+"-centered"]:!!r.centered},l),onCancel:()=>{e?.({triggerCancel:!0}),d?.(!1)},title:p,footer:null,transitionName:tc(i||"","zoom",r.transitionName),maskTransitionName:tc(i||"","fade",r.maskTransitionName),mask:E,style:x,styles:w,width:C,zIndex:I,closable:c,_semanticOmit:gm,_renderSemanticContent:({classNames:e,styles:t})=>ft.createElement(vm,{...r,confirmPrefixCls:y,okButtonProps:{...b,...h},cancelButtonProps:{...v,...g},contentClassName:e.body,contentStyle:t.body})})};var ym=e=>{var{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:o}=e;return ft.createElement(qs,{prefixCls:t,iconPrefixCls:r,direction:n,theme:o},ft.createElement(bm,{...e}))},Cm=[];let xm="";let wm=e=>{var{prefixCls:t,getContainer:r,direction:n}=e,o=Ni,a=(0,ft.useContext)(Ue),l=xm||a.getPrefixCls(),t=t||l+"-modal";let i=r;return!1===i&&(i=void 0),Re().createElement(ym,{...e,rootPrefixCls:l,prefixCls:t,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:n??a.direction,locale:a.locale?.Modal??o,getContainer:i})};function Sm(t){let a=Vs(),l=document.createDocumentFragment(),r={...t,close:o,open:!0},e;let n=o=>{clearTimeout(e),e=setTimeout(()=>{var e=a.getPrefixCls(void 0,xm),t=a.getIconPrefixCls(),r=a.getTheme(),n=Re().createElement(wm,{...o});sr(Re().createElement(qs,{prefixCls:e,iconPrefixCls:t,theme:r},Je(a.holderRender)?a.holderRender(n):n),l)})};function o(...e){r={...r,open:!1,afterClose:()=>{Je(t.afterClose)&&t.afterClose(),function(...e){e.some(e=>e?.triggerCancel)&&t.onCancel?.(()=>{},...e.slice(1));for(let e=0;e<Cm.length;e++)if(Cm[e]===o){Cm.splice(e,1);break}cr(l).then(()=>{})}.apply(this,e)}},n(r)}return n(r),Cm.push(o),{destroy:o,update:function(e){r=Je(e)?e(r):{...r,...e},n(r)}}}function km(e){return{...e,type:"warning"}}function Em(e){return{...e,type:"info"}}function Nm(e){return{...e,type:"success"}}function Im(e){return{...e,type:"error"}}function Mm(e){return{...e,type:"confirm"}}var $m=ft.forwardRef((e,t)=>{let{afterClose:r,config:n,...o}=e,[a,l]=ft.useState(!0),[i,s]=ft.useState(n);var{direction:e,getPrefixCls:c}=ft.useContext(Ue),d=c("modal"),c=c();let u=(...e)=>{l(!1),e.some(e=>e?.triggerCancel)&&i.onCancel?.(()=>{},...e.slice(1))};ft.useImperativeHandle(t,()=>({destroy:u,update:r=>{s(e=>{var t=Je(r)?r(e):r;return{...e,...t}})}}));var t=i.okCancel??"confirm"===i.type,[p]=nc("Modal",Ei.default.Modal);return ft.createElement(ym,{prefixCls:d,rootPrefixCls:c,...i,close:u,open:a,afterClose:()=>{r(),i.afterClose?.()},okText:i.okText||(t?p?.okText:p?.justOkText),direction:i.direction||e,cancelText:i.cancelText||p?.cancelText,...o})});let Rm=0,Pm=ft.memo(ft.forwardRef((e,t)=>{let[r,n]=(()=>{let[e,r]=ft.useState([]);return[e,ft.useCallback(t=>(r(e=>[].concat(Pe(e),[t])),()=>{r(e=>e.filter(e=>e!==t))}),[])]})();return ft.useImperativeHandle(t,()=>({patchElement:n}),[n]),ft.createElement(ft.Fragment,null,r)}));var zm=function(){let i=ft.useRef(null),[e,s]=ft.useState([]),t=(ft.useEffect(()=>{e.length&&(Pe(e).forEach(e=>{e()}),s([]))},[e]),ft.useCallback(l=>function(e){Rm+=1;let r=ft.createRef(),t,n=new Promise(e=>{t=e}),o=!1,a;e=ft.createElement($m,{key:"modal-"+Rm,config:l(e),ref:r,afterClose:()=>{a?.()},isSilent:()=>o,onConfirm:e=>{t(e)}}),(a=i.current?.patchElement(e))&&Cm.push(a),e={destroy:()=>{function t(){r.current?.destroy()}r.current?t():s(e=>[].concat(Pe(e),[t]))},update:e=>{function t(){r.current?.update(e)}r.current?t():s(e=>[].concat(Pe(e),[t]))},then:e=>(o=!0,n.then(e))};return e},[]));return[ft.useMemo(()=>({info:t(Em),success:t(Nm),error:t(Im),warning:t(km),confirm:t(Mm)}),[t]),ft.createElement(Pm,{key:"modal-holder",ref:i})]};let Bm={info:ft.createElement(Go,null),success:ft.createElement(Fo,null),error:ft.createElement(jo,null),warning:ft.createElement(Xo,null),loading:ft.createElement(Al,null)};function Tm(e,t){return null===t||!1===t?null:t||ft.createElement(Ko,{className:e+"-close-icon"})}Wn=e=>{let{prefixCls:t,icon:r,type:n,message:o,title:a,description:l,btn:i,actions:s,closeIcon:c,className:d,style:u,styles:p,classNames:m,closable:f,role:h,...g}=e;var{getPrefixCls:v,className:b,style:y,classNames:C,styles:x}=Fe("notification"),[C,x]=je([C,m],[x,p],{props:e}),w=ft.useContext(Ue).notification,S=s??i,k=a??o,E=Se(k);let N=t||v("notification");var v=N+"-notice",I=r||(n?Bm[n]:null),M=!r&&n?v+"-icon-"+n:void 0;let{root:$,...R}=C,{root:P,...z}=x;var C=nl(N),[x,B]=ci(N,C),[e,w,,T]=hp(cp(e),cp(w),{closable:!0,closeIcon:ft.createElement(Ko,{className:N+"-close-icon"}),closeIconRender:e=>Tm(N,e)}),e=!!e&&{onClose:Ze(f)?f?.onClose:void 0,closeIcon:w,...T};return ft.createElement("div",{className:bt(v+"-pure-panel",x,d,B,C,$),style:P},ft.createElement(ii,{prefixCls:N}),ft.createElement(xl,{style:{...y,...u},...g,prefixCls:N,duration:null,closable:e,className:b,title:E?k:null,description:l,icon:I,actions:S,role:h,classNames:{...R,icon:bt(M,R.icon)},styles:z}))};let Om="topRight",Hm={offset:8},Am=({children:e,prefixCls:t})=>{var r=nl(t),[t,n]=ci(t,r);return Re().createElement(Sl,{classNames:{list:bt(t,n,r)}},e)},Dm=(e,{prefixCls:t,key:r})=>Re().createElement(Am,{prefixCls:t,key:r},e),Lm=Re().forwardRef((e,t)=>{let{top:r,bottom:n,prefixCls:o,getContainer:a,maxCount:l,rtl:i,onAllRemoved:s,stack:c,duration:d=4.5,pauseOnHover:u=!0,showProgress:p}=e,{getPrefixCls:m,getPopupContainer:f,direction:h}=Fe("notification"),g=(0,ft.useContext)(Ue).notification,[v]=nc("global",Ei.default.global),b=o||m("notification");var y=(0,ft.useMemo)(()=>!!(Ma(d)&&0<d)&&d,[d]),C=We(g?.style),[C,e]=je([g?.classNames,e?.classNames],[g?.styles,C,e?.styles],{props:e}),x=Tl(c,Hm);let[w,S]=Bl({prefixCls:b,style:()=>Ol(r,n),className:()=>bt({[b+"-rtl"]:i??"rtl"===h}),motion:()=>({motionName:b+"-fade"}),closable:{closeIcon:Tm(b)},duration:y,getContainer:()=>a?.()||f?.()||document.body,maxCount:l,pauseOnHover:u,showProgress:p,classNames:C,styles:e,onAllRemoved:s,renderNotifications:Dm,stack:x});return Re().useImperativeHandle(t,()=>({...w,prefixCls:b,notification:g,closeLabel:v.close??Ei.default.global?.close??"Close"})),S});function Fm(N){let I=Re().useRef(null);fl("Notification");let M=Re().useContext(Ue).notification;return[Re().useMemo(()=>{let r=e=>{if(!I.current)return;var{open:t,prefixCls:r,notification:n,closeLabel:o}=I.current,a=n?.className||{},r=r+"-notice";let{title:l,message:i,description:s,icon:c,type:d,btn:u,actions:p,className:m,style:f,role:h="alert",closeIcon:g,closable:v,classNames:b={},styles:y={},...C}=e;var x=l??i,w=Se(x),S=p??u,k=Tm(r,(E=N,n=n,void 0!==(k=g)?k:void 0!==E?.closeIcon?E.closeIcon:n?.closeIcon)),[E,n,,k]=fp(cp({...N||{},...e}),cp(M),{closable:!0,closeIcon:k},o),o=!!E&&{onClose:Ze(v)?v.onClose:void 0,closeIcon:n,...k},E=Fa(b,{props:e}),n=Fa(y,{props:e}),k=c||(d?Bm[d]:null),e=!c&&d?r+"-icon-"+d:void 0;return t({placement:N?.placement??Om,...C,title:w?x:null,description:s,icon:k,actions:S,role:h,classNames:{...E,icon:bt(e,E?.icon)},styles:n,className:bt({[r+"-"+d]:d},m,a),style:f,closable:o})};let e={open:r,destroy:e=>{void 0!==e?I.current?.close(e):I.current?.destroy()}};return["success","info","warning","error"].forEach(t=>{e[t]=e=>r({...e,type:t})}),e},[N,M]),Re().createElement(Lm,{key:"notification-holder",...N,ref:I})]}function Wm(e){return Fm(e)}let jm=Re().createContext({});var _m=Re().createContext({message:{},notification:{},modal:{}}),Km=Be("App",e=>{var{componentCls:e,colorText:t,fontSize:r,lineHeight:n,fontFamily:o}=e;return{[e]:{color:t,fontSize:r,lineHeight:n,fontFamily:o,[`&${e}-rtl`]:{direction:"rtl"}}}},()=>({})),n=Re().forwardRef((e,t)=>{let{prefixCls:r,children:n,className:o,rootClassName:a,message:l,notification:i,style:s,component:c="div"}=e;var{direction:e,getPrefixCls:d,className:u,style:p}=Fe("app"),d=d("app",r),[m,f]=Km(d),m=bt(m,d,o,a,f,{[d+"-rtl"]:"rtl"===e});let h=(0,ft.useContext)(jm);d=Re().useMemo(()=>({message:{...h.message,...l},notification:{...h.notification,...i}}),[l,i,h.message,h.notification]);let[g,v]=Si(d.message),[b,y]=Wm(d.notification),[C,x]=zm();var e=Re().useMemo(()=>({message:g,notification:b,modal:C}),[g,b,C]),w=ml("App"),S=Boolean(o||a||s||u||p),f=(w(!(f&&!1===c&&S),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),w(!t||!1!==c,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead."),!1===c?Re().Fragment:c),S={className:bt(u,m),style:{...p,...s}};return Re().createElement(_m.Provider,{value:e},Re().createElement(jm.Provider,{value:d},Re().createElement(f,{...!1===c?void 0:{...S,ref:t}},x,v,y,n)))}),Vm=(n.useApp=()=>Re().useContext(_m),n);function Xm(t){return e=>ft.createElement(qs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},ft.createElement(t,{...e}))}Fn=(m,f,h,g,v)=>Xm(e=>{var{prefixCls:t,style:r}=e;let n=ft.useRef(null),[o,a]=ft.useState(0),[l,i]=ft.useState(0),[s,c]=vt(!1,e.open);var d=ft.useContext(Ue).getPrefixCls;let u=d(g||"select",t),p=(ft.useEffect(()=>{if(c(!0),"undefined"!=typeof ResizeObserver){let t=new ResizeObserver(e=>{e=e[0].target;a(e.offsetHeight+8),i(e.offsetWidth)}),r=setInterval(()=>{var e=v?"."+v(u):`.${u}-dropdown`,e=n.current?.querySelector(e);e&&(clearInterval(r),t.observe(e))},10);return()=>{clearInterval(r),t.disconnect()}}},[u]),{...e,style:{...r,margin:0},open:s,getPopupContainer:()=>n.current});return h&&(p=h(p)),f&&(p={...p,[f]:{overflow:{adjustX:!1,adjustY:!1}}}),ft.createElement("div",{ref:n,style:{paddingBottom:o,position:"relative",minWidth:l}},ft.createElement(m,{...p}))});let qm=ft.createContext(null);function Gm(){return ft.useContext(qm)}function Ym(t=250){let r=ft.useRef(null),n=ft.useRef(null);return ft.useEffect(()=>()=>{window.clearTimeout(n.current)},[]),[()=>r.current,function(e){!e&&null!==r.current||(r.current=e),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current=null},t)}]}function Um(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Qm(){return(Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let Zm=e=>{e=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"}}};var Jm=ft.forwardRef((e,t)=>{let{prefixCls:r,disabled:n,visible:o,children:a,popupElement:l,animation:i,transitionName:s,popupStyle:c,popupClassName:d,direction:u="ltr",placement:p,builtinPlacements:m,popupMatchSelectWidth:f,popupRender:h,popupAlign:g,getPopupContainer:v,empty:b,onPopupVisibleChange:y,onPopupMouseEnter:C,onPopupMouseDown:x,onPopupBlur:w,...S}=e;e=r+"-dropdown";let k=l;h&&(k=h(l));var E=ft.useMemo(()=>m||Zm(f),[m,f]),N=i?e+"-"+i:s;let I="number"==typeof f;var M=ft.useMemo(()=>!1===f||I?"minWidth":"width",[f,I]);let $=c,R=(I&&($={...c,width:f}),ft.useRef(null));return ft.useImperativeHandle(t,()=>({getPopupElement:()=>R.current?.popupElement})),ft.createElement(Cs,Qm({},S,{showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:p||("rtl"===u?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:e,popupMotion:{motionName:N},popup:ft.createElement("div",{onMouseEnter:C,onMouseDown:x,onBlur:w},k),ref:R,stretch:M,popupAlign:g,popupVisible:o,getPopupContainer:v,popupClassName:bt(d,{[e+"-empty"]:b}),popupStyle:$,onPopupVisibleChange:y}),a)});function ef(e,t){var r=e.key;let n;return"value"in e&&({value:n}=e),null!=r?r:void 0!==n?n:"rc-index-key-"+t}function tf(e){return void 0!==e&&!Number.isNaN(e)}function rf(e,t){var{label:e,value:r,options:n,groupLabel:o}=e||{},e=e||(t?"children":"label");return{label:e,value:r||"value",options:n||"options",groupLabel:o||e}}function nf(e,{fieldNames:t,childrenAsData:o}={}){let a=[],{label:l,value:i,options:s,groupLabel:c}=rf(t,!1);return function r(e,n){Array.isArray(e)&&e.forEach(t=>{if(!n&&s in t){let e=t[c];void 0===e&&o&&(e=t.label),a.push({key:ef(t,a.length),group:!0,data:t,label:e}),r(t[s],!0)}else{var e=t[i];a.push({key:ef(t,a.length),groupOption:n,data:t,label:t[l],value:e})}})}(e,!1),a}function of(e){let t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return(0,Te.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function af(e){var{visible:e,values:t}=e;return e?ft.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},""+t.slice(0,50).map(({label:e,value:t})=>["number","string"].includes(typeof e)?e:t).join(", "),50<t.length?", ...":null):null}let lf=e=>{var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},sf=(e,t=1)=>{t<=0?e():lf(()=>{sf(e,t-1)})};function cf(e){let{children:t,...r}=e;return t?ft.createElement("div",r,t):null}let df=ft.createContext(null);function uf(){return ft.useContext(df)}var pf=df,mf=ft.forwardRef((t,e)=>{let{onChange:n,onKeyDown:o,onBlur:r,style:a,syncWidth:l,value:i,className:s,autoComplete:c,...d}=t,{prefixCls:u,mode:p,onSearch:m,onSearchSubmit:f,onInputBlur:h,autoFocus:g,tokenWithEnter:v,placeholder:b,components:{input:y="input"}}=uf(),{id:C,classNames:x,styles:w,open:S,activeDescendantId:k,role:E,disabled:N}=Gm()||{};var I=bt(u+"-input",x?.input,s);let M=ft.useRef(!1),$=ft.useRef(null),R=ft.useRef(null);ft.useImperativeHandle(e,()=>R.current);let[P,z]=ft.useState(void 0),B=(gt(()=>{var e,t=R.current;l&&t&&(t.style.width="0px",e=t.scrollWidth,z(e),t.style.width="")},[l,i]),{id:C,type:"text",...d,ref:R,style:{...w?.input,...a,"--select-input-width":P},autoFocus:g,autoComplete:c||"new-password",className:I,disabled:N,value:i||"",onChange:e=>{let t=e.target.value;var r;v&&$.current&&/[\r\n]/.test($.current)&&(r=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),t=t.replace(r,$.current)),$.current=null,m&&m(t,!0,M.current),n?.(e)},onKeyDown:e=>{var t=e.key,r=e.currentTarget.value;"Enter"!==t||"tags"!==p||S||M.current||!f||f(r),o?.(e)},onBlur:e=>{h?.(),r?.(e)},onPaste:e=>{e=e.clipboardData,e=e?.getData("text");$.current=e||""},onCompositionStart:()=>{M.current=!0},onCompositionEnd:e=>{M.current=!1,"combobox"!==p&&(e=e.currentTarget.value,m?.(e,!0,!1))},role:E||"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":S?C+"_list":void 0,"aria-autocomplete":"list","aria-controls":S?C+"_list":void 0,"aria-activedescendant":S?k:void 0});if(ft.isValidElement(y)){let e=y.props||{},n={placeholder:t.placeholder||b,...B,...e};return Object.keys(e).forEach(t=>{let r=e[t];"function"==typeof r&&(n[t]=(...e)=>{r(...e),B[t]?.(...e)})}),n.ref=Ne(y.ref,B.ref),ft.cloneElement(y,n)}return ft.createElement(y,B)});function ff(e){var{prefixCls:t,placeholder:r,displayValues:n}=uf(),{classNames:o,styles:a}=Gm(),{show:e=!0}=e;return n.length?null:ft.createElement("div",{className:bt(t+"-placeholder",o?.placeholder),style:{...e?{}:{visibility:"hidden"},...a?.placeholder}},r)}var hf=ft.createContext(null);function gf(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!=typeof window&&window.document&&window.document.documentElement;function vf(e){return["string","number"].includes(typeof e)}function bf(e){let t=void 0;return e&&(vf(e.title)?t=e.title.toString():vf(e.label)&&(t=e.label.toString())),t}function yf(){return(yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Cf=ft.forwardRef(({inputProps:t},e)=>{let{prefixCls:r,searchValue:n,activeValue:o,displayValues:a,maxLength:l,mode:i,components:s}=uf(),{triggerOpen:c,title:d,showSearch:u,classNames:p,styles:m}=Gm(),f=ft.useContext(hf),[h,g]=ft.useState(!1),v="combobox"===i,b=a[0];var y=ft.useMemo(()=>v&&o&&!h&&c?o:u?n:"",[v,o,h,c,n,u]),[C,x,w,S]=ft.useMemo(()=>{let e,t,r;b&&f?.flattenOptions&&(n=f.flattenOptions.find(e=>e.value===b.value))?.data&&(e=n.data.className,t=n.data.style,r=bf(n.data)),b&&!r&&(r=bf(b)),void 0!==d&&(r=d);var n=!!e||!!t;return[e,t,r,n]},[b,f?.flattenOptions,d]),k=(ft.useEffect(()=>{v&&g(!1)},[v,o]),b&&null!=b.label&&""!==String(b.label).trim()),C=!(v&&s?.input)?b?S?ft.createElement("div",{className:bt(r+"-content-value",C),style:{...y?{visibility:"hidden"}:{},...x},title:w},b.label):b.label:ft.createElement(ff,{show:!y}):null;return ft.createElement("div",{className:bt(r+"-content",k&&r+"-content-has-value",y&&r+"-content-has-search-value",S&&r+"-content-has-option-style",p?.content),style:m?.content,title:S?void 0:w},C,ft.createElement(mf,yf({ref:e},t,{value:y,maxLength:"combobox"===i?l:void 0,onChange:e=>{g(!0),t.onChange?.(e)}})))});let xf=void 0;function wf(e,t){let{prefixCls:r,invalidate:n,item:o,renderItem:a,responsive:l,responsiveDisabled:i,registerSize:s,itemKey:c,className:d,style:u,children:p,display:m,order:f,component:h="div",...g}=e;e=l&&!m;function v(e){s(c,e)}ft.useEffect(()=>()=>{v(null)},[]);var b=a&&o!==xf?a(o,{index:f}):p;let y;n||(y={opacity:e?0:1,height:e?0:xf,overflowY:e?"hidden":xf,order:l?f:xf,pointerEvents:e?"none":xf,position:e?"absolute":xf});var C={};e&&(C["aria-hidden"]=!0);let x=ft.createElement(h,od({className:bt(!n&&r,d),style:{...y,...u}},C,g,{ref:t}),b);return x=l?ft.createElement(gr,{onResize:({offsetWidth:e})=>{v(e)},disabled:i},x):x}var Sf=ft.forwardRef(wf);function kf(){let n=ft.useRef(null);return e=>{var t,r;n.current||(n.current=[],t=()=>{(0,yt().unstable_batchedUpdates)(()=>{n.current.forEach(e=>{e()}),n.current=null})},"undefined"==typeof MessageChannel?$e(t):((r=new MessageChannel).port1.onmessage=()=>t(),r.port2.postMessage(void 0))),n.current.push(e)}}function Ef(t,e){let[r,n]=ft.useState(e);return[r,ht(e=>{t(()=>{n(e)})})]}let Nf=Re().createContext(null);s=ft.forwardRef((r,n)=>{var e=ft.useContext(Nf);if(!e){let{component:e="div",...t}=r;return ft.createElement(e,od({},t,{ref:n}))}let{className:t,...o}=e,{className:a,...l}=r;return ft.createElement(Nf.Provider,{value:null},ft.createElement(Sf,od({ref:n,className:bt(t,a)},o,l)))});let If="responsive",Mf="invalidate";function $f(e){return`+ ${e.length} ...`}function Rf(e,H){let{prefixCls:t="rc-overflow",data:n=[],renderItem:r,renderRawItem:o,itemKey:a,itemWidth:l=10,ssr:A,style:D,className:L,maxCount:i,renderRest:F,renderRawRest:s,prefix:c,suffix:d,component:W="div",itemComponent:j,onVisibleChange:_,...K}=e,u="full"===A;e=kf();let[p,V]=Ef(e,null),m=p||0,[f,X]=Ef(e,new Map),[q,G]=Ef(e,0),[h,Y]=Ef(e,0),[g,U]=Ef(e,0),[v,Q]=Ef(e,0),[b,y]=(0,ft.useState)(null),[C,Z]=(0,ft.useState)(null),x=ft.useMemo(()=>null===C&&u?Number.MAX_SAFE_INTEGER:C||0,[C,p]),[J,ee]=(0,ft.useState)(!1);e=t+"-item";let w=Math.max(q,h);var S=i===If;let k=n.length&&S;var E=i===Mf,te=k||"number"==typeof i&&n.length>i;let N=(0,ft.useMemo)(()=>{let e=n;return k?e=null===p&&u?n:n.slice(0,Math.min(n.length,m/l)):"number"==typeof i&&(e=n.slice(0,i)),e},[n,l,p,i,k]);var I=(0,ft.useMemo)(()=>k?n.slice(x+1):n.slice(N.length),[n,N,k,x]);let M=(0,ft.useCallback)((e,t)=>"function"==typeof a?a(e):(a&&e?.[a])??t,[a]),re=(0,ft.useCallback)(r||(e=>e),[r]);function $(e,t,r){(C!==e||void 0!==t&&t!==b)&&(Z(e),r||(ee(e<n.length-1),_?.(e)),void 0!==t)&&y(t)}function R(t,r){X(e=>{e=new Map(e);return null===r?e.delete(t):e.set(t,r),e})}function P(e){return f.get(M(N[e],e))}gt(()=>{if(m&&"number"==typeof w&&N){let r=g+v;var e=N.length,n=e-1;if(e){for(let t=0;t<e;t+=1){let e=P(t);if(void 0===(e=u?e||0:e)){$(t-1,void 0,!0);break}if(r+=e,0==n&&r<=m||t===n-1&&r+P(n)<=m){$(n,null);break}if(r+w>m){$(t-1,r-e-v+h);break}}d&&P(0)+v>m&&y(null)}else $(0,null)}},[m,f,h,g,v,M,N]);var z=J&&!!I.length;let B={},T=(null!==b&&k&&(B={position:"absolute",top:0,insetInlineStart:b}),{prefixCls:e,responsive:k,component:j,invalidate:E});var ne=o?(e,t)=>{var r=M(e,t);return ft.createElement(Nf.Provider,{key:r,value:{...T,order:t,item:e,itemKey:r,registerSize:R,display:t<=x}},o(e,t))}:(e,t)=>{var r=M(e,t);return ft.createElement(Sf,od({},T,{order:t,key:r,item:e,renderItem:re,itemKey:r,registerSize:R,display:t<=x}))},z={order:z?x:Number.MAX_SAFE_INTEGER,className:e+"-rest",registerSize:function(e,t){Y(t),G(h)},display:z},O=F||$f,z=s?ft.createElement(Nf.Provider,{value:{...T,...z}},s(I)):ft.createElement(Sf,od({},T,z),"function"==typeof O?O(I):O),I=ft.createElement(W,od({className:bt(!E&&t,L),style:D,ref:H},K),c&&ft.createElement(Sf,od({},T,{responsive:S,responsiveDisabled:!k,order:-1,className:e+"-prefix",registerSize:function(e,t){U(t)},display:!0}),c),N.map(ne),te?z:null,d&&ft.createElement(Sf,od({},T,{responsive:S,responsiveDisabled:!k,order:x,className:e+"-suffix",registerSize:function(e,t){Q(t)},display:!0,style:B}),d));return S?ft.createElement(gr,{onResize:function(e,t){V(t.clientWidth)},disabled:!k},I):I}l=ft.forwardRef(Rf);l.Item=s,l.RESPONSIVE=If,l.INVALIDATE=Mf;var Pf=l,zf=e=>{let{className:t,style:r,customizeIcon:n,customizeIconProps:o,children:a,onMouseDown:l,onClick:i}=e;e="function"==typeof n?n(o):n;return ft.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),l?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...r},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==e?e:ft.createElement("span",{className:bt(t.split(/\s+/).map(e=>e+"-icon"))},a))};function Bf(){return(Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Tf(e){return e.key??e.value}let Of=e=>{e.preventDefault(),e.stopPropagation()};var Hf=ft.forwardRef(function({inputProps:e},t){let{prefixCls:r,displayValues:n,searchValue:o,mode:a,onSelectorRemove:i,removeIcon:l}=uf(),{disabled:s,showSearch:c,triggerOpen:d,rawOpen:u,toggleOpen:p,autoClearSearchValue:m,tagRender:f,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:v,classNames:b,styles:y}=Gm(),C=r+"-selection-item",x=o;u||"multiple"!==a||!1===m||(x="");var w=c&&x||"",S=c&&!s;let k=l??"×",E=h??(e=>`+ ${e.length} ...`),N=f,I=e=>{p(e)},M=(e,t,r,n,o)=>ft.createElement("span",{title:bf(e),className:bt(C,{[C+"-disabled"]:r},b?.item),style:y?.item},ft.createElement("span",{className:bt(C+"-content",b?.itemContent),style:y?.itemContent},t),n&&ft.createElement(zf,{className:bt(C+"-remove",b?.itemRemove),style:y?.itemRemove,onMouseDown:Of,onClick:o,customizeIcon:k},"×")),$=(e,t,r,n,o,a,l)=>ft.createElement("span",{onMouseDown:e=>{Of(e),I(!d)}},N({label:t,value:e,index:l?.index,disabled:r,closable:n,onClose:o,isMaxTag:!!a}));return ft.createElement(Pf,{prefixCls:r+"-content",className:b?.content,style:y?.content,prefix:!n.length&&!w&&ft.createElement(ff,null),data:n,renderItem:(t,e)=>{var{disabled:r,label:n,value:o}=t,a=!s&&!r;let l=n;"number"!=typeof g||"string"!=typeof n&&"number"!=typeof n||(n=String(l)).length>g&&(l=n.slice(0,g)+"...");n=e=>{e&&e.stopPropagation(),e=t,i?.(e)};return"function"==typeof N?$(o,l,r,a,n,void 0,e):M(t,l,r,a,n)},renderRest:e=>n.length?(e="function"==typeof E?E(e):E,"function"==typeof N?$(void 0,e,!1,!1,void 0,!0):M({title:e},e,!1)):null,suffix:ft.createElement(mf,Bf({ref:t,disabled:s,readOnly:!S},e,{value:w||"",syncWidth:!0})),itemKey:Tf,maxCount:v})}),Af=ft.forwardRef(function(e,t){var{multiple:r,onInputKeyDown:n,tabIndex:o}=uf(),a=Gm(),l=a.showSearch,a={...Jt(a,{aria:!0}),onKeyDown:n,readOnly:!l,tabIndex:o};return r?ft.createElement(Hf,{ref:t,inputProps:a}):ft.createElement(Cf,{ref:t,inputProps:a})});function Df(){return(Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let Lf=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"];var Ff=ft.forwardRef(function(e,t){let{prefixCls:r,className:n,style:o,prefix:a,suffix:l,clearIcon:i,clearLabel:s,children:c,multiple:d,displayValues:u,placeholder:p,mode:m,searchValue:f,onSearch:h,onSearchSubmit:g,onInputBlur:O,maxLength:H,autoFocus:A,onMouseDown:v,onClearMouseDown:b,onInputKeyDown:y,onSelectorRemove:D,tokenWithEnter:L,components:C,...x}=e,{triggerOpen:w,toggleOpen:S,showSearch:k,disabled:E,loading:N,classNames:I,styles:M}=Gm(),$=ft.useRef(null),R=ft.useRef(null);var P=ht(e=>{var t=e.which,r=R.current instanceof HTMLTextAreaElement;r||!w||t!==Ce.UP&&t!==Ce.DOWN||e.preventDefault(),y&&y(e),r&&!w&&~[Ce.UP,Ce.DOWN,Ce.LEFT,Ce.RIGHT].indexOf(t)||e.ctrlKey||e.altKey||e.metaKey||!(r=t)||[Ce.ESC,Ce.SHIFT,Ce.BACKSPACE,Ce.TAB,Ce.WIN_KEY,Ce.ALT,Ce.META,Ce.WIN_KEY_RIGHT,Ce.CTRL,Ce.SEMICOLON,Ce.EQUALS,Ce.CAPS_LOCK,Ce.CONTEXT_MENU,Ce.UP,Ce.LEFT,Ce.RIGHT,Ce.F1,Ce.F2,Ce.F3,Ce.F4,Ce.F5,Ce.F6,Ce.F7,Ce.F8,Ce.F9,Ce.F10,Ce.F11,Ce.F12].includes(r)||S(!0)}),t=(ft.useImperativeHandle(t,()=>({focus:e=>{(R.current||$.current).focus?.(e)},blur:()=>{(R.current||$.current).blur?.()},nativeElement:xt($.current)})),ht(e=>{var t,r;E||(r=xt(R.current),t=(e.nativeEvent._ori_target=r)===e.target||r?.contains(e.target),r&&!t&&e.preventDefault(),r=w&&!d&&("combobox"===m||k),t=w&&d&&t,r=r||t,e.nativeEvent._select_lazy?w&&!d&&S(!1):(R.current?.focus(),r||S())),v?.(e)})),z=C.root;let B=at(x,Lf);var T=Jt(B,{aria:!0}),T=Object.keys(T),e={...e,onInputKeyDown:P};if(z){let n=z.props||{},o={...n,...B};return Object.keys(n).forEach(e=>{let t=n[e],r=B[e];"function"==typeof t&&"function"==typeof r&&(o[e]=(...e)=>{r(...e),t(...e)})}),ft.isValidElement(z)?ft.cloneElement(z,{...o,ref:Ne(z.ref,$)}):ft.createElement(z,Df({},o,{ref:$}))}return ft.createElement(pf.Provider,{value:e},ft.createElement("div",Df({},at(B,T),{ref:$,className:n,style:o,onMouseDown:t}),ft.createElement(cf,{className:bt(r+"-prefix",I?.prefix),style:M?.prefix},a),ft.createElement(Af,{ref:R}),ft.createElement(cf,{className:bt(r+"-suffix",{[r+"-suffix-loading"]:N},I?.suffix),style:M?.suffix},l),i&&ft.createElement("button",{type:"button","aria-label":s,className:bt(r+"-clear",I?.clear),style:M?.clear,onMouseDown:e=>{e.preventDefault(),e.nativeEvent._select_lazy=!0},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},onClick:b},i),c))});function Wf(){return(Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let jf=e=>"tags"===e||"multiple"===e;var _f=ft.forwardRef((e,t)=>{let{id:r,prefixCls:n,className:H,styles:o,classNames:a,showSearch:c,tagRender:A,showScrollBar:l="optional",direction:D,omitDomProps:L,displayValues:d,onDisplayValuesChange:u,emptyOptions:i,notFoundContent:s="Not Found",onClear:F,maxCount:p,placeholder:W,mode:m,disabled:f,loading:h,getInputElement:g,getRawInputElement:j,open:_,defaultOpen:K,onPopupVisibleChange:V,activeValue:X,onActiveValueChange:q,activeDescendantId:G,searchValue:Y,autoClearSearchValue:U,onSearch:v,onSearchSplit:Q,tokenSeparators:b,allowClear:Z,prefix:J,suffix:ee,suffixIcon:te,clearIcon:re,OptionList:ne,animation:oe,transitionName:ae,popupStyle:le,popupClassName:ie,popupMatchSelectWidth:se,popupRender:ce,popupAlign:de,placement:ue,builtinPlacements:pe,getPopupContainer:me,showAction:fe=[],onFocus:he,onBlur:ge,onKeyUp:ve,onKeyDown:be,onMouseDown:ye,components:Ce,...xe}=e,y=jf(m),C=ft.useRef(null),x=ft.useRef(null),w=ft.useRef(null),[S,k]=ft.useState(!1);ft.useImperativeHandle(t,()=>({focus:C.current?.focus,blur:C.current?.blur,scrollTo:e=>w.current?.scrollTo(e),nativeElement:xt(C.current)}));E=Ce,N=g,I=j;var E,N,I,t=ft.useMemo(()=>{let{root:e,input:t}=E||{};return I&&(e=I()),N&&(t=N()),{root:e,input:t}},[E,N,I]);let M=ft.useMemo(()=>{var e;return"combobox"!==m?Y:"string"==typeof(e=d[0]?.value)||"number"==typeof e?String(e):""},[Y,m,d]);var $="combobox"===m&&"function"==typeof g&&g()||null;let we=!s&&i,[R,P,z,Se]=((e,t,r,n)=>{let[o,a]=(0,ft.useState)(!1),[l,i]=((0,ft.useEffect)(()=>{a(!0)},[]),vt(e,t)),[s,c]=(0,ft.useState)(!1),d=n(e=!!o&&l),u=(0,ft.useRef)(0),p=ht(e=>{r&&d!==e&&r(e),i(e)});return t=ht((e,t={})=>{let r=t.cancelFun,n=(u.current+=1,u.current),o="boolean"==typeof e?e:!d;function a(){n!==u.current||r?.()||(p(o),c(!1))}c(!o),o?a():sf(()=>{a()})}),[e,d,t,s]})(K||!1,_,V,e=>!f&&!we&&e);var ke=ft.useMemo(()=>"function"==typeof b||(b||[]).some(e=>["\n","\r\n"].includes(e)),[b]);let Ee=ft.useMemo(()=>"function"==typeof b?(e,t)=>{var r=b(e),e=Array.isArray(r)&&1===r.length&&r[0]===e;return Array.isArray(r)&&r.length&&!e?void 0!==t?r.slice(0,t):r:null}:(e,t)=>((e,t,r)=>{if(!t||!t.length)return null;let n=!1,o=(e,[t,...r])=>t?(t=e.split(t),n=n||1<t.length,t.reduce((e,t)=>[...e,...o(t,r)],[]).filter(Boolean)):[e];e=o(e,t);return n?void 0!==r?e.slice(0,r):e:null})(e,b,t),[b]),B=(r,n,o)=>{if(!(y&&tf(p)&&d.length>=p)){let e=!0,t=r;q?.(null);var a=tf(p)?p-d.length:void 0,o=o?null:Ee(r,a);return"combobox"!==m&&o&&(t="",Q?.(o),z(!1),e=!1),v&&M!==t&&v(t,{source:n?"typing":"effect"}),r&&n&&e&&z(!0),e}};ft.useEffect(()=>{R||y||"combobox"===m||B("",!1,!1)},[R]),ft.useEffect(()=>{f&&(z(!1),k(!1))},[f,P]);let[Ne,Ie]=Ym(),T=ft.useRef(!1);var Me=ht(t=>{var e=d.filter(e=>e!==t);u(e,{type:"remove",values:[t]})});let $e=()=>[xt(C.current),x.current?.getPopupElement()];{var Re=$e,Pe=P,ze=z,Be=!!t.root;let e=ht(t=>{if(!Be){let e=t.target;e.shadowRoot&&t.composed&&(e=t.composedPath()[0]||e),t._ori_target&&(e=t._ori_target),Pe&&!Um(Re(),e)&&ze(!1)}});ft.useEffect(()=>(window.addEventListener("mousedown",e),()=>window.removeEventListener("mousedown",e)),[e])}let O=ft.useRef(!1);let Te=()=>{P&&!O.current&&z(!1,{cancelFun:()=>Um($e(),document.activeElement)})};var Oe=(e,...t)=>{var r=e.target;(x.current?.getPopupElement())?.contains(r)&&z&&z(!0),ye?.(e,...t),O.current=!0,sf(()=>{O.current=!1})};let[,He]=ft.useState({});let Ae;t.root&&(Ae=e=>{z(e)});var De=ft.useMemo(()=>({...e,notFoundContent:s,open:P,triggerOpen:P,rawOpen:R,id:r,showSearch:c,multiple:y,toggleOpen:z,showScrollBar:l,styles:o,classNames:a,lockOptions:Se}),[e,s,z,r,c,y,P,R,l,o,a,Se]),Le=ft.useMemo(()=>{var e=ee??te;return"function"==typeof e?e({searchValue:M,open:P,focused:S,showSearch:c,loading:h}):e},[ee,te,M,P,S,c,h]),{allowClear:Fe,clearIcon:We,label:je}=((t,e,r,n=!1,o,a)=>{let l=(0,ft.useMemo)(()=>"boolean"==typeof e?{allowClear:e}:e&&"object"==typeof e?e:{allowClear:!1},[e]);return(0,ft.useMemo)(()=>{var e=!n&&!1!==l.allowClear&&(t.length||o)&&!("combobox"===a&&""===o);return{allowClear:e,clearIcon:e?l.clearIcon||r||"×":null,label:e?l.label??"Clear":""}},[l,r,n,t.length,o,a])})(d,Z,re,f,M,m),_e=ft.createElement(ne,{ref:w}),Fe=bt(n,H,{[n+"-focused"]:S,[n+"-multiple"]:y,[n+"-single"]:!y,[n+"-allow-clear"]:Fe,[n+"-show-arrow"]:null!=Le,[n+"-disabled"]:f,[n+"-loading"]:h,[n+"-open"]:P,[n+"-customize-input"]:$,[n+"-show-search"]:c}),$=ft.createElement(Ff,Wf({},xe,{ref:C,prefixCls:n,className:Fe,focused:S,prefix:J,suffix:Le,clearIcon:We,clearLabel:je,multiple:y,mode:m,displayValues:d,placeholder:W,searchValue:M,activeValue:X,onSearch:B,onSearchSubmit:e=>{e&&e.trim()&&v(e,{source:"submit"})},onInputBlur:()=>{T.current=!1},onFocus:e=>{k(!0),f||(fe.includes("focus")&&z(!0),he?.(e))},onBlur:e=>{k(!1),M&&("tags"===m?v(M,{source:"submit"}):"multiple"===m&&v("",{source:"blur"})),Te(),f||ge?.(e)},onClearMouseDown:()=>{F?.(),C.current?.focus(),u([],{type:"clear",values:d}),B("",!1,!1)},onKeyDown:e=>{var t,r,n=Ne(),o=e.key,a="Enter"===o,l=" "===o;if((a||l)&&(r=(t="combobox"===m)||c,(l&&!r||a&&!t)&&e.preventDefault(),P||z(!0)),Ie(!!M),"Backspace"===o&&!n&&y&&!M&&d.length){var i=[...d];let t=null;for(let e=i.length-1;0<=e;--e){var s=i[e];if(!s.disabled){i.splice(e,1),t=s;break}}t&&u(i,{type:"remove",values:[t]})}!P||a&&T.current||l||(a&&(T.current=!0),w.current?.onKeyDown(e)),be?.(e)},onKeyUp:(e,...t)=>{P&&w.current?.onKeyUp(e,...t),"Enter"===e.key&&(T.current=!1),ve?.(e,...t)},onSelectorRemove:Me,tokenWithEnter:ke,onMouseDown:Oe,components:t})),$=ft.createElement(Jm,{ref:x,disabled:f,prefixCls:n,visible:P,popupElement:_e,animation:oe,transitionName:ae,popupStyle:le,popupClassName:ie,direction:D,popupMatchSelectWidth:se,popupRender:ce,popupAlign:de,placement:ue,builtinPlacements:pe,getPopupContainer:me,empty:i,onPopupVisibleChange:Ae,onPopupMouseEnter:function(){He({})},onPopupMouseDown:Oe,onPopupBlur:Te},$);return ft.createElement(qm.Provider,{value:De},ft.createElement(af,{visible:S&&!P,values:d}),$)}),c=()=>null,e=(c.isSelectOptGroup=!0,c),a=()=>null,i=(a.isSelectOption=!0,a);function Kf(){return(Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=ft.forwardRef(({height:e,offsetY:t,offsetX:r,children:n,prefixCls:o,onInnerResize:a,innerProps:l,rtl:i,extra:s},c)=>{let d={},u={display:"flex",flexDirection:"column"};return void 0!==t&&(d={height:e,position:"relative",overflow:"hidden"},u={...u,transform:`translateY(${t}px)`,[i?"marginRight":"marginLeft"]:-r,position:"absolute",left:0,right:0,top:0}),ft.createElement("div",{style:d},ft.createElement(gr,{onResize:({offsetHeight:e})=>{e&&a&&a()}},ft.createElement("div",Kf({style:u,className:bt({[o+"-holder-inner"]:o}),ref:c},l),n,s)))}),Vf=(o.displayName="Filler",o);function Xf({children:e,setRef:t}){var r=ft.useCallback(e=>{t(e)},[t]);return ft.cloneElement(e,{ref:r})}function qf(t,r,n){let[o,a]=ft.useState(t),[e,l]=ft.useState(null);return ft.useEffect(()=>{var e=((e,t,r)=>{var n=e.length,o=t.length;let a,l;if(0===n&&0===o)return null;l=n<o?(a=e,t):(a=t,e);let i={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?r(e):i}let c=null,d=1!==Math.abs(n-o);for(let e=0;e<l.length;e+=1){var u=s(a[e]);if(u!==s(l[e])){c=e,d=d||u!==s(l[e+1]);break}}return null===c?null:{index:c,multiple:d}})(o||[],t||[],r);void 0!==e?.index&&(n?.(e.index),l(t[e.index])),a(t)},[t]),[e]}var Gf="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),Yf=(e,t,r,n)=>{let o=(0,ft.useRef)(!1),a=(0,ft.useRef)(null);let l=(0,ft.useRef)({top:e,bottom:t,left:r,right:n});return l.current.top=e,l.current.bottom=t,l.current.left=r,l.current.right=n,(e,t,r=!1)=>{e=e?t<0&&l.current.left||0<t&&l.current.right:t<0&&l.current.top||0<t&&l.current.bottom;return r&&e?(clearTimeout(a.current),o.current=!1):e&&!o.current||(clearTimeout(a.current),o.current=!0,a.current=setTimeout(()=>{o.current=!1},50)),!o.current&&e}};function Uf(t,e,r,n,o,l,i){let s=(0,ft.useRef)(0),c=(0,ft.useRef)(null),d=(0,ft.useRef)(null),u=(0,ft.useRef)(!1),p=Yf(e,r,n,o);let m=(0,ft.useRef)(null),f=(0,ft.useRef)(null);return[function(r){if(t){$e.cancel(f.current),f.current=$e(()=>{m.current=null},2);var{deltaX:n,deltaY:o,shiftKey:a}=r;let e=n,t=o;("sx"===m.current||!m.current&&a&&o&&!n)&&(e=o,t=0,m.current="sx");var a=Math.abs(e),n=Math.abs(t);null===m.current&&(m.current=l&&n<a?"x":"y"),"y"===m.current?(o=r,n=t,$e.cancel(c.current),p(!1,n)||(o=o)._virtualHandled||(o._virtualHandled=!0,s.current+=n,d.current=n,Gf||o.preventDefault(),c.current=$e(()=>{var e=u.current?10:1;i(s.current*e,!1),s.current=0}))):(a=r,n=e,i(n,!0),Gf||a.preventDefault())}},function(e){t&&(u.current=e.detail===d.current)}]}function Qf(s,c,d,u){let[p,m]=ft.useMemo(()=>[new Map,[]],[s,d.id,u]);return(t,r=t)=>{let n=p.get(t),o=p.get(r);if(void 0===n||void 0===o){var a=s.length;for(let e=m.length;e<a;e+=1){var l=s[e],l=c(l),i=(p.set(l,e),d.get(l)??u);if(m[e]=(m[e-1]||0)+i,l===t&&(n=e),l===r&&(o=e),void 0!==n&&void 0!==o)break}}return{top:m[n-1]||0,bottom:m[o]}}}var Zf=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function Jf(e){e=parseFloat(e);return isNaN(e)?0:e}function eh(o,a,l){let[e,r]=ft.useState(0),i=(0,ft.useRef)(new Map),s=(0,ft.useRef)(new Zf),n=(0,ft.useRef)(0);function c(){n.current+=1}function d(e=!1){c();let t=()=>{let o=!1;i.current.forEach((e,t)=>{var r,n;e&&e.offsetParent&&(n=e.offsetHeight,{marginTop:e,marginBottom:r}=getComputedStyle(e),n=n+Jf(e)+Jf(r),s.current.get(t)!==n)&&(s.current.set(t,n),o=!0)}),o&&r(e=>e+1)};if(e)t();else{n.current+=1;let e=n.current;Promise.resolve().then(()=>{e===n.current&&t()})}}return(0,ft.useEffect)(()=>c,[]),[function(e,t){var r=o(e),n=i.current.get(r);t?(i.current.set(r,t),d()):i.current.delete(r),!n!=!t&&(t?a:l)?.(e)},d,s.current,e]}let th=14/15;function rh(e){return Math.floor(e**.5)}function nh(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}let oh=10;function ah(g,v,b,y,C,n,o,x,e){let t=ft.useRef(void 0),[w,S]=ft.useState(null);return gt(()=>{if(w&&w.times<oh)if(g.current){o();var{targetAlign:e,originAlign:c,offset:t}=w;let a=0<=w.index?w.index:v.findIndex(e=>C(e)===w.key);var c=e||c,d=(r={getSize:n,align:c},r="function"==typeof(t=t)?t(r):t,Number.isFinite(r)?r:0),u=g.current.clientHeight;let l=a<0,i=e,s=null;if(u&&0<=a){let t=0,r=0,n=0;var p=Math.min(v.length-1,a);for(let e=0;e<=p;e+=1){var m=C(v[e]),m=(r=t,b.get(m));n=r+(void 0===m?y:m),t=n}let o="top"===c?d:u-d;for(let e=p;0<=e;--e){var f=C(v[e]),f=b.get(f);if(void 0===f){l=!0;break}if((o-=f)<=0)break}switch(c){case"top":s=r-d;break;case"bottom":s=n-u+d;break;default:var h=g.current.scrollTop;r<h?i="top":n>h+u&&(i="bottom")}null!==s&&x(s),s!==w.lastTop&&(l=!0)}l&&S(e=>({...e,times:e.times+1,index:a,targetAlign:i,lastTop:s}))}else S(e=>({...e}));var r},[w,g.current]),r=>{if(null==r)e();else if($e.cancel(t.current),"number"==typeof r)x(r);else if(r&&"object"==typeof r){let e,t;var n=r.align,{offset:r=0}=("index"in r?{index:e}=r:(t=r.key,e=v.findIndex(e=>C(e)===t)),r);S({times:0,index:e,key:t,offset:r,originAlign:n})}}}function lh(e,t,r){return t<=0||r<=0?0:(e=Math.max(Math.min(e,r),0),e=Math.ceil(e/r*t),e=Math.max(e,0),Math.min(e,t))}var ih=ft.forwardRef((e,t)=>{let{prefixCls:r,rtl:n,scrollOffset:o,scrollRange:a,onStartMove:l,onStopMove:s,onScroll:c,horizontal:d,spinSize:i,containerSize:u,style:p,thumbStyle:m,showScrollBar:f}=e,[h,g]=ft.useState(!1),[v,b]=ft.useState(null),[y,C]=ft.useState(null),x=!n,w=ft.useRef(null),S=ft.useRef(null),[k,E]=ft.useState(f),N=ft.useRef(void 0),I=()=>{!0!==f&&!1!==f&&(clearTimeout(N.current),E(!0),N.current=setTimeout(()=>{E(!1)},3e3))},M=a-u||0,$=u-i||0;e=ft.useMemo(()=>0===o||0===M?0:o/M*$,[o,M,$]);let R=ft.useRef({top:e,dragging:h,pageY:v,startTop:y}),P=(R.current={top:e,dragging:h,pageY:v,startTop:y},ht(e=>{g(!0),b(nh(e,d)),C(R.current.top),l(),e.stopPropagation(),e.preventDefault()})),z=(ft.useEffect(()=>{let e=e=>{e.preventDefault()},t=w.current,r=S.current;return t.addEventListener("touchstart",e,{passive:!1}),r.addEventListener("touchstart",P,{passive:!1}),()=>{t.removeEventListener("touchstart",e),r.removeEventListener("touchstart",P)}},[P]),ft.useRef(void 0)),B=(z.current=M,ft.useRef(void 0));B.current=$,ft.useEffect(()=>{if(h){let i,e=r=>{var{dragging:n,pageY:o,startTop:a}=R.current,l=($e.cancel(i),w.current.getBoundingClientRect()),l=u/(d?l.width:l.height);if(n){n=(nh(r,d)-o)*l;let e=a;!x&&d?e-=n:e+=n;r=z.current,o=B.current;let t=lh(e,r,o);i=$e(()=>{c(t,d)})}},t=()=>{g(!1),s()};return window.addEventListener("mousemove",e,{passive:!0}),window.addEventListener("touchmove",e,{passive:!0}),window.addEventListener("mouseup",t,{passive:!0}),window.addEventListener("touchend",t,{passive:!0}),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchend",t),$e.cancel(i)}}},[h]),ft.useEffect(()=>(I(),()=>{clearTimeout(N.current)}),[o]),ft.useImperativeHandle(t,()=>({delayHidden:I}));var t=r+"-scrollbar",T={position:"absolute",visibility:k?null:"hidden"},O={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(T,{height:8,left:0,right:0,bottom:0}),Object.assign(O,{height:"100%",width:i,[x?"left":"right"]:e})):(Object.assign(T,{width:8,top:0,bottom:0,[x?"right":"left"]:0}),Object.assign(O,{width:"100%",height:i,top:e})),ft.createElement("div",{ref:w,className:bt(t,{[t+"-horizontal"]:d,[t+"-vertical"]:!d,[t+"-visible"]:k}),style:{...T,...p},onMouseDown:e=>{var t;e.stopPropagation(),e.preventDefault(),0!==e.button||(t=e.target)&&S.current?.contains(t)||(t=>{var r=w.current;if(r){r=r.getBoundingClientRect(),t=nh(t,d);let e;if(Number.isFinite(t)){if(d){var n=x?r.left:r.right;if(!Number.isFinite(n))return;e=(x?t-n:n-t)-i/2}else{if(!Number.isFinite(r.top))return;e=t-r.top-i/2}c(lh(e,M,$),d)}}})(e)},onMouseMove:I},ft.createElement("div",{ref:S,className:bt(t+"-thumb",{[t+"-thumb-moving"]:h}),style:{...O,...m},onMouseDown:P}))});let sh=20;function ch(e=0,t=0){let r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,sh),Math.floor(r)}function dh(){return(dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let uh=[],ph={overflowY:"auto",overflowAnchor:"none"};function mh(e,t){let{prefixCls:r="rc-virtual-list",className:H,height:i,itemHeight:s,fullHeight:A=!0,style:D,data:n,children:L,itemKey:o,virtual:F,direction:W,scrollWidth:a,component:j="div",onScroll:_,onVirtualScroll:K,onVisibleChange:V,innerProps:X,extraRender:q,styles:l,showScrollBar:G="optional",...Y}=e,c=ft.useCallback(e=>"function"==typeof o?o(e):e?.[o],[o]),[U,Q,d,Z]=eh(c,null,null),u=!(!1===F||!i||!s);e=ft.useMemo(()=>Object.values(d.maps).reduce((e,t)=>e+t,0),[d.id,d.maps]);let p=u&&n&&(Math.max(s*n.length,e)>i||!!a),m="rtl"===W;e=bt(r,{[r+"-rtl"]:m},H);let f=n||uh,h=(0,ft.useRef)(null),J=(0,ft.useRef)(null),ee=(0,ft.useRef)(null),[g,te]=(0,ft.useState)(0),[v,b]=(0,ft.useState)(0),[re,ne]=(0,ft.useState)(!1);var oe=()=>{ne(!0)},ae=()=>{ne(!1)},le={getKey:c};function y(r){te(e=>{let t;e=(e=>{let t=e;return Number.isNaN(I.current)||(t=Math.min(t,I.current)),t=Math.max(t,0)})(t="function"==typeof r?r(e):r);return h.current.scrollTop=e})}var C=(0,ft.useRef)({start:0,end:f.length}),x=(0,ft.useRef)(void 0),[w]=qf(f,c);x.current=w;let{scrollHeight:S,start:k,end:E,offset:ie}=ft.useMemo(()=>{if(!u)return{scrollHeight:void 0,start:0,end:f.length-1,offset:void 0};if(!p)return{scrollHeight:J.current?.offsetHeight||0,start:0,end:f.length-1,offset:void 0};let t=0,r,n,o;var a=f.length;for(let e=0;e<a;e+=1){var l=f[e],l=c(l),l=d.get(l),l=t+(void 0===l?s:l);l>=g&&void 0===r&&(r=e,n=t),l>g+i&&void 0===o&&(o=e),t=l}return void 0===r&&(r=0,n=0,o=Math.ceil(i/s)),void 0===o&&(o=f.length-1),o=Math.min(o+1,f.length-1),{scrollHeight:t,start:r,end:o,offset:n}},[p,u,g,f,Z,i]),[N,se]=(C.current.start=k,C.current.end=E,ft.useLayoutEffect(()=>{var e=d.getRecord();if(1===e.size){var r=Array.from(e.keys())[0],e=e.get(r),t=f[k];if(t&&void 0===e)if(c(t)===r){let t=d.get(r)-s;y(e=>e+t)}}d.resetRecord()},[S]),ft.useState({width:0,height:i}));let ce=(0,ft.useRef)(null),de=(0,ft.useRef)(null);x=ft.useMemo(()=>ch(N.width,a),[N.width,a]),w=ft.useMemo(()=>ch(N.height,S),[N.height,S]),C=S-i;let I=(0,ft.useRef)(C);I.current=C;let M=g<=0,$=g>=C;var C=v<=0,R=v>=a;let ue=Yf(M,$,C,R),P=()=>({x:m?-v:v,y:g}),z=(0,ft.useRef)(P()),B=ht(e=>{K&&(e={...P(),...e},z.current.x===e.x&&z.current.y===e.y||(K(e),z.current=e))});function pe(e,t){let r=e;t?((0,yt().flushSync)(()=>{b(r)}),B()):y(r)}let T=e=>{var t=a?a-N.width:0,e=Math.max(e,0);return Math.min(e,t)};var me,fe,he,ge=ht((t,e)=>{e?((0,yt().flushSync)(()=>{b(e=>{e+=m?-t:t;return T(e)})}),B()):y(e=>e+t)});let[ve,be]=Uf(u,M,$,C,R,!!a,ge);{var ye=u,Ce=h,xe=(e,t,r,n)=>!ue(e,t,r)&&!(n&&n._virtualHandled||(n&&(n._virtualHandled=!0),ve({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),0));let t=(0,ft.useRef)(!1),l=(0,ft.useRef)(0),i=(0,ft.useRef)(0),r=(0,ft.useRef)(null),s=(0,ft.useRef)(null),n,o=e=>{if(t.current){var o=Math.ceil(e.touches[0].pageX),a=Math.ceil(e.touches[0].pageY);let t=l.current-o,r=i.current-a,n=Math.abs(t)>Math.abs(r);n?l.current=o:i.current=a;o=xe(n,n?t:r,!1,e);o&&e.preventDefault(),clearInterval(s.current),o&&(s.current=setInterval(()=>{n?t*=th:r*=th;var e=Math.floor(n?t:r);(!xe(n,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},a=()=>{t.current=!1,n()},e=e=>{n(),1!==e.touches.length||t.current||(t.current=!0,l.current=Math.ceil(e.touches[0].pageX),i.current=Math.ceil(e.touches[0].pageY),r.current=e.target,r.current.addEventListener("touchmove",o,{passive:!1}),r.current.addEventListener("touchend",a,{passive:!0}))};n=()=>{r.current&&(r.current.removeEventListener("touchmove",o),r.current.removeEventListener("touchend",a))},gt(()=>(ye&&Ce.current.addEventListener("touchstart",e,{passive:!0}),()=>{Ce.current?.removeEventListener("touchstart",e),n(),clearInterval(s.current)}),[ye])}me=p,fe=h,he=t=>{y(e=>e+t)},ft.useEffect(()=>{let s=fe.current;if(me&&s){let n=!1,e,o,a=()=>{$e.cancel(e)},l=()=>{a(),e=$e(()=>{he(o),l()})},t=()=>{n=!1,a()},r=e=>{e.target.draggable||0!==e.button||(e=e)._virtualHandled||(e._virtualHandled=!0,n=!0)},i=e=>{var t,r;n&&(e=nh(e,!1),{top:r,bottom:t}=s.getBoundingClientRect(),(e<=r?(r=r-e,o=-rh(r),l):t<=e?(r=e-t,o=rh(r),l):a)())};return s.addEventListener("mousedown",r),s.ownerDocument.addEventListener("mouseup",t),s.ownerDocument.addEventListener("mousemove",i),s.ownerDocument.addEventListener("dragend",t),()=>{s.removeEventListener("mousedown",r),s.ownerDocument.removeEventListener("mouseup",t),s.ownerDocument.removeEventListener("mousemove",i),s.ownerDocument.removeEventListener("dragend",t),a()}}},[me]),gt(()=>{function e(e){var t=M&&e.detail<0,r=$&&0<e.detail;!u||t||r||e.preventDefault()}let t=h.current;return t.addEventListener("wheel",ve,{passive:!1}),t.addEventListener("DOMMouseScroll",be,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",ve),t.removeEventListener("DOMMouseScroll",be),t.removeEventListener("MozMousePixelScroll",e)}},[u,M,$]),gt(()=>{var e;a&&(e=T(v),b(e),B({x:e}))},[N.width,a]);C=()=>{ce.current?.delayHidden(),de.current?.delayHidden()},R=Qf(f,c,d,s);let we=ah(h,f,d,s,c,R,()=>Q(!0),y,C);ft.useImperativeHandle(t,()=>({nativeElement:ee.current,getScrollInfo:P,scrollTo:e=>{var t;(t=e)&&"object"==typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&b(T(e.left)),we(e.top)):we(e)}})),gt(()=>{var e;V&&(e=f.slice(k,E+1),V(e,f))},[k,E,f]);var Se,ke,Ee,Ne,Ie,Me,ge=q?.({start:k,end:E,virtual:p,offsetX:v,scrollTop:g,offsetY:ie,rtl:m,getSize:R}),le=([t,Se,R,ke,Ee,Ne,Ie,Me]=[f,k,E,a,v,U,L,le.getKey],t.slice(Se,R+1).map((t,e)=>{var e=Ie(t,Se+e,{style:{width:ke},offsetX:Ee}),r=Me(t);return ft.createElement(Xf,{key:r,setRef:e=>Ne(t,e)},e)}));let O=null;i&&(O={[A?"height":"maxHeight"]:i,...ph},u)&&(O.overflowY="hidden",a&&(O.overflowX="hidden"),re)&&(O.pointerEvents="none");t={};return m&&(t.dir="rtl"),ft.createElement("div",dh({ref:ee,style:{...D,position:"relative"},className:e},t,Y),ft.createElement(gr,{onResize:e=>{se({width:e.offsetWidth,height:e.offsetHeight})}},ft.createElement(j,{className:r+"-holder",style:O,ref:h,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==g&&y(t),_?.(e),B()},onMouseEnter:C},ft.createElement(Vf,{prefixCls:r,height:S,offsetX:v,offsetY:ie,scrollWidth:a,onInnerResize:Q,ref:J,innerProps:X,rtl:m,extra:ge},le))),p&&S>i&&ft.createElement(ih,{ref:ce,prefixCls:r,scrollOffset:g,scrollRange:S,rtl:m,onScroll:pe,onStartMove:oe,onStopMove:ae,spinSize:w,containerSize:N.height,style:l?.verticalScrollBar,thumbStyle:l?.verticalScrollBarThumb,showScrollBar:G}),p&&a>N.width&&ft.createElement(ih,{ref:de,prefixCls:r,scrollOffset:v,scrollRange:a,rtl:m,onScroll:pe,onStartMove:oe,onStopMove:ae,spinSize:x,containerSize:N.width,horizontal:!0,style:l?.horizontalScrollBar,thumbStyle:l?.horizontalScrollBarThumb,showScrollBar:G}))}var d=ft.forwardRef(mh),n=(d.displayName="List",d),s=ft.forwardRef((e,t)=>mh({...e,virtual:!1},t)),fh=(s.displayName="List",n);function hh(){return(hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gh(e){return"string"==typeof e||"number"==typeof e}var vh=ft.forwardRef((H,e)=>{let{prefixCls:t,id:r,open:o,multiple:n,mode:a,searchValue:l,toggleOpen:i,notFoundContent:s,onPopupScroll:c,showScrollBar:d,lockOptions:u}=Gm(),{maxCount:p,flattenOptions:A,onActiveValue:m,defaultActiveFirstOption:D,onSelect:L,menuItemSelectedIcon:x,rawValues:f,fieldNames:h,virtual:w,direction:F,listHeight:W,listItemHeight:j,optionRender:S,classNames:k,styles:E}=ft.useContext(hf),N=t+"-item",g=(0,tt.A)(()=>A,[o,u],(e,t)=>t[0]&&!t[1]),v=ft.useRef(null),I=ft.useMemo(()=>n&&tf(p)&&f?.size>=p,[n,p,f?.size]);var b=e=>{e.preventDefault()};let y=e=>{v.current?.scrollTo("number"==typeof e?{index:e}:e)},M=ft.useCallback(e=>"combobox"!==a&&f.has(e),[a,[...f].toString(),f.size]),C=(t,r=1)=>{var n=g.length;for(let e=0;e<n;e+=1){var o=(t+e*r+n)%n,{group:a,data:l}=g[o]||{};if(!a&&!l?.disabled&&(M(l.value)||!I))return o}return-1},[$,_]=ft.useState(()=>C(0)),R=(e,t=!1)=>{_(e);var t={source:t?"keyboard":"mouse"},r=g[e];r?m(r.value,e,t):m(null,-1,t)},P=((0,ft.useEffect)(()=>{R(!1!==D?C(0):-1)},[g.length,l]),ft.useCallback(e=>"combobox"===a?String(e).toLowerCase()===l.toLowerCase():f.has(e),[a,l,[...f].toString(),f.size])),z=((0,ft.useEffect)(()=>{let r;if(!n&&o&&1===f.size){let t=Array.from(f)[0],e=g.findIndex(({data:e})=>l?String(e.value).startsWith(l):e.value===t);-1!==e&&(R(e),r=setTimeout(()=>{y(e)}))}return o&&v.current?.scrollTo(void 0),()=>clearTimeout(r)},[o,l]),e=>{void 0!==e&&L(e,{selected:!f.has(e)}),n||i(!1)});if(ft.useImperativeHandle(e,()=>({onKeyDown:e=>{var{which:t,ctrlKey:r}=e;switch(t){case Ce.N:case Ce.P:case Ce.UP:case Ce.DOWN:{let e=0;t===Ce.UP?e=-1:t===Ce.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&r&&(t===Ce.N?e=1:t===Ce.P&&(e=-1)),0!==e&&(n=C($+e,e),y(n),R(n,!0));break}case Ce.TAB:case Ce.ENTER:var n=g[$];if(!n||n.data.disabled)return z(void 0);!I||f.has(n.value)?z(n.value):z(void 0),o&&e.preventDefault();break;case Ce.ESC:i(!1),o&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{y(e)}})),0===g.length)return ft.createElement("div",{role:"listbox",id:r+"_list",className:N+"-empty",onMouseDown:b},s);let K=Object.keys(h).map(e=>h[e]),B=e=>e.label;function T(e,t){e=e.group;return{role:e?"presentation":"option",id:r+"_list_"+t}}var e=e=>{var t,r,n,o,a,l=g[e];return l&&({value:t,disabled:r}=o=l.data||{},n=l.group,o=Jt(o,!0),a=B(l),l)?ft.createElement("div",hh({"aria-label":"string"!=typeof a||n?null:a},o,{key:e},T(l,e),{"aria-selected":P(t),"aria-disabled":r}),t):null},O={role:"listbox",id:r+"_list"};return ft.createElement(ft.Fragment,null,w&&ft.createElement("div",hh({},O,{style:{height:0,width:0,overflow:"hidden"}}),e($-1),e($),e($+1)),ft.createElement(fh,{prefixCls:t+"-dropdown-list",itemKey:"key",ref:v,data:g,height:W,itemHeight:j,fullHeight:!1,onMouseDown:b,onScroll:c,virtual:w,direction:F,innerProps:w?null:O,showScrollBar:d,className:k?.popup?.list,style:E?.popup?.list},(e,t)=>{let{group:r,groupOption:n,data:o,label:a,value:l}=e;var i=o.key;if(r)return f=o.title??(gh(a)?a.toString():void 0),ft.createElement("div",{className:bt(N,N+"-group",o.className),title:f},void 0!==a?a:i);let{disabled:s,title:c,children:d,style:u,className:p,...m}=o;var f=at(m,K),i=M(l);let h=s||!i&&I;var g=N+"-option",v=bt(N,g,p,k?.popup?.listItem,{[g+"-grouped"]:n,[g+"-active"]:$===t&&!h,[g+"-disabled"]:h,[g+"-selected"]:i}),b=B(e),y=!x||"function"==typeof x||i,b="number"==typeof b?b:b||l;let C=gh(b)?b.toString():void 0;return void 0!==c&&(C=c),ft.createElement("div",hh({},Jt(f),w?{}:T(e,t),{"aria-selected":w?void 0:P(l),"aria-disabled":h,className:v,title:C,onMouseMove:()=>{$===t||h||R(t)},onClick:()=>{h||z(l)},style:{...E?.popup?.listItem,...u}}),ft.createElement("div",{className:g+"-content"},"function"==typeof S?S(e,{index:t}):b),ft.isValidElement(x)||i,y&&ft.createElement(zf,{className:N+"-option-state",customizeIcon:x,customizeIconProps:{value:l,disabled:h,isSelected:i}},i?"✓":null))}))});function bh(e,t){return gf(e).join("").toUpperCase().includes(t)}function yh(e,l=!1){return ke(e).map((o,a)=>{if(!ft.isValidElement(o)||!o.type)return null;let{type:{isSelectOptGroup:e},key:t,props:{children:r,...n}}=o;if(!l&&e)return{key:`__RC_SELECT_GRP__${null===t?a:t}__`,label:t,...n,options:yh(r)};{a=o;let{key:e,props:{children:t,value:r,...n}}=a;return{key:e,value:void 0!==r?r:e,children:t,...n}}}).filter(e=>e)}var Ch=(t,r,s,c,d)=>ft.useMemo(()=>{let e=t;t||(e=yh(r));let o=new Map,a=new Map,l=(e,t,r)=>{r&&"string"==typeof r&&e.set(t[r],t)},i=(r,n=!1)=>{for(let e=0;e<r.length;e+=1){let t=r[e];!t[s.options]||n?(o.set(t[s.value],t),l(a,t,s.label),c.forEach(e=>{l(a,t,e)}),l(a,t,d)):i(t[s.options],!0)}};return i(e),{options:e,valueOptions:o,labelOptions:a}},[t,r,s,c,d]);function xh(e){let t=ft.useRef(e);return t.current=e,ft.useCallback((...e)=>t.current(...e),[])}function wh(){return(wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let Sh=["inputValue"];l=ft.forwardRef((H,A)=>{let{id:D,mode:o,prefixCls:L="rc-select",backfill:F,fieldNames:W,showSearch:j,searchValue:_,onSearch:K,autoClearSearchValue:V,filterOption:X,optionFilterProp:q,filterSort:G,onSelect:Y,onDeselect:U,onActive:Q,popupMatchSelectWidth:t=!0,optionLabelProp:l,options:Z,optionRender:J,children:ee,defaultActiveFirstOption:te,menuItemSelectedIcon:re,virtual:ne,direction:r,listHeight:oe=200,listItemHeight:ae=20,labelRender:n,value:le,defaultValue:ie,labelInValue:se,onChange:ce,maxCount:a,classNames:i,styles:s,...de}=H;var[H,e]=((r,e,n)=>{let{filterOption:o,searchValue:a,optionFilterProp:l,filterSort:i,onSearch:s,autoClearSearchValue:c}=e;return ft.useMemo(()=>{var e="object"==typeof r,t={filterOption:o,searchValue:a,optionFilterProp:l,filterSort:i,onSearch:s,autoClearSearchValue:c,...e?r:{}};return[e||"combobox"===n||"tags"===n||"multiple"===n&&void 0===r||r,t]},[n,r,o,a,l,i,s,c])})(j,{searchValue:_,onSearch:K,autoClearSearchValue:V,filterOption:X,optionFilterProp:q,filterSort:G},o);let{filterOption:c,searchValue:ue,optionFilterProp:d,filterSort:u,onSearch:pe,autoClearSearchValue:me=!0}=e,p=ft.useMemo(()=>d?Array.isArray(d)?d:[d]:[],[d]);e=kt(D);let m=jf(o),f=!(Z||!ee);var fe=ft.useMemo(()=>(void 0!==c||"combobox"!==o)&&c,[c,o]);let h=ft.useMemo(()=>rf(W,f),[JSON.stringify(W),f]),[he,g]=vt("",ue),v=he||"",b=Ch(Z,ee,h,p,l),{valueOptions:y,labelOptions:ge,options:C}=b,x=ft.useCallback(e=>gf(e).map(e=>{let t,r,n,o;t=(a=e)&&"object"==typeof a?(r=e.label,e.value):e;var a=y.get(t);return a&&(void 0===r&&(r=a?.[l||h.label]),n=a?.disabled,o=a?.title),{label:r,value:t,key:t,disabled:n,title:o}}),[h,l,y]),[w,ve]=vt(ie,le),[S,be]=((a,l)=>{let i=ft.useRef({values:new Map,options:new Map});return[ft.useMemo(()=>{let{values:t,options:r}=i.current;var e=a.map(e=>void 0===e.label?{...e,label:t.get(e.value)?.label}:e);let n=new Map,o=new Map;return e.forEach(e=>{n.set(e.value,e),o.set(e.value,l.get(e.value)||r.get(e.value))}),i.current.values=n,i.current.options=o,e},[a,l]),ft.useCallback(e=>l.get(e)||i.current.options.get(e),[l])]})(ft.useMemo(()=>{var e,t=m&&null===w?[]:w,t=x(t);return"combobox"!==o||(e=t[0]?.value)||0===e?t:[]},[w,x,o,m]),y);var ye=ft.useMemo(()=>{if(!o&&1===S.length){var e=S[0];if(null===e.value&&null==e.label)return[]}return S.map(e=>({...e,label:("function"==typeof n?n(e):e.label)??e.value}))},[o,S,n]);let k=ft.useMemo(()=>new Set(S.map(e=>e.value)),[S]),E=(ft.useEffect(()=>{var e;"combobox"===o&&(e=S[0]?.value,g(null!=e?String(e):""))},[S]),xh((e,t)=>{t=t??e;return{[h.value]:e,[h.label]:t}}));var N,I,M,$,R,P=ft.useMemo(()=>{if("tags"!==o)return C;let n=[...C];return[...S].sort((e,t)=>e.value<t.value?-1:1).forEach(e=>{var t,r=e.value;t=r,y.has(t)||n.push(E(r,e.label))}),n},[E,C,y,S,o]);N=P,I=h,M=v,$=fe,R=p;let z=ft.useMemo(()=>{if(!M||!1===$)return N;let{options:r,label:n,value:o}=I,a=[];var e="function"==typeof $;let l=M.toUpperCase(),i=e?$:(e,t)=>R&&R.length?R.some(e=>bh(t[e],l)):t[r]?bh(t["children"!==n?n:"label"],l):bh(t[o],l),s=e?e=>of(e):e=>e;return N.forEach(e=>{var t;e[r]?i(M,s(e))?a.push(e):(t=e[r].filter(e=>i(M,s(e)))).length&&a.push({...e,[r]:t}):i(M,s(e))&&a.push(e)}),a},[N,$,R,M,I]),Ce=ft.useMemo(()=>"tags"!==o||!v||z.some(e=>{return t=e,p.length?p.some(e=>t?.[e]===v):t?.value===v;var t})||z.some(e=>e[h.value]===v)||y.get(v)?.disabled?z:[E(v),...z],[E,p,o,z,v,h,y]),xe=e=>[...e].sort((e,t)=>u(e,t,{searchValue:v})).map(e=>Array.isArray(e.options)?{...e,options:0<e.options.length?xe(e.options):e.options}:e),we=ft.useMemo(()=>u?xe(Ce):Ce,[Ce,u,v]),Se=ft.useMemo(()=>nf(we,{fieldNames:h,childrenAsData:f}),[we,h,f]),B=e=>{var t,e=x(e);ve(e),ce&&(e.length!==S.length||e.some((e,t)=>S[t]?.value!==e?.value))&&(t=se?e.map(({label:e,value:t})=>({label:e,value:t})):e.map(e=>e.value),e=e.map(e=>of(be(e.value))),ce(m?t:t[0],m?e:e[0]))},[ke,T]=ft.useState(null),[Ee,Ne]=ft.useState(0),Ie=void 0!==te?te:"combobox"!==o,Me=ft.useRef(void 0),$e=ft.useCallback((e,t,{source:r="keyboard"}={})=>{Ne(t),F&&"combobox"===o&&null!==e&&"keyboard"===r&&T(String(e));let n=Promise.resolve().then(()=>{Me.current===n&&Q?.(e)});Me.current=n},[F,o,Q]),O=(t,e,r)=>{var n,o,a=()=>{var e=be(t);return[se?{label:e?.[h.label],value:t}:t,of(e)]};e&&Y?([n,o]=a(),Y(n,o)):!e&&U&&"clear"!==r&&([n,o]=a(),U(n,o))},Re=xh((t,e)=>{let r;e=!m||e.selected;r=e?m?[...S,t]:[t]:S.filter(e=>e.value!==t),B(r),O(t,e),"combobox"===o?T(""):(jf,me&&(g(""),T("")))});P=ft.useMemo(()=>{var e=!1!==ne&&!1!==t;return{...b,flattenOptions:Se,onActiveValue:$e,defaultActiveFirstOption:Ie,onSelect:Re,menuItemSelectedIcon:re,rawValues:k,fieldNames:h,virtual:e,direction:r,listHeight:oe,listItemHeight:ae,childrenAsData:f,maxCount:a,optionRender:J,classNames:i,styles:s}},[a,b,Se,$e,Ie,Re,re,k,h,ne,t,r,oe,ae,f,J,i,s]);return ft.createElement(hf.Provider,{value:P},ft.createElement(_f,wh({},de,{id:e,prefixCls:L,ref:A,omitDomProps:Sh,mode:o,classNames:i,styles:s,displayValues:ye,onDisplayValuesChange:(e,t)=>{B(e);let{type:r,values:n}=t;"remove"!==r&&"clear"!==r||n.forEach(e=>{O(e.value,!1,r)})},maxCount:a,direction:r,showSearch:H,searchValue:v,onSearch:(e,t)=>{if(g(e),T(null),"submit"===t.source){var r=(e||"").trim();if(r){if(y.get(r)?.disabled)return void g("");var n=Array.from(new Set([...k,r]));B(n),O(r,!0),g("")}}else"blur"!==t.source&&("combobox"===o&&B(e),pe?.(e))},autoClearSearchValue:me,onSearchSplit:e=>{let t=e;"tags"!==o&&(t=e.map(e=>ge.get(e)?.value).filter(e=>void 0!==e)),"tags"===o&&(t=t.filter(e=>!y.get(e)?.disabled));e=Array.from(new Set([...k,...t]));B(e),e.forEach(e=>{O(e,!0)})},popupMatchSelectWidth:t,OptionList:vh,emptyOptions:!Se.length,activeValue:ke,activeDescendantId:e+"_list_"+Ee})))});l.Option=i,l.OptGroup=e;var kh=l,Eh=(e,t,r)=>!1===e?null:!0!==e&&e&&t&&void 0!==e[t]?e[t]:r;let Nh=(e,t,r)=>bt({[e+"-status-success"]:"success"===t,[e+"-status-warning"]:"warning"===t,[e+"-status-error"]:"error"===t,[e+"-status-validating"]:"validating"===t,[e+"-has-feedback"]:r}),Ih=(e,t)=>t||e,Mh=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new kn(e).onBackground(t).toHexString();c=()=>{var[,e]=so(),[t]=nc("Empty");let{colorBgContainer:r,colorFill:n,colorFillSecondary:o,colorFillTertiary:a,colorTextQuaternary:l}=e;var{panelBgColor:e,borderColor:i,detailColor:s,shadowColor:c,iconColor:d}=(0,ft.useMemo)(()=>({panelBgColor:Mh(a,r),borderColor:Mh(l,r),detailColor:Mh(n,r),shadowColor:Mh(o,r),iconColor:r}),[r,n,o,a,l]);return ft.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ft.createElement("title",null,t?.description||"Empty"),ft.createElement("g",{fill:"none",fillRule:"evenodd"},ft.createElement("g",{transform:"translate(24 31.7)"},ft.createElement("ellipse",{fillOpacity:".8",fill:c,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),ft.createElement("path",{fill:i,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),ft.createElement("path",{fill:e,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),ft.createElement("path",{fill:s,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),ft.createElement("path",{fill:s,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),ft.createElement("g",{fill:d,transform:"translate(149.7 15.4)"},ft.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),ft.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},a=()=>{var[,e]=so(),[t]=nc("Empty");let{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:a}=e;var{borderColor:e,shadowColor:l,contentColor:i}=(0,ft.useMemo)(()=>({borderColor:Mh(r,a),shadowColor:Mh(n,a),contentColor:Mh(o,a)}),[r,n,o,a]);return ft.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ft.createElement("title",null,t?.description||"Empty"),ft.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ft.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),ft.createElement("g",{fillRule:"nonzero",stroke:e},ft.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),ft.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:i}))))};var $h=Be("Empty",e=>{var{componentCls:t,controlHeightLG:r,calc:n}=e;return(e=>{var{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:l,textAlign:"center",[t+"-image"]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[t+"-description"]:{color:e.colorTextDescription},[t+"-footer"]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[t+"-description"]:{color:e.colorTextDescription},[t+"-image"]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[t+"-image"]:{height:e.emptyImgHeightSM}}}}})(ze(e,{emptyImgCls:t+"-img",emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()}))});let Rh=ft.createElement(c,null),Ph=ft.createElement(a,null);var o=ft.forwardRef((e,t)=>{let{className:r,rootClassName:n,prefixCls:o,image:a,description:l,children:i,imageStyle:s,style:c,classNames:d,styles:u,...p}=e;var{getPrefixCls:m,direction:f,className:h,style:g,classNames:v,styles:b,image:y}=Fe("empty"),m=m("empty",o),[C,x]=$h(m),g=We(g),w=We(c),[v,b]=je([v,d],[b,g,u,w],{props:e}),[g]=nc("Empty"),w=void 0!==l?l:g?.description,e="string"==typeof w?w:"empty",g=a??y??Rh;let S=null,k=(S="string"==typeof g?ft.createElement("img",{draggable:!1,alt:e,src:g}):g,ft.useRef(null));return ft.useImperativeHandle(t,()=>({nativeElement:k.current})),ft.createElement("div",{ref:k,className:bt(C,x,m,h,{[m+"-normal"]:g===Ph,[m+"-rtl"]:"rtl"===f},r,n,v.root),style:b.root,...p},ft.createElement("div",{className:bt(m+"-image",v.image),style:{...s,...b.image}},S),Se(w)&&ft.createElement("div",{className:bt(m+"-description",v.description),style:b.description},w),Se(i)&&ft.createElement("div",{className:bt(m+"-footer",v.footer),style:b.footer},i))}),zh=(o.PRESENTED_IMAGE_DEFAULT=Rh,o.PRESENTED_IMAGE_SIMPLE=Ph,o),Bh=e=>{var e=e.componentName,t=(0,ft.useContext)(Ue).getPrefixCls,r=t("empty");switch(e){case"Table":case"List":return Re().createElement(zh,{image:zh.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Re().createElement(zh,{image:zh.PRESENTED_IMAGE_SIMPLE,className:r+"-small"});case"Table.filter":return null;default:return Re().createElement(zh,null)}},Th=(e,t,r,n)=>{var o=ft.useContext(Ue),{variant:a,[e]:e}=o,l=ft.useContext(ip),o=n?o[n]:void 0,n=e?.variant??o?.variant,e=void 0!==t||!1===r||void 0!==l||void 0!==n||void 0!==a;let i;i=void 0!==t?t:!1===r?"borderless":l??n??a??"outlined";o=Sr.includes(i);return[i,o,e]};let Oh=e=>{e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...e,points:["tl","bl"],offset:[0,4]},bottomRight:{...e,points:["tr","br"],offset:[0,4]},topLeft:{...e,points:["bl","tl"],offset:[0,-4]},topRight:{...e,points:["br","tr"],offset:[0,-4]}}};var Hh=function(e,t){return e||Oh(t)};let Ah=new Qe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Dh=new Qe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Lh=new Qe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Fh=new Qe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wh=new Qe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),jh=new Qe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),_h=new Qe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Kh=new Qe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Vh={"slide-up":{inKeyframes:Ah,outKeyframes:Dh},"slide-down":{inKeyframes:Lh,outKeyframes:Fh},"slide-left":{inKeyframes:Wh,outKeyframes:jh},"slide-right":{inKeyframes:_h,outKeyframes:Kh}},Xh=(e,t)=>{var r=e.antCls,r=r+"-"+t,{inKeyframes:t,outKeyframes:n}=Vh[t];return[nm(r,t,n,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[r+"-leave"]:{animationTimingFunction:e.motionEaseInQuint}}]};d=new Qe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new Qe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),n=new Qe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new Qe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new Qe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new Qe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}});let qh={"move-up":{inKeyframes:new Qe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Qe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:d,outKeyframes:s},"move-left":{inKeyframes:n,outKeyframes:l},"move-right":{inKeyframes:c,outKeyframes:a}},Gh=(e,t)=>{var r=e.antCls,r=r+"-"+t,{inKeyframes:t,outKeyframes:n}=qh[t];return[nm(r,t,n,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[r+"-leave"]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Yh=e=>{var{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}};var Uh=e=>{var{antCls:t,componentCls:r}=e,n=r+"-item",o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,t=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=r+"-dropdown-placement-",i=n+"-option-selected";return[{[r+"-dropdown"]:{...F(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
${o}${l}bottomLeft,
${a}${l}bottomLeft
`]:{animationName:Ah},[`
${o}${l}topLeft,
${a}${l}topLeft,
${o}${l}topRight,
${a}${l}topRight
`]:{animationName:Lh},[t+l+"bottomLeft"]:{animationName:Dh},[`
${t}${l}topLeft,
${t}${l}topRight
`]:{animationName:Fh},"&-hidden":{display:"none"},[r+"-dropdown-list-scrollbar"]:{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},[n]:{...Yh(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...an},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[n+"-option-state"]:{color:e.colorPrimary}},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${n}-option-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Yh(e),color:e.colorTextDisabled}},[i+`:has(+ ${i})`]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + "+i]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Xh(e,"slide-up"),Xh(e,"slide-down"),Gh(e,"move-up"),Gh(e,"move-down")]},Qh=e=>{var{antCls:e,componentCls:t}=e,r={background:"transparent"};return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[t+"-placeholder"]:{display:"none"},[t+"-content"]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${t}-filled ${t}-content`]:{[e+"-input-filled"]:r},[`&${t}-disabled ${t}-content`]:{[["> input[disabled]","> textarea[disabled]",`> ${t}-input`,`> ${e}-input-affix-wrapper-disabled`,`> ${e}-input-search`].join(", ")]:r,"input[disabled], textarea[disabled]":r}}}};let Zh=4;var Jh=t=>{var{componentCls:e,calc:r,iconCls:n,paddingXS:o,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:l,lineWidth:i,lineType:s,colorIcon:c,colorIconHover:d,inputPaddingHorizontalBase:u,antCls:p}=t,[p,m]=Q(p,"select");return{"&-multiple":{[p("multi-item-background")]:t.multipleItemBg,[p("multi-item-border-color")]:"transparent",[p("multi-item-border-radius")]:t.borderRadiusSM,[p("multi-item-height")]:t.multipleItemHeight,[p("multi-padding-base")]:`calc((${m("height")} - ${m("multi-item-height")}) / 2)`,[p("multi-padding-vertical")]:`calc(${m("multi-padding-base")} - ${l} - ${i})`,[p("multi-item-padding-horizontal")]:`calc(${u} - ${m("multi-padding-vertical")} - ${i} * 2)`,paddingBlock:m("multi-padding-vertical"),paddingInlineStart:`calc(${m("multi-padding-base")} - ${i})`,[e+"-prefix"]:{marginInlineStart:m("multi-item-padding-horizontal")},[e+`-prefix + ${e}-content`]:{[e+"-placeholder"]:{insetInlineStart:0},[e+`-content-item${e}-content-item-suffix`]:{marginInlineStart:0}},[e+"-placeholder"]:{position:"absolute",lineHeight:m("line-height"),insetInlineStart:m("multi-item-padding-horizontal"),width:`calc(100% - ${m("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[e+"-content"]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:m("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${Zh}px)`},[e+`-content-item-prefix + ${e}-content-item-suffix,
${e}-content-item-suffix:first-child`]:{marginInlineStart:m("multi-item-padding-horizontal")},[e+"-selection-item"]:{lineHeight:`calc(${m("multi-item-height")} - ${i} * 2)`,border:i+` ${s} `+m("multi-item-border-color"),display:"flex",marginBlock:l,marginInlineEnd:r(l).mul(2).equal(),background:m("multi-item-background"),borderRadius:m("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:a,transition:["height","line-height","padding"].map(e=>e+" "+t.motionDurationSlow).join(","),"&-content":{...an,marginInlineEnd:a},"&-remove":{...ln(),display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> "+n]:{verticalAlign:"-0.2em"},"&:hover":{color:d}}},[e+"-input"]:{lineHeight:r(l).mul(2).add(m("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:Zh,maxWidth:"100%",transition:"line-height "+t.motionDurationSlow}},[`&${e}-sm`]:{[p("multi-item-height")]:t.multipleItemHeightSM,[p("multi-item-border-radius")]:t.borderRadiusXS},[`&${e}-lg`]:{[p("multi-item-height")]:t.multipleItemHeightLG,[p("multi-item-border-radius")]:t.borderRadius},[`&${e}-filled`]:{[p("multi-item-border-color")]:t.colorSplit,[p("multi-item-background")]:t.colorBgContainer,[`&${e}-disabled`]:{[p("multi-item-border-color")]:"transparent"}}}}};let eg=(e,t)=>{var{componentCls:r,antCls:n}=e,[n]=Q(n,"select"),{border:o,borderHover:a,borderActive:l,borderOutline:i}=t,s=t.background||e.selectorBg||e.colorBgContainer;return{[n("border-color")]:o,[n("background-color")]:s,[n("affix-color")]:t.affixColor,[`&:not(${r}-disabled)`]:{"&:hover":{[n("border-color")]:a,[n("background-color")]:t.backgroundHover||s},[`&${r}-focused`]:{[n("border-color")]:l,[n("background-color")]:t.backgroundActive||s,boxShadow:`0 0 0 ${(0,Qe.unit)(e.controlOutlineWidth)} `+i}},[`&${r}-disabled`]:{[n("border-color")]:t.borderDisabled||t.border,[n("background-color")]:t.backgroundDisabled||t.background}}},tg=(e,t,r,n,o,a)=>{var l=e.componentCls;return{[`&${l}-`+t]:[eg(e,r),{[`&${l}-status-error`]:eg(e,{...r,...n}),[`&${l}-status-warning`]:eg(e,{...r,...o})},a]}},rg=(e,t)=>({outline:`${(0,Qe.unit)(e.lineWidthFocus)} ${e.lineType} `+t,outlineOffset:(0,Qe.unit)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>e+" 0s").join(", ")});var ng=t=>{var{componentCls:e,fontHeight:r,controlHeight:n,fontSizeIcon:o,showArrowPaddingInlineEnd:a,iconCls:l,antCls:i,max:s,calc:c}=t,[i,d]=Q(i,"select"),s=s(c(a).sub(o).equal(),0);return{[e]:[{[i("border-radius")]:t.borderRadius,[i("border-color")]:"#000",[i("border-size")]:t.lineWidth,[i("background-color")]:t.colorBgContainer,[i("font-size")]:t.fontSize,[i("line-height")]:t.lineHeight,[i("font-height")]:r,[i("color")]:t.colorText,[i("affix-color")]:t.colorText,[i("height")]:n,[i("padding-horizontal")]:c(t.paddingSM).sub(t.lineWidth).equal(),[i("padding-vertical")]:`calc((${d("height")} - ${d("font-height")}) / 2 - ${d("border-size")})`,...F(t),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:"all "+t.motionDurationSlow,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:d("border-radius"),borderWidth:d("border-size"),borderStyle:t.lineType,borderColor:d("border-color"),background:d("background-color"),fontSize:d("font-size"),lineHeight:d("line-height"),color:d("color"),paddingInline:d("padding-horizontal"),paddingBlock:d("padding-vertical"),[e+"-prefix"]:{color:d("affix-color"),flex:"none",lineHeight:1},[e+"-placeholder"]:{...an,color:t.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[e+"-content"]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:s,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[e+"-suffix"]:{flex:"none",color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,transition:["opacity","color"].map(e=>`${e} ${t.motionDurationMid} ease`).join(", "),"> :not(:last-child)":{marginInlineEnd:t.marginXS}},[e+`-prefix, ${e}-suffix`]:{alignSelf:"center",[l]:{verticalAlign:"top"}},"&-disabled":{background:t.colorBgContainerDisabled,[i("color")]:t.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[i("height")]:t.controlHeightSM,[i("padding-horizontal")]:c(t.paddingXS).sub(t.lineWidth).equal(),[i("border-radius")]:t.borderRadiusSM,[e+"-clear"]:{insetInlineEnd:d("padding-horizontal")}},"&-lg":{[i("height")]:t.controlHeightLG,[i("font-size")]:t.fontSizeLG,[i("line-height")]:t.lineHeightLG,[i("font-height")]:t.fontHeightLG,[i("border-radius")]:t.borderRadiusLG}},{[`&:not(${e}-customize)`]:{[e+"-input"]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:d("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${e}-customize)`]:{[e+"-input"]:{position:"absolute",inset:0,lineHeight:"inherit"},[e+"-content"]:{...an,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${e}-input)`]:{opacity:0}},"&-value":{transition:`all ${t.motionDurationMid} `+t.motionEaseInOut,zIndex:1,opacity:1}},[`&${e}-open ${e}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${t.motionDurationMid} `+t.motionEaseInOut,color:"transparent",[`> *:not(${e}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${e}-customize-input):not(${e}-disabled)`]:{cursor:"text"}},Jh(t),tg(t,"outlined",{border:t.colorBorder,borderHover:t.hoverBorderColor,borderActive:t.activeBorderColor,borderOutline:t.activeOutlineColor,borderDisabled:t.colorBorderDisabled},{border:t.colorError,borderHover:t.colorErrorBorderHover,borderActive:t.colorError,borderOutline:t.colorErrorOutline,affixColor:t.colorErrorAffix},{border:t.colorWarning,borderHover:t.colorWarningHover,borderActive:t.colorWarning,borderOutline:t.colorWarningOutline,affixColor:t.colorWarningAffix}),tg(t,"filled",{border:"transparent",borderHover:"transparent",borderActive:t.activeBorderColor,borderOutline:"transparent",borderDisabled:t.colorBorderDisabled,background:t.colorFillTertiary,backgroundHover:t.colorFillSecondary,backgroundActive:t.colorBgContainer},{color:t.colorErrorText,background:t.colorErrorBg,backgroundHover:t.colorErrorBgHover,borderActive:t.colorError},{background:t.colorWarningBg,backgroundHover:t.colorWarningBgHover,borderActive:t.colorWarning}),tg(t,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${e}-disabled):has(input:focus-visible), &:not(${e}-disabled):has(textarea:focus-visible)`]:rg(t,t.activeBorderColor),[`&${e}-status-error:not(${e}-disabled):has(input:focus-visible), &${e}-status-error:not(${e}-disabled):has(textarea:focus-visible)`]:rg(t,t.colorError),[`&${e}-status-warning:not(${e}-disabled):has(input:focus-visible), &${e}-status-warning:not(${e}-disabled):has(textarea:focus-visible)`]:rg(t,t.colorWarning)}),tg(t,"underlined",{border:t.colorBorder,borderHover:t.hoverBorderColor,borderActive:t.activeBorderColor,borderOutline:"transparent"},{border:t.colorError,borderHover:t.colorErrorBorderHover,borderActive:t.colorError},{border:t.colorWarning,borderHover:t.colorWarningHover,borderActive:t.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),Qh(t)]}};let og=e=>{let{antCls:t,componentCls:r,motionDurationMid:n,inputPaddingHorizontalBase:o}=e;var a={[r+"-clear"]:{opacity:1},[r+"-suffix:not(:last-child)"]:{opacity:0,pointerEvents:"none"},[`&${r}-allow-clear:not(${r}-show-arrow):not(${r}-customize) ${r}-content`]:{marginInlineEnd:e.showArrowPaddingInlineEnd}};return{[r]:{...F(e),[r+"-selection-item"]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...an,[`> ${t}-typography`]:{display:"inline"}},[r+"-prefix"]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[r+"-clear"]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),padding:0,background:"transparent",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontFamily:"inherit",fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",appearance:"none",border:0,cursor:"pointer",opacity:0,transition:["color","opacity"].map(e=>`${e} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[r+"-status"]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[r+"-clear"]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}};var ag=Be("Select",(e,{rootPrefixCls:t})=>{var r,t=ze(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[[{[r=(e=t).componentCls]:{[`&${r}-in-form-item`]:{width:"100%"}}},og(e),Uh(e),{[r+"-rtl"]:{direction:"rtl"}},Rd(e,{focusElCls:r+"-focused"})],ng(t)]},e=>{var{fontSize:t,lineHeight:r,lineWidth:n,lineWidthFocus:o,controlHeight:a,controlHeightSM:l,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:d,colorText:u,fontWeightStrong:p,controlItemBgActive:m,controlItemBgHover:f,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:C,controlOutline:x}=e,w=2*s,S=2*n,k=Math.min(a-w,a-S),l=Math.min(l-w,l-S),w=Math.min(i-w,i-S);return{lineWidthFocus:0===o?0:n,INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:d+50,optionSelectedColor:u,optionSelectedFontWeight:p,optionSelectedBg:m,optionActiveBg:f,optionPadding:(a-t*r)/2+`px ${c}px`,optionFontSize:t,optionLineHeight:r,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:k,multipleItemHeightSM:l,multipleItemHeightLG:w,multipleSelectorBgDisabled:v,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:y,activeBorderColor:C,activeOutlineColor:x,selectAffixPadding:s}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function lg(){return(lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ig=ft.forwardRef((e,t)=>ft.createElement(u,lg({},e,{ref:t,icon:C().A})));function sg(){return(sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var cg=ft.forwardRef((e,t)=>ft.createElement(u,sg({},e,{ref:t,icon:$().A})));function dg(){return(dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ug=ft.forwardRef((e,t)=>ft.createElement(u,dg({},e,{ref:t,icon:ae().A})));function pg({suffixIcon:a,contextSuffixIcon:l,clearIcon:i,contextClearIcon:s,menuItemSelectedIcon:c,contextMenuItemSelectedIcon:d,removeIcon:u,contextRemoveIcon:p,loading:m,loadingIcon:f,contextLoadingIcon:h,searchIcon:g,contextSearchIcon:v,multiple:b,hasFeedback:y,showSuffixIcon:C,feedbackIcon:x,showArrow:w}){return ft.useMemo(()=>{var e=Gs(i,s,ft.createElement(jo,null));let r=e=>null!==a||y||w?ft.createElement(ft.Fragment,null,!1!==C&&e,y&&x):null,t=null;t=void 0!==a?r(a):m?r(Gs(f,h,ft.createElement(Al,{spin:!0}))):({open:e,showSearch:t})=>e&&t?r(Gs(g,v,ft.createElement(ug,null))):r(Gs(l,ft.createElement(cg,null)));var n=Gs(c,d,b?ft.createElement(ig,null):null),o=Gs(u,p,ft.createElement(Ko,null));return{clearIcon:e,suffixIcon:t,itemIcon:n,removeIcon:o}},[a,l,i,s,c,d,u,p,m,f,h,g,v,b,y,C,x,w])}var mg=function(t){return Re().useMemo(()=>{if(t)return(...e)=>Re().createElement(sp,{space:!0},t.apply(void 0,e))},[t])};function fg(e,t){return void 0!==t?t:null!==e}let hg="SECRET_COMBOBOX_MODE_DO_NOT_USE";var o=ft.forwardRef((t,e)=>{let{prefixCls:r,bordered:n,className:H,rootClassName:o,getPopupContainer:A,popupClassName:D,dropdownClassName:L,listHeight:F=256,placement:a,listItemHeight:W,size:j,disabled:_,notFoundContent:l,status:K,builtinPlacements:V,dropdownMatchSelectWidth:X,popupMatchSelectWidth:q,direction:G,style:Y,allowClear:U,variant:Q,popupStyle:Z,dropdownStyle:J,transitionName:ee,tagRender:te,maxCount:re,prefix:ne,dropdownRender:oe,popupRender:ae,onDropdownVisibleChange:le,onOpenChange:ie,styles:se,classNames:ce,clearIcon:de,showSearch:i,...s}=t;var{getPopupContainer:ue,getPrefixCls:c,renderEmpty:d,direction:u,virtual:pe,popupMatchSelectWidth:p,popupOverflow:me}=ft.useContext(Ue),{showSearch:m,allowClear:f,style:h,styles:g,className:fe,classNames:v,clearIcon:b,loadingIcon:y,menuItemSelectedIcon:C,removeIcon:x,suffixIcon:w}=Fe("select"),[,S]=so(),S=W??S?.controlHeight,k=c("select",r),c=c();let E=G??u,{compactSize:he,compactItemClassnames:ge}=bc(k,E);var[u,ve]=Th("select",Q,n),N=nl(k),[I,M]=ag(k,N),$=ft.useMemo(()=>{var e=t.mode;if("combobox"!==e)return e===hg?"combobox":e},[t.mode]),R="multiple"===$||"tags"===$,P=fg(t.suffixIcon,t.showArrow),p=q??X??p,be=mg(ae||oe),ye=ie||le,{status:z,hasFeedback:B,isFormItemInput:Ce,feedbackIcon:T}=ft.useContext(ap),z=Ih(z,K);let O;O=void 0!==l?l:"combobox"===$?null:d?.("Select")||ft.createElement(Bh,{componentName:"Select"});var{suffixIcon:d,itemIcon:T,removeIcon:P,clearIcon:b}=pg({...s,multiple:R,hasFeedback:B,feedbackIcon:T,showSuffixIcon:P,prefixCls:k,componentName:"Select",clearIcon:de,searchIcon:Eh(i,"searchIcon"),contextClearIcon:b,contextLoadingIcon:y,contextMenuItemSelectedIcon:C,contextRemoveIcon:x,contextSearchIcon:Eh(m,"searchIcon"),contextSuffixIcon:w}),y=U??f,C=!0===y?{clearIcon:b}:y,x=i??m,w=at(s,["suffixIcon","itemIcon"]),f=mc(e=>j??he??e),b=ft.useContext($s),y=_??b,m={...t,variant:u,status:z,disabled:y,size:f},b=We(h),h=We(Y),[v,g]=je([v,ce],[g,b,se,h],{props:m},{popup:{_default:"root"}}),b=bt(v.popup.root,D,L,{[k+"-dropdown-"+E]:"rtl"===E},o,M,N,I),h={...g.popup?.root,...Z??J},m=bt({[k+"-lg"]:"large"===f,[k+"-sm"]:"small"===f,[k+"-rtl"]:"rtl"===E,[k+"-"+u]:ve,[k+"-in-form-item"]:Ce},Nh(k,z,B),ge,fe,H,v.root,o,M,N,I),f=ft.useMemo(()=>void 0!==a?a:"rtl"===E?"bottomRight":"bottomLeft",[a,E]),[u]=Cp("SelectLike",g.popup.root?.zIndex??h.zIndex);return ft.createElement(kh,{ref:e,virtual:pe,classNames:v,styles:g,showSearch:x,...w,style:g.root,popupMatchSelectWidth:p,transitionName:tc(c,"slide-up",ee),builtinPlacements:Hh(V,me),listHeight:F,listItemHeight:S,mode:$,prefixCls:k,placement:f,direction:E,prefix:ne,suffixIcon:d,menuItemSelectedIcon:T,removeIcon:P,allowClear:C,notFoundContent:O,className:m,getPopupContainer:A||ue,popupClassName:b,disabled:y,popupStyle:{...g.popup.root,...h,zIndex:u},maxCount:R?re:void 0,tagRender:R?te:void 0,popupRender:be,onPopupVisibleChange:ye})}),d=Fn(o,"popupAlign"),gg=(o.SECRET_COMBOBOX_MODE_DO_NOT_USE=hg,o.Option=i,o.OptGroup=e,o._InternalPanelDoNotUseOrYouWillBeFired=d,o);let vg=gg.Option;function bg(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var s=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:o,popupClassName:a,dropdownClassName:l,children:i,dataSource:s,rootClassName:c,dropdownStyle:d,dropdownRender:u,popupRender:p,onDropdownVisibleChange:m,onOpenChange:f,styles:h,classNames:g,popupMatchSelectWidth:v,dropdownMatchSelectWidth:b}=e;var y=ke(i),C=p||u,x=f||m,w=v??b;let S;1===y.length&&ft.isValidElement(y[0])&&!bg(y[0])&&([S]=y);var k=S?()=>S:void 0;let E;E=y.length&&bg(y[0])?i:s?s.map(e=>{if(ft.isValidElement(e))return e;switch(typeof e){case"string":return ft.createElement(vg,{key:e,value:e},e);case"object":var t=e.value;return ft.createElement(vg,{key:t,value:t},e.text);default:return}}):[];y=ft.useContext(Ue).getPrefixCls;let N=y("select",r);y={...e,popupRender:C,onOpenChange:x,popupMatchSelectWidth:w};let[I,M]=je([g],[h],{props:y},{popup:{_default:"root"}});var y=ft.useMemo(()=>({root:bt(N+"-auto-complete",n,c,I.root,{[N+"-customize"]:S}),prefix:I.prefix,input:I.input,placeholder:I.placeholder,content:I.content,popup:{root:bt(a,l,I.popup.root),list:I.popup.list,listItem:I.popup.listItem}}),[N,n,c,I,a,l]),$=ft.useMemo(()=>({root:{...M.root,...o},input:M.input,prefix:M.prefix,placeholder:M.placeholder,content:M.content,popup:{root:{...d,...M.popup.root},list:M.popup.list,listItem:M.popup.listItem}}),[M,o,d]);return ft.createElement(gg,{ref:t,suffixIcon:null,...at(e,["dataSource","dropdownClassName","popupClassName","onDropdownVisibleChange","onOpenChange"]),prefixCls:N,classNames:y,styles:$,mode:gg.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:C,onOpenChange:x,popupMatchSelectWidth:w,getInputElement:k},E)}),n=gg.Option,l=Fn(s,"popupAlign",e=>at(e,["visible"])),c=s,yg=(c.Option=n,c._InternalPanelDoNotUseOrYouWillBeFired=l,c);let Cg=["xxxl","xxl","xl","lg","md","sm","xs"],xg=[].concat(Cg).reverse(),wg=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Sg=e=>{let o=e,a=[].concat(Cg).reverse();return a.forEach((e,t)=>{var e=e.toUpperCase(),r=`screen${e}Min`,n="screen"+e;if(!(o[r]<=o[n]))throw new Error(r+`<=${n} fails : !(${o[r]}<=${o[n]})`);if(t<a.length-1){r=`screen${e}Max`;if(!(o[n]<=o[r]))throw new Error(n+`<=${r} fails : !(${o[n]}<=${o[r]})`);e=`screen${a[t+1].toUpperCase()}Min`;if(!(o[r]<=o[e]))throw new Error(r+`<=${e} fails : !(${o[r]}<=${o[e]})`)}}),e},kg=(e,t)=>{if(t)for(var r of Cg)if(e[r]&&void 0!==t?.[r])return t[r]};var Eg=()=>{var[,e]=so();let n=wg(Sg(e));return Re().useMemo(()=>{let t=new Map,r=-1,o={};return{responsiveMap:n,matchHandlers:{},dispatch(e){return o=e,t.forEach(e=>{e(o)}),1<=t.size},subscribe(e){return t.size||this.register(),r+=1,t.set(r,e),e(o),r},unsubscribe(e){t.delete(e),t.size||this.unregister()},register(){Object.entries(n).forEach(([t,e])=>{var r=({matches:e})=>{this.dispatch({...o,[t]:e})},n=window.matchMedia(e);Je(n.addEventListener)&&n.addEventListener("change",r),this.matchHandlers[e]={mql:n,listener:r},r(n)})},unregister(){Object.values(n).forEach(e=>{e=this.matchHandlers[e];Je(e?.mql.removeEventListener)&&e.mql.removeEventListener("change",e?.listener)}),t.clear()}}},[n])};let Ng=()=>Re().useReducer(e=>e+1,0);var Ig=function(t=!0,e={}){let r=(0,ft.useRef)(e),[,n]=Ng(),o=Eg();return gt(()=>{let e=o.subscribe(e=>{r.current=e,t&&n()});return()=>o.unsubscribe(e)},[t]),r.current},Mg=ft.createContext({});var $g=Be("Avatar",e=>{var{colorTextLightSolid:t,colorTextPlaceholder:r}=e,e=ze(e,{avatarBg:r,avatarColor:t});return[(e=>{let{antCls:t,componentCls:o,iconCls:a,avatarBg:r,avatarColor:n,containerSize:l,containerSizeLG:i,containerSizeSM:s,textFontSize:c,textFontSizeLG:d,textFontSizeSM:u,iconFontSize:p,iconFontSizeLG:m,iconFontSizeSM:f,borderRadius:h,borderRadiusLG:g,borderRadiusSM:v,lineWidth:b,lineType:y}=e;var C=(e,t,r,n)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${o}-square`]:{borderRadius:n},[`&${o}-icon`]:{fontSize:r,["> "+a]:{margin:0}}});return{[o]:{...F(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:n,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:(0,Qe.unit)(b)+` ${y} transparent`,"&-image":{background:"transparent"},[t+"-image-img"]:{display:"block"},...C(l,c,p,h),"&-lg":{...C(i,d,m,g)},"&-sm":{...C(s,u,f,v)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}})(e),(e=>{var{componentCls:e,groupBorderColor:t,groupOverlapping:r,groupSpace:n}=e;return{[e+"-group"]:{display:"inline-flex",[e]:{borderColor:t},"> *:not(:first-child)":{marginInlineStart:r}},[e+"-group-popover"]:{[e+" + "+e]:{marginInlineStart:n}}}})(e)]},e=>{var{controlHeight:e,controlHeightLG:t,controlHeightSM:r,fontSize:n,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:l,marginXS:i,marginXXS:s,colorBorderBg:c}=e;return{containerSize:e,containerSizeLG:t,containerSizeSM:r,textFontSize:n,textFontSizeLG:n,textFontSizeSM:n,iconFontSize:Math.round((o+a)/2),iconFontSizeLG:l,iconFontSizeSM:n,groupSpace:s,groupOverlapping:-i,groupBorderColor:c}}),Rg=ft.forwardRef((e,t)=>{let{prefixCls:r,shape:n,size:o,src:a,srcSet:l,icon:i,className:s,rootClassName:c,style:d,alt:u,draggable:p,children:m,crossOrigin:f,gap:h=4,onError:g,...v}=e,[b,y]=ft.useState(1),[C,H]=ft.useState(!1),[x,w]=ft.useState(!0),S=ft.useRef(null),k=ft.useRef(null);var e=Ne(t,S),{getPrefixCls:t,className:E,style:A}=Fe("avatar");let N=ft.useContext(Mg);var I=()=>{var e,t;k.current&&S.current&&(e=k.current.offsetWidth,t=S.current.offsetWidth,0!==e)&&0!==t&&2*h<t&&y(t-2*h<e?(t-2*h)/e:1)};ft.useEffect(()=>{H(!0)},[]),ft.useEffect(()=>{w(!0),y(1)},[a]),ft.useEffect(I,[h]);let M=mc(e=>o??N?.size??e??"medium");var $=Object.keys(Ze(M)&&M||{}).some(e=>Cg.includes(e));let R=Ig($);var $=ft.useMemo(()=>{var e;return Ze(M)&&(e=Cg.find(e=>R[e]),e=M[e])?{width:e,height:e,fontSize:e&&(i||m)?e/2:18}:{}},[R,M,i,m]),t=t("avatar",r),P=nl(t),[D,z]=$g(t,P),B=bt({[t+"-lg"]:"large"===M,[t+"-sm"]:"small"===M}),T=ft.isValidElement(a),B=bt(t,B,E,t+"-"+(n||N?.shape||"circle"),{[t+"-image"]:T||a&&x,[t+"-icon"]:!!i},z,P,s,c,D),E=Ma(M)?{width:M,height:M,fontSize:i?M/2:18}:{};let O;return O="string"==typeof a&&x?ft.createElement("img",{src:a,draggable:p,srcSet:l,onError:()=>{!1!==g?.()&&w(!1)},alt:u,crossOrigin:f}):T?a:i||(C||1!==b?ft.createElement(gr,{onResize:I},ft.createElement("span",{className:t+"-string",ref:k,style:{msTransform:z=`scale(${b})`,WebkitTransform:z,transform:z}},m)):ft.createElement("span",{className:t+"-string",style:{opacity:0},ref:k},m)),ft.createElement("span",{...v,style:{...E,...$,...A,...d},className:B,ref:e},O)});let Pg=e=>Se(e)?Je(e)?e():e:null;var zg=e=>{var{children:e,prefixCls:t,id:r,classNames:n,styles:o,className:a,style:l}=e;return ft.createElement("div",{id:r,className:bt(t+"-container",n?.container,a),style:{...o?.container,...l},role:"tooltip"},"function"==typeof e?e():e)},a={shiftX:64,adjustY:1},i={adjustX:1,shiftY:!0},e=[0,0];let Bg={left:{points:["cr","cl"],overflow:i,offset:[-4,0],targetOffset:e},right:{points:["cl","cr"],overflow:i,offset:[4,0],targetOffset:e},top:{points:["bc","tc"],overflow:a,offset:[0,-4],targetOffset:e},bottom:{points:["tc","bc"],overflow:a,offset:[0,4],targetOffset:e},topLeft:{points:["bl","tl"],overflow:a,offset:[0,-4],targetOffset:e},leftTop:{points:["tr","tl"],overflow:i,offset:[-4,0],targetOffset:e},topRight:{points:["br","tr"],overflow:a,offset:[0,-4],targetOffset:e},rightTop:{points:["tl","tr"],overflow:i,offset:[4,0],targetOffset:e},bottomRight:{points:["tr","br"],overflow:a,offset:[0,4],targetOffset:e},rightBottom:{points:["bl","br"],overflow:i,offset:[4,0],targetOffset:e},bottomLeft:{points:["tl","bl"],overflow:a,offset:[0,4],targetOffset:e},leftBottom:{points:["br","bl"],overflow:i,offset:[-4,0],targetOffset:e}};function Tg(){return(Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Og=ft.forwardRef((e,t)=>{let{trigger:r=["hover","focus"],mouseEnterDelay:n=0,mouseLeaveDelay:o=.1,prefixCls:a="rc-tooltip",children:l,onVisibleChange:i,afterVisibleChange:s,motion:c,placement:d="right",align:u={},destroyOnHidden:p=!1,defaultVisible:m,getTooltipContainer:f,arrowContent:h,overlay:g,id:v,showArrow:b=!0,classNames:y,styles:C,...x}=e,w=kt(v),S=(0,ft.useRef)(null);(0,ft.useImperativeHandle)(t,()=>S.current);var t={...x},e=("visible"in e&&(t.popupVisible=e.visible),ft.useMemo(()=>{var e;return!!b&&{...e=!0===b?{}:b,className:bt(e.className,y?.arrow),style:{...e.style,...C?.arrow},content:e.content??h}},[b,y?.arrow,C?.arrow,h])),k=({open:e})=>{var t=ft.Children.only(l),e=[t.props["aria-describedby"],g&&e?w:void 0].filter(Boolean).join(" ");return ft.cloneElement(t,{"aria-describedby":e||void 0})};return ft.createElement(Cs,Tg({popupClassName:y?.root,prefixCls:a,popup:ft.createElement(zg,{key:"content",prefixCls:a,id:w,classNames:y,styles:C},g),action:r,builtinPlacements:Bg,popupPlacement:d,ref:S,popupAlign:u,getPopupContainer:f,onOpenChange:i,afterOpenChange:s,popupMotion:c,defaultPopupVisible:m,autoDestroy:p,mouseLeaveDelay:o,popupStyle:C?.root,mouseEnterDelay:n,arrow:e,uniqueContainerClassName:y?.uniqueContainer,uniqueContainerStyle:C?.uniqueContainer},t),k)});function Hg(e){var{sizePopupArrow:e,borderRadiusXS:t,borderRadiusOuter:r}=e,e=e/2,n=e,o=+r/Math.sqrt(2),a=e-r*(1-1/Math.sqrt(2)),l=e-t*(1/Math.sqrt(2)),i=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),s=2*e-l,c=i,d=2*e-o,u=a,p=2*e,m=n,f=e*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:f,arrowPath:`path('M 0 ${n} A ${r} ${r} 0 0 0 ${o} ${a} L ${l} ${i} A ${t} ${t} 0 0 1 ${s} ${c} L ${d} ${u} A ${r} ${r} 0 0 0 ${p} ${m} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*e-h}px 100%, ${h}px 100%)`}}let Ag=(e,t,r)=>{var{sizePopupArrow:e,arrowPolygon:n,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:l,calc:i}=e,a={content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,Qe.unit)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return r&&(a.boxShadow=r),{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:i(e).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[n,o]},content:'""'},"&::after":a}},Dg=8;function Lg(e){var{contentRadius:e,limitVerticalRadius:t}=e,e=12<e?e+2:12;return{arrowOffsetHorizontal:e,arrowOffsetVertical:t?Dg:e}}var Fg=(e,t,r)=>{var{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:l,antCls:i}=e,[i]=Q(i,"tooltip"),{arrowDistance:r=0,arrowShadow:s=!0}=r||{};return{[n]:{[n+"-arrow"]:[{position:"absolute",zIndex:1,display:"block",...Ag(e,t,!!s&&o),"&:before":{background:t}}],[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[i("arrow-offset-x")]:l,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{[i("arrow-offset-x")]:`calc(100% - ${(0,Qe.unit)(l)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:l}}},[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[i("arrow-offset-x")]:l,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{[i("arrow-offset-x")]:`calc(100% - ${(0,Qe.unit)(l)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:l}}},[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:r},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a},[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:r},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}}};let Wg={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"]}},jg={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"]}},_g=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Kg(e){let{arrowWidth:r,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:a,borderRadius:t,visibleFirst:l}=e,i=r/2,s={},c=Lg({contentRadius:t,limitVerticalRadius:!0});return Object.keys(Wg).forEach(e=>{var t={...o&&jg[e]||Wg[e],offset:[0,0],dynamicInset:!0};switch(s[e]=t,_g.has(e)&&(t.autoArrow=!1),e){case"top":case"topLeft":case"topRight":t.offset[1]=-i-a;break;case"bottom":case"bottomLeft":case"bottomRight":t.offset[1]=i+a;break;case"left":case"leftTop":case"leftBottom":t.offset[0]=-i-a;break;case"right":case"rightTop":case"rightBottom":t.offset[0]=i+a}if(o)switch(e){case"topLeft":case"bottomLeft":t.offset[0]=-c.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":t.offset[0]=c.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":t.offset[1]=2*-c.arrowOffsetHorizontal+i;break;case"leftBottom":case"rightBottom":t.offset[1]=2*c.arrowOffsetHorizontal-i}t.overflow=((e,t,r,n)=>{if(!1===n)return{adjustX:!1,adjustY:!1};var n=Ze(n)?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+r,o.shiftX=!0,o.adjustX=!0}return(e={...o,...n}).shiftX||(e.adjustX=!0),e.shiftY||(e.adjustY=!0),e})(e,c,r,n),l&&(t.htmlRegion="visibleFirst")}),s}var Vg=Re().createContext(!1),Xg=(r,n)=>{let o=e=>"boolean"==typeof e?{show:e}:e||{};return Re().useMemo(()=>{var e=o(r),t=o(n);return{...t,...e,show:e.show??t.show??!0}},[r,n])};function qg(l,i){return _n.reduce((e,t)=>{var r=l[t+"1"],n=l[t+"3"],o=l[t+"6"],a=l[t+"7"];return{...e,...i(t,{lightColor:r,lightBorderColor:n,darkColor:o,textColor:a})}},{})}let Gg="50%",Yg=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:s,dropShadowPopover:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:p,sizePopupArrow:m,antCls:f}=e,[h,g]=Q(f,"tooltip");var v=t(l).add(m).add(p).equal(),b={minWidth:t(l).mul(2).add(m).equal(),minHeight:s,padding:(0,Qe.unit)(e.calc(d).div(2).equal())+" "+(0,Qe.unit)(u),color:g("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:l,boxSizing:"border-box"},y={[h("valid-offset-x")]:g("arrow-offset-x","var(--arrow-x)"),transformOrigin:[g("valid-offset-x",Gg),`var(--arrow-y, ${Gg})`].join(" ")};return[{[r]:{...F(e),position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:c,...y,"&-hidden":{display:"none"},[h("arrow-background-color")]:a,[r+"-container"]:[b,lm(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[r+"-container"]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[r+"-inner"]:{borderRadius:e.min(l,8)}},[r+"-content"]:{position:"relative"},...qg(e,(e,{darkColor:t})=>({[`&${r}-`+e]:{[r+"-container"]:{backgroundColor:t},[r+"-arrow"]:{[h("arrow-background-color")]:t}}})),"&-rtl":{direction:"rtl"}}},Fg(e,g("arrow-background-color"),{arrowShadow:!1}),{[r+"-pure"]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[r+"-unique-container"]:{...b,...y,position:"absolute",zIndex:t(i).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:"all "+e.motionDurationSlow}}}]},Ug=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Lg({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Hg(ze(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))});var Qg=(e,t,r=!0)=>Be("Tooltip",e=>{var{borderRadius:t,colorTextLightSolid:r,colorBgSpotlight:n,maxWidth:o}=e,o=ze(e,{tooltipMaxWidth:o,tooltipColor:r,tooltipBorderRadius:t,tooltipBg:n});return[Yg(o),cm(e,"zoom-big-fast")]},Ug,{resetStyle:!1,injectStyle:r})(e,t);let Zg=_n.map(e=>e+"-inverse"),Jg=["success","processing","error","default","warning"];function ev(e,t=!0){return(t?[].concat(Pe(Zg),Pe(_n)):_n).includes(e)}let tv=(e,t,r)=>{var n=ev(r),[e]=Q(e,"tooltip"),t=bt({[t+"-"+r]:r&&n}),o={},a={},l=gd(r).toRgb(),l=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return r&&!n&&(o.background=r,o[e("overlay-color")]=l,a[e("arrow-background-color")]=r),{className:t,overlayStyle:o,arrowStyle:a}};var d=ft.forwardRef((e,t)=>{let{prefixCls:r,openClassName:n,getTooltipContainer:H,color:o,children:a,afterOpenChange:A,arrow:D,destroyTooltipOnHide:L,destroyOnHidden:F,title:l,overlay:i,trigger:W,builtinPlacements:s,autoAdjustOverflow:c=!0,motion:d,getPopupContainer:j,placement:_="top",mouseEnterDelay:K,mouseLeaveDelay:V,rootClassName:X,styles:q,classNames:G,onOpenChange:u,overlayInnerStyle:Y,overlayStyle:U,overlayClassName:Q,...p}=e,[,m]=so();var f=e["data-popover-inject"];let{getPopupContainer:Z,getPrefixCls:h,direction:J,...ee}=Fe("tooltip");var{className:g,style:v,classNames:b,styles:y,arrow:C,trigger:x,mouseEnterDelay:w,mouseLeaveDelay:S}=f?{}:ee,w=K??w??.1,S=V??S??.1;let k=Xg(D,C),E=k.show;var C=W||x||"hover",x=j||Z,N=F??!!L,I=ft.useContext(Vg);fl("Tooltip");let M=ft.useRef(null),[te,re]=(ft.useImperativeHandle(t,()=>({forceAlign:()=>{M.current?.forceAlign()},nativeElement:M.current?.nativeElement,popupElement:M.current?.popupElement})),vt(e.defaultOpen??!1,e.open)),$=!l&&!i&&0!==l;var t=ft.useMemo(()=>s||Kg({arrowPointAtCenter:k?.pointAtCenter??!1,autoAdjustOverflow:c,arrowWidth:E?m.sizePopupArrow:0,borderRadius:m.borderRadius,offset:m.marginXXS,visibleFirst:!0}),[k,s,m,E,c]),R=ft.useMemo(()=>0===l?l:i||l||"",[i,l]),R=ft.createElement(sp,{space:!0,form:!0},Je(R)?R():R),P={...e,trigger:C,builtinPlacements:t,getPopupContainer:x,destroyOnHidden:N,mouseEnterDelay:w,mouseLeaveDelay:S},v=We(v),z=We(U),[b,y]=je([b,G],[y,v,q,z],{props:P}),v=h("tooltip",r),z=h();let B=te;("open"in e||!$)&&!I||(B=!1);var P=ft.isValidElement(a)&&!xs(a)?a:ft.createElement("span",null,a),e=P.props,I=e.className&&"string"!=typeof e.className?e.className:bt(e.className,n||v+"-open"),e=nl(v),[f,T]=Qg(v,e,!f),O=tv(z,v,o),ne=O.arrowStyle,e=bt(e,f,T),f=bt(Q,{[v+"-rtl"]:"rtl"===J},O.className,X,e,g,b.root),[T,g]=Cp("Tooltip",p.zIndex),O={...y.container,...Y,...O.overlayStyle},T=ft.createElement(Og,{unique:!0,...p,zIndex:T,showArrow:E,placement:_,mouseEnterDelay:w,mouseLeaveDelay:S,prefixCls:v,classNames:{root:f,container:b.container,arrow:b.arrow,uniqueContainer:bt(e,b.container)},styles:{root:{...ne,...y.root},container:O,uniqueContainer:O,arrow:y.arrow},ref:M,overlay:R,visible:B,onVisibleChange:e=>{re(!$&&e),!$&&u&&u(e)},afterVisibleChange:A,arrowContent:ft.createElement("span",{className:v+"-arrow-content"}),motion:{motionName:tc(z,"zoom-big-fast","string"==typeof d?.motionName?d?.motionName:void 0),motionDeadline:1e3},trigger:C,builtinPlacements:t,getTooltipContainer:x,destroyOnHidden:N},B&&!p.disabled?Ss(P,{className:I}):P);return ft.createElement(gp.Provider,{value:g},T)}),rv=(d._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:l,classNames:i,styles:s}=e;var c=ft.useContext(Ue).getPrefixCls,d=c("tooltip",t),c=c(),u=nl(d),[p,m]=Qg(d,u);let f=tv(c,d,a);var c=f.arrowStyle,h=ft.useMemo(()=>({container:{...l,...f.overlayStyle}}),[l,f.overlayStyle]),g={...e,placement:n},[h,g]=je([i],[h,s],{props:g}),u=bt(u,p,m,d,d+"-pure",d+"-placement-"+n,r,f.className);return ft.createElement("div",{className:u,style:c},ft.createElement("div",{className:d+"-arrow"}),ft.createElement(zg,{...e,className:p,prefixCls:d,classNames:h,styles:g},o))},d.UniqueProvider=Ns,d);let nv="50%";var ov=Be("Popover",e=>{var{colorBgElevated:t,colorText:r}=e,e=ze(e,{popoverBg:t,popoverColor:r});return[(e=>{var{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:o,innerPadding:a,dropShadowPopover:l,colorTextHeading:i,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:p,titleBorderBottom:m,innerContentPadding:f,titlePadding:h,antCls:g}=e,[g,v]=Q(g,"tooltip");return[{[t]:{...F(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:l,[g("valid-offset-x")]:v("arrow-offset-x","var(--arrow-x)"),transformOrigin:[v("valid-offset-x",nv),`var(--arrow-y, ${nv})`].join(" "),[g("arrow-background-color")]:u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[t+"-content"]:{position:"relative"},[t+"-container"]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:s,padding:a},[t+"-title"]:{minWidth:n,marginBottom:d,color:i,fontWeight:o,borderBottom:m,padding:h},[t+"-content"]:{color:r,padding:f}}},Fg(e,v("arrow-background-color"),{arrowShadow:!1}),{[t+"-pure"]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]})(e),(r=>{let{componentCls:n,antCls:e}=r,[o]=Q(e,"tooltip");return{[n]:_n.map(e=>{var t=r[e+"6"];return{[`&${n}-`+e]:{[o("arrow-background-color")]:t,[n+"-inner"]:{backgroundColor:t},[n+"-arrow"]:{background:"transparent"}}}})}})(e),cm(e,"zoom-big")]},e=>{var{lineWidth:t,controlHeight:r,fontHeight:n,padding:o,wireframe:a,zIndexPopupBase:l,borderRadiusLG:i,marginXS:s,lineType:c,colorSplit:d,paddingSM:u}=e,r=r-n,n=r/2,r=r/2-t;return{titleMinWidth:177,zIndexPopup:l+30,...Hg(e),...Lg({contentRadius:i,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:s,titlePadding:a?n+`px ${o}px ${r}px`:0,titleBorderBottom:a?t+`px ${c} `+d:"none",innerContentPadding:a?u+`px ${o}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let av=e=>{var{title:e,content:t,prefixCls:r,classNames:n,styles:o}=e;return Se(e)||Se(t)?ft.createElement(ft.Fragment,null,Se(e)&&ft.createElement("div",{className:bt(r+"-title",n?.title),style:o?.title},e),Se(t)&&ft.createElement("div",{className:bt(r+"-content",n?.content),style:o?.content},t)):null},lv=e=>{var{hashId:t,prefixCls:r,className:n,style:o,placement:a="top",title:l,content:i,children:s,classNames:c,styles:d}=e,l=Pg(l),i=Pg(i),u={...e,placement:a},[c,d]=je([c],[d],{props:u}),u=bt(t,r,r+"-pure",r+"-placement-"+a,n);return ft.createElement("div",{className:u,style:o},ft.createElement("div",{className:r+"-arrow"}),ft.createElement(zg,{...e,className:t,prefixCls:r,classNames:c,styles:d},s||ft.createElement(av,{prefixCls:r,title:l,content:i,classNames:c,styles:d})))};var iv=e=>{let{prefixCls:t,className:r,...n}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("popover",t),[o,a]=ov(e);return ft.createElement(lv,{...n,prefixCls:e,hashId:o,className:bt(r,a)})},o=ft.forwardRef((e,t)=>{let{prefixCls:r,title:n,content:o,overlayClassName:a,placement:l="top",trigger:i,children:s,mouseEnterDelay:c,mouseLeaveDelay:d,onOpenChange:u,overlayStyle:p={},styles:m,classNames:f,motion:h,arrow:g,...v}=e;var{getPrefixCls:b,className:y,style:C,classNames:x,styles:w,arrow:S,trigger:k,mouseEnterDelay:E,mouseLeaveDelay:N}=Fe("popover"),E=c??E??.1,N=d??N??.1,I=b("popover",r),[M,$]=ov(I),b=b(),S=Xg(g,S),k=i||k||"hover",R={...e,placement:l,trigger:k,mouseEnterDelay:E,mouseLeaveDelay:N,overlayStyle:p,styles:m,classNames:f},C=We(C),P=We(p),[x,w]=je([x,f],[w,C,m,P],{props:R}),C=bt(a,M,$,y,x.root);let[z,B]=vt(e.defaultOpen??!1,e.open);P=Pg(n),R=Pg(o);return ft.createElement(rv,{unique:!1,arrow:S,placement:l,trigger:k,mouseEnterDelay:E,mouseLeaveDelay:N,...v,prefixCls:I,classNames:{root:C,container:x.container,arrow:x.arrow},styles:{root:w.root,container:w.container,arrow:w.arrow},ref:t,open:z,onOpenChange:e=>{B(e),u?.(e)},overlay:Se(P)||Se(R)?ft.createElement(av,{prefixCls:I,title:P,content:R,classNames:x,styles:w}):null,motion:{motionName:tc(b,"zoom-big","string"==typeof h?.motionName?h?.motionName:void 0)},"data-popover-inject":!0},s)}),sv=(o._InternalPanelDoNotUseOrYouWillBeFired=iv,o);let cv=e=>{let{size:t,shape:r}=ft.useContext(Mg);var n=ft.useMemo(()=>({size:e.size||t,shape:e.shape||r}),[e.size,e.shape,t,r]);return ft.createElement(Mg.Provider,{value:n},e.children)};var s=ft.forwardRef((e,t)=>{var{getPrefixCls:r,direction:n}=ft.useContext(Ue),{prefixCls:e,className:o,rootClassName:a,style:l,maxCount:i,maxStyle:s,size:c,shape:d,maxPopoverPlacement:u,maxPopoverTrigger:p,children:m,max:f}=e,r=r("avatar",e),e=r+"-group",h=nl(r),[r,g]=$g(r,h),n=bt(e,{[e+"-rtl"]:"rtl"===n},g,h,o,a,r),g=ke(m).map((e,t)=>Ss(e,{key:"avatar-key-"+t}));let v=ft.useRef(null);ft.useImperativeHandle(t,()=>({nativeElement:v.current}));h=f?.count||i,o=g.length;return h&&h<o?(a=g.slice(0,h),r=g.slice(h,o),m=f?.style||s,t=f?.popover?.trigger||p||"hover",i=f?.popover?.placement||u||"top",s={content:r,...f?.popover,placement:i,trigger:t,rootClassName:bt(e+"-popover",f?.popover?.rootClassName)},a.push(ft.createElement(sv,{key:"avatar-popover-key",destroyOnHidden:!0,...s},ft.createElement(Rg,{style:m},"+"+(o-h)))),ft.createElement(cv,{shape:d,size:c},ft.createElement("div",{ref:v,className:n,style:l},a))):ft.createElement(cv,{shape:d,size:c},ft.createElement("div",{ref:v,className:n,style:l},g))}),n=Rg,dv=(n.Group=s,n);function uv(){return(uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pv=ft.forwardRef((e,t)=>ft.createElement(u,uv({},e,{ref:t,icon:de().A})));var mv=Be("BackTop",e=>{var{fontSizeHeading3:t,colorTextDescription:r,colorTextLightSolid:n,colorText:o,controlHeightLG:a,calc:l}=e,e=ze(e,{backTopBackground:r,backTopColor:n,backTopHoverBackground:o,backTopFontSize:t,backTopSize:a,backTopBlockEnd:l(a).mul(1.25).equal(),backTopInlineEnd:l(a).mul(2.5).equal(),backTopInlineEndMD:l(a).mul(1.5).equal(),backTopInlineEndXS:l(a).mul(.5).equal()});return[(e=>{var{componentCls:t,backTopFontSize:r,backTopSize:n,zIndexPopup:o}=e;return{[t]:{...F(e),position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[t+"-content"]:{width:n,height:n,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:n,transition:"all "+e.motionDurationMid,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:"all "+e.motionDurationMid}},[t+"-icon"]:{fontSize:r,lineHeight:(0,Qe.unit)(n)}}}})(e),(e=>{var{componentCls:e,screenMD:t,screenXS:r,backTopInlineEndMD:n,backTopInlineEndXS:o}=e;return{[`@media (max-width: ${(0,Qe.unit)(t)})`]:{[e]:{insetInlineEnd:n}},[`@media (max-width: ${(0,Qe.unit)(r)})`]:{[e]:{insetInlineEnd:o}}}})(e)]},e=>({zIndexPopup:e.zIndexBase+10})),fv=e=>{let{prefixCls:t,className:r,rootClassName:n,visibilityHeight:o=400,target:a,onClick:l,duration:i=450,children:s}=e,[c,d]=Re().useState(0===o),u=Re().useRef(null),p=()=>u.current?.ownerDocument||window,m=Cr(e=>{e=tl(e.target);d(e>=o)});Re().useEffect(()=>{let e=(a||p)();return m({target:e}),e?.addEventListener("scroll",m),()=>{m.cancel(),e?.removeEventListener("scroll",m)}},[a]);var{getPrefixCls:f,direction:h}=Re().useContext(Ue),g=f("back-top",t),f=f(),v=nl(g),[v,b]=mv(g,v),v=bt(v,b,g,{[g+"-rtl"]:"rtl"===h},r,n),b=at(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]);let y=Re().createElement("div",{className:g+"-content"},Re().createElement("div",{className:g+"-icon"},Re().createElement(pv,null)));return Re().createElement("div",{...b,className:v,onClick:e=>{rl(0,{getContainer:a||p,duration:i}),l?.(e)},ref:u},Re().createElement(Na,{visible:c,motionName:f+"-fade"},({className:t})=>Ss(s||y,({className:e})=>({className:bt(t,e)}))))};let hv=e=>{var{prefixCls:e,value:t,current:r,offset:n=0}=e;let o;return n&&(o={position:"absolute",top:n+"00%",left:0}),ft.createElement("span",{style:o,className:bt(e+"-only-unit",{current:r})},t)};var gv=a=>{var{prefixCls:e,count:t,value:r}=a;let l=Number(r),i=Math.abs(t),[s,n]=ft.useState(l),[c,o]=ft.useState(i),d=()=>{n(l),o(i)};ft.useEffect(()=>{let e=setTimeout(d,1e3);return()=>clearTimeout(e)},[l]);let u,p;if(s===l||Number.isNaN(l)||Number.isNaN(s))u=[ft.createElement(hv,{...a,key:l,current:!0})],p={transition:"none"};else{u=[];var m=l+10,f=[];for(let e=l;e<=m;e+=1)f.push(e);let n=c<i?1:-1,o=f.findIndex(e=>e%10===s);r=n<0?f.slice(0,o+1):f.slice(o);u=r.map((e,t)=>{var r=e%10;return ft.createElement(hv,{...a,key:e,value:r,offset:n<0?t-o:t,current:t===o})}),p={transform:`translateY(${-((e,t,r)=>{let n=e,o=0;for(;(n+10)%10!==t;)n+=r,o+=r;return o})(s,l,n)}00%)`}}return ft.createElement("span",{className:e+"-only",style:p,onTransitionEnd:d},u)},vv=ft.forwardRef((e,t)=>{let{prefixCls:r,count:n,className:o,motionClassName:a,style:l,title:i,show:s,component:c="sup",children:d,...u}=e;e=ft.useContext(Ue).getPrefixCls;let p=e("scroll-number",r);e={...u,"data-show":s,style:l,className:bt(p,o,a),title:i};let m=n;if(n&&Number(n)%1==0){let r=String(n).split("");m=ft.createElement("bdi",null,r.map((e,t)=>ft.createElement(gv,{prefixCls:p,count:Number(n),value:e,key:r.length-t})))}return l?.borderColor&&(e.style={...l,boxShadow:`0 0 0 1px ${l.borderColor} inset`}),d?Ss(d,e=>({className:bt(p+"-custom-component",e?.className,a)})):ft.createElement(c,{...e,ref:t},m)});let bv=new Qe.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),yv=new Qe.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Cv=new Qe.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),xv=new Qe.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),wv=new Qe.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Sv=new Qe.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),kv=e=>{var{fontHeight:t,lineWidth:r,marginXS:n,colorBorderBg:o}=e;return ze(e,{badgeFontHeight:t,badgeShadowSize:r,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})};var l=e=>{var{fontSize:e,lineHeight:t,fontSizeSM:r,lineWidth:n,paddingXS:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*t)-2*n,indicatorHeightSM:e,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2,paddingInline:o}},Ev=Be("Badge",e=>(e=>{let{componentCls:r,iconCls:t,antCls:n,badgeShadowSize:o,textFontSize:a,textFontSizeSM:l,statusSize:i,dotSize:s,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:u,marginXS:p,calc:m}=e;var f=n+"-scroll-number",h=qg(e,(e,{darkColor:t})=>({[`&${r} ${r}-color-`+e]:{background:t,[`&:not(${r}-count)`]:{color:t},"a:hover &":{background:t}}}));return{[r]:{...F(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[r+"-count"]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:(0,Qe.unit)(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${(0,Qe.unit)(o)} `+e.badgeShadowColor,transition:"background-color "+e.motionDurationMid,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[r+"-count-sm"]:{minWidth:u,height:u,fontSize:l,lineHeight:(0,Qe.unit)(u),borderRadius:m(u).div(2).equal()},[r+"-multiple-words"]:{paddingInline:e.paddingInline,bdi:{unicodeBidi:"plaintext"}},[r+"-dot"]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,Qe.unit)(o)} `+e.badgeShadowColor},[`${r}-count, ${r}-dot, ${f}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${t}-spin`]:{animationName:Sv,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${r}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[r+"-status-dot"]:{position:"relative",top:-1,display:"inline-block",width:i,height:i,verticalAlign:"middle",borderRadius:"50%"},[r+"-status-success"]:{backgroundColor:e.colorSuccess},[r+"-status-processing"]:{overflow:"visible",color:e.colorInfoTextHover,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:bv,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[r+"-status-default"]:{backgroundColor:e.colorTextPlaceholder},[r+"-status-error"]:{backgroundColor:e.colorError},[r+"-status-warning"]:{backgroundColor:e.colorWarning},[r+"-status-text"]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}},...h,[`${r}-zoom-appear, ${r}-zoom-enter`]:{animationName:yv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[r+"-zoom-leave"]:{animationName:Cv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${r}-not-a-wrapper`]:{[`${r}-zoom-appear, ${r}-zoom-enter`]:{animationName:xv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[r+"-zoom-leave"]:{animationName:wv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${r}-status)`]:{verticalAlign:"middle"},[f+`-custom-component, ${r}-count`]:{transform:"none"},[f+"-custom-component, "+f]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[f]:{overflow:"hidden",transition:`all ${e.motionDurationMid} `+e.motionEaseOutBack,[f+"-only"]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} `+e.motionEaseOutBack,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${f}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[f+"-symbol"]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${r}-count, ${r}-dot, ${f}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}})(kv(e)),l),c=ft.forwardRef((e,t)=>{let{prefixCls:r,scrollNumberPrefixCls:o,children:n,status:a,text:l,color:i,count:s=null,overflowCount:c=99,dot:d=!1,size:u="medium",title:p,offset:m,style:f,className:H,rootClassName:A,classNames:D,styles:L,showZero:h=!1,...g}=e,{getPrefixCls:v,direction:F,className:W,style:b,classNames:j,styles:_}=Fe("badge"),y=v("badge",r);var[C,K]=Ev(y),e={...e,overflowCount:c,size:u,dot:d,showZero:h},x=c<s?c+"+":s;let w="0"===x||0===x||"0"===l||0===l;var S=null===s||w&&!h,k=(Ia(a)||Ia(i))&&S,E=Ia(a)||!w,E=Boolean(!n&&k&&(l||E||!S));let N=(0,ft.useMemo)(()=>{var e;if(m)return e=Number.parseInt(m[0],10),{marginTop:m[1],insetInlineEnd:-e}},[m]),V=(0,ft.useMemo)(()=>({...N,...b,...f}),[N,f,b]);var S=E?"root":"indicator",I=We(b,S),S=We(f,S);let[M,$]=je([j,D],[_,I,L,S],{props:e}),R=d&&!w,P=R?"":x,z=(0,ft.useMemo)(()=>(!Se(P)&&!Se(l)||w&&!h)&&!R,[P,w,h,R,l]);I=(0,ft.useRef)(s),z||(I.current=s),S=I.current,e=(0,ft.useRef)(P);z||(e.current=P);let B=e.current,T=(0,ft.useRef)(R);z||(T.current=R);x=$a(S)||Ma(S)?S:void 0;let X=null===p||!1===p?void 0:p??x;I=!z&&(0===l?h:!!l&&!0!==l),e=I?ft.createElement("span",{className:y+"-status-text"},l):null;let q=Ze(S)?Ss(S,e=>({style:{...V,...e.style}})):void 0,O=ev(i,!1);x=bt(M.indicator,{[y+"-status-dot"]:k,[y+"-status-"+a]:!!a,[y+"-color-"+i]:O}),S={},i&&!O&&(S.color=i,S.background=i),k=bt(y,{[y+"-status"]:k,[y+"-not-a-wrapper"]:!n,[y+"-rtl"]:"rtl"===F},H,A,W,M.root,C,K);return E?(C=$.root?.color,ft.createElement("span",{ref:t,...g,className:k,style:{...N,...$.root}},ft.createElement("span",{className:x,style:{...$.indicator,...S}}),I&&ft.createElement("span",{style:{color:C},className:y+"-status-text"},l))):ft.createElement("span",{ref:t,...g,className:k,style:$.root},n,ft.createElement(Na,{visible:!z,motionName:y+"-zoom",motionAppear:!1,motionDeadline:1e3},({className:e})=>{var t=v("scroll-number",o),r=T.current,r=bt(M.indicator,{[y+"-dot"]:r,[y+"-count"]:!r,[y+"-count-sm"]:"small"===u,[y+"-multiple-words"]:!r&&B&&1<B.toString().length,[y+"-status-"+a]:!!a,[y+"-color-"+i]:O});let n={...N,...$.indicator};return i&&!O&&((n=n||{}).background=i),ft.createElement(vv,{prefixCls:t,show:!z,motionClassName:e,className:r,count:B,title:X,style:n,key:"scrollNumber"},q)}),e)});var Nv=Be(["Badge","Ribbon"],e=>(e=>{var{antCls:t,badgeFontHeight:r,marginXS:n,badgeRibbonOffset:o,calc:a}=e;let l=t+"-ribbon";var t=t+"-ribbon-wrapper",i=qg(e,(e,{darkColor:t})=>({[`&${l}-color-`+e]:{background:t,color:t}}));return{[t]:{position:"relative"},[l]:{...F(e),position:"absolute",top:n,padding:"0 "+(0,Qe.unit)(e.paddingXS),color:e.colorPrimary,lineHeight:(0,Qe.unit)(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[l+"-content"]:{color:e.badgeTextColor},[l+"-corner"]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:(0,Qe.unit)(a(o).div(2).equal())+" solid",transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...i,[`&${l}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[l+"-corner"]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[l+"-corner"]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}})(kv(e)),l),a=c,Iv=(a.Ribbon=ft.forwardRef((e,t)=>{var{className:r,prefixCls:n,style:o,color:a,children:l,text:i,placement:s="end",rootClassName:c,styles:d,classNames:u}=e,{getPrefixCls:p,direction:m,className:f,style:h,classNames:g,styles:v}=Fe("ribbon"),p=p("ribbon",n),n=p+"-wrapper",[b,y]=Nv(p,n),e={...e,placement:s},h=We(h,"indicator"),o=We(o,"indicator"),[g,u]=je([g,u],[v,h,d,o],{props:e}),v=ev(a,!1),h=bt(p,p+"-placement-"+s,{[p+"-rtl"]:"rtl"===m,[p+"-color-"+a]:v},r,f,g.indicator),d={},o={};a&&!v&&(o.color=d.background=a);let C=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:C.current})),ft.createElement("div",{ref:C,className:bt(n,c,b,y,g.root),style:u.root},l,ft.createElement("div",{className:bt(h,b),style:{...d,...u.indicator}},ft.createElement("span",{className:bt(p+"-content",g.content),style:u.content},i),ft.createElement("div",{className:p+"-corner",style:o})))}),a);let Mv=e=>{let{prefixCls:t,className:r,...n}=e;return Re().createElement("div",{"aria-hidden":"true",className:bt(t,r),...n})};var $v=e=>{let{prefixCls:t,hostDom:r,...n}=e;return r&&Ta(r)?(0,yt().createPortal)(Re().createElement(Mv,{prefixCls:t,...n}),r):null};let Rv=70,Pv=(...e)=>`linear-gradient(to left, ${e.join(", ")}, transparent)`,zv=e=>$a(e)?[{color:e,percent:0}]:e??[],Bv=e=>{var t=e[e.length-1];return t&&100!==t.percent?[].concat(Pe(e),[{...t,percent:100}]):e},Tv=e=>Number((Math.min(Math.max(e,0),100)/100*Rv).toFixed(2)),Ov=e=>Bv(e).map(e=>({...e,percent:Tv(e.percent)})),Hv=e=>{e=Ov(zv(e));return e.length?Pv.apply(void 0,Pe(e.map(e=>e.color+` ${e.percent}%`))):void 0},Av=(e,t)=>e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3],Dv=[0,0,0,0],Lv=e=>{e=Number.parseFloat(e);return Ma(e)?e:0};var Fv=a=>{let[e,l]=Re().useState(Dv);return Re().useEffect(()=>{if(a){var{borderTopWidth:e,borderRightWidth:r,borderBottomWidth:n,borderLeftWidth:o}=getComputedStyle(a);let t=[Lv(e),Lv(r),Lv(n),Lv(o)];l(e=>Av(e,t)?e:t)}else l(e=>Av(e,Dv)?e:Dv)},[a]),e},Wv=e=>{let[t,r]=Re().useState(null);var n=Re().isValidElement(e)?e:null,o=Re().useCallback(e=>{let t=xt(e);r(e=>e===t?e:t)},[]),o=wt(n?St(n):null,o);return n&&Ie(n)?[Ss(n,{ref:o}),t]:[e,t]};let jv=new Qe.Keyframes("antBorderBeamMove",{from:{offsetDistance:"0%"},to:{offsetDistance:"100%"}});var _v=Be("BorderBeam",e=>{var{componentCls:e,antCls:t,colorPrimary:r,colorPrimaryHover:n,lineWidth:o}=e,[,t]=Q(t,"border-beam"),r=`linear-gradient(to left, ${r} 0%, ${n} 70%, transparent)`;return{[e]:{display:"none",position:"absolute",inset:t("inset-offset","0px"),borderRadius:"inherit",zIndex:1,overflow:"hidden",pointerEvents:"none",padding:t("line-width",(0,Qe.unit)(o)),"@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor))":{WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude","@supports (offset-path: rect(0 auto auto 0 round 1px))":{display:"block","&::before":{...Bc(),content:'""',position:"absolute",top:0,left:0,width:t("size","100px"),aspectRatio:"1 / 1",opacity:.95,backgroundImage:t("beam-gradient",r),offsetAnchor:"90% 50%",offsetDistance:"0%",offsetPath:`rect(0 auto auto 0 round ${t("size","100px")})`,offsetRotate:"auto",animationName:jv,animationDuration:t("duration","6s"),animationDelay:t("delay","0s"),animationTimingFunction:"linear",animationIterationCount:"infinite",willChange:"offset-distance"}}},"@media (prefers-reduced-motion: reduce)":{"&::before":{display:"none"}}}}});let Kv=e=>$a(e)?`calc(-1 * ${e})`:`-${e}px`;var Vv=e=>{let{prefixCls:t,className:r,style:n,children:o,color:a,count:l=1,duration:i,lineWidth:s,outset:c,size:d}=e,{className:u,style:p,getPrefixCls:m}=Fe("borderBeam"),f=m("border-beam",t),[h,g]=_v(f),[v]=Q(m(),"border-beam"),[b,y]=Wv(o),C=Fv(y),x=(0,ft.useMemo)(()=>Hv(a),[a]),w=Ma(l)&&Number.isFinite(l)&&1<=l?Math.floor(l):1,S=Ma(i)&&0<i?i:6,k=(0,ft.useMemo)(()=>Ia(c)?Kv(c):C.map(Kv).join(" "),[C,c]);return Re().createElement(Re().Fragment,null,b,Array.from({length:w},(e,t)=>Re().createElement($v,{key:t,prefixCls:f,hostDom:y,className:bt(u,r,h,g),style:{...p,...n,...x&&{[v("beam-gradient")]:x},...Ma(i)&&0<i&&{[v("duration")]:i+"s"},...Ia(s)&&{[v("line-width")]:(0,Qe.unit)(s)},...Ia(d)&&{[v("size")]:(0,Qe.unit)(d)},...0<t&&{[v("delay")]:-S*t/w+"s"},[v("inset-offset")]:k}})))},Xv=Re().createContext({});function qv(){return(qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Gv=ft.forwardRef((e,t)=>ft.createElement(u,qv({},e,{ref:t,icon:V().A})));let{ESC:Yv,TAB:Uv}=Ce;var Qv=(0,ft.forwardRef)((e,t)=>{let{overlay:r,arrow:n,prefixCls:o}=e;e=(0,ft.useMemo)(()=>{let e;return e="function"==typeof r?r():r},[r]),t=Ne(t,St(e));return Re().createElement(Re().Fragment,null,n&&Re().createElement("div",{className:o+"-arrow"}),Re().cloneElement(e,{ref:Ie(e)?t:void 0}))}),i={adjustX:1,adjustY:1},e=[0,0],Zv={topLeft:{points:["bl","tl"],overflow:i,offset:[0,-4],targetOffset:e},top:{points:["bc","tc"],overflow:i,offset:[0,-4],targetOffset:e},topRight:{points:["br","tr"],overflow:i,offset:[0,-4],targetOffset:e},bottomLeft:{points:["tl","bl"],overflow:i,offset:[0,4],targetOffset:e},bottom:{points:["tc","bc"],overflow:i,offset:[0,4],targetOffset:e},bottomRight:{points:["tr","br"],overflow:i,offset:[0,4],targetOffset:e}};function Jv(){return(Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var e0=Re().forwardRef((r,t)=>{let{arrow:e=!1,prefixCls:n="rc-dropdown",transitionName:o,animation:a,align:l,placement:i="bottomLeft",placements:s=Zv,getPopupContainer:c,showAction:d,hideAction:u,overlayClassName:p,overlayStyle:m,visible:f,trigger:h=["hover"],autoFocus:g,overlay:v,children:b,onVisibleChange:y,disabled:H,...C}=r,[x,w]=Re().useState();var S="visible"in r?f:x,k=a?n+"-"+a:o;let E=Re().useRef(null),N=Re().useRef(null);var I=Re().useRef(null),t=(Re().useImperativeHandle(t,()=>E.current),e=>{w(e),y?.(e)});{var{visible:M,triggerRef:$,onVisibleChange:A,autoFocus:D,overlayRef:R}={visible:S,triggerRef:I,onVisibleChange:t,autoFocus:g,overlayRef:N};let r=ft.useRef(!1),n=()=>{M&&($.current?.focus?.(),A?.(!1))},o=()=>!!R.current?.focus&&(R.current.focus(),r.current=!0),e=t=>{switch(t.keyCode){case Yv:n();break;case Uv:{let e=!1;(e=r.current?e:o())?t.preventDefault():n();break}}};ft.useEffect(()=>M?(window.addEventListener("keydown",e),D&&$e(o,3),()=>{window.removeEventListener("keydown",e),r.current=!1}):()=>{r.current=!1},[M])}let P=()=>Re().createElement(Qv,{ref:N,overlay:v,prefixCls:n,arrow:e});var z=b,B=bt(z.props?.className,S&&(void 0!==(B=r.openClassName)?B:n+"-open")),T={className:B,ref:Ne(I,St(z))},T=Ie(z)?Re().cloneElement(z,T):Re().createElement("span",{className:B,ref:I},Re().cloneElement(z,{className:B}));let O=u;return O||-1===h.indexOf("contextMenu")||(O=["click"]),Re().createElement(Cs,Jv({builtinPlacements:s},C,{prefixCls:n,ref:E,popupClassName:bt(p,{[n+"-show-arrow"]:e}),popupStyle:m,action:h,showAction:d,hideAction:O,popupPlacement:i,popupAlign:l,popupMotion:{motionName:k},popupVisible:S,stretch:(()=>{var{minOverlayWidthMatchTrigger:e,alignPoint:t}=r;return"minOverlayWidthMatchTrigger"in r?e:!t})()?"minWidth":"",popup:"function"==typeof v?P:P(),onOpenChange:t,onPopupClick:e=>{var t=r.onOverlayClick;w(!1),t&&t(e)},getPopupContainer:c}),T)});let t0=ft.createContext(null);function r0(e){return ft.useContext(t0)+"-"+e}let n0=ft.createContext(null);function o0({children:e,locked:r,...t}){let o=ft.useContext(n0);var n=(0,tt.A)(()=>{{var e=o,n=t;let r={...e};return Object.keys(n).forEach(e=>{var t=n[e];void 0!==t&&(r[e]=t)}),r}},[o,t],(e,t)=>!(r||e[0]===t[0]&&(0,Vt.A)(e[1],t[1],!0)));return ft.createElement(n0.Provider,{value:n},e)}let a0=ft.createContext(null);function l0(){return ft.useContext(a0)}let i0=ft.createContext([]);function s0(e){let t=ft.useContext(i0);return ft.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}let c0=ft.createContext(null);var d0=ft.createContext({});let{LEFT:u0,RIGHT:p0,UP:m0,DOWN:f0,ENTER:h0,ESC:g0,HOME:v0,END:b0}=Ce,y0=[m0,f0,u0,p0];function C0(e,t){return Nt(e,!0).filter(e=>t.has(e))}function x0(e,t,r,n=1){if(!e)return null;e=C0(e,t),t=e.length;let o=e.findIndex(e=>r===e);return n<0?-1===o?o=t-1:--o:0<n&&(o+=1),e[o=(o+t)%t]}let w0=(e,r)=>{let n=new Set,o=new Map,a=new Map;return e.forEach(e=>{var t=document.querySelector(`[data-menu-id='${r+"-"+e}']`);t&&(n.add(t),a.set(t,e),o.set(e,t))}),{elements:n,key2element:o,element2key:a}};function S0(p,m,f,h,g,v,b,y,C,e){let x=ft.useRef(void 0),w=ft.useRef(void 0),S=(w.current=m,()=>{$e.cancel(x.current)});return ft.useEffect(()=>()=>{S()},[]),i=>{var s=i.which;if([...y0,h0,g0,v0,b0].includes(s)){let t=v(),r=w0(t,h),{elements:n,key2element:e,element2key:o}=r;let a=((e,t)=>{let r=e||document.activeElement;for(;r;){if(t.has(r))return r;r=r.parentElement}return null})(e.get(m),n);var c=o.get(a),d=((e,t,r,n)=>{var o="prev",a="next",l="children",i="parent";if("inline"===e&&n===h0)return{inlineTrigger:!0};var s={[m0]:o,[f0]:a},c={[u0]:r?a:o,[p0]:r?o:a,[f0]:l,[h0]:l},r={[m0]:o,[f0]:a,[h0]:l,[g0]:i,[u0]:r?l:i,[p0]:r?i:l};switch({inline:s,horizontal:c,vertical:r,inlineSub:s,horizontalSub:r,verticalSub:r}[e+(t?"":"Sub")]?.[n]){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case i:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}})(p,1===b(c,!0).length,f,s);if(!d&&s!==v0&&s!==b0)return;(y0.includes(s)||[v0,b0].includes(s))&&i.preventDefault();let l=r=>{if(r){let e=r;var n=r.querySelector("a");n?.getAttribute("href")&&(e=n);let t=o.get(r);y(t),S(),x.current=$e(()=>{w.current===t&&e.focus()})}};if([v0,b0].includes(s)||d.sibling||!a){let e,t;var u=C0(e=a&&"inline"!==p?(e=>{let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null})(a):g.current,n);t=s===v0?u[0]:s===b0?u[u.length-1]:x0(e,n,a,d.offset),l(t)}else d.inlineTrigger?C(c):0<d.offset?(C(c,!0),S(),x.current=$e(()=>{r=w0(t,h);var e=a.getAttribute("aria-controls"),e=x0(document.getElementById(e),r.elements);l(e)},5)):d.offset<0&&(u=(s=b(c,!0))[s.length-2],d=e.get(u),C(u,!1),l(d))}e?.(i)}}let k0="__RC_UTIL_PATH_SPLIT__",E0=e=>e.join(k0),N0=e=>e.split(k0),I0="rc-menu-more";function M0(){let[,n]=ft.useState({}),o=(0,ft.useRef)(new Map),a=(0,ft.useRef)(new Map),[r,t]=ft.useState([]),l=(0,ft.useRef)(0),i=(0,ft.useRef)(!1);var e=(0,ft.useCallback)((e,t)=>{t=E0(t);a.current.set(t,e),o.current.set(e,t),l.current+=1;let r=l.current;e=()=>{r!==l.current||i.current||n({})},Promise.resolve().then(e)},[]),s=(0,ft.useCallback)((e,t)=>{t=E0(t);a.current.delete(t),o.current.delete(e)},[]),c=(0,ft.useCallback)(e=>{t(e)},[]);let d=(0,ft.useCallback)((e,t)=>{e=o.current.get(e)||"",e=N0(e);return t&&r.includes(e[0])&&e.unshift(I0),e},[r]);var u=(0,ft.useCallback)((e,t)=>e.filter(e=>void 0!==e).some(e=>d(e,!0).includes(t)),[d]),p=(0,ft.useCallback)(e=>{let t=""+o.current.get(e)+k0,r=new Set;return[...a.current.keys()].forEach(e=>{e.startsWith(t)&&r.add(a.current.get(e))}),r},[]);return ft.useEffect(()=>()=>{i.current=!0},[]),{registerPath:e,unregisterPath:s,refreshOverflowKeys:c,isSubPathKey:u,getKeyPath:d,getKeys:()=>{var e=[...o.current.keys()];return r.length&&e.push(I0),e},getSubPathKeys:p}}function $0(e){let t=ft.useRef(e);t.current=e;var r=ft.useCallback((...e)=>t.current?.(...e),[]);return e?r:void 0}function R0(t,e,r,n){let{activeKey:o,onActive:a,onInactive:l}=ft.useContext(n0);var i={active:o===t};return e||(i.onMouseEnter=e=>{r?.({key:t,domEvent:e}),a(t)},i.onMouseLeave=e=>{n?.({key:t,domEvent:e}),l(t)}),i}function P0(e){var{mode:t,rtl:r,inlineIndent:n}=ft.useContext(n0);return"inline"!==t?null:r?{paddingRight:e*n}:{paddingLeft:e*n}}function z0({icon:e,props:t,children:r}){let n;return null!==e&&!1!==e&&("function"==typeof e?n=ft.createElement(e,{...t}):"boolean"!=typeof e&&(n=e),n||r)||null}function B0({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>((0,Te.Ay)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function T0(){return(T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class O0 extends ft.Component{render(){let{title:e,attribute:t,elementRef:r,...n}=this.props;var o=at(n,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Te.Ay)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),ft.createElement(Pf.Item,T0({},t,{title:"string"==typeof e?e:void 0},o,{ref:r}))}}let H0=ft.forwardRef((r,e)=>{let{style:t,className:n,eventKey:o,warnKey:H,disabled:a,itemIcon:l,children:i,itemData:s,role:c,onMouseEnter:d,onMouseLeave:u,onClick:p,onKeyDown:m,onFocus:f,...h}=r;var g=r0(o);let{prefixCls:v,onItemClick:b,disabled:y,overflowDisabled:C,itemIcon:x,selectedKeys:w,onActive:S}=ft.useContext(n0);var k=ft.useContext(d0)._internalRenderMenuItem,E=v+"-item";let N=ft.useRef(null);var I=ft.useRef(null);let M=y||a;e=wt(e,I);let $=s0(o),R=e=>{var t=s||{key:o||"",label:i,itemIcon:l,extra:r.extra,title:r.title};return{key:o,keyPath:[...$].reverse(),item:N.current,domEvent:e,itemData:s||t}};I=l||x;let{active:P,...z}=R0(o,M,d,u);var B=w.includes(o),A=P0($.length),T={};"option"===r.role&&(T["aria-selected"]=B);let O=ft.createElement(O0,T0({ref:N,elementRef:e,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&g?null:g},at(h,["extra"]),z,T,{component:"li","aria-disabled":a,style:{...A,...t},className:bt(E,{[E+"-active"]:P,[E+"-selected"]:B,[E+"-disabled"]:M},n),onClick:e=>{M||(e=R(e),p?.(B0(e)),b(e))},onKeyDown:e=>{m?.(e),e.which===Ce.ENTER&&(e=R(e),p?.(B0(e)),b(e))},onFocus:e=>{S(o),f?.(e)}}),i,ft.createElement(z0,{props:{...r,isSelected:B},icon:I}));return O=k?k(O,r,{selected:B}):O});function A0(e,t){let r=e.eventKey,n=l0(),o=s0(r);return ft.useEffect(()=>{if(n)return n.registerPath(r,o),()=>{n.unregisterPath(r,o)}},[o]),n?null:ft.createElement(H0,T0({},e,{ref:t}))}var D0=ft.forwardRef(A0);function L0(){return(L0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var F0=ft.forwardRef(({className:e,children:t,...r},n)=>{var{prefixCls:o,mode:a,rtl:l}=ft.useContext(n0);return ft.createElement("ul",L0({className:bt(o,l&&o+"-rtl",o+"-sub",o+"-"+("inline"===a?"inline":"vertical"),e),role:"menu"},r,{"data-menu-list":!0,ref:n}),t)});function W0(e,o){return ke(e).map((t,r)=>{if(ft.isValidElement(t)){var n=t.key;let e=t.props?.eventKey??n;n=null==e,n={key:e=n?"tmp_key-"+[...o,r].join("-"):e,eventKey:e};return ft.cloneElement(t,n)}return t})}d={adjustX:1,adjustY:1};let j0={topLeft:{points:["bl","tl"],overflow:d},topRight:{points:["br","tr"],overflow:d},bottomLeft:{points:["tl","bl"],overflow:d},bottomRight:{points:["tr","br"],overflow:d},leftTop:{points:["tr","tl"],overflow:d},leftBottom:{points:["br","bl"],overflow:d},rightTop:{points:["tl","tr"],overflow:d},rightBottom:{points:["bl","br"],overflow:d}},_0={topLeft:{points:["bl","tl"],overflow:d},topRight:{points:["br","tr"],overflow:d},bottomLeft:{points:["tl","bl"],overflow:d},bottomRight:{points:["tr","br"],overflow:d},rightTop:{points:["tr","tl"],overflow:d},rightBottom:{points:["br","bl"],overflow:d},leftTop:{points:["tl","tr"],overflow:d},leftBottom:{points:["bl","br"],overflow:d}};function K0(e,t,r){return t||(r?r[e]||r.other:void 0)}let V0={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function X0({prefixCls:e,visible:t,children:r,popup:n,popupStyle:o,popupClassName:a,popupOffset:l,disabled:i,mode:s,onVisibleChange:c}){var{getPopupContainer:d,rtl:u,subMenuOpenDelay:p,subMenuCloseDelay:m,builtinPlacements:f,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:v,motion:b,defaultMotions:y}=ft.useContext(n0);let[C,x]=ft.useState(!1);var f=u?{..._0,...f}:{...j0,...f},w=V0[s],b=K0(s,b,y),y=ft.useRef(b),b=("inline"!==s&&(y.current=b),{...y.current,leavedClassName:e+"-hidden",removeOnLeave:!1,motionAppear:!0});let S=ft.useRef(void 0);return ft.useEffect(()=>(S.current=$e(()=>{x(t)}),()=>{$e.cancel(S.current)}),[t]),ft.createElement(Cs,{prefixCls:e,popupClassName:bt(e+"-popup",{[e+"-rtl"]:u},a,v),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:d,builtinPlacements:f,popupPlacement:w,popupVisible:C,popup:n,popupStyle:o,popupAlign:l&&{offset:l},action:i?[]:[h],mouseEnterDelay:p,mouseLeaveDelay:m,onPopupVisibleChange:c,forceRender:g,popupMotion:b,fresh:!0},r)}function q0(){return(q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function G0({id:r,open:e,keyPath:t,children:n}){var o="inline",{prefixCls:a,forceSubMenuRender:l,motion:i,defaultMotions:s,mode:c}=ft.useContext(n0);let d=ft.useRef(!1),[u,p]=(d.current=c===o,ft.useState(!d.current));e=!!d.current&&e,ft.useEffect(()=>{d.current&&p(!1)},[c]),c={...K0(o,i,s)};1<t.length&&(c.motionAppear=!1);let m=c.onVisibleChanged;return c.onVisibleChanged=e=>(d.current||e||p(!0),m?.(e)),u?null:ft.createElement(o0,{mode:o,locked:!d.current},ft.createElement(Na,q0({visible:e},c,{forceRender:l,removeOnLeave:!1,leavedClassName:a+"-hidden"}),({className:e,style:t})=>ft.createElement(F0,{id:r,className:e,style:t},n)))}function Y0(){return(Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let U0=ft.forwardRef((r,e)=>{let{style:t,className:n,styles:o,classNames:a,title:l,itemTitle:i,eventKey:s,warnKey:H,disabled:A,internalPopupClose:D,children:c,itemIcon:L,expandIcon:F,popupClassName:W,popupOffset:j,popupStyle:_,onClick:K,onMouseEnter:V,onMouseLeave:X,onTitleClick:q,onTitleMouseEnter:G,onTitleMouseLeave:Y,popupRender:d,...U}=r;var u=r0(s);let{prefixCls:Q,mode:p,openKeys:Z,disabled:J,overflowDisabled:m,activeKey:f,selectedKeys:ee,itemIcon:te,expandIcon:re,onItemClick:ne,onOpenChange:h,onActive:oe,popupRender:g}=ft.useContext(n0);var v=ft.useContext(d0)._internalRenderSubMenuItem;let b=ft.useContext(c0).isSubPathKey,y=s0(),C=Q+"-submenu",x=J||A;var w=ft.useRef(null);let ae=ft.useRef(null);var le=L??te;let S=F??re,k=Z.includes(s),E=!m&&k;var N=b(ee,s);let{active:I,...ie}=R0(s,x,G,Y),[M,se]=ft.useState(!1),$=e=>{x||se(e)};var R=ft.useMemo(()=>I||"inline"!==p&&(M||b([f],s)),[p,I,f,M,s,b]),P=P0(y.length),ce=$0(e=>{K?.(B0(e)),ne(e)});let z=u&&u+"-popup";var de=ft.useMemo(()=>ft.createElement(z0,{icon:"horizontal"!==p?S:void 0,props:{...r,isOpen:E,isSubMenu:!0}},ft.createElement("i",{className:C+"-arrow"})),[p,S,r,E,C]);let B=ft.createElement("div",Y0({role:"menuitem",style:P,className:C+"-title",tabIndex:x?null:-1,ref:w,title:i??("string"==typeof l?l:null),"data-menu-id":m&&u?null:u,"aria-expanded":E,"aria-haspopup":!0,"aria-controls":z,"aria-disabled":x,onClick:e=>{x||(q?.({key:s,domEvent:e}),"inline"===p&&h(s,!k))},onFocus:()=>{oe(s)}},ie),l,de);P=ft.useRef(p);"inline"!==p&&1<y.length?P.current="vertical":P.current=p;let T=P.current;w=ft.useMemo(()=>{var e=ft.createElement(o0,{classNames:a,styles:o,mode:"horizontal"===T?"vertical":T},ft.createElement(F0,{id:z,ref:ae},c)),t=d||g;return t?t(e,{item:r,keys:y}):e},[d,g,y,z,c,r,T]);m||(u=P.current,B=ft.createElement(X0,{mode:u,prefixCls:C,visible:!D&&E&&"inline"!==p,popupClassName:W,popupOffset:j,popupStyle:_,popup:w,disabled:x,onVisibleChange:e=>{"inline"!==p&&h(s,e)}},B));let O=ft.createElement(Pf.Item,Y0({ref:e,role:"none"},U,{component:"li",style:t,className:bt(C,C+"-"+p,n,{[C+"-open"]:E,[C+"-active"]:R,[C+"-selected"]:N,[C+"-disabled"]:x}),onMouseEnter:e=>{$(!0),V?.({key:s,domEvent:e})},onMouseLeave:e=>{$(!1),X?.({key:s,domEvent:e})}}),B,!m&&ft.createElement(G0,{id:z,open:E,keyPath:y},c));return v&&(O=v(O,r,{selected:N,active:R,open:E,disabled:x})),ft.createElement(o0,{classNames:a,styles:o,onItemClick:ce,mode:"horizontal"===p?"vertical":p,itemIcon:le,expandIcon:S},O)});var Q0=ft.forwardRef((e,t)=>{let{eventKey:r,children:n}=e,o=s0(r);var a=W0(n,o);let l=l0();ft.useEffect(()=>{if(l)return l.registerPath(r,o),()=>{l.unregisterPath(r,o)}},[o]);let i;return i=l?a:ft.createElement(U0,Y0({ref:t},e),a),ft.createElement(i0.Provider,{value:o},i)});function Z0({className:e,style:t}){var r=ft.useContext(n0).prefixCls;return l0()?null:ft.createElement("li",{role:"separator",className:bt(r+"-item-divider",e),style:t})}function J0(){return(J0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let eb=ft.forwardRef((e,t)=>{let{className:r,title:n,eventKey:o,children:a,...l}=e;var{prefixCls:e,classNames:i,styles:s}=ft.useContext(n0),e=e+"-item-group";return ft.createElement("li",J0({ref:t,role:"presentation"},l,{onClick:e=>e.stopPropagation(),className:bt(e,r)}),ft.createElement("div",{role:"presentation",className:bt(e+"-title",i?.listTitle),style:s?.listTitle,title:"string"==typeof n?n:void 0},n),ft.createElement("ul",{role:"group",className:bt(e+"-list",i?.list),style:s?.list},a))});var tb=ft.forwardRef((e,t)=>{var{eventKey:r,children:n}=e,n=W0(n,s0(r));return l0()?n:ft.createElement(eb,J0({ref:t},at(e,["warnKey"])),n)});function rb(){return(rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nb(e,t,r,n,o){let a=e;e={divider:Z0,item:D0,group:tb,submenu:Q0,...n};return W0(a=t?function c(e,d,u){let{item:p,group:m,submenu:f,divider:h}=d;return(e||[]).map((l,i)=>{if(l&&"object"==typeof l){let{label:r,children:n,key:e,type:o,extra:t,...a}=l;var s,i=e??"tmp-"+i;if(n||"group"===o){if("group"===o)return ft.createElement(m,rb({key:i},a,{title:r}),c(n,d,u));let{title:e,...t}=a;return ft.createElement(f,rb({key:i},t,{title:r,itemTitle:"string"==typeof e?e:void 0}),c(n,d,u))}return"divider"===o?ft.createElement(h,rb({key:i},a)):(s=!!t||0===t,ft.createElement(p,rb({key:i},a,{extra:t,itemData:{...l,key:i}}),s?ft.createElement(ft.Fragment,null,ft.createElement("span",{className:u+"-item-label"},r),ft.createElement("span",{className:u+"-item-extra"},t)):r))}return null}).filter(e=>e)}(t,e,o):a,r)}function ob(){return(ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let ab=[];var o=ft.forwardRef((e,t)=>{let{prefixCls:r="rc-menu",rootClassName:n,style:H,className:A,styles:o,classNames:a,tabIndex:D=0,items:l,children:i,direction:s,id:c,mode:d="vertical",inlineCollapsed:u,disabled:L,disabledOverflow:p,subMenuOpenDelay:F=.1,subMenuCloseDelay:W=.1,forceSubMenuRender:j,defaultOpenKeys:_,openKeys:K,activeKey:m,defaultActiveFirst:V,selectable:X=!0,multiple:f=!1,defaultSelectedKeys:q,selectedKeys:G,onSelect:Y,onDeselect:U,inlineIndent:Q=24,motion:Z,defaultMotions:J,triggerSubMenuAction:ee="hover",builtinPlacements:te,itemIcon:re,expandIcon:ne,overflowedIndicator:oe="...",overflowedIndicatorPopupClassName:ae,getPopupContainer:le,onClick:ie,onOpenChange:se,onKeyDown:ce,openAnimation:de,openTransitionName:ue,_internalRenderMenuItem:h,_internalRenderSubMenuItem:g,_internalComponents:v,popupRender:pe,...me}=e,[b,fe]=ft.useMemo(()=>[nb(i,l,ab,v,r),nb(i,l,ab,{},r)],[i,l,v]),[y,he]=ft.useState(!1),C=ft.useRef(null);e=kt();let x=c??"rc-menu-uuid-"+e;e="rtl"===s;let[ge,w]=vt(_,K),S=ge||ab,k=(e,t=!1)=>{function r(){w(e),se?.(e)}t?(0,yt().flushSync)(r):r()},[ve,be]=ft.useState(S),E=ft.useRef(!1),[N,I]=ft.useMemo(()=>"inline"!==d&&"vertical"!==d||!u?[d,!1]:["vertical",u],[d,u]),ye="inline"===N,[M,Ce]=ft.useState(N),[xe,we]=ft.useState(I),[$,Se]=(ft.useEffect(()=>{Ce(N),we(I),E.current&&(ye?w(ve):k(ab))},[N,I]),ft.useState(0)),R=$>=b.length-1||"horizontal"!==M||p,{registerPath:ke,unregisterPath:Ee,refreshOverflowKeys:Ne,isSubPathKey:Ie,getKeyPath:Me,getKeys:P,getSubPathKeys:$e}=(ft.useEffect(()=>{ye&&be(S)},[S]),ft.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]),M0());var Re=ft.useMemo(()=>({registerPath:ke,unregisterPath:Ee}),[ke,Ee]),Pe=ft.useMemo(()=>({isSubPathKey:Ie}),[Ie]);ft.useEffect(()=>{Ne(R?ab:b.slice($+1).map(e=>e.key))},[$,R]);let[z,B]=vt(m||V&&b[0]?.key,m);var ze=$0(e=>{B(e)}),Be=$0(()=>{B(void 0)});(0,ft.useImperativeHandle)(t,()=>({list:C.current,focus:e=>{var t=P(),{elements:r,key2element:n,element2key:o}=w0(t,x),r=C0(C.current,r);let a;a=z&&t.includes(z)?z:r[0]?o.get(r[0]):b.find(e=>!e.props.disabled)?.key;t=n.get(a);a&&t&&t?.focus?.(e)},findItem:({key:e})=>{var t=P(),t=w0(t,x).key2element;return t.get(e)||null}}));let[T,Te]=vt(q||[],G),O=ft.useMemo(()=>Array.isArray(T)?T:null==T?ab:[T],[T]);t=$0(e=>{ie?.(B0(e)),(r=>{if(X){let t=r.key;var n=O.includes(t);let e;e=f?n?O.filter(e=>e!==t):[...O,t]:[t],Te(e);r={...r,selectedKeys:e};(n?U:Y)?.(r)}!f&&S.length&&"inline"!==M&&k(ab)})(e)});let Oe=$0((r,e)=>{let n=S.filter(e=>e!==r);if(e)n.push(r);else if("inline"!==M){let t=$e(r);n=n.filter(e=>!t.has(e))}(0,Vt.A)(S,n,!0)||k(n,!0)});var He=S0(M,z,e,x,C,P,Me,B,(e,t)=>{t=t??!S.includes(e);Oe(e,t)},ce),Ae=(ft.useEffect(()=>{he(!0)},[]),ft.useMemo(()=>({_internalRenderMenuItem:h,_internalRenderSubMenuItem:g}),[h,g])),De="horizontal"!==M||p?b:b.map((e,t)=>ft.createElement(o0,{key:e.key,overflowDisabled:t>$,classNames:a,styles:o},e)),De=ft.createElement(Pf,ob({id:c,ref:C,prefixCls:r+"-overflow",component:"ul",itemComponent:D0,className:bt(r,r+"-root",r+"-"+M,A,{[r+"-inline-collapsed"]:xe,[r+"-rtl"]:e},n),dir:s,style:H,role:"menu",tabIndex:D,data:De,renderRawItem:e=>e,renderRawRest:e=>{var e=e.length,t=e?b.slice(-e):null;return ft.createElement(Q0,{eventKey:I0,title:oe,disabled:R,internalPopupClose:0===e,popupClassName:ae},t)},maxCount:"horizontal"!==M||p?Pf.INVALIDATE:Pf.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{Se(e)},onKeyDown:He},me));return ft.createElement(d0.Provider,{value:Ae},ft.createElement(t0.Provider,{value:x},ft.createElement(o0,{prefixCls:r,rootClassName:n,classNames:a,styles:o,mode:M,openKeys:S,rtl:e,disabled:L,motion:y?Z:null,defaultMotions:y?J:null,activeKey:z,onActive:ze,onInactive:Be,selectedKeys:O,inlineIndent:Q,subMenuOpenDelay:F,subMenuCloseDelay:W,forceSubMenuRender:j,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:le,itemIcon:re,expandIcon:ne,onItemClick:t,onOpenChange:Oe,popupRender:pe},ft.createElement(c0.Provider,{value:Pe},De),ft.createElement("div",{style:{display:"none"},"aria-hidden":!0},ft.createElement(a0.Provider,{value:Re},fe)))))}),lb=(o.Item=D0,o.SubMenu=Q0,o.ItemGroup=tb,o.Divider=Z0,o);function ib(){return(ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var sb=ft.forwardRef((e,t)=>ft.createElement(u,ib({},e,{ref:t,icon:m().A})));let cb=ft.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var s=e=>{var{colorBgLayout:e,controlHeight:t,controlHeightLG:r,colorText:n,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:i}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:e,colorBgTrigger:"#002140",bodyBg:e,headerBg:"#001529",headerHeight:2*t,headerPadding:`0 ${s}px`,headerColor:n,footerPadding:o+`px ${s}px`,footerBg:e,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:i,lightTriggerBg:i,lightTriggerColor:n}},n=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],db=Be("Layout",e=>{var{antCls:e,componentCls:t,colorText:r,footerBg:n,headerHeight:o,headerPadding:a,headerColor:l,footerPadding:i,fontSize:s,bodyBg:c,headerBg:d}=e;return{[t]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:c,"&, *":{boxSizing:"border-box"},[`&${t}-has-sider`]:{flexDirection:"row",[`> ${t}, > ${t}-content`]:{width:0}},[t+`-header, &${t}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[t+"-header"]:{height:o,padding:a,color:l,lineHeight:(0,Qe.unit)(o),background:d,[e+"-menu"]:{lineHeight:"inherit"}},[t+"-footer"]:{padding:i,color:r,fontSize:s,background:n},[t+"-content"]:{flex:"auto",color:r,minHeight:0}}},s,{deprecatedTokens:n}),ub=Be(["Layout","Sider"],e=>{var{componentCls:t,siderBg:r,motionDurationMid:n,motionDurationSlow:o,antCls:a,triggerHeight:l,triggerColor:i,triggerBg:s,headerHeight:c,zeroTriggerWidth:d,zeroTriggerHeight:u,borderRadiusLG:p,lightSiderBg:m,lightTriggerColor:f,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:r,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:l},"&-right":{order:1},[t+"-children"]:{height:"100%",marginTop:-.1,paddingTop:.1,[a+`-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[t+"-trigger"]:{position:"fixed",bottom:0,zIndex:1,height:l,color:i,lineHeight:(0,Qe.unit)(l),textAlign:"center",background:s,cursor:"pointer",transition:"all "+n},[t+"-zero-width-trigger"]:{position:"absolute",top:c,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:u,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${(0,Qe.unit)(p)} ${(0,Qe.unit)(p)} 0`,cursor:"pointer",transition:`background-color ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all "+o,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:(0,Qe.unit)(p)+" 0 0 "+(0,Qe.unit)(p)}},"&-light":{background:m,[t+"-trigger"]:{color:f,background:h},[t+"-zero-width-trigger"]:{color:f,background:h,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+g,borderInlineStart:0}}}}},s,{deprecatedTokens:n});let pb={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},mb=ft.createContext({}),fb=(()=>{let t=0;return(e="")=>""+e+(t+=1)})();var hb=ft.forwardRef((r,e)=>{let{prefixCls:t,className:n,trigger:o,children:a,defaultCollapsed:l=!1,theme:i="dark",style:s={},collapsible:c=!1,reverseArrow:d=!1,width:u=200,collapsedWidth:p=80,zeroWidthTriggerStyle:m,breakpoint:f,onCollapse:h,onBreakpoint:g,classNames:v,styles:b,...y}=r,C=(0,ft.useContext)(cb).siderHook,[x,w]=(0,ft.useState)("collapsed"in r?r.collapsed:l),[S,k]=(0,ft.useState)(!1),E=((0,ft.useEffect)(()=>{"collapsed"in r&&w(r.collapsed)},[r.collapsed]),(e,t)=>{"collapsed"in r||w(e),h?.(e,t)});var N={...r,collapsed:x,defaultCollapsed:l,theme:i,style:s,collapsible:c,reverseArrow:d,width:u,collapsedWidth:p,zeroWidthTriggerStyle:m,breakpoint:f,onCollapse:h,onBreakpoint:g},[N,I]=je([v],[b],{props:N}),{getPrefixCls:M,direction:$}=(0,ft.useContext)(Ue),M=M("layout-sider",t),[R,H]=ub(M);let P=(0,ft.useRef)(null);P.current=e=>{k(e.matches),g?.(e.matches),x!==e.matches&&E(e.matches,"responsive")},(0,ft.useEffect)(()=>{function e(e){return P.current?.(e)}let t;return void 0!==window?.matchMedia&&f&&f in pb&&(t=window.matchMedia(`screen and (max-width: ${pb[f]})`),Je(t?.addEventListener)&&t.addEventListener("change",e),e(t)),()=>{Je(t?.removeEventListener)&&t.removeEventListener("change",e)}},[f]),(0,ft.useEffect)(()=>{let e=fb("ant-sider-");return C.addSider(e),()=>C.removeSider(e)},[]);var z=()=>{E(!x,"clickTrigger")},A=at(y,["collapsed"]),B=x?p:u,T=(T=B,!Number.isNaN(Number.parseFloat(T))&&Number.isFinite(Number(T))?B+"px":String(B)),B=0===Number.parseFloat(String(p||0))?ft.createElement("span",{onClick:z,className:bt(M+"-zero-width-trigger",M+"-zero-width-trigger-"+(d?"right":"left")),style:m},o||ft.createElement(sb,null)):null,$="rtl"===$==!d,$={expanded:$?ft.createElement(nd,null):ft.createElement(Gv,null),collapsed:$?ft.createElement(Gv,null):ft.createElement(nd,null)},O=x?"collapsed":"expanded",z=null!==o?B||ft.createElement("div",{className:M+"-trigger",onClick:z,style:{width:T}},o||$[O]):null,$={...s,flex:"0 0 "+T,maxWidth:T,minWidth:T,width:T},O=bt(M,M+"-"+i,{[M+"-collapsed"]:!!x,[M+"-has-trigger"]:c&&null!==o&&!B,[M+"-below"]:!!S,[M+"-zero-width"]:0===Number.parseFloat(T)},n,N.root,R,H),T=ft.useMemo(()=>({siderCollapsed:x}),[x]);return ft.createElement(mb.Provider,{value:T},ft.createElement("aside",{className:O,...A,style:{...I.root,...$},ref:e},ft.createElement("div",{className:bt(M+"-children",N.body),style:I.body},a),c||S&&B?z:null))});function gb(){return(gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vb=ft.forwardRef((e,t)=>ft.createElement(u,gb({},e,{ref:t,icon:z().A}))),bb=(0,ft.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),l=e=>{let{prefixCls:t,className:r,dashed:n,...o}=e;e=ft.useContext(Ue).getPrefixCls,e=bt({[e("menu",t)+"-item-divider-dashed"]:!!n},r);return ft.createElement(Z0,{className:e,...o})},c=e=>{let{className:t,children:r,icon:n,title:o,danger:a,extra:l}=e,{prefixCls:i,firstLevel:s,direction:c,disableMenuItemTitleTooltip:d,tooltip:u,inlineCollapsed:p,styles:m,classNames:f}=ft.useContext(bb);var h=ft.useContext(mb).siderCollapsed,h=!(!h&&!p);let[g,v]=ft.useState(!1);ft.useEffect(()=>{v(!1)},[h]);let b=o,y=(void 0===o?b=s?r:"":!1===o&&(b=""),!1===u?void 0:u);var C,x=y&&void 0!==y.title?y.title:b,x={...y??null,title:x},h=(h?(x.open=y?.open??g,x.onOpenChange=e=>{v(e),y?.onOpenChange?.(e)}):(x.title=null,x.open=!1),ke(r).length);let w=ft.createElement(D0,{...at(e,["title","icon","danger"]),className:bt((s?f:f?.subMenu)?.item,{[i+"-item-danger"]:a,[i+"-item-only-child"]:1===(n?h+1:h)},t),style:{...(s?m:m?.subMenu)?.item,...e.style},title:"string"==typeof o?o:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Ss(n,e=>({className:bt(i+"-item-icon",(s?f:f?.subMenu)?.itemIcon,e.className),style:{...(s?m:m?.subMenu)?.itemIcon,...e.style}})),(h=p,e=r?.[0],C=ft.createElement("span",{className:bt(i+"-title-content",(s?f:f?.subMenu)?.itemContent,{[i+"-title-content-with-extra"]:!!l||0===l}),style:(s?m:m?.subMenu)?.itemContent},r),(!n||ft.isValidElement(r)&&"span"===r.type)&&r&&h&&s&&"string"==typeof e?ft.createElement("div",{className:i+"-inline-collapsed-noicon"},e.charAt(0)):C));if(!d&&!1!==u){h=y&&y.placement?y.placement:"rtl"===c?"left":"right";let t=i+"-inline-collapsed-tooltip",r=e=>({...e,root:bt(t,e?.root)});e=Je(y?.classNames)?e=>{e=y.classNames(e);return r(e)}:r(y?.classNames);w=ft.createElement(rv,{...x,placement:h,classNames:e},w)}return w};let yb=ft.createContext(null),Cb=ft.forwardRef((e,t)=>{let{children:r,...n}=e,o=ft.useContext(yb);var e=ft.useMemo(()=>({...o,...n}),[o,n.prefixCls,n.mode,n.selectable,n.rootClassName]),a=Oe(r),t=wt(t,a?St(r):null);return ft.createElement(yb.Provider,{value:e},ft.createElement(sp,{space:!0},a?ft.cloneElement(r,{ref:t}):r))});var xb=yb,wb=e=>{let{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:o,lineWidth:a,lineType:l,itemPaddingInline:i}=e;return{[t+"-horizontal"]:{lineHeight:n,border:0,borderBottom:(0,Qe.unit)(a)+` ${l} `+o,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[t+`-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[t+`-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(e=>e+" "+r).join(",")},[t+"-submenu-arrow"]:{display:"none"}}}},Sb=({componentCls:e,menuArrowOffset:t,calc:r})=>({[e+"-rtl"]:{direction:"rtl"},[e+"-submenu-rtl"]:{transformOrigin:"100% 0"},[e+`-rtl${e}-vertical,
${e}-submenu-rtl ${e}-vertical`]:{[e+"-submenu-arrow"]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Qe.unit)(r(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Qe.unit)(t)})`}}}});let kb=e=>dn(e);var Eb=(e,t)=>{let{componentCls:r,itemColor:n,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:l,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:m,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:S,dangerItemSelectedColor:k,dangerItemActiveBg:E,dangerItemSelectedBg:N,popupBg:I,itemHoverBg:M,itemActiveBg:$,menuSubMenuBg:R,horizontalItemSelectedColor:P,horizontalItemSelectedBg:z,horizontalItemBorderRadius:B,horizontalItemHoverBg:T}=e;return{[r+`-${t}, ${r}-${t} > `+r]:{color:n,background:i,[`&${r}-root:focus-visible`]:{...kb(e)},[r+"-item"]:{"&-group-title, &-extra":{color:l}},[r+`-submenu-selected > ${r}-submenu-title`]:{color:a},[r+`-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:{...kb(e)}},[r+`-item-disabled, ${r}-submenu-disabled`]:{color:x+" !important"},[r+`-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:b}},[r+`-submenu:not(${r}-submenu-selected)`]:{[`> ${r}-submenu-title:hover`]:{color:b}},[`&:not(${r}-horizontal)`]:{[r+`-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:$}},[r+"-submenu-title"]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:$}}},[r+"-item-danger"]:{color:w,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:S}},[`&${r}-item:active`]:{background:E}},[r+"-item a"]:{"&, &:hover":{color:"inherit"}},[r+"-item-selected"]:{color:o,[`&${r}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:N}},[`&${r}-submenu > `+r]:{backgroundColor:R},[`&${r}-popup > `+r]:{backgroundColor:I},[`&${r}-submenu-popup > `+r]:{backgroundColor:I},[`&${r}-horizontal`]:{..."dark"===t?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:g,bottom:0,pointerEvents:"none",borderBottom:(0,Qe.unit)(d)+" solid transparent",transition:`border-color ${m} `+f,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:d,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:d,borderBottomColor:P}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:(0,Qe.unit)(p)+` ${y} `+C}},[`&${r}-inline`]:{[r+`-sub${r}-inline`]:{background:s},[r+"-item"]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:(0,Qe.unit)(u)+" solid "+o,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(e=>`${e} ${v} `+h).join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[r+`-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(e=>`${e} ${v} `+f).join(",")}}}}}};let Nb=e=>{var{componentCls:t,itemHeight:r,itemMarginInline:n,padding:o,menuArrowSize:a,marginXS:l,itemMarginBlock:i,itemWidth:s,itemPaddingInline:c}=e,e=e.calc(a).add(o).add(l).equal();return{[t+"-item"]:{position:"relative",overflow:"hidden"},[t+`-item, ${t}-submenu-title`]:{height:r,lineHeight:(0,Qe.unit)(r),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:i,width:s},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:(0,Qe.unit)(r)},[t+`-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:e}}};var Ib=e=>{let{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:l,padding:i,paddingXL:s,itemMarginInline:c,fontSizeLG:d,motionDurationSlow:u,paddingXS:p,boxShadowSecondary:m,collapsedWidth:f,collapsedIconSize:h}=e;var g={height:n,lineHeight:(0,Qe.unit)(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...Nb(e)}},[t+"-submenu-popup"]:{[t+"-vertical"]:{...Nb(e),boxShadow:m}}},{[t+`-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${(0,Qe.unit)(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[t+"-inline"]:{width:"100%",[`&${t}-root`]:{[t+`-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:["border-color "+u,"background-color "+u].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[t+`-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[t+"-item"]:g}},{[t+"-inline-collapsed"]:{width:f,[`&${t}-root`]:{[t+`-item, ${t}-submenu ${t}-submenu-title`]:{transition:["border-color","background-color"].map(e=>e+" "+u).join(","),[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center",width:"100%"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${(0,Qe.unit)(e.calc(h).div(2).equal())} - ${(0,Qe.unit)(c)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[t+"-item-icon, "+r]:{margin:0,fontSize:h,lineHeight:(0,Qe.unit)(n),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[t+"-item-icon, "+r]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[t+"-item-icon, "+r]:{display:"none"},[t+"-item-extra"]:{paddingInlineStart:i},"a, a:hover":{color:o}},[t+"-item-group-title"]:{...an,paddingInline:p}}}]};let Mb=e=>{var{componentCls:e,motionDurationSlow:t,motionDurationMid:r,motionEaseInOut:n,motionEaseOut:o,iconCls:a,iconSize:l,iconMarginInlineEnd:i}=e;return{[e+`-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color "+t,"background-color "+t,`padding calc(${t} + 0.1s) `+n].join(","),[e+"-item-icon, "+a]:{minWidth:l,fontSize:l,transition:[`font-size ${r} `+o,`margin ${t} `+n,"color "+t].join(","),"+ span":{marginInlineStart:i,opacity:1,transition:[`opacity ${t} `+n,"margin "+t,"color "+t].join(",")}},[e+"-item-icon"]:{...ln()},[`&${e}-item-only-child`]:{[`> ${a}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[e+`-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$b=e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:o,menuArrowSize:a,menuArrowOffset:l}=e;return{[t+"-submenu"]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(e=>e+" "+r).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(e=>`${e} ${r} `+n).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Qe.unit)(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Qe.unit)(l)})`}}}}},Rb=e=>{let{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:l,paddingXS:i,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:f,menuArrowOffset:h,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b,iconSize:y,iconMarginInlineEnd:C}=e;var x=[`> ${t}-typography-ellipsis-single-line`,`> ${r}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[r]:{...cn(),"&-hidden":{display:"none"}}},[r+"-submenu-hidden"]:{display:"none"}},{[r]:{...F(e),...cn(),marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[r+"-item"]:{flex:"none"}},[r+`-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[r+"-item-group-title"]:{padding:(0,Qe.unit)(i)+" "+(0,Qe.unit)(s),fontSize:b,lineHeight:v,transition:"all "+o},[`&-horizontal ${r}-submenu`]:{transition:["border-color","background-color"].map(e=>`${e} ${o} `+l).join(",")},[r+`-submenu, ${r}-submenu-inline`]:{transition:["border-color "+o,"background-color "+o,"padding "+a].map(e=>e+" "+l).join(",")},[r+`-submenu ${r}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(e=>`${e} ${o} `+l).join(",")},[r+"-title-content"]:{transition:"color "+o,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[r+"-item-label"]:{flex:"auto",minWidth:0,...an},[x]:{display:"inline",verticalAlign:"unset"},[r+"-item-extra"]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[r+`-item-icon + ${r}-title-content-with-extra`]:{width:`calc(100% - ${(0,Qe.unit)(e.calc(y).add(C??0).equal())})`},[r+"-item a"]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[r+"-item-divider"]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}},...Mb(e),[r+"-item-group"]:{[r+"-item-group-list"]:{margin:0,padding:0,[r+`-item, ${r}-submenu-title`]:{paddingInline:(0,Qe.unit)(e.calc(n).mul(2).equal())+" "+(0,Qe.unit)(s)}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},["> "+r]:{borderRadius:p,...Mb(e),...$b(e),[r+`-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:m},[r+"-submenu-title::after"]:{transition:`transform ${o} `+l}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...$b(e),[`&-inline-collapsed ${r}-submenu-arrow,
&-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Qe.unit)(h)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Qe.unit)(e.calc(h).mul(-1).equal())})`}},[r+`-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${(0,Qe.unit)(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Qe.unit)(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Qe.unit)(h)})`}}}},{[t+"-layout-header"]:{[r]:{lineHeight:"inherit"}}}]},Pb=e=>{var{colorPrimary:t,colorError:r,colorTextDisabled:n,colorErrorBg:o,colorText:a,colorTextDescription:l,colorBgContainer:i,colorFillAlter:s,colorFillContent:c,lineWidth:d,lineWidthBold:u,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:f,lineHeight:h,colorBgElevated:g,marginXXS:v,padding:b,fontSize:y,controlHeightSM:C,fontSizeLG:x,colorTextLightSolid:w,colorErrorHover:S}=e,k=e.activeBarWidth??0,E=e.activeBarBorderWidth??d,N=e.itemMarginInline??e.marginXXS,I=new kn(w).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:i,itemBg:i,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:u,activeBarHeight:u,colorActiveBarBorderSize:d,activeBarBorderWidth:E,colorItemTextDisabled:n,itemDisabledColor:n,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:h,collapsedWidth:2*f,popupBg:g,itemMarginBlock:v,itemPaddingInline:b,horizontalLineHeight:1.15*f+"px",iconSize:y,iconMarginInlineEnd:C-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new kn(w).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:t,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:w,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:r,itemWidth:k?`calc(100% + ${E}px)`:`calc(100% - ${2*N}px)`}};var zb=(e,t=e,r=!0)=>Be("Menu",e=>{var{colorBgElevated:t,controlHeightLG:r,fontSize:n,darkItemColor:o,darkDangerItemColor:a,darkItemBg:l,darkSubMenuItemBg:i,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:p,darkItemHoverColor:m,darkItemDisabledColor:f,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,n=e.calc(n).div(7).mul(5).equal(),r=ze(e,{menuArrowSize:n,menuHorizontalHeight:e.calc(r).mul(1.15).equal(),menuArrowOffset:e.calc(n).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),n=ze(r,{itemColor:o,itemHoverColor:m,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:l,popupBg:y,subMenuItemBg:i,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:f,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:d,menuSubMenuBg:i,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[Rb(r),wb(r),Ib(r),Eb(r,"light"),Eb(n,"dark"),Sb(r),md(r),Xh(r,"slide-up"),Xh(r,"slide-down"),cm(r,"zoom-big")]},Pb,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,t),a=e=>{var{popupClassName:t,icon:r,title:n,theme:o}=e;let a=ft.useContext(bb),{prefixCls:l,inlineCollapsed:i,theme:s,classNames:c,styles:d}=a;var u=s0();let p;p=r?(m=ft.isValidElement(n)&&"span"===n.type,ft.createElement(ft.Fragment,null,Ss(r,e=>({className:bt(e.className,l+"-item-icon",c?.itemIcon),style:{...e.style,...d?.itemIcon}})),m?n:ft.createElement("span",{className:l+"-title-content"},n))):i&&!u.length&&n&&"string"==typeof n?ft.createElement("div",{className:l+"-inline-collapsed-noicon"},n.charAt(0)):ft.createElement("span",{className:l+"-title-content"},n);var r=ft.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Cp("Menu");return ft.createElement(bb.Provider,{value:r},ft.createElement(Q0,{...at(e,["icon"]),title:p,classNames:{list:c?.subMenu?.list,listTitle:c?.subMenu?.itemTitle},styles:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},popupClassName:bt(l,t,c?.popup?.root,l+"-"+(o||s)),popupStyle:{zIndex:m,...e.popupStyle,...d?.popup?.root}}))};function Bb(e){return null===e||!1===e}let Tb={item:c,submenu:a,divider:l};var Ob=(0,ft.forwardRef)((e,t)=>{var r=ft.useContext(xb);let n=r||{},{prefixCls:o,className:a,style:l,theme:i="light",expandIcon:s,_internalDisableMenuItemTitleTooltip:c,tooltip:d,inlineCollapsed:u,siderCollapsed:p,rootClassName:m,mode:f,selectable:h,onClick:g,overflowedIndicatorPopupClassName:v,classNames:b,styles:y,...C}=e,x=ft.useContext(Ue).menu,{getPrefixCls:w,getPopupContainer:S,direction:k,className:E,style:N,classNames:H,styles:A}=Fe("menu");var I=w(),D=at(C,["collapsedWidth"]),L=(n.validator?.({mode:f}),ht((...e)=>{g?.(...e),n.onClick?.()}));let M=n.mode||f;var $=h??n.selectable;let R=u??p;var e={...e,mode:M,inlineCollapsed:R,selectable:$,theme:i},P=We(N),z=We(l);let[B,T]=je([H,b],[A,P,y,z],{props:e},{popup:{_default:"root"},subMenu:{_default:"item"}});P={horizontal:{motionName:I+"-slide-up"},inline:rc(I),other:{motionName:I+"-zoom-big"}};let O=w("menu",o||n.prefixCls);var z=nl(O),[e,I]=zb(O,z,!r),r=bt(O+"-"+i,E,a),F=ft.useMemo(()=>{var e;return Je(s)||Bb(s)?s||null:Je(n.expandIcon)||Bb(n.expandIcon)?n.expandIcon||null:Je(x?.expandIcon)||Bb(x?.expandIcon)?x?.expandIcon||null:Ss(e=s??n?.expandIcon??x?.expandIcon,{className:bt(O+"-submenu-expand-icon",ft.isValidElement(e)?e.props?.className:void 0)})},[s,n?.expandIcon,x?.expandIcon,O]),W=ft.useMemo(()=>({prefixCls:O,inlineCollapsed:R||!1,direction:k,firstLevel:!0,theme:i,mode:M,disableMenuItemTitleTooltip:c,tooltip:d,classNames:B,styles:T}),[O,R,k,c,i,M,B,T,d]);return ft.createElement(xb.Provider,{value:null},ft.createElement(bb.Provider,{value:W},ft.createElement(lb,{getPopupContainer:S,overflowedIndicator:ft.createElement(vb,null),overflowedIndicatorPopupClassName:bt(O,O+"-"+i,v),classNames:{list:B.list,listTitle:B.itemTitle},styles:{list:T.list,listTitle:T.itemTitle},mode:M,selectable:$,onClick:L,...D,inlineCollapsed:R,style:T.root,className:r,prefixCls:O,direction:k,defaultMotions:P,expandIcon:F,ref:t,rootClassName:bt(m,e,n.rootClassName,I,z,B.root),_internalComponents:Tb})))}),i=(0,ft.forwardRef)((e,t)=>{let r=(0,ft.useRef)(null);var n=ft.useContext(mb);return(0,ft.useImperativeHandle)(t,()=>({menu:r.current,focus:e=>{r.current?.focus(e)}})),ft.createElement(Ob,{ref:r,...e,...n})}),Hb=(i.Item=c,i.SubMenu=a,i.Divider=l,i.ItemGroup=tb,i),Ab=e=>{var{componentCls:e,menuCls:t,colorError:r,colorTextLightSolid:n}=e,o=t+"-item";return{[e+`, ${e}-menu-submenu`]:{[t+" "+o]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:n,backgroundColor:r}}}}}};var Db=Be("Dropdown",e=>{var{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:o}=e,o=ze(e,{menuCls:o+"-menu",dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[(e=>{var{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:o,sizePopupArrow:a,antCls:l,iconCls:i,motionDurationMid:s,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:f,colorBgElevated:h,controlHeightLG:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:`calc(100vh - ${(0,Qe.unit)(e.calc(g).mul(2.5).equal())})`,overflowY:"auto"},[`&-trigger${l}-btn`]:{[`& > ${i}-down, & > ${l}-btn-icon > ${i}-down`]:{fontSize:m}},[t+"-wrap"]:{position:"relative",[l+`-btn > ${i}-down`]:{fontSize:m},[i+"-down::before"]:{transition:"transform "+s}},[t+"-wrap-open"]:{[i+"-down::before"]:{transform:"rotate(180deg)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ah},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Lh},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Dh},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Fh},[`&${l}-slide-right-enter${l}-slide-right-enter-active${t}-placement-right,
&${l}-slide-right-appear${l}-slide-right-appear-active${t}-placement-right,
&${l}-slide-right-enter${l}-slide-right-enter-active${t}-placement-rightTop,
&${l}-slide-right-appear${l}-slide-right-appear-active${t}-placement-rightTop,
&${l}-slide-right-enter${l}-slide-right-enter-active${t}-placement-rightBottom,
&${l}-slide-right-appear${l}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:Wh},[`&${l}-slide-left-enter${l}-slide-left-enter-active${t}-placement-left,
&${l}-slide-left-appear${l}-slide-left-appear-active${t}-placement-left,
&${l}-slide-left-enter${l}-slide-left-enter-active${t}-placement-leftTop,
&${l}-slide-left-appear${l}-slide-left-appear-active${t}-placement-leftTop,
&${l}-slide-left-enter${l}-slide-left-enter-active${t}-placement-leftBottom,
&${l}-slide-left-appear${l}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:_h},[`&${l}-slide-right-leave${l}-slide-right-leave-active${t}-placement-right,
&${l}-slide-right-leave${l}-slide-right-leave-active${t}-placement-rightTop,
&${l}-slide-right-leave${l}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:jh},[`&${l}-slide-left-leave${l}-slide-left-leave-active${t}-placement-left,
&${l}-slide-left-leave${l}-slide-left-leave-active${t}-placement-leftTop,
&${l}-slide-left-leave${l}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:Kh}}},Fg(e,h),{[t+" "+r]:{position:"relative",margin:0},[r+"-submenu-popup"]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[t+`, ${t}-menu-submenu`]:{...F(e),[r]:{padding:u,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...un(e),"&:empty":{padding:0,boxShadow:"none"},[r+"-item-group-title"]:{padding:(0,Qe.unit)(c)+" "+(0,Qe.unit)(f),color:e.colorTextDescription,transition:"all "+s},[r+"-item"]:{position:"relative",display:"flex",alignItems:"center"},[r+"-item-icon"]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[r+"-title-content"]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${r}-item-label > a`]:{color:"inherit",transition:"all "+s,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[r+"-item-extra"]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[r+`-item, ${r}-submenu-title`]:{display:"flex",margin:0,padding:(0,Qe.unit)(c)+" "+(0,Qe.unit)(f),color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+s,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...un(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:(0,Qe.unit)(e.marginXXS)+" 0",overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[t+"-menu-submenu-expand-icon"]:{position:"absolute",insetInlineEnd:e.paddingXS,[t+"-menu-submenu-arrow-icon"]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:m,fontStyle:"normal"}}},[r+"-item-group-list"]:{margin:"0 "+(0,Qe.unit)(e.marginXS),padding:0,listStyle:"none"},[r+"-submenu-title"]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[r+"-submenu-vertical"]:{position:"relative"},[r+`-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:h,cursor:"not-allowed"}},[r+`-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Xh(e,"slide-up"),Xh(e,"slide-down"),Xh(e,"slide-left"),Xh(e,"slide-right"),Gh(e,"move-up"),Gh(e,"move-down"),cm(e,"zoom-big")]]})(o),Ab(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Lg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Hg(e)}),{resetStyle:!1}),e=ft.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:o,children:a,trigger:l,disabled:i,dropdownRender:s,popupRender:c,getPopupContainer:d,overlayClassName:u,rootClassName:p,overlayStyle:m,open:H,onOpenChange:f,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:v=!0,placement:b="",transitionName:y,classNames:A,styles:D,destroyPopupOnHide:L,destroyOnHidden:F}=e,{getPrefixCls:C,direction:x,getPopupContainer:W,className:j,style:_,classNames:K,styles:V}=Fe("dropdown");var w={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:v},S=We(_),k=We(m);let[E,N]=je([K,A],[V,S,D,k],{props:w});S={...N.root};let I=c||s;fl("Dropdown");k=ft.useMemo(()=>{var e=C();return void 0!==y?y:b.startsWith("top")?e+"-slide-down":b.startsWith("left")?e+"-slide-right":b.startsWith("right")?e+"-slide-left":e+"-slide-up"},[C,b,y]),w=ft.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:"rtl"===x?"bottomRight":"bottomLeft",[b,x]);let M=C("dropdown",o),$=nl(M),[X,R]=Db(M,$);var[,P]=so(),z=ft.Children.only("object"!=typeof(z=a)&&!Je(z)||null===z?ft.createElement("span",null,a):a),t=wt(t,St(z)),z=Ss(z,{className:bt(M+"-trigger",{[M+"-rtl"]:"rtl"===x},z.props.className),disabled:z.props.disabled??i,ref:t}),t=i?[]:l,q=!!t?.includes("contextMenu");let[G,B]=vt(!1,H);var Y=ht(e=>{f?.(e,{source:"trigger"}),B(e)}),U=bt(u,p,X,R,$,j,E.root,{[M+"-rtl"]:"rtl"===x}),P=Kg({arrowPointAtCenter:Ze(r)&&r.pointAtCenter,autoAdjustOverflow:v,offset:P.marginXXS,arrowWidth:r?P.sizePopupArrow:0,borderRadius:P.borderRadius});let Q=ht(()=>{n?.selectable&&n?.multiple||(f?.(!1,{source:"menu"}),B(!1))});var[T,Z]=Cp("Dropdown",S.zIndex);let O=ft.createElement(e0,{alignPoint:q,...at(e,["rootClassName","onOpenChange"]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:G,builtinPlacements:P,arrow:!!r,overlayClassName:U,prefixCls:M,getPopupContainer:d||W,transitionName:k,trigger:t,overlay:()=>{var e=at(E,["root"]),t=at(N,["root"]);let r;return n?.items&&(r=ft.createElement(Hb,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),I&&(r=I(r)),r=ft.Children.only("string"==typeof r?ft.createElement("span",null,r):r),ft.createElement(Cb,{prefixCls:M+"-menu",rootClassName:bt(R,$),expandIcon:ft.createElement("span",{className:M+"-menu-submenu-arrow"},"rtl"===x?ft.createElement(Gv,{className:M+"-menu-submenu-arrow-icon"}):ft.createElement(nd,{className:M+"-menu-submenu-arrow-icon"})),mode:"vertical",selectable:!1,onClick:Q,validator:({})=>{}},r)},placement:w,onVisibleChange:Y,overlayStyle:{...S,zIndex:T},autoDestroy:F??L},z);return O=T?ft.createElement(gp.Provider,{value:Z},O):O});let Lb=Fn(e,"align",void 0,"dropdown",e=>e);e._InternalPanelDoNotUseOrYouWillBeFired=e=>ft.createElement(Lb,{...e},ft.createElement("span",null));var Fb=e,d=({children:e})=>{var t=ft.useContext(Ue).getPrefixCls,t=t("breadcrumb"),{classNames:r,styles:n}=ft.useContext(Xv);return ft.createElement("li",{className:bt(t+"-separator",r?.separator),style:n?.separator,"aria-hidden":"true"},""===e?e:e??"/")},Wb=(d.__ANT_BREADCRUMB_SEPARATOR=!0,d);function jb(e,t,r,n){if(!Se(r))return null;let{className:o,onClick:a,...l}=t;t={...Jt(l,{data:!0,aria:!0}),onClick:a};return void 0!==n?ft.createElement("a",{...t,className:bt(e+"-link",o),href:n},r):ft.createElement("span",{...t,className:bt(e+"-link",o)},r)}function _b(l,i){return(e,t,r,n,o)=>{var a;return i?i(e,t,r,n):(r=e,a=t,t=Se(r.title)?(n=Object.keys(a).join("|"),Ze(r.title)?r.title:String(r.title).replace(new RegExp(`:(${n})`,"g"),(e,t)=>a[t]||e)):null,jb(l,e,t,o))}}let Kb=e=>{let{prefixCls:t,separator:r="/",children:n,menu:o,dropdownProps:a,href:i,dropdownIcon:l}=e;var{classNames:e,styles:s}=ft.useContext(Xv),c=(e=>{if(o){var r={...a};if(o){let{items:e,...t}=o||{};r.menu={...t,items:e?.map(({key:e,title:t,label:r,path:n,...o},a)=>{let l=r??t;return n&&(l=ft.createElement("a",{href:""+i+n},l)),{...o,key:e??a,label:l}})}}return ft.createElement(Fb,{placement:"bottom",...r},ft.createElement("span",{className:t+"-overlay-link"},e,l))}return e})(n);return Ia(c)?ft.createElement(ft.Fragment,null,ft.createElement("li",{className:bt(t+"-item",e?.item),style:s?.item},c),Se(r)&&ft.createElement(Wb,null,r)):null};o=e=>{let{prefixCls:t,children:r,href:n,...o}=e;e=ft.useContext(Ue).getPrefixCls,e=e("breadcrumb",t);return ft.createElement(Kb,{...o,prefixCls:e},jb(e,o,r,n))},o.__ANT_BREADCRUMB_ITEM=!0,s=o;var Vb=Be("Breadcrumb",e=>(e=>{var{componentCls:t,iconCls:r,calc:n}=e;return{[t]:{...F(e),color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[t+"-item a"]:{color:e.linkColor,transition:"color "+e.motionDurationMid,padding:"0 "+(0,Qe.unit)(e.paddingXXS),borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:n(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...un(e)},[t+"-item:last-child"]:{color:e.lastItemColor},[t+"-separator"]:{marginInline:e.separatorMargin,color:e.separatorColor},[t+"-link"]:{"> svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},[`
> ${r} + span,
> ${r} + a,
> svg + span,
> svg + a
`]:{marginInlineStart:e.marginXXS}},[t+"-overlay-link"]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:"0 "+(0,Qe.unit)(e.paddingXXS),marginInline:n(e.marginXXS).mul(-1).equal(),["> "+r]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}})(ze(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function Xb(e){let{breadcrumbName:t,children:r,...n}=e;e={title:t,...n};return r&&(e.menu={items:r.map(({breadcrumbName:e,...t})=>({...t,title:e}))}),e}let qb=(t,e)=>{if(void 0===e)return e;let r=(e||"").replace(/^\//,"");return Object.keys(t).forEach(e=>{r=r.replace(":"+e,t[e])}),r};var n=ft.forwardRef((e,t)=>{let{prefixCls:r,separator:n,style:o,className:a,rootClassName:l,routes:i,items:s,children:c,itemRender:d,params:f={},classNames:u,styles:p,dropdownIcon:m,...h}=e;var{getPrefixCls:g,direction:v,className:b,style:y,classNames:C,styles:x,separator:w,dropdownIcon:S}=Fe("breadcrumb");let k=n??w??"/",E=m??S??ft.createElement(cg,null),N,I=g("breadcrumb",r);var M,$,[w,S]=Vb(I);M=s,$=i;let R=(0,ft.useMemo)(()=>M||($?$.map(Xb):null),[M,$]);var g=ft.useMemo(()=>({...e,separator:k}),[e,k]),y=We(y),P=We(o);let[z,B]=je([C,u],[x,y,p,P],{props:g}),T=_b(I,d);if(R&&0<R.length){let p=[],m=s||i;N=R.map((e,t)=>{var{path:r,key:n,type:o,menu:a,onClick:l,className:i,style:s,separator:c,dropdownProps:d}=e,r=qb(f,r),n=(void 0!==r&&p.push(r),n??t);if("separator"===o)return ft.createElement(Wb,{key:n},c);o={},c=t===R.length-1;a&&(o.menu=a);let u=e.href;return p.length&&void 0!==r&&(u="#/"+p.join("/")),ft.createElement(Kb,{key:n,...o,...Jt(e,{data:!0,aria:!0}),className:i,style:s,dropdownProps:d,dropdownIcon:E,href:u,separator:c?"":k,onClick:l,prefixCls:I},T(e,f,m,p,u))})}else if(c){let r=ke(c).length;N=ke(c).map((e,t)=>e&&Ss(e,{separator:t===r-1?"":k,key:t}))}C=bt(I,b,{[I+"-rtl"]:"rtl"===v},a,l,z.root,w,S),x={...B.root},y=ft.useMemo(()=>({classNames:z,styles:B}),[z,B]);let O=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:O.current})),ft.createElement(Xv.Provider,{value:y},ft.createElement("nav",{ref:O,className:C,style:x,...h},ft.createElement("ol",null,N)))}),Gb=(n.Item=s,n.Separator=Wb,n),Yb=Bd,c=t(2598),Ub=t.n(c),a=t(6986),l=t.n(a),i=t(1840),e=t.n(i),d=t(8134),o=t.n(d),s=t(8623),n=t.n(s),c=t(7375),a=t.n(c),i=t(445),d=t.n(i);Ub().extend(d()),Ub().extend(a()),Ub().extend(l()),Ub().extend(e()),Ub().extend(o()),Ub().extend(n()),Ub().extend((e,t)=>{t=t.prototype;let r=t.format;t.format=function(e){e=(e||"").replace("Wo","wo");return r.bind(this)(e)}});let Qb={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Zb=e=>Qb[e]||e.split("_")[0],Jb=e=>!Ub().isDayjs(e)||e instanceof Ub()?e:Ub()(e.valueOf());s={getNow:()=>{var e=Ub()();return"function"==typeof e.tz?e.tz():e},getFixedDate:e=>Ub()(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>Jb(e).endOf("month"),getWeekDay:e=>{e=Jb(e).locale("en");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:e=>Jb(e).year(),getMonth:e=>Jb(e).month(),getDate:e=>Jb(e).date(),getHour:e=>Jb(e).hour(),getMinute:e=>Jb(e).minute(),getSecond:e=>Jb(e).second(),getMillisecond:e=>Jb(e).millisecond(),addYear:(e,t)=>Jb(e).add(t,"year"),addMonth:(e,t)=>Jb(e).add(t,"month"),addDate:(e,t)=>Jb(e).add(t,"day"),setYear:(e,t)=>Jb(e).year(t),setMonth:(e,t)=>Jb(e).month(t),setDate:(e,t)=>Jb(e).date(t),setHour:(e,t)=>Jb(e).hour(t),setMinute:(e,t)=>Jb(e).minute(t),setSecond:(e,t)=>Jb(e).second(t),setMillisecond:(e,t)=>Jb(e).millisecond(t),isAfter:(e,t)=>Jb(e).isAfter(Jb(t)),isValidate:e=>Jb(e).isValid(),locale:{getWeekFirstDay:e=>Ub()().locale(Zb(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Jb(t).locale(Zb(e)).weekday(0),getWeek:(e,t)=>Jb(t).locale(Zb(e)).week(),getShortWeekDays:e=>Ub()().locale(Zb(e)).localeData().weekdaysMin(),getShortMonths:e=>Ub()().locale(Zb(e)).localeData().monthsShort(),format:(e,t,r)=>Jb(t).locale(Zb(e)).format(r),parse:(e,t,r)=>{var n=Zb(e);for(let e=0;e<r.length;e+=1){var o=r[e],a=t;if(o.includes("wo")||o.includes("Wo")){var l=a.split("-")[0],i=a.split("-")[1],s=Ub()(l,"YYYY").startOf("year").locale(n);for(let e=0;e<=52;e+=1){var c=s.add(e,"week");if(c.format("Wo")===i)return c}return null}l=Ub()(a,o,!0).locale(n);if(l.isValid())return l}return null}}};var ey=ft.createContext(null);let ty={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var ry=function({popupElement:e,popupStyle:t,popupClassName:r,popupAlign:n,transitionName:o,getPopupContainer:a,children:l,range:i,placement:s,builtinPlacements:c=ty,direction:d,visible:u,onClose:p}){var m,f=(f=ft.useContext(ey).prefixCls)+"-dropdown",s=(m="rtl"===d,void 0!==(s=s)?s:m?"bottomRight":"bottomLeft");return ft.createElement(Cs,{showAction:[],hideAction:["click"],popupPlacement:s,builtinPlacements:c,prefixCls:f,popupMotion:{motionName:o},popup:e,popupAlign:n,popupVisible:u,popupClassName:bt(r,{[f+"-range"]:i,[f+"-rtl"]:"rtl"===d}),popupStyle:t,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:e=>{e||p()}},l)};function ny(e,t,r="0"){let n=String(e);for(;n.length<t;)n=""+r+n;return n}function oy(e){return null==e?[]:Array.isArray(e)?e:[e]}function ay(e,t,r){e=[...e];return e[t]=r,e}function ly(t,e){let r={};return(e||Object.keys(t)).forEach(e=>{void 0!==t[e]&&(r[e]=t[e])}),r}function iy(e,t,r){if(r)return r;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function sy(t,e,r){e=e.find(e=>t[e]);return r!==e?t[e]:void 0}function cy(e){return ly(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function dy(e,r,n,o){let a=ft.useMemo(()=>e||((e,t)=>r&&"date"===t.type?r(e,t.today):n&&"month"===t.type?n(e,t.locale):t.originNode),[e,n,r]);return ft.useCallback((e,t)=>a(e,{...t,range:o}),[a,o])}function uy(r,n,o=[]){let[e,a]=ft.useState([!1,!1]);return[ft.useMemo(()=>e.map((e,t)=>!!e||!(!(e=r[t])||(o[t]||e)&&(!e||!n(e,{activeIndex:t})))),[r,e,n,o]),(t,r)=>{a(e=>ay(e,r,t))}]}function py(e,t,r,n,o){var a=[];e&&a.push(o?"hh":"HH"),t&&a.push("mm"),r&&a.push("ss");let l=a.join(":");return n&&(l+=".SSS"),o&&(l+=" A"),l}function my(b,e){let{showHour:y,showMinute:C,showSecond:x,showMillisecond:w,use12Hours:S}=e;return Re().useMemo(()=>{var e=b,t=y,r=C,n=x,o=w,a=S,{fieldDateTimeFormat:l,fieldDateFormat:i,fieldTimeFormat:s,fieldMonthFormat:c,fieldYearFormat:d,fieldWeekFormat:u,fieldQuarterFormat:p,yearFormat:m,cellYearFormat:f,cellQuarterFormat:h,dayFormat:g,cellDateFormat:v}=e,t=py(t,r,n,o,a);return{...e,fieldDateTimeFormat:l||"YYYY-MM-DD "+t,fieldDateFormat:i||"YYYY-MM-DD",fieldTimeFormat:s||t,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:u||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:v||g||"D"}},[b,y,C,x,w,S])}function fy(t,e,r){return r??e.some(e=>t.includes(e))}let hy=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function gy(e,t,r,n){return[e,t,r,n].some(e=>void 0!==e)}function vy(e,t,r,n,o){let a=t,l=r,i=n;return e||a||l||i||o?e&&(t=[a,l,i].some(e=>!1===e),r=[a,l,i].some(e=>!0===e),n=!!t||!r,a=a??n,l=l??n,i=i??n):(a=!0,l=!0,i=!0),[a,l,i,o]}function by(e){var t=e.showTime,[e,r]=(e=>{var t=ly(e,hy),{format:e,picker:r}=e;let n=null;return e&&(n=e,n="object"==typeof(n=Array.isArray(n)?n[0]:n)?n.format:n),"time"===r&&(t.format=n),[t,n]})(e),t=t&&"object"==typeof t?t:{},e={defaultOpenValue:t.defaultOpenValue||t.defaultValue,...e,...t},t=e.showMillisecond,{showHour:n,showMinute:o,showSecond:a}=e;return[n,o,a]=vy(gy(n,o,a,t),n,o,a,t),[e,{...e,showHour:n,showMinute:o,showSecond:a,showMillisecond:t},e.format,r]}function yy(a,l,i,s,c){var d;if("datetime"!==a&&"time"!==a)return null;{let t=iy(a,c,null);var u=[l,i];for(let e=0;e<u.length;e+=1){var p=oy(u[e])[0];if((d=p)&&"string"==typeof d){t=p;break}}let{showHour:e,showMinute:r,showSecond:n,showMillisecond:o}=s;a=s.use12Hours,c=fy(t,["a","A","LT","LLL","LTS"],a),i=gy(e,r,n,o),a=(i||(e=fy(t,["H","h","k","LT","LLL"]),r=fy(t,["m","LT","LLL"]),n=fy(t,["s","LTS"]),o=fy(t,["SSS"])),[e,r,n]=vy(i,e,r,n,o),l||py(e,r,n,o,c));return{...s,format:a,showHour:e,showMinute:r,showSecond:n,showMillisecond:o,use12Hours:c}}}function Cy(e,t,r){return!e&&!t||e===t||!(!e||!t)&&r()}function xy(e,t,r){return Cy(t,r,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(r)/10))}function wy(e,t,r){return Cy(t,r,()=>e.getYear(t)===e.getYear(r))}function Sy(e,t){return Math.floor(e.getMonth(t)/3)+1}function ky(e,t,r){return Cy(t,r,()=>wy(e,t,r)&&e.getMonth(t)===e.getMonth(r))}function Ey(e,t,r){return Cy(t,r,()=>wy(e,t,r)&&ky(e,t,r)&&e.getDate(t)===e.getDate(r))}function Ny(e,t,r){return Cy(t,r,()=>e.getHour(t)===e.getHour(r)&&e.getMinute(t)===e.getMinute(r)&&e.getSecond(t)===e.getSecond(r))}function Iy(e,t,r){return Cy(t,r,()=>Ey(e,t,r)&&Ny(e,t,r)&&e.getMillisecond(t)===e.getMillisecond(r))}function My(r,n,o,a){return Cy(o,a,()=>{var e=r.locale.getWeekFirstDate(n,o),t=r.locale.getWeekFirstDate(n,a);return wy(r,e,t)&&r.locale.getWeek(n,o)===r.locale.getWeek(n,a)})}function $y(e,t,r,n,o){switch(o){case"date":return Ey(e,r,n);case"week":return My(e,t.locale,r,n);case"month":return ky(e,r,n);case"quarter":return a=e,Cy(l=r,i=n,()=>wy(a,l,i)&&Sy(a,l)===Sy(a,i));case"year":return wy(e,r,n);case"decade":return xy(e,r,n);case"time":return Ny(e,r,n);default:return Iy(e,r,n)}var a,l,i}function Ry(e,t,r,n){return!!(t&&r&&n)&&e.isAfter(n,t)&&e.isAfter(r,n)}function Py(e,t,r,n,o){return $y(e,t,r,n,o)||e.isAfter(r,n)}function zy(e,{generateConfig:t,locale:r,format:n}){return e?"function"==typeof n?n(e):t.locale.format(r.locale,e,n):""}function By(r,e,n){let o=e,a=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((e,t)=>{o=n?r[e](o,r[a[t]](n)):r[e](o,0)}),o}function Ty(t,r=!1){return ft.useMemo(()=>{var e=t&&oy(t);return r&&e&&(e[1]=e[1]||e[0]),e},[t,r])}function Oy(n,o){let{generateConfig:e,locale:t,picker:a="date",prefixCls:l="rc-picker",previewValue:i="hover",styles:s={},classNames:c={},order:d=!0,components:H={},inputRender:A,allowClear:D,clearIcon:L,needConfirm:F,multiple:r,format:W,inputReadOnly:j,disabledDate:_,minDate:K,maxDate:V,showTime:X,value:q,defaultValue:G,pickerValue:Y,defaultPickerValue:U}=n,Q=Ty(q),Z=Ty(G),J=Ty(Y),ee=Ty(U),u="date"===a&&X?"datetime":a;var p="time"===u||"datetime"===u,te=p||r;let m=F??p,[f,re,h,g]=by(n),v=my(t,re),b=ft.useMemo(()=>yy(u,h,g,f,v),[u,h,g,f,v]),y=ft.useMemo(()=>{return{...n,previewValue:i,prefixCls:l,locale:v,picker:a,styles:s,classNames:c,order:d,components:{input:A,...H},clearIcon:(e=l,t=D,r=L,!1===t?null:(t&&"object"==typeof t?t:{}).clearIcon||r||ft.createElement("span",{className:e+"-clear-btn"})),showTime:b,value:Q,defaultValue:Z,pickerValue:J,defaultPickerValue:ee,...o?.()};var e,t,r},[n]);C=u,x=v,w=W;var C,x,w,S,k,E,N,I,M,[p,ne]=ft.useMemo(()=>{var e=oy(iy(C,x,w)),t=e[0],t="object"==typeof t&&"mask"===t.type?t.format:null;return[e.map(e=>"string"==typeof e||"function"==typeof e?e:e.format),t]},[C,x,w]);S=j,O=r;let $=!("function"!=typeof p[0]&&!O)||S,R=(k=e,E=t,N=_,I=K,M=V,ht((e,t)=>!(!N||!N(e,t))||!(!I||!k.isAfter(I,e)||$y(k,E,I,e,t.type))||!(!M||!k.isAfter(e,M)||$y(k,E,M,e,t.type))));P=e,z=a,B=R,T=b;var P,z,B,T,O=ht((e,t)=>{var r={type:z,...t};if(delete r.activeIndex,!P.isValidate(e)||B&&B(e,r))return!0;if(("date"===z||"time"===z)&&T){var t=t&&1===t.activeIndex?"end":"start",{disabledHours:t,disabledMinutes:r,disabledSeconds:n,disabledMilliseconds:o}=T.disabledTime?.(e,t,{from:r.from})||{},{disabledHours:a,disabledMinutes:l,disabledSeconds:i}=T,t=t||a,a=r||l,r=n||i,l=P.getHour(e),n=P.getMinute(e),i=P.getSecond(e),e=P.getMillisecond(e);if(t&&t().includes(l))return!0;if(a&&a(l).includes(n))return!0;if(r&&r(l,n).includes(i))return!0;if(o&&o(l,n,i).includes(e))return!0}return!1});return[ft.useMemo(()=>({...y,needConfirm:m,inputReadOnly:$,disabledDate:R}),[y,m,$,R]),u,te,p,ne,O]}function Hy(t,e){return e.some(e=>!!e&&(e===t||e.contains(t)))}function Ay(n,o,a,l){let[e,i]=ft.useState(null);return[null!==e,ht((e,t,r)=>{i(e),o?.(e,r)}),ht((e,t,r)=>{n(r.relatedTarget)||(i(null),l?.(e,r)),a?.(e,r)})]}function Dy(e,t,r=[],n){let[o,a]=((e,t,r)=>{let[n,o]=vt(t,e),[,a]=Re().useState({}),l=ht(e=>{o(e),a({})}),i=Re().useRef(e),s=Re().useRef(void 0),c=()=>{$e.cancel(s.current)},d=ht(()=>{l(i.current),r&&n!==i.current&&r(i.current)});return t=ht((e,t)=>{c(),(i.current=e)||t?d():s.current=$e(d)}),Re().useEffect(()=>c,[]),[n,t]})(!r.every(e=>e)&&e,t||!1,n);return[o,function(e,t={}){t.inherit&&!o||a(e,t.force)}]}function Ly(e){let t=ft.useRef(null);return ft.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function Fy(e,t){return ft.useMemo(()=>e||(t?((0,Te.Ay)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function Wy(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,10*n);case"decade":return e.addYear(r,100*n);default:return r}}let jy=[];function _y(o,n,e,a,l,i,t,s,c,d=jy,r=jy,u=jy,p,m,f){let h="time"===s,g=t||0,[v,b]=e,y=0===g?v:b,C=0===g?b:v,x=e=>{let t=o.getNow();h&&(t=By(o,t));var r=0===e?v:b;return d[e]||r||t};var[t,r]=r;let[w,S]=vt(()=>x(0),t),[k,E]=vt(()=>x(1),r);t=ft.useMemo(()=>{var e=[w,k][g];return h?e:By(o,e,u[g])},[h,w,k,g,o,u]);let N=(e,t="panel")=>{(0,[S,E][g])(e);var r=[w,k];r[g]=e,!p||$y(o,n,w,r[0],s)&&$y(o,n,k,r[1],s)||p(r,{source:t,range:1===g?"end":"start",mode:a})},I=(e,t)=>"year"===s?Math.floor(o.getYear(e)/10)===Math.floor(o.getYear(t)/10):$y(o,n,e,t,"month"===s||"quarter"===s?"year":"month"),M=ft.useRef(null);return gt(()=>{if(l&&!d[g]){let e=h?null:o.getNow();i&&null!==M.current&&M.current!==g?e=[w,k][1^g]:y?e=0===g?v:(t=v,r=b,c&&t?(n=Wy(o,s,t,1),I(t,r)||I(n,r)?t:Wy(o,s,r,-1)):r):C&&(e=C),e&&(m&&o.isAfter(m,e)&&(e=m),n=c?Wy(o,s,e,1):e,f&&o.isAfter(n,f)&&(e=c?Wy(o,s,f,-1):f),N(e,"reset"))}var t,r,n},[l,i,g,e[g]]),ft.useEffect(()=>{M.current=l&&i?g:null},[l,i,g]),gt(()=>{l&&d&&d[g]&&N(d[g],"reset")},[l,g]),[t,N]}function Ky(e,t){let r=ft.useRef(e),[,n]=ft.useState({});e=e=>e&&void 0!==t?t:r.current;return[e,e=>{r.current=e,n({})},e(!0)]}let Vy=[];function Xy(i,t,r){return[e=>e.map(e=>zy(e,{generateConfig:i,locale:t,format:r[0]})),(t,r)=>{var n=Math.max(t.length,r.length);let o=-1;for(let e=0;e<n;e+=1){var a=t[e]||null,l=r[e]||null;if(a!==l&&!Iy(i,a,l)){o=e;break}}return[o<0,0!==o]}]}function qy(e,r){return[...e].sort((e,t)=>r.isAfter(e,t)?1:-1)}function Gy(n,e,t,o,a,r,l,i,s){var[r,l]=vt(r,l),r=r||Vy;let[c,d]=(e=>{let[t,r]=Ky(e),n=ht(()=>{r(e)});return ft.useEffect(()=>{n()},[e]),[t,r]})(r),[u,p]=Xy(n,e,t);e=ht(e=>{let t=[...e];if(o)for(let e=0;e<2;e+=1)t[e]=t[e]||null;else a&&(t=qy(t.filter(e=>e),n));var[e,r]=p(c(),t);e||(d(t),i&&(e=u(t),i(t,e,{range:r?"end":"start"})))});return[r,l,c,e,()=>{s&&s(c())}]}function Yy(e,s,c,r,d,u,t,p){let{generateConfig:m,locale:f,picker:h,onChange:g,allowEmpty:v,order:b}=e,y=!u.some(e=>e)&&b,[C,x]=Xy(m,f,t),[w,n]=Ky(s),o=ht(()=>{n(s)}),a=(ft.useEffect(()=>{o()},[s]),ht(e=>{var t=null===e;let r=[...e||w()];if(t){var n=Math.max(u.length,r.length);for(let e=0;e<n;e+=1)u[e]||(r[e]=null)}y&&r[0]&&r[1]&&(r=qy(r,m)),d(r);var[e,o]=r,a=!e,l=!o,i=!v||(!a||v[0])&&(!l||v[1]),a=!b||a||l||$y(m,f,e,o,h)||m.isAfter(o,e),l=(u[0]||!e||!p(e,{activeIndex:0}))&&(u[1]||!o||!p(o,{from:e,activeIndex:1})),o=t||i&&a&&l;return o&&(c(r),[e]=x(r,s),g)&&!e&&(i=r.every(e=>!e),g(t&&i?null:r,i?null:C(r))),o}));e=ht((e,t)=>{e=ay(w(),e,r()[e]);n(e),t&&a()}),t=ht(e=>{void 0===e?(d(s),o()):(d(ay(r(),e,s[e])),n(ay(w(),e,s[e])))});return[e,a,t]}function Uy(s,c,d,u,p,r,m){let f=ft.useRef([]),h=ft.useRef(null),g=ft.useRef(!1),[v,b]=dt(null),[e,y]=dt(!1);var t=ft.useRef(void 0);let C=ht(()=>{f.current=[],h.current=null,g.current=!1,b(null),y(!1)}),x=(t,e)=>{var r=f.current.find(e=>e.index===t);r?void 0!==e&&(r.modified=e):f.current=[...f.current,{index:t,modified:e??!1}]},w=e=>{x(e);var t=f.current.length>=s;return r(e,t),t&&C(),t};var n=ht((t,e,r)=>{let n=v();"popupClose"!==e&&(g.current="input"===e),null===n&&"popupClose"!==e&&"esc"!==e&&(n=t,b(t),y(!1),x(t,!1));var o=((r,e,t,n)=>{if("esc"===t)return"resetAll";if(null===r)return"popupClose"===t?"resetAll":"abort";var o,n=void 0===n?u()[r]:n,n=!(null==n)||d[r],a="remove"===t||n;if("field-switch"!==t)return e!==r?"abort":"popupClose"===t?f.current.some(e=>e.modified)?c?(o=f.current.some(e=>e.index===r&&e.modified),f.current.length>=s&&n?o?d[r]?"resetCurrentAndSwitchNext":"resetAll":"switchNext":"resetAll"):a?"switchNext":"resetAll":"finish":"input"===t||"panel-intermediate"===t?"modify":"panel-final"===t?c?"modify":"switchNext":"keyboard-submit-weak"===t?a?"submitCurrent":"abort":("keyboard-submit"===t||"confirm"===t||"remove"===t)&&a?"switchNext":"abort";{if(e===r)return"abort";let t=(r+1)%s;return e!==t?"abort":(o=f.current.some(e=>e.index===t),c?h.current===r?"switchNext":d[r]?"resetCurrentAndSwitchNext":"abort":n?"switchNext":o?"resetCurrentAndSwitchNext":"resetCurrent")}})(n,t,e,r);let a=n??t;switch(o){case"modify":x(a,!0),h.current===a&&(h.current=null),void 0!==r&&p(a,r);break;case"submitCurrent":c&&(h.current=a),w(a);break;case"switchNext":"panel-final"!==e&&void 0===r||x(a,!0),void 0!==r&&p(a,r),!c||"keyboard-submit"!==e&&"confirm"!==e||(h.current=a);var l="confirm"===e||"keyboard-submit"===e||"panel-final"===e||"popupClose"===e&&!g.current,i=w(a);i&&"field-switch"===e?(b(t),y(!1)):i||(i=(a+1)%s,b(i),y(l)),"field-switch"===e&&x(t,!1);break;case"finish":C();break;case"resetCurrent":m(a),h.current===a&&(h.current=null),f.current=f.current.filter(e=>e.index!==a);break;case"resetCurrentAndSwitchNext":m(a),h.current===a&&(h.current=null),"field-switch"===e?(f.current.some(e=>e.index===t)&&(f.current=[]),b(t),y(!1),x(t,!1)):C();break;case"resetAll":m(),C();break;case"abort":"field-switch"===e&&t===a&&x(t)}}),o=v(),a=(t.current=o??t.current??0,f.current.map(e=>e.index));return[o,t.current,e(),a,n,C]}function Qy(e,t,r,n,o){return("date"===t||"time"===t)&&(void 0!==r?r:void 0!==n?n:!o&&("date"===e||"time"===e))}function Zy(){return[]}function Jy(t,r,e=1,n=!1,o=[],a=2){var l=[],i=1<=e?0|e:1;for(let e=t;e<=r;e+=i){var s=o.includes(e);s&&n||l.push({label:ny(e,a),value:e,disabled:s})}return l}function e1(r,e={},t){let{use12Hours:o,hourStep:a=1,minuteStep:l=1,secondStep:i=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:n,disabledHours:d,disabledMinutes:u,disabledSeconds:p}=e||{},m=ft.useMemo(()=>t||r.getNow(),[t,r]),f=ft.useCallback(e=>{e=n?.(e)||{};return[e.disabledHours||d||Zy,e.disabledMinutes||u||Zy,e.disabledSeconds||p||Zy,e.disabledMilliseconds||Zy]},[n,d,u,p]),[h,g,v,b]=ft.useMemo(()=>f(m),[m,f]),y=ft.useCallback((e,t,r,n)=>{e=Jy(0,23,a,c,e());return[o?e.map(e=>({...e,label:ny(e.value%12||12,2)})):e,e=>Jy(0,59,l,c,t(e)),(e,t)=>Jy(0,59,i,c,r(e,t)),(e,t,r)=>Jy(0,999,s,c,n(e,t,r),3)]},[c,a,o,s,l,i]),[C,x,w,S]=ft.useMemo(()=>y(h,g,v,b),[y,h,g,v,b]);return[(e,a)=>{let l=()=>C,i=x,s=w,c=S;if(a){var[a,d,u,p]=f(a);let[e,t,r,n]=y(a,d,u,p);l=()=>e,i=t,s=r,c=n}{a=e,d=l,u=i,p=s,e=c;var m=r;let o=a;function t(e,t,r){let n=m[e](o);var e=r.find(e=>e.value===n);return e&&!e.disabled||(r=[...e=r.filter(e=>!e.disabled)].reverse().find(e=>e.value<=n)||e[0])&&(n=r.value,o=m[t](o,n)),n}return a=t("getHour","setHour",d()),d=t("getMinute","setMinute",u(a)),u=t("getSecond","setSecond",p(a,d)),t("getMillisecond","setMillisecond",e(a,d,u)),o}},C,x,w,S]}function t1(e){let{mode:t,internalMode:r,renderExtraFooter:n,showNow:o,showTime:a,onSubmit:l,onNow:i,invalid:s,needConfirm:c,generateConfig:d,disabledDate:u}=e;var{prefixCls:e,locale:p,button:m="button",classNames:f,styles:h}=ft.useContext(ey);let g=d.getNow(),[v]=e1(d,a,g);var b=n?.(t);let y=u(g,{type:t});var C=e+"-now",x=C+"-btn",C=o&&ft.createElement("li",{className:C},ft.createElement("a",{className:bt(x,y&&x+"-disabled"),"aria-disabled":y,onClick:()=>{var e;y||(e=v(g),i(e))}},"date"===r?p.today:p.now)),x=c&&ft.createElement("li",{className:e+"-ok"},ft.createElement(m,{disabled:s,onClick:l},p.ok)),m=(C||x)&&ft.createElement("ul",{className:e+"-ranges"},C,x);return b||m?ft.createElement("div",{className:bt(e+"-footer",f.popup.footer),style:h.popup.footer},b&&ft.createElement("div",{className:e+"-footer-extra"},b),m):null}function r1(n,o,a){return function(e,t){var r=e.findIndex(e=>$y(n,o,e,t,a));return-1===r?[...e,t]:((e=[...e]).splice(r,1),e)}}let n1=ft.createContext(null),o1=ft.createContext(null);function a1(){return ft.useContext(o1)}function l1(e,t){var{prefixCls:e,generateConfig:r,locale:n,disabledDate:o,minDate:a,maxDate:l,cellRender:i,hoverValue:s,hoverRangeValue:c,onHover:d,values:u,pickerValue:p,onSelect:m,prevIcon:f,nextIcon:h,superPrevIcon:g,superNextIcon:v}=e,{classNames:b,styles:y}=ft.useContext(n1),C=r.getNow();return[{now:C,values:u,pickerValue:p,prefixCls:e,classNames:b,styles:y,disabledDate:o,minDate:a,maxDate:l,cellRender:i,hoverValue:s,hoverRangeValue:c,onHover:d,locale:n,generateConfig:r,onSelect:m,panelType:t,prevIcon:f,nextIcon:h,superPrevIcon:g,superNextIcon:v},C]}let i1=ft.createContext({});function s1(e){var{rowNum:t,colNum:s,baseDate:c,getCellDate:d,prefixColumn:u,rowClassName:r,titleFormat:p,getCellText:m,getCellClassName:f,headerCells:e,cellSelection:h=!0,disabledDate:n}=e;let{prefixCls:g,classNames:v,styles:b,panelType:y,now:C,disabledDate:o,cellRender:x,onHover:w,hoverValue:S,hoverRangeValue:k,generateConfig:E,values:N,locale:I,onSelect:M}=a1();var $=n||o,R=g+"-cell";let P=ft.useContext(i1).onCellDblClick;var a=[];for(let i=0;i<t;i+=1){var z=[];let l;for(let a=0;a<s;a+=1){let t=d(c,i*s+a),e=$?.(t,{type:y}),r=(0===a&&(l=t,u)&&z.push(u(l)),!1),n=!1,o=!1;h&&k&&([B,T]=k,r=Ry(E,B,T,t),n=$y(E,I,t,B,y),o=$y(E,I,t,T,y));var B=p?zy(t,{locale:I,format:p,generateConfig:E}):void 0,T=ft.createElement("div",{className:R+"-inner"},m(t));z.push(ft.createElement("td",{key:a,title:B,className:bt(R,v.item,{[R+"-disabled"]:e,[R+"-hover"]:(S||[]).some(e=>$y(E,I,t,e,y)),[R+"-in-range"]:r&&!n&&!o,[R+"-range-start"]:n,[R+"-range-end"]:o,[g+"-cell-selected"]:!k&&"week"!==y&&(t=>N.some(e=>e&&$y(E,I,t,e,y)))(t),...f(t)}),style:b.item,onClick:()=>{e||M(t)},onDoubleClick:()=>{!e&&P&&P()},onMouseEnter:()=>{e||w?.(t)},onMouseLeave:()=>{e||w?.(null)}},x?x(t,{prefixCls:g,originNode:T,today:C,type:y,locale:I}):T))}a.push(ft.createElement("tr",{key:i,className:r?.(l)},z))}return ft.createElement("div",{className:bt(g+"-body",v.body),style:b.body},ft.createElement("table",{className:bt(g+"-content",v.content),style:b.content},e&&ft.createElement("thead",null,ft.createElement("tr",null,e)),ft.createElement("tbody",null,a)))}let c1={visibility:"hidden"};var d1=function(e){let{offset:t,superOffset:r,onChange:n,getStart:o,getEnd:a,children:l}=e,{prefixCls:i,classNames:s,styles:c,prevIcon:d="‹",nextIcon:u="›",superPrevIcon:p="«",superNextIcon:m="»",minDate:f,maxDate:h,generateConfig:g,locale:v,pickerValue:b,panelType:y}=a1();var C,x,w,e=i+"-header",{hidePrev:S,hideNext:k,hideHeader:E}=ft.useContext(i1),N=ft.useMemo(()=>{var e;return!!(f&&t&&a)&&(e=a(t(-1,b)),!Py(g,v,e,f,y))},[f,t,b,a,g,v,y]),I=ft.useMemo(()=>{var e;return!!(f&&r&&a)&&(e=a(r(-1,b)),!Py(g,v,e,f,y))},[f,r,b,a,g,v,y]),M=ft.useMemo(()=>{var e;return!!(h&&t&&o)&&(e=o(t(1,b)),!Py(g,v,h,e,y))},[h,t,b,o,g,v,y]),$=ft.useMemo(()=>{var e;return!!(h&&r&&o)&&(e=o(r(1,b)),!Py(g,v,h,e,y))},[h,r,b,o,g,v,y]);let R=e=>{t&&n(t(e,b))},P=e=>{r&&n(r(e,b))};return E?null:(E=e+"-prev-btn",C=e+"-next-btn",x=e+"-super-prev-btn",w=e+"-super-next-btn",ft.createElement("div",{className:bt(e,s.header),style:c.header},r&&ft.createElement("button",{type:"button","aria-label":v.previousYear,onClick:()=>P(-1),tabIndex:-1,className:bt(x,I&&x+"-disabled"),disabled:I,style:S?c1:{}},p),t&&ft.createElement("button",{type:"button","aria-label":v.previousMonth,onClick:()=>R(-1),tabIndex:-1,className:bt(E,N&&E+"-disabled"),disabled:N,style:S?c1:{}},d),ft.createElement("div",{className:e+"-view"},l),t&&ft.createElement("button",{type:"button","aria-label":v.nextMonth,onClick:()=>R(1),tabIndex:-1,className:bt(C,M&&C+"-disabled"),disabled:M,style:k?c1:{}},u),r&&ft.createElement("button",{type:"button","aria-label":v.nextYear,onClick:()=>P(1),tabIndex:-1,className:bt(w,$&&w+"-disabled"),disabled:$,style:k?c1:{}},m)))};function u1(){return(u1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p1(e){let{prefixCls:t,panelName:r="date",locale:n,generateConfig:o,pickerValue:a,onPickerValueChange:l,onModeChange:i,mode:s="date",disabledDate:c,onSelect:d,onHover:u,showWeek:p}=e;var m=t+`-${r}-panel`;let f=t+"-cell";var h="week"===s;let[g,v]=l1(e,s);var b=o.locale.getWeekFirstDay(n.locale),y=o.setDate(a,1),y=((e,t,r)=>{var e=t.locale.getWeekFirstDay(e),n=t.setDate(r,1),o=t.getWeekDay(n);let a=t.addDate(n,e-o);return a=t.getMonth(a)===t.getMonth(r)&&1<t.getDate(a)?t.addDate(a,-7):a})(n.locale,o,y),C=o.getMonth(a),x=(void 0===p?h:p)?e=>{let t=c?.(e,{type:"week"});return ft.createElement("td",{key:"week",className:bt(f,f+"-week",{[f+"-disabled"]:t}),onClick:()=>{t||d(e)},onMouseEnter:()=>{t||u?.(e)},onMouseLeave:()=>{t||u?.(null)}},ft.createElement("div",{className:f+"-inner"},o.locale.getWeek(n.locale,e)))}:null,w=[],S=n.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(n.locale):[]);x&&w.push(ft.createElement("th",{key:"empty"},ft.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},n.week)));for(let e=0;e<7;e+=1)w.push(ft.createElement("th",{key:e},S[(e+b)%7]));var k=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),E=ft.createElement("button",{type:"button","aria-label":n.yearSelect,key:"year",onClick:()=>{i("year",a)},tabIndex:-1,className:t+"-year-btn"},zy(a,{locale:n,format:n.yearFormat,generateConfig:o})),k=ft.createElement("button",{type:"button","aria-label":n.monthSelect,key:"month",onClick:()=>{i("month",a)},tabIndex:-1,className:t+"-month-btn"},n.monthFormat?zy(a,{locale:n,format:n.monthFormat,generateConfig:o}):k[C]),C=n.monthBeforeYear?[k,E]:[E,k];return ft.createElement(o1.Provider,{value:g},ft.createElement("div",{className:bt(m,p&&m+"-show-week")},ft.createElement(d1,{offset:e=>o.addMonth(a,e),superOffset:e=>o.addYear(a,e),onChange:l,getStart:e=>o.setDate(e,1),getEnd:e=>{e=o.setDate(e,1),e=o.addMonth(e,1);return o.addDate(e,-1)}},C),ft.createElement(s1,u1({titleFormat:n.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:y,headerCells:w,getCellDate:(e,t)=>o.addDate(e,t),getCellText:e=>zy(e,{locale:n,format:n.cellDateFormat,generateConfig:o}),getCellClassName:e=>({[t+"-cell-in-view"]:ky(o,e,a),[t+"-cell-today"]:Ey(o,e,v)}),prefixColumn:x,cellSelection:!h}))))}let m1=1/3;let f1=300;function h1(e){let{units:o,value:n,optionalValue:t,type:a,onChange:l,onHover:i,onDblClick:s,changeOnScroll:r}=e,{prefixCls:c,cellRender:d,now:u,locale:p,classNames:m,styles:f}=a1();e=c+"-time-panel";let h=c+"-time-panel-cell",g=ft.useRef(null),v=ft.useRef(void 0),b=()=>{clearTimeout(v.current)},[y,C,x]=((e,t)=>{let i=ft.useRef(!1),s=ft.useRef(null),c=ft.useRef(null),d=()=>{$e.cancel(s.current),i.current=!1},u=ft.useRef(void 0);return[ht(()=>{let l=e.current;if(c.current=null,u.current=0,l){let n=l.querySelector(`[data-value="${t}"]`),o=l.querySelector("li"),a=()=>{d(),i.current=!0,u.current+=1;var e=l.scrollTop,t=o.offsetTop,r=n.offsetTop,t=r-t;0===r&&n!==o||!mt(l)?u.current<=5&&(s.current=$e(a)):(r=e+(t-e)*m1,e=Math.abs(t-r),null!==c.current&&c.current<e?d():(c.current=e)<=1?(l.scrollTop=t,d()):(l.scrollTop=r,s.current=$e(a)))};n&&o&&a()}}),d,()=>i.current]})(g,n??t);gt(()=>(y(),b(),()=>{C(),b()}),[n,t,o.map(({value:e,label:t,disabled:r})=>[e,t,r].join(",")).join(";")]);return ft.createElement("ul",{className:e+"-column",ref:g,"data-type":a,onScroll:e=>{b();let n=e.target;!x()&&r&&(v.current=setTimeout(()=>{var e=g.current;let t=e.querySelector("li").offsetTop;e=Array.from(e.querySelectorAll("li")).map(e=>e.offsetTop-t).map((e,t)=>o[t].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop));let r=Math.min(...e);e=e.findIndex(e=>e===r),e=o[e];e&&!e.disabled&&l(e.value)},f1))}},o.map(({label:e,value:t,disabled:r})=>{e=ft.createElement("div",{className:h+"-inner"},e);return ft.createElement("li",{key:t,style:f.item,className:bt(h,m.item,{[h+"-selected"]:n===t,[h+"-disabled"]:r}),onClick:()=>{r||l(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{i(t)},onMouseLeave:()=>{i(null)},"data-value":t},d?d(t,{prefixCls:c,originNode:e,today:u,type:"time",subType:a,locale:p}):e)}))}function g1(){return(g1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v1(e){let{showHour:H,showMinute:A,showSecond:D,showMillisecond:L,use12Hours:n,changeOnScroll:F}=e,{prefixCls:W,classNames:j,styles:_,values:K,generateConfig:o,locale:a,onSelect:V,onHover:t=()=>{},pickerValue:r}=a1(),l=K?.[0]||null;var i=ft.useContext(i1).onCellDblClick;let[X,s,c,d,u]=e1(o,e,l);e=e=>[l&&o[e](l),r&&o[e](r)];let[p,m]=e("getHour"),[f,h]=e("getMinute"),[g,v]=e("getSecond"),[b,y]=e("getMillisecond");var e=null===p?null:p<12?"am":"pm",q=ft.useMemo(()=>n?p<12?s.filter(e=>e.value<12):s.filter(e=>!(e.value<12)):s,[p,s,n]),C=(e,t)=>{e=e.filter(e=>!e.disabled);return t??e?.[0]?.value};let x=C(s,p);var w=ft.useMemo(()=>c(x),[c,x]);let S=C(w,f);var k=ft.useMemo(()=>d(x,S),[d,x,S]);let E=C(k,g);var N=ft.useMemo(()=>u(x,S,E),[u,x,S,E]);let I=C(N,b);C=ft.useMemo(()=>{var e,t,r;return n?(t=o.getNow(),e=o.setHour(t,9),t=o.setHour(t,15),[{label:(r=(e,t)=>{var r=a.cellMeridiemFormat;return r?zy(e,{generateConfig:o,locale:a,format:r}):t})(e,"AM"),value:"am",disabled:s.every(e=>e.disabled||!(e.value<12))},{label:r(t,"PM"),value:"pm",disabled:s.every(e=>e.disabled||e.value<12)}]):[]},[s,n,o,a]);let M=e=>{e=X(e);V(e)},$=ft.useMemo(()=>{let e=l||r||o.getNow();var t=e=>null!=e;return t(p)?(e=o.setHour(e,p),e=o.setMinute(e,f),e=o.setSecond(e,g),e=o.setMillisecond(e,b)):t(m)?(e=o.setHour(e,m),e=o.setMinute(e,h),e=o.setSecond(e,v),e=o.setMillisecond(e,y)):t(x)&&(e=o.setHour(e,x),e=o.setMinute(e,S),e=o.setSecond(e,E),e=o.setMillisecond(e,I)),e},[l,r,p,f,g,b,x,S,E,I,m,h,v,y,o]),R=(e,t)=>null===e?null:o[t]($,e),P=e=>R(e,"setHour"),z=e=>R(e,"setMinute"),B=e=>R(e,"setSecond"),T=e=>R(e,"setMillisecond"),O=e=>null===e?null:"am"!==e||p<12?"pm"===e&&p<12?o.setHour($,p+12):$:o.setHour($,p-12);i={onDblClick:i,changeOnScroll:F};return ft.createElement("div",{className:bt(W+"-content",j.content),style:_.content},H&&ft.createElement(h1,g1({units:q,value:p,optionalValue:m,type:"hour",onChange:e=>{M(P(e))},onHover:e=>{t(P(e))}},i)),A&&ft.createElement(h1,g1({units:w,value:f,optionalValue:h,type:"minute",onChange:e=>{M(z(e))},onHover:e=>{t(z(e))}},i)),D&&ft.createElement(h1,g1({units:k,value:g,optionalValue:v,type:"second",onChange:e=>{M(B(e))},onHover:e=>{t(B(e))}},i)),L&&ft.createElement(h1,g1({units:N,value:b,optionalValue:y,type:"millisecond",onChange:e=>{M(T(e))},onHover:e=>{t(T(e))}},i)),n&&ft.createElement(h1,g1({units:C,value:e,type:"meridiem",onChange:e=>{M(O(e))},onHover:e=>{t(O(e))}},i)))}function b1(e){var{prefixCls:t,value:r,locale:n,generateConfig:o,showTime:a}=e,l=(a||{}).format,t=t+"-time-panel",[e]=l1(e,"time");return ft.createElement(o1.Provider,{value:e},ft.createElement("div",{className:bt(t)},ft.createElement(d1,null,r?zy(r,{locale:n,format:l,generateConfig:o}):" "),ft.createElement(v1,a)))}function y1(){return(y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C1(){return(C1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x1(){return(x1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w1(){return(w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S1(){return(S1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k1(){return(k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E1(){return(E1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let N1={date:p1,datetime:function(e){let{prefixCls:t,generateConfig:r,showTime:n,onSelect:o,value:a,pickerValue:l,onHover:i}=e;var s=t+"-datetime-panel";let[c]=e1(r,n),d=e=>a?By(r,e,a):By(r,e,l);return ft.createElement("div",{className:s},ft.createElement(p1,y1({},e,{onSelect:e=>{e=d(e);o(c(e,e))},onHover:e=>{i?.(e&&d(e))}})),ft.createElement(b1,e))},week:function(e){let{prefixCls:t,generateConfig:l,locale:r,value:i,hoverValue:s,hoverRangeValue:c}=e,d=r.locale,u=t+"-week-panel-row";return ft.createElement(p1,S1({},e,{mode:"week",panelName:"week",rowClassName:t=>{var e,r,n,o,a={};return c&&([e,r]=c,n=My(l,d,e,t),o=My(l,d,r,t),a[u+"-range-start"]=n,a[u+"-range-end"]=o,a[u+"-range-hover"]=!n&&!o&&Ry(l,e,r,t)),s&&(a[u+"-hover"]=s.some(e=>My(l,d,t,e))),bt(u,{[u+"-selected"]:!c&&My(l,d,i,t)},a)}}))},month:function(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:o,disabledDate:a,onPickerValueChange:l,onModeChange:i}=e;var s=t+"-month-panel",[c]=l1(e,"month"),d=n.setMonth(o,0);let u=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]);var p=a?(e,t)=>{var e=n.setDate(e,1),r=n.setMonth(e,n.getMonth(e)+1),r=n.addDate(r,-1);return a(e,t)&&a(r,t)}:null,m=ft.createElement("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:()=>{i("year")},tabIndex:-1,className:t+"-year-btn"},zy(o,{locale:r,format:r.yearFormat,generateConfig:n}));return ft.createElement(o1.Provider,{value:c},ft.createElement("div",{className:s},ft.createElement(d1,{superOffset:e=>n.addYear(o,e),onChange:l,getStart:e=>n.setMonth(e,0),getEnd:e=>n.setMonth(e,11)},m),ft.createElement(s1,x1({},e,{disabledDate:p,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:(e,t)=>n.addMonth(e,t),getCellText:e=>{var t=n.getMonth(e);return r.monthFormat?zy(e,{locale:r,format:r.monthFormat,generateConfig:n}):u[t]},getCellClassName:()=>({[t+"-cell-in-view"]:!0})}))))},quarter:function(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:o,onPickerValueChange:a,onModeChange:l}=e;var i=t+"-quarter-panel",[s]=l1(e,"quarter"),c=n.setMonth(o,0),d=ft.createElement("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:()=>{l("year")},tabIndex:-1,className:t+"-year-btn"},zy(o,{locale:r,format:r.yearFormat,generateConfig:n}));return ft.createElement(o1.Provider,{value:s},ft.createElement("div",{className:i},ft.createElement(d1,{superOffset:e=>n.addYear(o,e),onChange:a,getStart:e=>n.setMonth(e,0),getEnd:e=>n.setMonth(e,11)},d),ft.createElement(s1,w1({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:c,getCellDate:(e,t)=>n.addMonth(e,3*t),getCellText:e=>zy(e,{locale:r,format:r.cellQuarterFormat,generateConfig:n}),getCellClassName:()=>({[t+"-cell-in-view"]:!0})}))))},year:function(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:o,disabledDate:a,onPickerValueChange:l,onModeChange:i}=e;var s=t+"-year-panel",[c]=l1(e,"year");let d=e=>{var t=10*Math.floor(n.getYear(e)/10);return n.setYear(e,t)};var u=e=>{e=d(e);return n.addYear(e,9)};let p=d(o),m=u(o);var f=n.addYear(p,-1),h=a?(e,t)=>{var e=n.setMonth(e,0),e=n.setDate(e,1),r=n.addYear(e,1),r=n.addDate(r,-1);return a(e,t)&&a(r,t)}:null,g=ft.createElement("button",{type:"button",key:"decade","aria-label":r.decadeSelect,onClick:()=>{i("decade")},tabIndex:-1,className:t+"-decade-btn"},zy(p,{locale:r,format:r.yearFormat,generateConfig:n}),"-",zy(m,{locale:r,format:r.yearFormat,generateConfig:n}));return ft.createElement(o1.Provider,{value:c},ft.createElement("div",{className:s},ft.createElement(d1,{superOffset:e=>n.addYear(o,10*e),onChange:l,getStart:d,getEnd:u},g),ft.createElement(s1,k1({},e,{disabledDate:h,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:(e,t)=>n.addYear(e,t),getCellText:e=>zy(e,{locale:r,format:r.cellYearFormat,generateConfig:n}),getCellClassName:e=>({[t+"-cell-in-view"]:wy(n,e,p)||wy(n,e,m)||Ry(n,p,m,e)})}))))},decade:function(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:o,disabledDate:a,onPickerValueChange:l}=e;var i=t+"-decade-panel",[s]=l1(e,"decade");let c=e=>{var t=100*Math.floor(n.getYear(e)/100);return n.setYear(e,t)};var d=e=>{e=c(e);return n.addYear(e,99)};let u=c(o),p=d(o);var m=n.addYear(u,-10),f=a?(e,t)=>{var e=n.setDate(e,1),e=n.setMonth(e,0),e=n.setYear(e,10*Math.floor(n.getYear(e)/10)),r=n.addYear(e,10),r=n.addDate(r,-1);return a(e,t)&&a(r,t)}:null,h=zy(u,{locale:r,format:r.yearFormat,generateConfig:n})+"-"+zy(p,{locale:r,format:r.yearFormat,generateConfig:n});return ft.createElement(o1.Provider,{value:s},ft.createElement("div",{className:i},ft.createElement(d1,{superOffset:e=>n.addYear(o,100*e),onChange:l,getStart:c,getEnd:d},h),ft.createElement(s1,C1({},e,{disabledDate:f,colNum:3,rowNum:4,baseDate:m,getCellDate:(e,t)=>n.addYear(e,10*t),getCellText:e=>{var t=r.cellYearFormat;return zy(e,{locale:r,format:t,generateConfig:n})+"-"+zy(n.addYear(e,9),{locale:r,format:t,generateConfig:n})},getCellClassName:e=>({[t+"-cell-in-view"]:xy(n,e,u)||xy(n,e,p)||Ry(n,u,p,e)})}))))},time:b1};function I1(e,t){let{classNames:r,styles:n,locale:o,generateConfig:a,direction:l,prefixCls:i,tabIndex:s=0,multiple:c,defaultValue:d,value:H,onChange:u,onSelect:A,defaultPickerValue:D,pickerValue:p,onPickerValueChange:L,mode:F,onPanelChange:W,picker:m="date",showTime:j,hoverValue:_,hoverRangeValue:f,cellRender:K,dateRender:V,monthCellRender:X,components:q={},hideHeader:h}=e,{prefixCls:G,classNames:g,styles:v}=ft.useContext(ey)||{};var b=G||i||"rc-picker";let y=ft.useRef(null),[C,Y,x,w]=(ft.useImperativeHandle(t,()=>({nativeElement:y.current})),by(e)),S=my(o,Y),k="date"===m&&j?"datetime":m;var t=ft.useMemo(()=>yy(k,x,w,C,S),[k,x,w,C,S]),E=a.getNow();let[N,U]=vt(m||"date",F);var I="date"===N&&t?"datetime":N;let Q=r1(a,o,k),[M,Z]=vt(d,H),$=ft.useMemo(()=>{var e=oy(M).filter(e=>e);return c?e:e.slice(0,1)},[M,c]),J=ht(r=>{Z(r),u&&(null===r||$.length!==r.length||$.some((e,t)=>!$y(a,o,e,r[t],k)))&&u?.(c?r:r[0])}),ee=ht(e=>{A?.(e),N===m&&(e=c?Q($,e):[e],J(e))}),[te,R]=vt(D||$[0]||E,p),P=(ft.useEffect(()=>{$[0]&&!p&&R($[0])},[$[0]]),(e,t)=>{W?.(e||p,t||N)}),z=(e,t=!1)=>{R(e),L?.(e),t&&P(e)},B=(e,t)=>{U(e),t&&z(t),P(t,e)};var E=ft.useMemo(()=>{let e,t;return Array.isArray(f)?[e,t]=f:e=f,e||t?(e=e||t,t=t||e,a.isAfter(e,t)?[t,e]:[e,t]):null},[f,a]),re=dy(K,V,X),I=q[I]||N1[I]||p1,ne=ft.useMemo(()=>({classNames:g?.popup??r??{},styles:v?.popup??n??{}}),[g,r,v,n]);let T=ft.useContext(i1);var oe=ft.useMemo(()=>({...T,hideHeader:h}),[T,h]),O=b+"-panel",e=ly(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return ft.createElement(n1.Provider,{value:ne},ft.createElement(i1.Provider,{value:oe},ft.createElement("div",{ref:y,tabIndex:s,className:bt(O,{[O+"-rtl"]:"rtl"===l})},ft.createElement(I,E1({},e,{showTime:t,prefixCls:b,locale:S,generateConfig:a,onModeChange:B,pickerValue:te,onPickerValueChange:e=>{z(e,!0)},value:$[0],onSelect:e=>{var t,r;ee(e),z(e),N!==m&&(t=[...r=["decade","year"],"month"],t=(r={quarter:[...r,"quarter"],week:[...t,"week"],date:[...t,"date"]}[m]||t).indexOf(N),r=r[t+1])&&B(r,e)},values:$,cellRender:re,hoverRangeValue:E,hoverValue:_})))))}var M1=ft.memo(ft.forwardRef(I1));function $1(){return($1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R1(e){let{picker:r,multiplePanel:t,pickerValue:n,onPickerValueChange:o,needConfirm:a,onSubmit:l,range:i,hoverValue:s}=e,{prefixCls:c,generateConfig:d}=ft.useContext(ey),u=ft.useCallback((e,t)=>Wy(d,r,e,t),[d,r]);var p=ft.useMemo(()=>u(n,1),[n,u]),m={onCellDblClick:()=>{a&&l()}},f="time"===r,e={...e,hoverValue:null,hoverRangeValue:null,hideHeader:f};return i?e.hoverRangeValue=s:e.hoverValue=s,t?ft.createElement("div",{className:c+"-panels"},ft.createElement(i1.Provider,{value:{...m,hideNext:!0}},ft.createElement(M1,e)),ft.createElement(i1.Provider,{value:{...m,hidePrev:!0}},ft.createElement(M1,$1({},e,{pickerValue:p,onPickerValueChange:e=>{o(u(e,-1))}})))):ft.createElement(i1.Provider,{value:{...m}},ft.createElement(M1,e))}function P1(e){return"function"==typeof e?e():e}function z1(e){let{prefixCls:t,presets:r,onClick:n,onHover:o}=e;return r.length?ft.createElement("div",{className:t+"-presets"},ft.createElement("ul",null,r.map(({label:e,value:t},r)=>ft.createElement("li",{key:r,onClick:()=>{n(P1(t))},onMouseEnter:()=>{o(P1(t))},onMouseLeave:()=>{o(null)}},e)))):null}function B1(){return(B1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T1(e){let{containerRef:t,panelRender:r,internalMode:n,picker:o,showNow:a,range:l,multiple:i,activeInfo:s=[0,0,0],presets:c,onPresetHover:d,onPresetSubmit:u,onFocus:p,onBlur:m,onPanelMouseDown:f,direction:h,value:g,onSelect:H,isInvalid:v,defaultOpenValue:b,onOk:A,onSubmit:D,classNames:L,styles:F}=e;var y=ft.useContext(ey).prefixCls,W=y+"-panel";let C="rtl"===h,x=ft.useRef(null),w=ft.useRef(null),[S,j]=ft.useState(0),[_,k]=ft.useState(0),[K,V]=ft.useState(0);let[E,N,I]=s,[X,M]=ft.useState(0);function $(e){return e.filter(e=>e)}ft.useEffect(()=>{M(10)},[E]),ft.useEffect(()=>{var e,t,r;l&&w.current&&(r=x.current?.offsetWidth||0,!(e=w.current.getBoundingClientRect()).height||e.right<0?M(e=>Math.max(0,e-1)):(t=(C?N-r:E)-e.left,V(t),S&&S<I?(t=C?e.right-(N-r+S):E+r-e.left-S,r=Math.max(0,t),k(r)):k(0)))},[X,C,S,E,N,I,l]);let R=ft.useMemo(()=>$(oy(g)),[g]),P="time"===o&&!R.length,z=ft.useMemo(()=>P?$([b]):R,[P,R,b]);var B=P?b:R,q=ft.useMemo(()=>!z.length||z.some(e=>v(e)),[z,v]);let T=ft.createElement("div",{className:y+"-panel-layout"},ft.createElement(z1,{prefixCls:y,presets:c,onClick:u,onHover:d}),ft.createElement("div",null,ft.createElement(R1,B1({},e,{value:B})),ft.createElement(t1,B1({},e,{showNow:!i&&a,invalid:q,onSubmit:()=>{P&&H(b),A(),D()}}))));r&&(T=r(T));B="marginLeft",e="marginRight";let O=ft.createElement("div",{ref:t,onMouseDown:f,tabIndex:-1,className:bt(W+"-container",y+`-${n}-panel-container`,L?.popup?.container),style:{[C?e:B]:_,[C?B:e]:"auto",...F?.popup?.container},onFocus:p,onBlur:m},T);return O=l?ft.createElement("div",{onMouseDown:f,ref:w,className:bt(y+"-range-wrapper",y+`-${o}-range-wrapper`)},ft.createElement("div",{ref:x,className:y+"-range-arrow",style:{left:K}}),ft.createElement(gr,{onResize:e=>{e.width&&j(e.width)}},O)):O}function O1(n,o){let{format:a,maskFormat:l,generateConfig:r,locale:i,preserveInvalidOnBlur:s,inputReadOnly:c,required:d,"aria-required":u,onSubmit:p,onFocus:m,onBlur:f,onInputChange:h,onInvalid:g,open:v,onOpenChange:b,onKeyDown:y,onChange:C,activeHelp:x,name:w,autoComplete:S,id:k,value:e,invalid:E,placeholder:N,disabled:I,activeIndex:M,allHelp:$,picker:R}=n,P=(e,t)=>{e=r.locale.parse(i.locale,e,[t]);return e&&r.isValidate(e)?e:null},z=a[0],t=ft.useCallback(e=>zy(e,{locale:i,format:z,generateConfig:r}),[i,r,z]),B=ft.useMemo(()=>e.map(t),[e,t]),T=ft.useMemo(()=>{var e="time"===R?8:10,t=("function"==typeof z?z(r.getNow()):z).length;return Math.max(e,t)+2},[z,R,r]),O=t=>{for(let e=0;e<a.length;e+=1){var r=a[e];if("string"==typeof r){r=P(t,r);if(r)return r}}return!1};return[r=>{function e(e){return void 0!==r?e[r]:e}let t={...Jt(n,{aria:!0,data:!0}),format:l,validateFormat:e=>!!O(e),preserveInvalidOnBlur:s,readOnly:c,required:d,"aria-required":u,name:w,autoComplete:S,size:T,id:e(k),value:e(B)||"",invalid:e(E),placeholder:e(N),active:M===r,helped:$||x&&M===r,disabled:e(I),onFocus:e=>{m(e,r)},onBlur:e=>{f(e,r)},onSubmit:p,onChange:e=>{h();var t=O(e);t?(g(!1,r),C(t,r)):g(!!e,r)},onHelp:()=>{b(!0,{index:r})},onKeyDown:e=>{let t=!1;if(y?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":b(!1,{index:r});break;case"Enter":v||b(!0)}},...o?.({valueTexts:B})};return Object.keys(t).forEach(e=>{void 0===t[e]&&delete t[e]}),t},t]}let H1=["onMouseEnter","onMouseLeave"];function A1(e){return ft.useMemo(()=>ly(e,H1),[e])}function D1(){return(D1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function L1({icon:e,...t}){var{prefixCls:r,classNames:n,styles:o}=ft.useContext(ey);return e?ft.createElement("span",D1({className:bt(r+"-suffix",n.suffix),style:o.suffix},t),e):null}function F1(){return(F1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W1({icon:e,onClear:t,...r}){var{prefixCls:n,classNames:o,styles:a,locale:l}=ft.useContext(ey);return ft.createElement("button",F1({},r,{type:"button","aria-label":l.clear,className:bt(n+"-clear",o.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}let j1=["YYYY","MM","DD","HH","mm","ss","SSS"];class _1{format;maskFormat;cells;maskCells;constructor(e){this.format=e;var t=j1.map(e=>`(${e})`).join("|"),t=new RegExp(t,"g"),t=(this.maskFormat=e.replace(t,e=>"顧".repeat(e.length)),new RegExp(`(${j1.join("|")})`)),e=(e.split(t)||[]).filter(e=>e);let o=0;this.cells=e.map(e=>{var t=j1.includes(e),r=o,n=o+e.length;return{text:e,mask:t,start:r,end:o=n}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){var{start:e,end:t}=this.maskCells[e]||{};return[e||0,t||0]}match(t){for(let e=0;e<this.maskFormat.length;e+=1){var r=this.maskFormat[e],n=t[e];if(!n||"顧"!==r&&r!==n)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(t){let r=Number.MAX_SAFE_INTEGER,n=0;for(let e=0;e<this.maskCells.length;e+=1){var{start:o,end:a}=this.maskCells[e];if(o<=t&&t<=a)return e;o=Math.min(Math.abs(t-o),Math.abs(t-a));o<r&&(r=o,n=e)}return n}}function K1(){return(K1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var V1=ft.forwardRef((e,r)=>{let{className:t,active:n,showActiveCls:o=!0,suffixIcon:a,format:i,validateFormat:l,onChange:s,onInput:H,helped:c,onHelp:d,onSubmit:u,onKeyDown:p,preserveInvalidOnBlur:m=!1,invalid:f,clearIcon:A,...D}=e,{value:h,onFocus:L,onBlur:F,onMouseUp:W}=e;var{prefixCls:e,input:j="input",classNames:_,styles:K}=ft.useContext(ey),e=e+"-input";let[g,v]=ft.useState(!1),[V,b]=ft.useState(h),[X,y]=ft.useState(""),[C,x]=ft.useState(null),[q,w]=ft.useState(null),S=V||"",k=(ft.useEffect(()=>{b(h)},[h]),ft.useRef(null)),E=ft.useRef(null),N=ft.useRef(!1),I=(ft.useImperativeHandle(r,()=>({nativeElement:k.current,inputElement:E.current,focus:e=>{E.current.focus(e)},blur:()=>{E.current.blur()}})),ft.useMemo(()=>new _1(i||""),[i])),[M,$]=ft.useMemo(()=>c?[0,0]:I.getSelection(C),[I,C,c]),R=e=>{e&&e!==i&&e!==h&&d()},P=ht(e=>{l(e)&&s(e),b(e),R(e)});let z=e=>{F(e)};{var[B,r,G=1]=[n,()=>{n||m||b(h)}];let t=ft.useRef(r);t.current=r,qe(()=>{if(!B){let e=$e(()=>{t.current(B)},G);return()=>{$e.cancel(e)}}t.current(B)},[B])}let T=e=>{"Enter"===e.key&&l(S)&&u(),p?.(e)};let O=ft.useRef(void 0);gt(()=>{if(g&&i&&!N.current){if(I.match(S))return E.current.setSelectionRange(M,$),O.current=$e(()=>{E.current.setSelectionRange(M,$)}),()=>{$e.cancel(O.current)};P(i)}},[I,i,g,S,C,M,$,q,P]);r=i?{onFocus:e=>{v(!0),x(0),y(""),L(e)},onBlur:e=>{v(!1),z(e)},onKeyDown:r=>{if(N.current)r.preventDefault();else{T(r);var n=r.key;let e=null,t=null;r=$-M;let a=i.slice(M,$);var o=t=>{x(e=>{e+=t,e=Math.max(e,0);return Math.min(e,I.size()-1)})},l=e=>{t=a;var[t,r,n]={YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[t],o=S.slice(M,$),o=Number(o);return isNaN(o)?String(n||(0<e?t:r)):(n=r-t+1,String(t+(n+(o+e)-t)%n))};switch(n){case"Backspace":case"Delete":e="",t=a;break;case"ArrowLeft":e="",o(-1);break;case"ArrowRight":e="",o(1);break;case"ArrowUp":e="",t=l(1);break;case"ArrowDown":e="",t=l(-1);break;default:isNaN(Number(n))||(e=X+n,t=e)}null!==e&&(y(e),e.length>=r)&&(o(1),y("")),null!==t&&(r=S.slice(0,M)+ny(t,r)+S.slice($),P(r.slice(0,i.length))),w({})}},onMouseDown:()=>{N.current=!0},onMouseUp:e=>{var t=e.target.selectionStart,t=I.getMaskCellIndex(t);x(t),w({}),W?.(e),N.current=!1},onPaste:e=>{N.current?e.preventDefault():(e=e.clipboardData.getData("text"),l(e)&&P(e))}}:{};return ft.createElement("div",{ref:k,className:bt(e,{[e+"-active"]:n&&o,[e+"-placeholder"]:c},t)},ft.createElement(j,K1({ref:E,"aria-invalid":f,autoComplete:"off"},D,{onKeyDown:T,onBlur:z},r,{value:S,onChange:e=>{i||(e=e.target.value,R(e),b(e),s(e))},className:_.input,style:K.input})),ft.createElement(L1,{icon:a}),A)});function X1(){return(X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q1(e,t){let{id:r,prefix:n,clearIcon:o,suffixIcon:a,separator:l="~",activeIndex:i,activeHelp:H,allHelp:A,focused:s,onFocus:D,onBlur:L,onKeyDown:F,locale:W,generateConfig:j,placeholder:c,className:d,style:u,onClick:p,onClear:m,value:f,onChange:_,onSubmit:K,onInputChange:V,format:X,maskFormat:q,preserveInvalidOnBlur:G,onInvalid:Y,disabled:h,invalid:g,inputReadOnly:U,direction:v,onOpenChange:Q,onActiveInfo:b,placement:Z,onMouseDown:y,required:J,"aria-required":ee,autoFocus:C,tabIndex:x,...w}=e;var S="rtl"===v,{prefixCls:k,classNames:E,styles:N}=ft.useContext(ey),I=ft.useMemo(()=>{var e;return"string"==typeof r?[r]:[(e=r||{}).start,e.end]},[r]);let M=ft.useRef(null),$=ft.useRef(null),R=ft.useRef(null),P=e=>[$,R][e]?.current;ft.useImperativeHandle(t,()=>({nativeElement:M.current,startInput:$.current.inputElement,endInput:R.current.inputElement,focus:r=>{if("object"==typeof r){let{index:e=0,...t}=r||{};P(e)?.focus(t)}else P(r??0)?.focus()},blur:()=>{P(0)?.blur(),P(1)?.blur()}}));var t=A1(w),z=ft.useMemo(()=>Array.isArray(c)?c:[c,c],[c]),[e]=O1({...e,id:I,placeholder:z});let[B,T]=ft.useState({position:"absolute",width:0}),O=ht(()=>{var e=P(i);if(e){let t=e.nativeElement.getBoundingClientRect();e=M.current.getBoundingClientRect();let r=t.left-e.left;T(e=>({...e,width:t.width,left:r})),b([t.left,t.right,e.width])}});ft.useEffect(()=>{O()},[i]);var I=o&&(f[0]&&!h[0]||f[1]&&!h[1]),z=C&&!h[0],te=C&&!z&&!h[1];return ft.createElement(gr,{onResize:O},ft.createElement("div",X1({},t,{className:bt(k,k+"-range",{[k+"-focused"]:s,[k+"-disabled"]:h.every(e=>e),[k+"-invalid"]:g.some(e=>e),[k+"-rtl"]:S},d),style:u,ref:M,onClick:p,onMouseDown:e=>{var t=e.target;t!==$.current.inputElement&&t!==R.current.inputElement&&e.preventDefault(),y?.(e)}}),n&&ft.createElement("div",{className:bt(k+"-prefix",E.prefix),style:N.prefix},n),ft.createElement(V1,X1({ref:$},e(0),{className:k+"-input-start",autoFocus:z,tabIndex:x,"date-range":"start"})),ft.createElement("div",{className:k+"-range-separator"},l),ft.createElement(V1,X1({ref:R},e(1),{className:k+"-input-end",autoFocus:te,tabIndex:x,"date-range":"end"})),ft.createElement("div",{className:k+"-active-bar",style:B}),ft.createElement(L1,{icon:a}),I&&ft.createElement(W1,{icon:o,onClear:m})))}var G1=ft.forwardRef(q1);function Y1(e,t){return(0,ft.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function U1(){return(U1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Q1(e,t){e=e??t;return Array.isArray(e)?e:[e,e]}function Z1(e){return 1===e?"end":"start"}function J1(r,e){let[t,n,H,o,A,a]=Oy(r,()=>{var{disabled:e,allowEmpty:t}=r;return{disabled:Q1(e,!1),allowEmpty:Q1(t,!1)}}),{prefixCls:D,rootClassName:L,styles:F,classNames:W,previewValue:j,defaultValue:_,value:K,needConfirm:V,onClear:X,onKeyDown:q,disabled:l,allowEmpty:G,disabledDate:Y,minDate:U,maxDate:Q,defaultOpen:Z,open:J,onOpenChange:ee,locale:i,generateConfig:s,picker:c,showNow:te,showToday:re,showTime:d,mode:ne,onPanelChange:oe,onCalendarChange:ae,onOk:le,defaultPickerValue:ie,pickerValue:se,onPickerValueChange:ce,inputReadOnly:de,suffixIcon:ue,onFocus:pe,onBlur:me,presets:fe,ranges:he,components:u,cellRender:ge,dateRender:ve,monthCellRender:be,onClick:ye}=t,p=Ly(e),m=ft.useRef(null),[f,h]=Y1(W,F),[g,Ce]=Dy(J,Z,l,ee),v=(e,t)=>{!l.some(e=>!e)&&e||Ce(e,t)},[xe,we,b,Se,ke]=Gy(s,i,o,!0,!1,_,K,ae,le),y=b();let[C,Ee,Ne]=Ay(ht(e=>Hy(e,[p.current.nativeElement,m.current])),(e,t)=>{pe?.(t,{range:Z1(e)})},(e,t)=>{me?.(t,{range:Z1(e)})},()=>{v(!1)}),[Ie,Me,$e]=Yy(t,xe,we,b,Se,l,o,a);var e=ht((e,t)=>{Se(ay(b(),e,t))}),x=ht((e,t)=>{Ie(e,t),t&&v(!1,{force:!0})});let[Re,w,Pe,S,k,ze]=Uy(l.filter(e=>!e).length,V,G,b,e,x,$e);{var E=Re,Be=Pe,N=p,Te=m,Oe=v;let e=ht(()=>{Oe(!0)});ft.useEffect(()=>{null!==E&&Be&&(e(),N.current?.focus(E))},[E,Be,e]),gt(()=>{if(null!==E){var e=[N.current?.startInput,N.current?.endInput];let r=(e[E]?.getRootNode())?.activeElement??document.activeElement;Hy(r,[Te.current])||e.some((e,t)=>t!==E&&Hy(r,[e]))&&e[E]?.focus()}})}gt(e=>{e||g||k(Re??w,"popupClose")},[g]);e=ft.useMemo(()=>{if(!d)return null;let n=d.disabledTime;var e=n?e=>{var t=Z1(w),r=sy(y,S,w);return n(e,t,{from:r})}:void 0;return{...d,disabledTime:e}},[d,w,y,S]);let[I,He]=vt([c,c],ne);x=I[w]||c;let M="date"===x&&e?"datetime":x;var $,R,P,Ae,z,B,De,Le=M===c&&"time"!==M,Fe=Qy(c,x,te,re,!0),We=($=y,R=l,P=w,Ae=S,z=s,B=i,De=Y,(e,t)=>{var[r,n]=$,t={...t,from:sy($,Ae,P)};return!(1!==P||!R[0]||!r||$y(z,B,r,e,t.type)||!z.isAfter(r,e))||!(0!==P||!R[1]||!n||$y(z,B,n,e,t.type)||!z.isAfter(e,n))||De?.(e,t)}),[je,_e]=uy(y,a,G),[Ke,Ve]=_y(s,i,y,I,g,C,w,n,Le,ie,se,e?.defaultOpenValue,ce,U,Q);let Xe=ht((e,t,r)=>{t=ay(I,w,t);t[0]===I[0]&&t[1]===I[1]||He(t),oe&&!1!==r&&(r=[...y],e&&(r[w]=e),oe(r,t))}),T=(e,t="confirm")=>{k(w,t,e??void 0)};let[qe,Ge]=ft.useState(null),[O,Ye]=ft.useState(null);var Ue=ft.useMemo(()=>O||y,[y,O]),[Qe,Ze]=(ft.useEffect(()=>{g||Ye(null)},[g]),ft.useState([0,0,0]));let Je=(e,t)=>{"hover"===j&&(Ye(e),Ge(t))};var et=Fy(fe,he),tt=dy(ge,ve,be,Z1(w)),rt=y[w]||null,nt=ht(e=>a(e,{activeIndex:w})),ot=ft.useMemo(()=>{var e=Jt(t,!1);return at(t,[...Object.keys(e),"onChange","onCalendarChange","onClear","style","className","onPanelChange","disabledTime","classNames","styles"])},[t]),ot=ft.createElement(T1,U1({containerRef:m},ot,{showNow:Fe,showTime:e,range:!0,multiplePanel:Le,activeInfo:Qe,disabledDate:We,onFocus:e=>{v(!0),Ee(w,"panel",e)},onBlur:e=>Ne(w,"panel",e),picker:c,mode:x,internalMode:M,onPanelChange:Xe,format:A,value:rt,isInvalid:nt,onChange:null,onSelect:e=>{var t=!H&&n===M;k(w,t?"panel-final":"panel-intermediate",e)},pickerValue:Ke,defaultOpenValue:oy(d?.defaultOpenValue)[w],onPickerValueChange:Ve,hoverValue:Ue,onHover:e=>{var t;Je(e?(e=e,t=w,ay(y,t,e)):null,"cell")},needConfirm:V,onSubmit:e=>T(e,"confirm"),onOk:ke,presets:et,onPresetHover:e=>{Je(e,"preset")},onPresetSubmit:e=>{Me(e)&&v(!1,{force:!0})},onNow:e=>{T(e)},cellRender:tt,classNames:f,styles:h})),Fe=ft.useMemo(()=>({prefixCls:D,locale:i,generateConfig:s,button:u.button,input:u.input,classNames:f,styles:h}),[D,i,s,u.button,u.input,f,h]);return gt(()=>{g&&void 0!==w&&Xe(null,c,!1)},[g,w,c]),ft.createElement(ey.Provider,{value:Fe},ft.createElement(ry,U1({},cy(t),{popupElement:ot,popupStyle:h.popup.root,popupClassName:bt(L,f.popup.root),visible:g,onClose:()=>{v(!1)},range:!0}),ft.createElement(G1,U1({},t,{ref:p,className:bt(t.className,L,f.root),style:{...h.root,...t.style},suffixIcon:ue,activeIndex:C||g?w:null,activeHelp:!!O,allHelp:!!O&&"preset"===qe,focused:C,onFocus:(e,t)=>{k(t,"field-switch"),v(!0,{inherit:!0}),Ee(t,"input",e)},onBlur:(e,t)=>{Ne(t,"input",e)},onKeyDown:(e,t)=>{"Tab"===e.key?T(null,"keyboard-submit-weak"):"Escape"===e.key&&(k(w,"esc"),v(!1)),q?.(e,t)},onSubmit:()=>T(null,"keyboard-submit"),value:Ue,maskFormat:A,onChange:(e,t)=>{k(t,"input",e)},onInputChange:()=>{k(w,"input")},format:o,inputReadOnly:de,disabled:l,open:g,onOpenChange:v,onClick:e=>{var t=e.target.getRootNode();p.current.nativeElement.contains(t.activeElement??document.activeElement)||0<=(t=l.findIndex(e=>!e))&&p.current.focus({index:t}),v(!0),ye?.(e)},onClear:()=>{ze(),Me(null),v(!1,{force:!0}),X?.()},invalid:je,onInvalid:_e,onActiveInfo:Ze}))))}var eC=ft.forwardRef(J1);function tC(e){let{prefixCls:t,value:r,onRemove:o,removeIcon:n="×",formatDate:a,disabled:l,maxTagCount:i,tagRender:s,placeholder:c}=e;let d=t+"-selection";e=d+"-overflow";function u(e,t){return ft.createElement("span",{className:bt(d+"-item"),title:"string"==typeof e?e:null},ft.createElement("span",{className:d+"-item-content"},e),!l&&t&&ft.createElement("span",{onMouseDown:e=>{e.preventDefault()},onClick:t,className:d+"-item-remove"},n))}return ft.createElement("div",{className:t+"-selector"},ft.createElement(Pf,{prefixCls:e,data:r,renderItem:function(t){var e=a(t),r=!l,n=e=>{e&&e.stopPropagation(),l||o(t)};return s?s({label:e,value:t,disabled:!!l,closable:r,onClose:n}):u(e,n)},renderRest:function(e){return u(`+ ${e.length} ...`)},itemKey:e=>a(e),maxCount:i}),!r.length&&ft.createElement("span",{className:t+"-selection-placeholder"},c))}function rC(){return(rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nC(e,t){let{id:H,open:r,prefix:n,clearIcon:o,suffixIcon:a,activeHelp:A,allHelp:D,focused:l,onFocus:L,onBlur:F,onKeyDown:W,locale:i,generateConfig:s,placeholder:c,className:d,style:u,onClick:p,onClear:m,internalPicker:f,value:h,onChange:g,onSubmit:j,onInputChange:_,multiple:v,maxTagCount:b,tagRender:y,format:K,maskFormat:V,preserveInvalidOnBlur:X,onInvalid:q,disabled:C,invalid:x,inputReadOnly:G,direction:w,onOpenChange:Y,onMouseDown:S,required:U,"aria-required":Q,autoFocus:k,tabIndex:E,removeIcon:N,...I}=e;var M="rtl"===w,{prefixCls:$,classNames:R,styles:P}=ft.useContext(ey);let z=ft.useRef(null),B=ft.useRef(null);ft.useImperativeHandle(t,()=>({nativeElement:z.current,focus:e=>{B.current?.focus(e)},blur:()=>{B.current?.blur()}}));var t=A1(I),[e,T]=O1({...e,onChange:e=>{g([e],"input")}},({valueTexts:e})=>({value:e[0]||"",active:l})),O=!(!o||!h.length||C),T=v?ft.createElement(ft.Fragment,null,ft.createElement(tC,{prefixCls:$,value:h,onRemove:t=>{var e=h.filter(e=>e&&!$y(s,i,e,t,f));g(e,r?"input":"remove")},formatDate:T,maxTagCount:b,tagRender:y,disabled:C,removeIcon:N,placeholder:c}),ft.createElement("input",{className:$+"-multiple-input",value:h.map(T).join(","),ref:B,readOnly:!0,autoFocus:k,tabIndex:E}),ft.createElement(L1,{icon:a}),O&&ft.createElement(W1,{icon:o,onClear:m})):ft.createElement(V1,rC({ref:B},e(),{autoFocus:k,tabIndex:E,suffixIcon:a,clearIcon:O&&ft.createElement(W1,{icon:o,onClear:m}),showActiveCls:!1}));return ft.createElement("div",rC({},t,{className:bt($,{[$+"-multiple"]:v,[$+"-focused"]:l,[$+"-disabled"]:C,[$+"-invalid"]:x,[$+"-rtl"]:M},d),style:u,ref:z,onClick:p,onMouseDown:e=>{var t=e.target;t!==B.current?.inputElement&&e.preventDefault(),S?.(e)}}),n&&ft.createElement("div",{className:bt($+"-prefix",R.prefix),style:P.prefix},n),T)}var oC=ft.forwardRef(nC);function aC(){return(aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lC(e,t){let[r,n,H,o,a,l]=Oy(e),{prefixCls:i,rootClassName:s,styles:A,classNames:D,previewValue:L,order:F,defaultValue:W,value:j,needConfirm:c,onChange:d,onClear:_,onKeyDown:K,disabled:u,disabledDate:V,minDate:X,maxDate:q,defaultOpen:G,open:Y,onOpenChange:U,locale:p,generateConfig:m,picker:f,showNow:Q,showToday:Z,showTime:h,mode:J,onPanelChange:g,onCalendarChange:v,onOk:ee,multiple:b,defaultPickerValue:te,pickerValue:re,onPickerValueChange:y,inputReadOnly:ne,suffixIcon:oe,removeIcon:ae,tagRender:le,onFocus:ie,onBlur:se,presets:ce,components:C,cellRender:de,dateRender:ue,monthCellRender:pe,onClick:me}=r,x=Ly(t),fe=ft.useRef(null);function w(e){return null===e?null:b?e:e[0]}let he=r1(m,p,n),[S,k]=Y1(D,A),[E,N]=Dy(Y,G,[u],U);let[ge,ve,I,be,ye]=Gy(m,p,o,!1,F,W,j,(e,t,r)=>{v&&(delete(r={...r}).range,v(w(e),w(t),r))},e=>{ee?.(w(e))}),M=I(),[Ce,xe,we]=Ay(ht(e=>Hy(e,[x.current.nativeElement,fe.current])),(e,t)=>{ie?.(t,{})},(e,t)=>{se?.(t,{})},()=>{N(!1)}),[$,Se]=vt(f,J),R="date"===$&&h?"datetime":$;e=Qy(f,$,Q,Z),t=d&&((e,t)=>{d(w(e),w(t))});let[,P,ke]=Yy({...r,onChange:t},ge,ve,I,be,[],o,l),[,z,,,B,Ee]=Uy(1,c,[!1],ht(()=>{var e=I();return[e.length?e:null]}),ht((e,t)=>{be(t)}),ht((e,t)=>{t&&(P(I()),N(!1,{force:!0}))}),ht(()=>{ke()})),[Ne,Ie]=(gt(e=>{e||E||B(0,"popupClose")},[E]),uy(M,l));var t=ft.useMemo(()=>Ne.some(e=>e),[Ne]),[Me,$e]=_y(m,p,M,[$],E,!1,z,n,!1,te,re,oy(h?.defaultOpenValue),(e,t)=>{y&&(delete(t={...t,mode:t.mode[0]}).range,y(e[0],t))},X,q);let Re=ht((e,t,r)=>{Se(t),g&&!1!==r&&(r=e||M[M.length-1],g(r,t))}),T=(e="confirm")=>{B(0,e)};let[Pe,ze]=ft.useState(null),[O,Be]=ft.useState(null);var Te=ft.useMemo(()=>{var e=[O,...M].filter(e=>e);return b?e:e.slice(0,1)},[M,O,b]),Oe=ft.useMemo(()=>!b&&O?[O]:M.filter(e=>e),[M,O,b]);ft.useEffect(()=>{E||Be(null)},[E]);let He=(e,t)=>{"hover"===L&&(Be(e),ze(t))};var Ae=Fy(ce);let De=e=>{e=b?he(I(),e):[e];P(e)&&!b&&N(!1,{force:!0})};var Le=dy(de,ue,pe),Fe=ft.useMemo(()=>{var e=Jt(r,!1);return{...at(r,[...Object.keys(e),"onChange","onCalendarChange","onClear","style","className","onPanelChange","classNames","styles"]),multiple:r.multiple}},[r]),Fe=ft.createElement(T1,aC({containerRef:fe},Fe,{showNow:e,showTime:h,disabledDate:V,onFocus:e=>{N(!0),xe(0,"panel",e)},onBlur:e=>we(0,"panel",e),picker:f,mode:$,internalMode:R,onPanelChange:Re,format:a,value:M,isInvalid:l,onChange:null,onSelect:e=>{var t;b&&R!==f||(e=b?he(I(),e):[e],t=!H&&n===R,B(0,t?"panel-final":"panel-intermediate",e))},pickerValue:Me,defaultOpenValue:h?.defaultOpenValue,onPickerValueChange:$e,hoverValue:Te,onHover:e=>{He(e,"cell")},needConfirm:c,onSubmit:()=>T("confirm"),onOk:ye,presets:Ae,onPresetHover:e=>{He(e,"preset")},onPresetSubmit:De,onNow:e=>{De(e)},cellRender:Le,classNames:S,styles:k})),e=ft.useMemo(()=>({prefixCls:i,locale:p,generateConfig:m,button:C.button,input:C.input,classNames:S,styles:k}),[i,p,m,C.button,C.input,S,k]);return gt(()=>{E&&void 0!==z&&Re(null,f,!1)},[E,z,f]),ft.createElement(ey.Provider,{value:e},ft.createElement(ry,aC({},cy(r),{popupElement:Fe,popupStyle:k.popup.root,popupClassName:bt(s,S.popup.root),visible:E,onClose:()=>{N(!1)}}),ft.createElement(oC,aC({},r,{ref:x,className:bt(r.className,s,S.root),style:{...k.root,...r.style},suffixIcon:oe,removeIcon:ae,tagRender:le,activeHelp:!!O,allHelp:!!O&&"preset"===Pe,focused:Ce,onFocus:e=>{B(0,"field-switch"),N(!0,{inherit:!0}),xe(0,"input",e)},onBlur:e=>{we(0,"input",e)},onKeyDown:(e,t)=>{"Tab"===e.key?T("keyboard-submit-weak"):"Escape"===e.key&&(B(0,"esc"),N(!1)),K?.(e,t)},onSubmit:()=>T("keyboard-submit"),value:Oe,maskFormat:a,onChange:(e,t="input")=>{B(0,t,e)},onInputChange:()=>{B(0,"input")},internalPicker:n,format:o,inputReadOnly:ne,disabled:u,open:E,onOpenChange:N,onClick:e=>{u||x.current.nativeElement.contains(document.activeElement)||x.current.focus(),N(!0),me?.(e)},onClear:()=>{Ee(),P(null),N(!1,{force:!0}),x.current.focus(),_?.()},invalid:t,onInvalid:e=>{Ie(e,0)}}))))}var iC=ft.forwardRef(lC);let sC=["parentNode"],cC="form_item";function dC(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function uC(e,t){if(e.length)return e=e.join("_"),t?t+"_"+e:sC.includes(e)?cC+"_"+e:e}function pC(e,t,r,n,o,a){let l=n;return void 0!==a?l=a:r.validating?l="validating":e.length?l="error":t.length?l="warning":(r.touched||o&&r.validated)&&(l="success"),l}function mC(e){return dC(e).join("_")}function fC(e,t){var r=xt(t.getFieldInstance(e));return r||((r=uC(dC(e),t.__INTERNAL__.name))?document.getElementById(r):void 0)}function hC(e){let[t]=qu(),n=ft.useRef({}),o=ft.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:r=>e=>{var t=mC(r);e?n.current[t]=e:delete n.current[t]}},scrollToField:(e,t={})=>{let{focus:r,...n}=t;t=fC(e,o);t&&(el(t,{scrollMode:"if-needed",block:"nearest",...n}),r)&&o.focusField(e)},focusField:e=>{var t=o.getFieldInstance(e);Je(t?.focus)?t.focus():fC(e,o)?.focus?.()},getFieldInstance:e=>{e=mC(e);return n.current[e]}},[e,t]);return[o]}c=ft.createContext(void 0);let gC=c.Provider;var vC=c;let bC=ft.createContext(void 0),yC=bC.Provider;function CC(){return(CC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xC=(0,ft.forwardRef)((t,e)=>{let{prefixCls:r="rc-checkbox",className:n,style:o,checked:a,disabled:l,defaultChecked:i=!1,type:s="checkbox",title:c,onChange:d,...u}=t,p=(0,ft.useRef)(null),m=(0,ft.useRef)(null),[f,h]=vt(i,a);(0,ft.useImperativeHandle)(e,()=>({focus:e=>{p.current?.focus(e)},blur:()=>{p.current?.blur()},input:p.current,nativeElement:m.current}));e=bt(r,n,{[r+"-checked"]:f,[r+"-disabled"]:l});return ft.createElement("span",{className:e,title:c,style:o,ref:m},ft.createElement("input",CC({},u,{className:r+"-input",ref:p,onChange:e=>{l||("checked"in t||h(e.target.checked),d?.({target:{...t,type:s,checked:e.target.checked},stopPropagation(){e.stopPropagation()},preventDefault(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:l,checked:!!f,type:s})))});function wC(t){let r=Re().useRef(null),n=()=>{$e.cancel(r.current),r.current=null};return[()=>{n(),r.current=$e(()=>{r.current=null})},e=>{r.current&&(e.stopPropagation(),n()),t?.(e)}]}var SC=Be("Radio",e=>{var{controlOutline:t,controlOutlineWidth:r}=e,r=`0 0 0 ${(0,Qe.unit)(r)} `+t,t=ze(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[(e=>{let{componentCls:t,antCls:r,lineWidth:n,borderRadius:o,borderRadiusLG:a,borderRadiusSM:l,calc:i}=e;var s=t+"-group";let c=t+"-button-wrapper",d=r+"-badge";var u=e=>({["> "+d]:{width:"auto"},[`> ${d} > `+c]:{width:"100%"},[`> ${d}:not(:last-child)`]:{marginBlockEnd:i(n).mul(-1).equal()},[`> ${d} > ${c}:not(:last-child)`]:{marginBlockEnd:0},[`> ${d}:first-child > `+c]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${d}:last-child > `+c]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${d}:not(:first-child):not(:last-child) > `+c]:{borderRadius:0},[`> ${d}:first-child:last-child > `+c]:{borderRadius:e}});return{[s]:{...F(e),display:"inline-block",fontSize:0,[`&${s}-rtl`]:{direction:"rtl"},[`&${s}-block`]:{display:"flex"},[r+`-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`&:has(> ${c}, > ${d} > ${c})`]:{rowGap:0},[t+"-wrapper"]:{marginInlineEnd:0},...u(o),[`&${s}-large`]:{...u(a)},[`&${s}-small`]:{...u(l)}}}}})(t),(e=>{var{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,colorPrimaryHover:o,radioSize:a,motionDurationSlow:l,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:d,lineWidth:u,colorBgContainerDisabled:p,colorTextDisabled:m,paddingXS:f,dotColorDisabled:h,dotSize:g,lineType:v,radioColor:b,radioBgColor:y}=e;return{[t+"-wrapper"]:{...F(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[t]:{...F(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:c,border:(0,Qe.unit)(u)+` ${v} `+d,borderRadius:"50%",transition:"all "+i,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:b,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${l} `+s},[t+"-input"]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:dn(e)},[`&:hover:not(${t}-wrapper-disabled) `+t]:{borderColor:n},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[t+"-checked"]:{backgroundColor:y,borderColor:n,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[t+"-disabled"]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:p,borderColor:d,"&::after":{backgroundColor:h}},[t+"-disabled + span"]:{color:m,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}})(t),(e=>{let{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:o,lineType:a,colorBorder:l,motionDurationMid:i,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:u,controlHeightLG:p,controlHeightSM:m,paddingXS:f,borderRadius:h,borderRadiusSM:g,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:y,colorTextDisabled:C,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:S,colorPrimary:k,colorPrimaryHover:E,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:$,calc:R}=e;return{[n+"-button-wrapper"]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:(0,Qe.unit)(R(r).sub(R(o).mul(2)).equal()),background:d,border:(0,Qe.unit)(o)+` ${a} `+l,borderBlockStartWidth:R(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(e=>e+" "+i).join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:R(o).mul(-1).equal()},"&:first-child":{borderInlineStart:(0,Qe.unit)(o)+` ${a} `+l,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[n+"-group-large &"]:{height:p,fontSize:u,lineHeight:(0,Qe.unit)(R(p).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[n+"-group-small &"]:{height:m,paddingInline:R(f).sub(o).equal(),paddingBlock:0,lineHeight:(0,Qe.unit)(R(m).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[n+"-group-vertical > &"]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:R(o).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[n+`-group-vertical${n}-group-large > &`]:{"&:first-child":{borderStartStartRadius:v,borderStartEndRadius:v},"&:last-child":{borderEndStartRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v}},[n+`-group-vertical${n}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":dn(e),[n+", input[type='checkbox'], input[type='radio']"]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:b,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[n+`-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:y,background:I,borderColor:I,"&:hover":{color:y,background:M,borderColor:M},"&:active":{color:y,background:$,borderColor:$}},"&-disabled":{color:C,backgroundColor:x,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:x,borderColor:l}},[`&-disabled${n}-button-wrapper-checked`]:{color:S,backgroundColor:w,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}})(t)]},e=>{var{wireframe:e,padding:t,marginXS:r,lineWidth:n,fontSizeLG:o,colorText:a,colorBgContainer:l,colorTextDisabled:i,controlItemBgActiveDisabled:s,colorTextLightSolid:c,colorPrimary:d,colorPrimaryHover:u,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:o,dotSize:e?o-8:o-2*(4+n),dotColorDisabled:i,buttonSolidCheckedColor:c,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:u,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:i,buttonPaddingInline:t-n,wrapperMarginInlineEnd:r,radioColor:e?d:m,radioBgColor:e?l:d}},{unitless:{radioSize:!0,dotSize:!0}}),kC=ft.forwardRef((t,e)=>{let r=ft.useContext(vC);var n=ft.useContext(bC),{getPrefixCls:o,direction:a,className:l,style:i,classNames:s,styles:c}=Fe("radio"),d=ft.useRef(null),e=Ne(e,d),d=ft.useContext(ap).isFormItemInput;let{prefixCls:u,className:p,rootClassName:m,children:f,style:h,title:g,classNames:v,styles:b,checked:y,...C}=t;var o=o("radio",u),n="button"===(r?.optionType||n),x=n?o+"-button":o,w=nl(o),[o,S]=SC(o,w),k={...C},E=ft.useContext($s),N="checked"in t;let I=y;r&&(k.name=r.name,k.onChange=e=>{t.onChange?.(e),r?.onChange?.(e)},I=t.value===r.value,k.disabled=k.disabled??r.disabled),(N||r)&&(k.checked=I),k.disabled=k.disabled??E;var N={...t,...k,checked:I},E=We(i),i=We(h),[s,c]=je([s,v],[c,E,b,i],{props:N}),E=bt(x+"-wrapper",{[x+"-wrapper-checked"]:I,[x+"-wrapper-disabled"]:k.disabled,[x+"-wrapper-rtl"]:"rtl"===a,[x+"-wrapper-in-form-item"]:d,[x+"-wrapper-block"]:!!r?.block},l,p,m,s.root,o,S,w),[i,N]=wC(k.onClick);return ft.createElement(pc,{component:"Radio",disabled:k.disabled},ft.createElement("label",{className:E,style:c.root,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,title:g,onClick:i},ft.createElement(xC,{...k,className:bt(s.icon,{[ac]:!n}),style:c.icon,type:"radio",prefixCls:x,ref:e,onClick:N}),Se(f)?ft.createElement("span",{className:bt(x+"-label",s.label),style:c.label},f):null))}),i=ft.forwardRef((n,e)=>{var{getPrefixCls:t,direction:r}=ft.useContext(Ue),o=ft.useContext(ap).name,o=kt(mC(o));let{prefixCls:a,className:l,rootClassName:i,options:s,buttonStyle:c="outline",disabled:d,children:u,size:p,style:m,id:f,optionType:h,name:g=o,defaultValue:v,value:b,block:y=!1,onChange:C,onMouseEnter:x,onMouseLeave:w,onFocus:S,onBlur:k,orientation:E,vertical:N,role:I="radiogroup"}=n,[M,$]=vt(v,b),R=ft.useCallback(e=>{var t=M,r=e.target.value;"value"in n||$(r),r!==t&&C?.(e)},[M,$,C]),P=t("radio",a);var o=P+"-group",t=nl(P),[z,B]=SC(P,t);let T=u;s&&0<s.length&&(T=s.map(e=>"string"==typeof e||Ma(e)?ft.createElement(kC,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:M===e},e):ft.createElement(kC,{key:"radio-group-value-options-"+e.value,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:M===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required,onChange:e.onChange},e.label)));var O=mc(p),[,H]=hc(E,N),O=bt(o,o+"-"+c,{[o+"-large"]:"large"===O,[o+"-small"]:"small"===O,[o+"-rtl"]:"rtl"===r,[o+"-block"]:y},l,i,z,B,t),r=ft.useMemo(()=>({onChange:R,value:M,disabled:d,name:g,optionType:h,block:y}),[R,M,d,g,h,y]);return ft.createElement("div",{...Jt(n,{aria:!0,data:!0}),role:I,className:bt(O,{[P+"-group-vertical"]:H}),style:m,onMouseEnter:x,onMouseLeave:w,onFocus:S,onBlur:k,id:f,ref:e},ft.createElement(gC,{value:r},T))}),EC=ft.memo(i),NC=ft.forwardRef((e,t)=>{var r=ft.useContext(Ue).getPrefixCls;let{prefixCls:n,...o}=e;e=r("radio",n);return ft.createElement(yC,{value:"button"},ft.createElement(kC,{prefixCls:e,...o,type:"radio",ref:t}))});let IC=10,MC=20;function $C(e){let{fullscreen:t,validRange:a,generateConfig:l,locale:r,prefixCls:n,value:i,onChange:s,divRef:o}=e;e=l.getYear(i||l.getNow());let c=e-IC,d=c+MC;a&&(c=l.getYear(a[0]),d=l.getYear(a[1])+1);var u=r&&"年"===r.year?"年":"",p=[];for(let e=c;e<d;e++)p.push({label:e+u,value:e});return ft.createElement(gg,{size:t?void 0:"small",options:p,value:e,className:n+"-year-select",onChange:e=>{let t=l.setYear(i,e);var r,n,o;a&&([e,r]=a,n=l.getYear(t),o=l.getMonth(t),n===l.getYear(r)&&o>l.getMonth(r)&&(t=l.setMonth(t,l.getMonth(r))),n===l.getYear(e))&&o<l.getMonth(e)&&(t=l.setMonth(t,l.getMonth(e))),s(t)},getPopupContainer:()=>o.current})}function RC(e){let{prefixCls:t,fullscreen:r,validRange:n,value:o,generateConfig:a,locale:l,onChange:i,divRef:s}=e;var c,d,u,e=a.getMonth(o||a.getNow());let p=0,m=11;n&&([c,d]=n,u=a.getYear(o),a.getYear(d)===u&&(m=a.getMonth(d)),a.getYear(c)===u)&&(p=a.getMonth(c));var f=l.shortMonths||a.locale.getShortMonths(l.locale),h=[];for(let e=p;e<=m;e+=1)h.push({label:f[e],value:e});return ft.createElement(gg,{size:r?void 0:"small",className:t+"-month-select",value:e,options:h,onChange:e=>{i(a.setMonth(o,e))},getPopupContainer:()=>s.current})}function PC(e){let{prefixCls:t,locale:r,mode:n,fullscreen:o,onModeChange:a}=e;return ft.createElement(EC,{onChange:({target:{value:e}})=>{a(e)},value:n,size:o?void 0:"small",className:t+"-mode-switch"},ft.createElement(NC,{value:"month"},r.month),ft.createElement(NC,{value:"year"},r.year))}var zC=function(e){let{prefixCls:t,fullscreen:r,mode:n,onChange:o,onModeChange:a,className:l,style:i}=e;var s=ft.useRef(null);let c=(0,ft.useContext)(ap);var d=(0,ft.useMemo)(()=>({...c,isFormItemInput:!1}),[c]),e={...e,fullscreen:r,divRef:s};return ft.createElement("div",{className:bt(t+"-header",l),style:i,ref:s},ft.createElement(ap.Provider,{value:d},ft.createElement($C,{...e,onChange:e=>{o(e,"year")}}),"month"===n&&ft.createElement(RC,{...e,onChange:e=>{o(e,"month")}})),ft.createElement(PC,{...e,onModeChange:a}))},BC=t(3188);let TC=e=>{var{pickerCellCls:e,pickerCellInnerCls:t,cellHeight:r,borderRadiusSM:n,motionDurationMid:o,cellHoverBg:a,lineWidth:l,lineType:i,colorPrimary:s,cellActiveWithRangeBg:c,colorTextLightSolid:d,colorTextDisabled:u,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[t]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:(0,Qe.unit)(r),borderRadius:n,transition:"background-color "+o},[`&:hover:not(${e}-in-view):not(${e}-disabled),
&:hover:not(${e}-selected):not(${e}-range-start):not(${e}-range-end):not(${e}-disabled)`]:{[t]:{background:a}},[`&-in-view${e}-today `+t]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:(0,Qe.unit)(l)+` ${i} `+s,borderRadius:n,content:'""'}},[`&-in-view${e}-in-range,
&-in-view${e}-range-start,
&-in-view${e}-range-end`]:{position:"relative",[`&:not(${e}-disabled):before`]:{background:c}},[`&-in-view${e}-selected,
&-in-view${e}-range-start,
&-in-view${e}-range-end`]:{[`&:not(${e}-disabled) `+t]:{color:d,background:s},[`&${e}-disabled `+t]:{background:m}},[`&-in-view${e}-range-start:not(${e}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${e}-range-end:not(${e}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${e}-range-start:not(${e}-range-end) `+t]:{borderStartStartRadius:n,borderEndStartRadius:n,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${e}-range-end:not(${e}-range-start) `+t]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n},"&-disabled":{color:u,cursor:"not-allowed",[t]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${e}-today ${t}::before`]:{borderColor:u}}},OC=e=>{var{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:l,paddingSM:i,paddingXS:s,paddingXXS:c,colorBgContainer:d,lineWidth:u,lineType:p,borderRadiusLG:m,colorPrimary:f,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:C,colorIconHover:x,fontWeightStrong:w,cellHeight:S,pickerCellPaddingVertical:k,colorTextDisabled:E,colorText:N,fontSize:H,motionDurationSlow:A,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:L,borderRadiusSM:I,colorTextLightSolid:M,cellHoverBg:$,timeColumnHeight:F,timeColumnWidth:R,timeCellHeight:P,controlItemBgActive:z,marginXXS:B,pickerDatePanelPaddingHorizontal:T,pickerControlIconMargin:O}=e;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:m,outline:"none","&-focused":{borderColor:f},"&-rtl":{[t+`-prev-icon,
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[t+`-next-icon,
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[t+"-time-panel"]:{[t+"-content"]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:"flex",flexDirection:"column",width:e.calc(l).mul(7).add(e.calc(T).mul(2)).equal()},"&-header":{display:"flex",padding:"0 "+(0,Qe.unit)(s),color:h,borderBottom:(0,Qe.unit)(u)+` ${p} `+g,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:(0,Qe.unit)(y),background:"transparent",border:0,cursor:"pointer",transition:"color "+C,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:H,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:(0,Qe.unit)(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:f}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:"absolute",top:O,insetInlineStart:O,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc(k).mul(2)).equal(),color:N,verticalAlign:"middle"}},"&-cell":{padding:(0,Qe.unit)(k)+" 0",color:E,cursor:"pointer","&-in-view":{color:N},...TC(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[t+"-content"]:{height:e.calc(D).mul(4).equal()},[n]:{padding:"0 "+(0,Qe.unit)(s)}},"&-quarter-panel":{[t+"-content"]:{height:L}},"&-decade-panel":{[n]:{padding:"0 "+(0,Qe.unit)(e.calc(s).div(2).equal())},[t+"-cell::before"]:{display:"none"}},"&-year-panel, &-quarter-panel, &-month-panel":{[t+"-body"]:{padding:"0 "+(0,Qe.unit)(s)},[n]:{width:o}},"&-date-panel":{[t+"-body"]:{padding:(0,Qe.unit)(s)+" "+(0,Qe.unit)(T)},[t+"-content th"]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:"background-color "+C},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:$},"&-range-start td, &-range-end td, &-selected td, &-hover td":{["&"+r]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new kn(M).setA(.5).toHexString()},[n]:{color:M}}},"&-range-hover td:before":{background:z}},"&-week-panel, &-date-panel-show-week":{[t+"-body"]:{padding:(0,Qe.unit)(s)+" "+(0,Qe.unit)(i)},[t+"-content th"]:{width:"auto"}},"&-datetime-panel":{display:"flex",[t+"-time-panel"]:{borderInlineStart:(0,Qe.unit)(u)+` ${p} `+g},[t+`-date-panel,
${t}-time-panel`]:{transition:"opacity "+A},"&-active":{[t+`-date-panel,
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[t+"-content"]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:R,margin:(0,Qe.unit)(c)+" 0",padding:0,overflowY:"auto",textAlign:"start",listStyle:"none",transition:"background-color "+C,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:e.colorTextTertiary+" transparent"},"&::after":{display:"block",height:`calc(100% - ${(0,Qe.unit)(P)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:(0,Qe.unit)(u)+` ${p} `+g},"&-active":{background:new kn(z).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[t+"-time-panel-cell-inner"]:{display:"block",width:e.calc(R).sub(e.calc(B).mul(2)).equal(),height:P,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(R).sub(P).div(2).equal(),color:N,lineHeight:(0,Qe.unit)(P),borderRadius:I,cursor:"pointer",transition:"background-color "+C,"&:hover":{background:$}},"&-selected":{[t+"-time-panel-cell-inner"]:{background:z}},"&-disabled":{[t+"-time-panel-cell-inner"]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}};var HC=e=>{var{componentCls:t,textHeight:r,lineWidth:n,paddingSM:o,antCls:a,colorPrimary:l,cellActiveWithRangeBg:i,colorPrimaryBorder:s,lineType:c,colorSplit:d}=e;return{[t+"-dropdown"]:{[t+"-footer"]:{borderTop:(0,Qe.unit)(n)+` ${c} `+d,"&-extra":{padding:"0 "+(0,Qe.unit)(o),lineHeight:(0,Qe.unit)(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:(0,Qe.unit)(n)+` ${c} `+d}}},[t+`-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[t+"-ranges"]:{marginBlock:0,paddingInline:(0,Qe.unit)(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,Qe.unit)(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[t+"-now-btn-disabled"]:{pointerEvents:"none",color:e.colorTextDisabled},[t+`-preset > ${a}-tag-blue`]:{color:l,background:i,borderColor:s,cursor:"pointer"},[t+"-ok"]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}};function AC(e){return ze(e,{inputAffixPadding:e.paddingXXS})}let DC=e=>{var{controlHeight:e,fontSize:t,lineHeight:r,lineWidth:n,lineWidthFocus:o,controlHeightSM:a,controlHeightLG:l,fontSizeLG:i,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:f,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:C,inputFontSizeLG:x,inputFontSizeSM:w}=e,C=C||t,t=w||C,w=x||i,x=Math.round((e-C*r)/2*10)/10-n,i=Math.round((a-t*r)/2*10)/10-n,e=Math.ceil((l-w*s)/2*10)/10-n;return{lineWidthFocus:0===o?0:n,paddingBlock:Math.max(x,0),paddingBlockSM:Math.max(i,0),paddingBlockLG:Math.max(e,0),paddingInline:c-n,paddingInlineSM:d-n,paddingInlineLG:u-n,addonBg:p,activeBorderColor:f,hoverBorderColor:m,activeShadow:`0 0 0 ${h}px `+g,errorActiveShadow:`0 0 0 ${h}px `+v,warningActiveShadow:`0 0 0 ${h}px `+b,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:w,inputFontSizeSM:t}},LC=e=>{var{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:o}=e;return{pickerCellCls:t+"-cell",pickerCellInnerCls:t+"-cell-inner",pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(n).div(2)).equal()}},FC=e=>{var{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:o,paddingXXS:a,lineWidth:l}=e,i=2*a,l=2*l,r=Math.min(r-i,r-l),s=Math.min(n-i,n-l),i=Math.min(o-i,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new kn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new kn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*n,cellHeight:n,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:r,multipleItemHeightSM:s,multipleItemHeightLG:i,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}};var WC=Be("Calendar",e=>{var t=e.componentCls+"-calendar";return(e=>{var{calendarCls:t,componentCls:r,fullBg:n,fullPanelBg:o,itemActiveBg:a}=e;return{[t]:{...OC(e),...F(e),background:n,"&-rtl":{direction:"rtl"},[t+"-header"]:{display:"flex",justifyContent:"flex-end",padding:(0,Qe.unit)(e.paddingSM)+" 0",[t+"-year-select"]:{minWidth:e.yearControlWidth},[t+"-month-select"]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[t+"-mode-switch"]:{marginInlineStart:e.marginXS}}},[t+` ${r}-panel`]:{background:o,border:0,borderTop:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,borderRadius:0,[r+`-month-panel, ${r}-date-panel`]:{width:"auto"},[r+"-body"]:{padding:(0,Qe.unit)(e.paddingXS)+" 0"},[r+"-content"]:{width:"100%"}},[t+"-mini"]:{borderRadius:e.borderRadiusLG,[t+"-header"]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[r+"-panel"]:{borderRadius:`0 0 ${(0,Qe.unit)(e.borderRadiusLG)} `+(0,Qe.unit)(e.borderRadiusLG)},[r+"-content"]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:(0,Qe.unit)(e.weekHeight)}},[r+"-cell::before"]:{pointerEvents:"none"}},[""+t+t+"-full"]:{[r+"-panel"]:{display:"block",width:"100%",textAlign:"end",background:n,border:0,[r+"-body"]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:(0,Qe.unit)(e.weekHeight)}}},[r+`-cell-week ${r}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${(0,Qe.unit)(e.lineWidthBold)} ${e.lineType} `+e.colorSplit,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[r+"-cell"]:{"&::before":{display:"none"},"&:hover":{[t+"-date"]:{background:e.controlItemBgHover}},[t+"-date-today::before"]:{display:"none"},[`&-in-view${r}-cell-selected`]:{[t+`-date, ${t}-date-today`]:{background:a}},"&-selected, &-selected:hover":{[t+`-date, ${t}-date-today`]:{[t+"-date-value"]:{color:e.colorPrimary}}}},[t+"-date"]:{display:"block",width:"auto",height:"auto",margin:"0 "+(0,Qe.unit)(e.calc(e.marginXS).div(2).equal()),padding:`${(0,Qe.unit)(e.calc(e.paddingXS).div(2).equal())} ${(0,Qe.unit)(e.paddingXS)} 0`,border:0,borderTop:`${(0,Qe.unit)(e.lineWidthBold)} ${e.lineType} `+e.colorSplit,borderRadius:0,transition:"background-color "+e.motionDurationSlow,"&-value":{lineHeight:(0,Qe.unit)(e.dateValueHeight),transition:"color "+e.motionDurationSlow},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[t+"-date-value"]:{color:e.colorText}}}},[`@media only screen and (max-width: ${(0,Qe.unit)(e.screenXS)}) `]:{[t]:{[t+"-header"]:{display:"block",[t+"-year-select"]:{width:"50%"},[t+"-month-select"]:{width:`calc(50% - ${(0,Qe.unit)(e.paddingXS)})`},[t+"-mode-switch"]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}})(ze(e,LC(e),{calendarCls:t,pickerCellInnerCls:e.componentCls+"-cell-inner",dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()}))},e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...FC(e)}));let jC=(e,t,r)=>{r=r.getYear;return e&&t&&r(e)===r(t)},_C=(e,t,r)=>{var n=r.getMonth;return jC(e,t,r)&&n(e)===n(t)},KC=(e,t,r)=>{var n=r.getDate;return _C(e,t,r)&&n(e)===n(t)};var d=re=>ft.forwardRef((e,t)=>{let{prefixCls:r,className:H,rootClassName:A,style:D,dateFullCellRender:n,dateCellRender:o,monthFullCellRender:a,monthCellRender:l,cellRender:i,fullCellRender:s,headerRender:c,value:L,defaultValue:F,disabledDate:d,mode:u,validRange:p,fullscreen:m=!0,showWeek:f,onChange:W,onPanelChange:j,onSelect:_,styles:K,classNames:V}=e;var{getPrefixCls:h,direction:X,className:q,style:g,classNames:v,styles:b}=Fe("calendar"),y={...e,mode:u,fullscreen:m,showWeek:f},g=We(g),C=We(D);let[x,w]=je([v,V],[b,g,K,C],{props:y});var[v,b,g,C,y,G]=ft.useMemo(()=>{let{root:e,header:t,...r}=x,{root:n,header:o,...a}=w;return[e,t,r,n,o,a]},[x,w]);let S=x.itemContent,k=w.itemContent,E=h("picker",r),N=E+"-calendar";var[h,Y]=WC(E,N);let I=re.getNow(),[M,U]=vt(()=>F||re.getNow(),L),[$,Q]=vt("month",u),R=ft.useMemo(()=>"year"===$?"month":"date",[$]);var Z=ft.useCallback(e=>!!p&&(re.isAfter(p[0],e)||re.isAfter(e,p[1]))||!!d?.(e),[d,p]);let P=(e,t)=>{j?.(e,t)};var z=e=>{Q(e),P(M,e)};let B=(e,t)=>{var r;r=e,U(r),KC(r,M,re)||(("date"===R&&!_C(r,M,re)||"month"===R&&!jC(r,M,re))&&P(r,$),W?.(r)),_?.(e,{source:t})},J=ft.useCallback((e,t)=>Je(s)?s(e,t):Je(n)?n(e):ft.createElement("div",{className:bt(E+"-cell-inner",N+"-date",{[N+"-date-today"]:KC(I,e,re)})},ft.createElement("div",{className:N+"-date-value"},String(re.getDate(e)).padStart(2,"0")),ft.createElement("div",{className:bt(N+"-date-content",S),style:k},Je(i)?i(e,t):o?.(e))),[I,E,N,s,n,i,o,S,k]),ee=ft.useCallback((e,t)=>{var r;return s?s(e,t):a?a(e):(r=t.locale.shortMonths||re.locale.getShortMonths(t.locale.locale),ft.createElement("div",{className:bt(E+"-cell-inner",N+"-date",{[N+"-date-today"]:_C(I,e,re)})},ft.createElement("div",{className:N+"-date-value"},r[re.getMonth(e)]),ft.createElement("div",{className:bt(N+"-date-content",S),style:k},Je(i)?i(e,t):l?.(e))))},[I,E,N,s,a,i,l,S,k]);var[te]=nc("Calendar",BC.A);let T=lr(te,e.locale||{});let O=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:O.current})),ft.createElement("div",{ref:O,className:bt(N,{[N+"-full"]:m,[N+"-mini"]:!m,[N+"-rtl"]:"rtl"===X},q,H,A,v,h,Y),style:C},c?c({value:M,type:$,onChange:e=>{B(e,"customize")},onTypeChange:z}):ft.createElement(zC,{className:b,style:y,prefixCls:N,value:M,generateConfig:re,mode:$,fullscreen:m,locale:T?.lang,validRange:p,onChange:B,onModeChange:z}),ft.createElement(M1,{classNames:g,styles:G,value:M,prefixCls:E,locale:T?.lang,generateConfig:re,cellRender:(e,t)=>"date"===t.type?J(e,t):"month"===t.type?ee(e,{...t,locale:T?.lang}):void 0,onSelect:e=>{B(e,R)},mode:R,picker:R,disabledDate:Z,hideHeader:!0,showWeek:f}))}),a=d(s),VC=(a.generateCalendar=d,a);function XC(){return(XC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qC=ft.forwardRef((e,t)=>ft.createElement(u,XC({},e,{ref:t,icon:Z().A}))),GC=(0,ft.createContext)(null),YC=e=>{let{activeTabOffset:t,horizontal:n,rtl:o,indicator:r={}}=e,{size:a,align:l="center"}=r,[i,s]=(0,ft.useState)(),c=(0,ft.useRef)(void 0),d=Re().useCallback(e=>"function"==typeof a?a(e):"number"==typeof a?a:e,[a]);function u(){$e.cancel(c.current)}return(0,ft.useEffect)(()=>{let r={};var e;return t&&(n?(r.width=d(t.width),e=o?"right":"left","start"===l&&(r[e]=t[e]),"center"===l&&(r[e]=t[e]+t.width/2,r.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===l&&(r[e]=t[e]+t.width,r.transform="translateX(-100%)")):(r.height=d(t.height),"start"===l&&(r.top=t.top),"center"===l&&(r.top=t.top+t.height/2,r.transform="translateY(-50%)"),"end"===l&&(r.top=t.top+t.height,r.transform="translateY(-100%)"))),u(),c.current=$e(()=>{i&&r&&Object.keys(r).every(e=>{var t=r[e],e=i[e];return"number"==typeof t&&"number"==typeof e?Math.round(t)===Math.round(e):t===e})||s(r)}),u},[JSON.stringify(t),n,o,l,d]),{style:i}};let UC={width:0,height:0,left:0,top:0};function QC(e,t){let r=ft.useRef(e),[,n]=ft.useState({});return[r.current,function(e){(e="function"==typeof e?e(r.current):e)!==r.current&&t(e,r.current),r.current=e,n({})}]}let ZC=.1,JC=.01,ex=20,tx=.995**ex;function rx(r,l){let[o,a]=(0,ft.useState)(),[n,i]=(0,ft.useState)(0),[s,c]=(0,ft.useState)(0),[d,u]=(0,ft.useState)(),p=(0,ft.useRef)(void 0);let m=(0,ft.useRef)(void 0);let f=(0,ft.useRef)(null);f.current={onTouchStart:function(e){var{screenX:e,screenY:t}=e.touches[0];a({x:e,y:t}),window.clearInterval(p.current)},onTouchMove:function(e){var t,r;o&&({screenX:e,screenY:t}=e.touches[0],a({x:e,y:t}),e=e-o.x,t=t-o.y,l(e,t),r=Date.now(),i(r),c(r-n),u({x:e,y:t}))},onTouchEnd:function(){if(o&&(a(null),u(null),d)){var r=d.x/s,n=d.y/s,e=Math.abs(r),t=Math.abs(n);if(!(Math.max(e,t)<ZC)){let e=r,t=n;p.current=window.setInterval(()=>{Math.abs(e)<JC&&Math.abs(t)<JC?window.clearInterval(p.current):(e*=tx,t*=tx,l(e*ex,t*ex))},ex)}}},onWheel:function(e){var{deltaX:t,deltaY:r}=e;let n;var o=Math.abs(t),a=Math.abs(r);o===a?n="x"===m.current?t:r:a<o?(n=t,m.current="x"):(n=r,m.current="y"),l(-n,-n)&&e.preventDefault()}},ft.useEffect(()=>{function e(e){f.current.onTouchMove(e)}function t(e){f.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!0}),r.current.addEventListener("touchstart",function(e){f.current.onTouchStart(e)},{passive:!0}),r.current.addEventListener("wheel",function(e){f.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[])}function nx(e){let[t,r]=(0,ft.useState)(0),n=(0,ft.useRef)(0),o=(0,ft.useRef)(void 0);return o.current=e,qe(()=>{o.current?.()},[t]),()=>{n.current===t&&(n.current+=1,r(n.current))}}function ox(e){let r=(0,ft.useRef)([]),[,n]=(0,ft.useState)({}),o=(0,ft.useRef)("function"==typeof e?e():e),t=nx(()=>{let t=o.current;r.current.forEach(e=>{t=e(t)}),r.current=[],o.current=t,n({})});return[o.current,function(e){r.current.push(e),t()}]}let ax={width:0,height:0,left:0,top:0,right:0};function lx(e){let r;return e instanceof Map?(r={},e.forEach((e,t)=>{r[t]=e})):r=e,JSON.stringify(r)}let ix="TABS_DQ";function sx(e){return String(e).replace(/"/g,ix)}function cx(e,t,r,n){return!(!r||n||!1===e||void 0===e&&(!1===t||null===t))}var dx=ft.forwardRef((e,t)=>{let{prefixCls:r,editable:n,locale:o,style:a}=e;return n&&!1!==n.showAdd?ft.createElement("button",{ref:t,type:"button",className:r+"-nav-add",style:a,"aria-label":o?.addAriaLabel||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},n.addIcon||"+"):null}),ux=ft.forwardRef((e,t)=>{var{position:e,prefixCls:r,extra:n}=e;if(!n)return null;let o,a={};return"object"!=typeof n||ft.isValidElement(n)?a.right=n:a=n,"right"===e&&(o=a.right),(o="left"===e?a.left:o)?ft.createElement("div",{className:r+"-extra-content",ref:t},o):null});function px(){return(px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=ft.forwardRef((e,t)=>{let{prefixCls:r,id:l,tabs:i,locale:n,mobile:o,more:a={},style:s,className:c,editable:d,tabBarGutter:u,rtl:p,removeAriaLabel:m,onTabClick:f,getPopupContainer:h,popupClassName:g,popupStyle:v,classNames:b,styles:y}=e,[C,x]=(0,ft.useState)(!1),[w,S]=(0,ft.useState)(null);var{icon:e="More",popupRender:k}=a;let E=l+"-more-popup",N=r+"-dropdown",I=null!==w?E+"-"+w:null;var M=n?.dropdownAriaLabel;M=ft.createElement(lb,{onClick:({key:e,domEvent:t})=>{f(e,t),x(!1)},prefixCls:N+"-menu",id:E,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[w],"aria-label":void 0!==M?M:"expanded dropdown"},i.map(e=>{let{closable:t,disabled:r,closeIcon:n,key:o,label:a}=e;e=cx(t,n,d,r);return ft.createElement(D0,{key:o,id:E+"-"+o,role:"option","aria-controls":l&&l+"-panel-"+o,disabled:r},ft.createElement("span",null,a),e&&ft.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:bt(N+"-menu-item-remove",b?.remove),style:y?.remove,onClick:e=>{var t;e.stopPropagation(),e=e,t=o,e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:t,event:e})}},n||d.removeIcon||"×"))})),k=k?k(M,{restTabs:i,onClose:()=>x(!1)}):M;function $(t){var r=i.filter(e=>!e.disabled);let n=r.findIndex(e=>e.key===w)||0;var o=r.length;for(let e=0;e<o;e+=1){var a=r[n=(n+t+o)%o];if(!a.disabled)return void S(a.key)}}(0,ft.useEffect)(()=>{var e=document.getElementById(I);e?.scrollIntoView&&e.scrollIntoView(!1)},[I,w]),(0,ft.useEffect)(()=>{C||S(null)},[C]);var M={marginInlineStart:u},R=(i.length||(M.visibility="hidden",M.order=1),bt(g,{[N+"-rtl"]:p})),k=o?null:ft.createElement(e0,px({prefixCls:N,overlay:k,visible:!!i.length&&C,onVisibleChange:x,overlayClassName:R,overlayStyle:v,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},a),ft.createElement("button",{type:"button",className:r+"-nav-more",style:M,"aria-haspopup":"listbox","aria-controls":E,id:l+"-more","aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case Ce.UP:$(-1),e.preventDefault();break;case Ce.DOWN:$(1),e.preventDefault();break;case Ce.ESC:x(!1);break;case Ce.SPACE:case Ce.ENTER:null!==w&&f(w,e)}else[Ce.DOWN,Ce.SPACE,Ce.ENTER].includes(t)&&(x(!0),e.preventDefault())}},e));return ft.createElement("div",{className:bt(r+"-nav-operations",c),style:s,ref:t},k,ft.createElement(dx,{prefixCls:r,locale:n,editable:d}))}),mx=ft.memo(l,(e,t)=>t.tabMoving),fx=e=>{let{prefixCls:t,id:r,active:n,focus:o,tab:{key:a,label:l,disabled:i,closeIcon:s,icon:c},closable:d,renderWrapper:u,removeAriaLabel:p,editable:m,onClick:f,onFocus:h,onBlur:g,onKeyDown:v,onMouseDown:b,onMouseUp:y,styles:C,classNames:x,tabCount:w,currentPosition:S}=e;var e=t+"-tab",k=cx(d,s,m,i);function E(e){i||f(e)}var N=ft.useMemo(()=>c&&"string"==typeof l?ft.createElement("span",null,l):l,[l,c]);let I=ft.useRef(null);ft.useEffect(()=>{o&&I.current&&I.current.focus()},[o]);N=ft.createElement("div",{key:a,"data-node-key":sx(a),className:bt(e,x?.item,{[e+"-with-remove"]:k,[e+"-active"]:n,[e+"-disabled"]:i,[e+"-focus"]:o}),style:C?.item,onClick:E},ft.createElement("div",{ref:I,role:"tab","aria-selected":n,id:r&&r+"-tab-"+a,className:e+"-btn","aria-controls":r&&r+"-panel-"+a,"aria-disabled":i,tabIndex:i?null:n?0:-1,onClick:e=>{e.stopPropagation(),E(e)},onKeyDown:v,onMouseDown:b,onMouseUp:y,onFocus:h,onBlur:g},o&&ft.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${S} of `+w),c&&ft.createElement("span",{className:e+"-icon"},c),l&&N),k&&ft.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:n?0:-1,className:bt(e+"-remove",x?.remove),style:C?.remove,onClick:e=>{e.stopPropagation(),(e=e).preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:a,event:e})}},s||m.removeIcon||"×"));return u?u(N):N};function hx(){return(hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let gx=e=>{var{offsetWidth:t=0,offsetHeight:r=0}=e.current||{};if(e.current){var{width:e,height:n}=e.current.getBoundingClientRect();if(Math.abs(e-t)<1)return[e,n]}return[t,r]},vx=(e,t)=>e[t?0:1];var bx=ft.forwardRef((e,H)=>{let{className:A,style:D,id:L,animated:F,activeKey:a,rtl:l,extra:W,editable:o,locale:n,tabPosition:j,tabBarGutter:_,children:K,onTabClick:V,onTabScroll:r,indicator:X,classNames:i,styles:s}=e,{prefixCls:c,tabs:d}=ft.useContext(GC),q=(0,ft.useRef)(null),G=(0,ft.useRef)(null),Y=(0,ft.useRef)(null),u=(0,ft.useRef)(null),p=(0,ft.useRef)(null),U=(0,ft.useRef)(null),Q=(0,ft.useRef)(null),m="top"===j||"bottom"===j,[f,h]=QC(0,(e,t)=>{m&&r&&r({direction:t<e?"left":"right"})}),[g,v]=QC(0,(e,t)=>{!m&&r&&r({direction:t<e?"top":"bottom"})}),[Z,J]=(0,ft.useState)([0,0]),[ee,te]=(0,ft.useState)([0,0]),[re,ne]=(0,ft.useState)([0,0]),[oe,ae]=(0,ft.useState)([0,0]),[le,ie]=ox(new Map),b=(y=d,C=le,t=ee[0],(0,ft.useMemo)(()=>{var r=new Map,e=C.get(y[0]?.key)||UC,n=e.left+e.width;for(let t=0;t<y.length;t+=1){var o=y[t].key;let e=C.get(o);e=e||C.get(y[t-1]?.key)||UC;var a=r.get(o)||{...e};a.right=n-a.left-a.width,r.set(o,a)}return r},[y.map(e=>e.key).join("_"),C,t]));var y,C,t=vx(Z,m),x=vx(ee,m),w=vx(re,m),S=vx(oe,m);let se=Math.floor(t)<Math.floor(x+w),k=se?t-S:t-w;t=c+"-nav-operations-hidden";let E=0,N=0;function I(e){return e<E?E:e>N?N:e}N=m&&l?(E=0,Math.max(0,x-k)):(E=Math.min(0,k-x),0);let ce=(0,ft.useRef)(null),[M,de]=(0,ft.useState)();function ue(){de(Date.now())}function pe(){ce.current&&clearTimeout(ce.current)}rx(u,(e,t)=>{function r(e,t){e(e=>I(e+t))}return se&&(m?r(h,e):r(v,t),pe(),ue(),!0)}),(0,ft.useEffect)(()=>(pe(),M&&(ce.current=setTimeout(()=>{de(0)},100)),pe),[M]);var[x,w]=((a,l,e,t,r,n,{tabs:i,tabPosition:o,rtl:s})=>{let c,d,u;return u=["top","bottom"].includes(o)?(c="width",d=s?"right":"left",Math.abs(e)):(c="height",d="top",-e),(0,ft.useMemo)(()=>{if(!i.length)return[0,0];var t=i.length;let r=t;for(let e=0;e<t;e+=1){var n=a.get(i[e].key)||ax;if(Math.floor(n[d]+n[c])>Math.floor(u+l)){r=e-1;break}}let o=0;for(let e=t-1;0<=e;--e)if((a.get(i[e].key)||ax)[d]<u){o=e+1;break}return o>r?[0,-1]:[o,r]},[a,l,t,r,n,u,o,i.map(e=>e.key).join("_"),s])})(b,k,m?f:g,x,w,S,{...e,tabs:d});let me=ht((t=a)=>{t=b.get(t)||{width:0,height:0,left:0,right:0,top:0};if(m){let e=f;l?t.right<f?e=t.right:t.right+t.width>f+k&&(e=t.right+t.width-k):t.left<-f?e=-t.left:t.left+t.width>-f+k&&(e=-(t.left+t.width-k)),v(0),h(I(e))}else{let e=g;t.top<-g?e=-t.top:t.top+t.height>-g+k&&(e=-(t.top+t.height-k)),h(0),v(I(e))}}),[$,R]=(0,ft.useState)(),[fe,he]=(0,ft.useState)(!1),P=d.filter(e=>!e.disabled).map(e=>e.key),z=e=>{var t=P.indexOf($||a),r=P.length,t=(t+e+r)%r,e=P[t];R(e)},ge=(t,e)=>{var r=P.indexOf(t),n=d.find(e=>e.key===t);cx(n?.closable,n?.closeIcon,o,n?.disabled)&&(e.preventDefault(),e.stopPropagation(),o.onEdit("remove",{key:t,event:e}),r===P.length-1?z(-1):z(1))},ve=e=>{var t=e.code,r=l&&m,n=P[0],o=P[P.length-1];switch(t){case"ArrowLeft":m&&z(r?1:-1);break;case"ArrowRight":m&&z(r?-1:1);break;case"ArrowUp":e.preventDefault(),m||z(-1);break;case"ArrowDown":e.preventDefault(),m||z(1);break;case"Home":e.preventDefault(),R(n);break;case"End":e.preventDefault(),R(o);break;case"Enter":case"Space":e.preventDefault(),V($??a,e);break;case"Backspace":case"Delete":ge($,e)}},B={};m?B.marginInlineStart=_:B.marginTop=_;S=d.map((e,t)=>{let r=e.key;return ft.createElement(fx,{id:L,prefixCls:c,key:r,tab:e,classNames:{item:i?.item,remove:i?.remove},styles:{item:0===t?s?.item:{...B,...s?.item},remove:s?.remove},closable:e.closable,editable:o,active:r===a,focus:r===$,renderWrapper:K,removeAriaLabel:n?.removeAriaLabel,tabCount:P.length,currentPosition:t+1,onClick:e=>{V(r,e)},onKeyDown:ve,onFocus:()=>{fe||R(r),me(r),ue(),u.current&&(l||(u.current.scrollLeft=0),u.current.scrollTop=0)},onBlur:()=>{R(void 0)},onMouseDown:e=>{return t=r,e=e,he(!0),void(1===e.button&&ge(t,e));var t},onMouseUp:()=>{he(!1)}})});let be=()=>ie(()=>{let a=new Map,l=p.current?.getBoundingClientRect();return d.forEach(({key:e})=>{var t,r,n,o=p.current?.querySelector(`[data-node-key="${sx(e)}"]`);o&&([o,t,r,n]=((e,t)=>{var{offsetWidth:r,offsetHeight:n,offsetTop:o,offsetLeft:a}=e,{width:e,height:l,left:i,top:s}=e.getBoundingClientRect();return Math.abs(e-r)<1?[e,l,i-t.left,s-t.top]:[r,n,a,o]})(o,l),a.set(e,{width:o,height:t,left:r,top:n}))}),a}),T=((0,ft.useEffect)(()=>{be()},[d.map(e=>e.key).join("_")]),nx(()=>{var e=gx(q),t=gx(G),r=gx(Y),e=(J([e[0]-t[0]-r[0],e[1]-t[1]-r[1]]),gx(Q)),t=(ne(e),gx(U)),r=(ae(t),gx(p));te([r[0]-e[0],r[1]-e[1]]),be()}));var x=d.slice(0,x),w=d.slice(w+1),x=[...x,...w],w=b.get(a),ye=YC({activeTabOffset:w,horizontal:m,indicator:X,rtl:l}).style,w=((0,ft.useEffect)(()=>{me()},[a,E,N,lx(w),lx(b),m]),(0,ft.useEffect)(()=>{T()},[l]),!!x.length),O=c+"-nav-wrap";let Ce,xe,we,Se;return m?l?(xe=0<f,Ce=f!==N):(Ce=f<0,xe=f!==E):(we=g<0,Se=g!==E),ft.createElement(gr,{onResize:T},ft.createElement("div",{ref:wt(H,q),role:"tablist","aria-orientation":m?"horizontal":"vertical",className:bt(c+"-nav",A,i?.header),style:{...s?.header,...D},onKeyDown:()=>{ue()}},ft.createElement(ux,{ref:G,position:"left",extra:W,prefixCls:c}),ft.createElement(gr,{onResize:T},ft.createElement("div",{className:bt(O,{[O+"-ping-left"]:Ce,[O+"-ping-right"]:xe,[O+"-ping-top"]:we,[O+"-ping-bottom"]:Se}),ref:u},ft.createElement(gr,{onResize:T},ft.createElement("div",{ref:p,className:c+"-nav-list",style:{transform:`translate(${f}px, ${g}px)`,transition:M?"none":void 0}},S,ft.createElement(dx,{ref:Q,prefixCls:c,locale:n,editable:o,style:{...0===S.length?void 0:B,visibility:w?"hidden":null}}),ft.createElement("div",{className:bt(c+"-ink-bar",i?.indicator,{[c+"-ink-bar-animated"]:F.inkBar}),style:{...ye,...s?.indicator}}))))),ft.createElement(mx,hx({},e,{removeAriaLabel:n?.removeAriaLabel,ref:U,prefixCls:c,tabs:x,className:!w&&t,popupStyle:s?.popup,tabMoving:!!M})),ft.createElement(ux,{ref:Y,position:"right",extra:W,prefixCls:c})))}),yx=({renderTabBar:e,...t})=>e?e(t,bx):ft.createElement(bx,t),Cx=ft.forwardRef((e,t)=>{var{prefixCls:e,className:r,style:n,id:o,active:a,tabKey:l,children:i}=e,s=0<ft.Children.count(i);return ft.createElement("div",{id:o&&o+"-panel-"+l,role:"tabpanel",tabIndex:a&&s?0:-1,"aria-labelledby":o&&o+"-tab-"+l,"aria-hidden":!a,style:n,className:bt(e,a&&e+"-active",r),ref:t},i)});function xx(){return(xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var wx=e=>{let{id:s,activeKey:c,animated:d,tabPosition:t,destroyOnHidden:u,bodyStyle:r,bodyClassName:n,contentStyle:p,contentClassName:m}=e;var{prefixCls:e,tabs:o}=ft.useContext(GC);let f=d.tabPane;var a=e+"-body";let h=e+"-content";return ft.createElement("div",{className:bt(a+"-holder")},ft.createElement("div",{className:bt(a,a+"-"+t,{[a+"-animated"]:f},n),style:r},o.map(e=>{let{key:n,forceRender:t,style:o,className:a,destroyOnHidden:r,...l}=e,i=n===c;return ft.createElement(Na,xx({key:n,visible:i,forceRender:t,removeOnLeave:!!(u??r),leavedClassName:h+"-hidden"},d.tabPaneMotion),({style:e,className:t},r)=>ft.createElement(Cx,xx({},l,{prefixCls:h,id:s,tabKey:n,animated:f,active:i,style:{...p,...o,...e},className:bt(m,a,t),ref:r})))})))};function Sx(){return(Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let kx=0;var Ex=ft.forwardRef((e,t)=>{let{id:r,prefixCls:n="rc-tabs",className:o,items:a,direction:l,activeKey:i,defaultActiveKey:s,editable:c,animated:d,tabPosition:u="top",tabBarGutter:p,tabBarStyle:m,tabBarExtraContent:f,locale:h,more:g,destroyOnHidden:v,renderTabBar:b,onChange:y,onTabClick:C,onTabScroll:x,getPopupContainer:w,popupClassName:S,indicator:k,classNames:E,styles:N,...I}=e,M=ft.useMemo(()=>(a||[]).filter(e=>e&&"object"==typeof e&&"key"in e),[a]);var e="rtl"===l,$=((e={inkBar:!0,tabPane:!1})=>{let t;return(t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"==typeof e?e:{}}).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t})(d);let[R,P]=(0,ft.useState)(!1),[z,B]=((0,ft.useEffect)(()=>{P(Gt())},[]),vt(s??M[0]?.key,i)),[T,H]=(0,ft.useState)(()=>M.findIndex(e=>e.key===z)),[A,D]=((0,ft.useEffect)(()=>{let e=M.findIndex(e=>e.key===z);-1===e&&(e=Math.max(0,Math.min(T,M.length-1)),B(M[e]?.key)),H(e)},[M.map(e=>e.key).join("_"),z,T]),vt(null,r));(0,ft.useEffect)(()=>{r||(D("rc-tabs-"+kx),kx+=1)},[]);var O={id:A,activeKey:z,animated:$,tabPosition:u,rtl:e,mobile:R},L={...O,editable:c,locale:h,more:g,tabBarGutter:p,onTabClick:function(e,t){C?.(e,t),t=e!==z,B(e),t&&y?.(e)},onTabScroll:x,extra:f,style:m,getPopupContainer:w,popupClassName:bt(S,E?.popup),indicator:k,styles:N,classNames:E},F=ft.useMemo(()=>({tabs:M,prefixCls:n}),[M,n]);return ft.createElement(GC.Provider,{value:F},ft.createElement("div",Sx({ref:t,id:r,className:bt(n,n+"-"+u,{[n+"-mobile"]:R,[n+"-editable"]:c,[n+"-rtl"]:e},o)},I),ft.createElement(yx,Sx({},L,{renderTabBar:b})),ft.createElement(wx,Sx({destroyOnHidden:v},O,{bodyStyle:N?.body,bodyClassName:E?.body,contentStyle:N?.content,contentClassName:E?.content,animated:$}))))});let Nx={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Ix=function(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):ke(t).map(r=>{if(ft.isValidElement(r)){var{key:r,props:n}=r;let{tab:e,...t}=n||{};return{key:String(r),...t,label:e}}return null}).filter(e=>e)},Mx=e=>{var{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}}}}},[Xh(e,"slide-up"),Xh(e,"slide-down")]]};let $x=e=>{var{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:l,itemSelectedColor:i,itemColor:s}=e,c=t+"-tab";return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:"all "+e.motionDurationSlow,[c+"-icon:not(:last-child)"]:{marginInlineEnd:e.marginSM},[c+"-icon > svg"]:{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow,"&:hover":{color:e.colorTextHeading},...un(e)},"&:hover":{color:n},[`&${c}-active ${c}-btn`]:{color:i},[`&${c}-focus ${c}-btn:focus-visible`]:dn(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove `+o]:{margin:0,verticalAlign:"middle"},[o+":not(:last-child)"]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[c+" + "+c]:{margin:{_skip_check_:!0,value:a}}}};var Rx=Be("Tabs",e=>{e=ze(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 "+(0,Qe.unit)(e.horizontalItemGutter),tabsHorizontalItemMarginRTL:"0 0 0 "+(0,Qe.unit)(e.horizontalItemGutter)});return[(e=>{var{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:l,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[t+"-tab"]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[t+"-tab"]:{padding:i,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[t+"-card"]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[t+"-tab"]:{padding:r},[t+"-nav-add"]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,Qe.unit)(e.borderRadius)} `+(0,Qe.unit)(e.borderRadius)}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,Qe.unit)(e.borderRadius)} ${(0,Qe.unit)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Qe.unit)(e.borderRadius)} ${(0,Qe.unit)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:(0,Qe.unit)(e.borderRadius)+" 0 0 "+(0,Qe.unit)(e.borderRadius)}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[t+"-tab"]:{padding:n},[t+"-nav-add"]:{minWidth:a,minHeight:a}}}}}})(e),(e=>{var{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:o,calc:a}=e;return{[t+"-rtl"]:{direction:"rtl",[t+"-nav"]:{[t+"-tab"]:{margin:{_skip_check_:!0,value:r},[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}},[t+"-tab-remove"]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+`-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[t+"-dropdown-rtl"]:{direction:"rtl"},[t+"-menu-item"]:{[t+"-dropdown-rtl"]:{textAlign:{_skip_check_:!0,value:"right"}}}}})(e),(e=>{let{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:l,motionDurationSlow:i,calc:s}=e;return{[t+`-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+n,content:"''"},[t+"-ink-bar"]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>e+" "+i).join(", ")}},[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,marginBottom:0,"&::before":{top:0},[t+"-ink-bar"]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[t+`-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[t+"-tab"]:{padding:a,textAlign:"center"},[t+`-tab + ${t}-tab`]:{margin:l},[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","top"].map(e=>e+" "+i).join(", ")}},[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}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:(0,Qe.unit)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder},[`> ${t}-body > ${t}-content`]:{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}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}})(e),(e=>{var{antCls:t,componentCls:r,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[r+"-dropdown"]:{...F(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${r}-dropdown-placement-bottomLeft,
&${t}-slide-down-appear${t}-slide-down-appear-active${r}-dropdown-placement-bottomLeft,
&${t}-slide-down-enter${t}-slide-down-enter-active${r}-dropdown-placement-bottom,
&${t}-slide-down-appear${t}-slide-down-appear-active${r}-dropdown-placement-bottom,
&${t}-slide-down-enter${t}-slide-down-enter-active${r}-dropdown-placement-bottomRight,
&${t}-slide-down-appear${t}-slide-down-appear-active${r}-dropdown-placement-bottomRight`]:{animationName:Ah},[`&${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-topLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-topLeft,
&${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-top,
&${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-top,
&${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-topRight,
&${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-topRight`]:{animationName:Lh},[`&${t}-slide-down-leave${t}-slide-down-leave-active${r}-dropdown-placement-bottomLeft,
&${t}-slide-down-leave${t}-slide-down-leave-active${r}-dropdown-placement-bottom,
&${t}-slide-down-leave${t}-slide-down-leave-active${r}-dropdown-placement-bottomRight`]:{animationName:Dh},[`&${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-topLeft,
&${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-top,
&${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-topRight`]:{animationName:Fh},[r+"-dropdown-menu"]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:(0,Qe.unit)(o)+" 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":{...an,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:(0,Qe.unit)(e.paddingXXS)+" "+(0,Qe.unit)(e.paddingSM),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.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}})(e),(e=>{var{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:l}=e;return{[t+"-card"]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+"-tab"]:{margin:0,padding:r,background:n,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+a,transition:`all ${e.motionDurationSlow} `+e.motionEaseInOut},[t+"-tab-active"]:{color:l,background:e.colorBgContainer},[t+`-tab-focus:has(${t}-tab-btn:focus-visible)`]:dn(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[t+"-ink-bar"]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+`-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,Qe.unit)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+"-tab"]:{borderRadius:`${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0 0`},[t+"-tab-active"]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+"-tab"]:{borderRadius:`0 0 ${(0,Qe.unit)(e.borderRadiusLG)} `+(0,Qe.unit)(e.borderRadiusLG)},[t+"-tab-active"]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+`-tab + ${t}-tab`]:{marginTop:(0,Qe.unit)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+"-tab"]:{borderRadius:{_skip_check_:!0,value:(0,Qe.unit)(e.borderRadiusLG)+" 0 0 "+(0,Qe.unit)(e.borderRadiusLG)}},[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 ${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0`}},[t+"-tab-active"]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}})(e),(e=>{var{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:o,itemHoverColor:a,itemActiveColor:l,colorBorderSecondary:i}=e;return{[t]:{...F(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.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[t+"-nav-add"]:{minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+i,borderRadius:`${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} `+e.motionEaseInOut,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:l},...un(e,-3)}},[t+"-extra-content"]:{flex:"none"},[t+"-ink-bar"]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...$x(e),[t+"-body"]:{position:"relative",width:"100%"},[t+"-body-holder"]:{flex:"auto",minWidth:0,minHeight:0},[t+"-content"]:{...un(e),"&-hidden":{display:"none"}}},[t+"-centered"]:{[`> ${t}-nav, > div > ${t}-nav`]:{[t+"-nav-wrap"]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}})(e),Mx(e)]},e=>{var{cardHeight:t,cardHeightSM:r,cardHeightLG:n,controlHeight:o,controlHeightLG:a}=e,t=t||a,r=r||o,o=n||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardHeightSM:r,cardHeightLG:o,cardPadding:(t-e.fontHeight)/2-e.lineWidth+`px ${e.padding}px`,cardPaddingSM:(r-e.fontHeight)/2-e.lineWidth+`px ${e.paddingXS}px`,cardPaddingLG:(o-e.fontHeightLG)/2-e.lineWidth+`px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:e.paddingSM+"px 0",horizontalItemPaddingSM:e.paddingXS+"px 0",horizontalItemPaddingLG:e.padding+"px 0",verticalItemPadding:e.paddingXS+`px ${e.paddingLG}px`,verticalItemMargin:e.margin+"px 0 0 0",itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),e=ft.forwardRef((e,t)=>{let{type:r,className:n,rootClassName:o,size:a,onEdit:l,hideAdd:i,centered:s,addIcon:c,removeIcon:d,moreIcon:u,more:p,popupClassName:m,children:f,items:h,animated:g,style:v,indicatorSize:H,indicator:b,classNames:A,styles:D,destroyInactiveTabPane:L,destroyOnHidden:F,tabPlacement:y,tabPosition:C,...x}=e;var w=x.prefixCls;let{getPrefixCls:S,direction:k,getPopupContainer:W,className:j,style:_,classNames:K,styles:V}=Fe("tabs");var E=ft.useContext(Ue).tabs,w=S("tabs",w),N=nl(w),[I,M]=Rx(w,N);let $=ft.useRef(null);ft.useImperativeHandle(t,()=>({nativeElement:$.current}));let R;"editable-card"===r&&(R={onEdit:(e,{key:t,event:r})=>{l?.("add"===e?r:t,e)},removeIcon:d??E?.removeIcon??ft.createElement(Ko,null),addIcon:(c??E?.addIcon)||ft.createElement(qC,null),showAdd:!0!==i});var t=S(),P=mc(a),z=Ix(h,f),X=((e,t={inkBar:!0,tabPane:!1})=>{let r;return(r=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:{inkBar:!0,...Ze(t)?t:{}}).tabPane&&(r.tabPaneMotion={...Nx,motionName:tc(e,"switch")}),r})(w,g),q={align:b?.align??E?.indicator?.align,size:b?.size??H??E?.indicator?.size??E?.indicatorSize},B=ft.useMemo(()=>{var e=y??C??void 0,t="rtl"===k;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[y,C,k]),e={...e,size:P,tabPlacement:B,items:z},T=We(_),O=We(v),[T,O]=je([K,A],[V,T,D,O],{props:e},{popup:{_default:"root"}});return ft.createElement(Ex,{ref:$,direction:k,getPopupContainer:W,...x,items:z,className:bt({[w+"-large"]:"large"===P,[w+"-small"]:"small"===P,[w+"-card"]:["card","editable-card"].includes(r),[w+"-editable-card"]:"editable-card"===r,[w+"-centered"]:s},j,n,o,T.root,I,M,N),classNames:{...T,popup:bt(m,I,M,N,T.popup?.root)},styles:O,style:O.root,editable:R,more:{icon:E?.more?.icon??E?.moreIcon??u??ft.createElement(vb,null),transitionName:t+"-slide-up",...p},prefixCls:w,animated:X,indicator:q,destroyOnHidden:F??L,tabPosition:B})}),Px=(e.TabPane=()=>null,e),zx=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,hoverable:o=!0,...a}=e;e=ft.useContext(Ue).getPrefixCls,e=e("card",r),e=bt(e+"-grid",n,{[e+"-grid-hoverable"]:o});let l=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:l.current})),ft.createElement("div",{ref:l,...a,className:e})});let Bx=e=>{var{antCls:t,componentCls:r,headerHeight:n,headerPadding:o,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:"0 "+(0,Qe.unit)(o),color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorderSecondary,borderRadius:`${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0 0`,...cn(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...an,[`
> ${r}-typography,
> ${r}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[t+"-tabs-top"]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorderSecondary}}}},Tx=e=>{var{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${(0,Qe.unit)(o)} 0 0 0 ${r},
0 ${(0,Qe.unit)(o)} 0 0 ${r},
${(0,Qe.unit)(o)} ${(0,Qe.unit)(o)} 0 0 ${r},
${(0,Qe.unit)(o)} 0 0 0 ${r} inset,
0 ${(0,Qe.unit)(o)} 0 0 ${r} inset;
`,transition:"all "+e.motionDurationMid,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},Ox=e=>{var{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:l}=e;return{margin:0,padding:0,listStyle:"none",background:l,borderTop:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+a,display:"flex",borderRadius:`0 0 ${(0,Qe.unit)(e.borderRadiusLG)} `+(0,Qe.unit)(e.borderRadiusLG),...cn(),"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:"color "+e.motionDurationMid},[`a:not(${t}-btn), > `+r]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,Qe.unit)(e.fontHeight),transition:"color "+e.motionDurationMid,"&:hover":{color:e.colorPrimary}},["> "+r]:{fontSize:o,lineHeight:(0,Qe.unit)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+a}}}},Hx=e=>({margin:(0,Qe.unit)(e.calc(e.marginXXS).mul(-1).equal())+" 0",display:"flex",...cn(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...an},"&-description":{color:e.colorTextDescription}}),Ax=e=>{var{componentCls:t,colorFillAlter:r,headerPadding:n,bodyPadding:o}=e;return{[t+"-head"]:{padding:"0 "+(0,Qe.unit)(n),background:r,"&-title":{fontSize:e.fontSize}},[t+"-body"]:{padding:(0,Qe.unit)(e.padding)+" "+(0,Qe.unit)(o)}}},Dx=e=>{e=e.componentCls;return{overflow:"hidden",[e+"-body"]:{userSelect:"none"}}};var Lx=Be("Card",e=>{e=ze(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[(e=>{let{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:l,extraColor:i,motionDurationMid:s}=e;return{[t]:{...F(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[t+"-head"]:Bx(e),[t+"-extra"]:{marginInlineStart:"auto",color:i,fontWeight:"normal",fontSize:e.fontSize},[t+"-body"]:{padding:l,borderRadius:`0 0 ${(0,Qe.unit)(e.borderRadiusLG)} `+(0,Qe.unit)(e.borderRadiusLG),"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[t+"-grid"]:Tx(e),[t+"-cover"]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0 0`}},[t+"-actions"]:Ox(e),[t+"-meta"]:Hx(e)},[t+"-bordered"]:{border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+o,[t+"-cover"]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[t+"-hoverable"]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>e+" "+s).join(", "),"&:hover":{borderColor:"transparent",boxShadow:r}},[t+"-contain-grid"]:{borderRadius:`${(0,Qe.unit)(e.borderRadiusLG)} ${(0,Qe.unit)(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[t+"-body"]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[t+"-contain-tabs"]:{[`> div${t}-head`]:{minHeight:0,[t+`-head-title, ${t}-extra`]:{paddingTop:n}}},[t+"-type-inner"]:Ax(e),[t+"-loading"]:Dx(e),[t+"-rtl"]:{direction:"rtl"}}})(e),(e=>{var{componentCls:t,bodyPaddingSM:r,headerPaddingSM:n,headerHeightSM:o,headerFontSizeSM:a}=e;return{[t+"-small"]:{[`> ${t}-head`]:{minHeight:o,padding:"0 "+(0,Qe.unit)(n),fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[t+`-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[t+`-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}})(e)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:e.paddingSM+"px 0",tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}));let Fx=e=>{let{actionClasses:t,actions:r=[],actionStyle:n}=e;return ft.createElement("ul",{className:t,style:n},r.map((e,t)=>{t="action-"+t;return ft.createElement("li",{style:{width:100/r.length+"%"},key:t},ft.createElement("span",null,e))}))};var o=ft.forwardRef((t,e)=>{let{prefixCls:r,className:n,rootClassName:o,style:a,extra:l,headStyle:i={},bodyStyle:s={},title:c,loading:d,bordered:u,variant:p,size:m,type:f,cover:h,actions:g,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:H,tabBarExtraContent:A,hoverable:D,tabProps:L={},classNames:F,styles:W,...j}=t;var{getPrefixCls:C,direction:_,className:K,style:x,classNames:w,styles:S}=Fe("card"),[k]=Th("card",p,u),E=mc(m),N={...t,size:E,variant:k},x=We(x),I=We(a),[w,S]=je([w,F],[S,x,W,I],{props:N});let M=ft.useMemo(()=>ke(b),[b]);var x=ft.useMemo(()=>M.some(e=>ft.isValidElement(e)&&e.type===zx),[M]),I=C("card",r),[N,C]=Lx(I),$=ft.createElement(jp,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),R=void 0!==y,R={...L,[R?"activeKey":"defaultActiveKey"]:R?y:H,tabBarExtraContent:A};let P;var R=v?ft.createElement(Px,{size:"small"!==E?"large":E,...R,className:I+"-head-tabs",onChange:e=>{t.onTabChange?.(e)},items:v.map(({tab:e,...t})=>({label:e,...t}))}):null,z=((Se(c)||Se(l)||R)&&(z=bt(I+"-head",w.header),T=bt(I+"-head-title",w.title),O=bt(I+"-extra",w.extra),B={...i,...S.header},P=ft.createElement("div",{className:z,style:B},ft.createElement("div",{className:I+"-head-wrapper"},Se(c)&&ft.createElement("div",{className:T,style:S.title},c),Se(l)&&ft.createElement("div",{className:O,style:S.extra},l)),R)),bt(I+"-cover",w.cover)),B=Se(h)?ft.createElement("div",{className:z,style:S.cover},h):null,T=bt(I+"-body",w.body),O={...s,...S.body},R=d||M.length?ft.createElement("div",{className:T,style:O},d?$:b):null,z=bt(I+"-actions",w.actions),T=g?.length?ft.createElement(Fx,{actionClasses:z,actionStyle:S.actions,actions:g}):null,O=at(j,["onTabChange"]),$=bt(I,K,{[I+"-loading"]:d,[I+"-bordered"]:"borderless"!==k,[I+"-hoverable"]:D,[I+"-contain-grid"]:x,[I+"-contain-tabs"]:v?.length,[I+"-small"]:"small"===E,[I+"-type-"+f]:!!f,[I+"-rtl"]:"rtl"===_},n,o,N,C,w.root),z={...S.root};return ft.createElement("div",{ref:e,...O,className:$,style:z},P,B,R,T)}),n=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,avatar:o,title:a,description:l,style:i,classNames:s,styles:c,...d}=e;var{getPrefixCls:u,className:p,style:m,classNames:f,styles:h}=Fe("cardMeta"),u=u("card",r)+"-meta",m=We(m),g=We(i),[f,h]=je([f,s],[h,m,c,g],{props:e}),m=bt(u,n,p,f.root),g={...h.root},e=bt(u+"-avatar",f.avatar),p=bt(u+"-title",f.title),v=bt(u+"-description",f.description),u=bt(u+"-section",f.section),f=Se(o)?ft.createElement("div",{className:e,style:h.avatar},o):null,e=Se(a)?ft.createElement("div",{className:p,style:h.title},a):null,p=Se(l)?ft.createElement("div",{className:v,style:h.description},l):null,v=e||p?ft.createElement("div",{className:u,style:h.section},e,p):null;let b=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:b.current})),ft.createElement("div",{ref:b,...d,className:m,style:g},f,v)}),c=o,Wx=(c.Grid=zx,c.Meta=n,c);function jx(e,t){if(null==e)return{};var r,n=((e,t)=>{if(null==e)return{};var r,n={};for(r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n})(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}var _x={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function Kx(i,s,e){var c,e=e||{},t=e.noTrailing,d=void 0!==t&&t,t=e.noLeading,u=void 0!==t&&t,t=e.debounceMode,p=void 0===t?void 0:t,m=!1,f=0;function h(){c&&clearTimeout(c)}function r(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=this,o=Date.now()-f;function a(){f=Date.now(),s.apply(n,t)}function l(){c=void 0}m||(u||!p||c||a(),h(),void 0===p&&i<o?u?(f=Date.now(),d||(c=setTimeout(p?l:a,i))):a():!0!==d&&(c=setTimeout(p?l:a,void 0===p?i-o:i)))}return r.cancel=function(e){e=void 0!==(e=(e||{}).upcomingOnly)&&e,h(),m=!e},r}function Vx(e,t,r){r=(r||{}).atBegin;return Kx(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var Xx={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return Re().createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return Re().createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};function qx(e,t,r){return Math.max(t,Math.min(e,r))}function Gx(t,e){var r={};return e.forEach(function(e){return r[e]=t[e]}),r}function Yx(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Ux=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},Qx=function(e){for(var t=[],r=Zx(e),n=Jx(e),o=r;o<n;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},Zx=function(e){return e.currentSlide-ew(e)},Jx=function(e){return e.currentSlide+tw(e)},ew=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(0<parseInt(e.centerPadding)?1:0):0},tw=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(0<parseInt(e.centerPadding)?1:0):e.slidesToShow},rw=function(e){return e&&e.offsetWidth||0},nw=function(e){return e&&e.offsetHeight||0},ow=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=e.startX-e.curX,e=Math.atan2(e.startY-e.curY,r),r=Math.round(180*e/Math.PI);return(r=r<0?360-Math.abs(r):r)<=45&&0<=r||r<=360&&315<=r?"left":135<=r&&r<=225?"right":!0===t?35<=r&&r<=135?"up":"down":"vertical"},aw=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},lw=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,r=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,o=[];r<t;)o.push(r),r=n+e.slidesToScroll,n+=Math.min(e.slidesToScroll,e.slidesToShow);return o},iw=function(e,t){var r=lw(e),n=0;if(t>r[r.length-1])t=r[r.length-1];else for(var o in r){if(t<r[o]){t=n;break}n=r[o]}return t},sw=function(t){var r,e,n=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;return t.swipeToSlide?(e=(e=t.listRef).querySelectorAll&&e.querySelectorAll(".slick-slide")||[],Array.from(e).every(function(e){if(t.vertical){if(e.offsetTop+nw(e)/2>-1*t.swipeLeft)return r=e,!1}else if(e.offsetLeft-n+rw(e)/2>-1*t.swipeLeft)return r=e,!1;return!0}),r?(e=!0===t.rtl?t.slideCount-t.currentSlide:t.currentSlide,Math.abs(r.dataset.index-e)||1):0):t.slidesToScroll},cw=function(r,e){return e.reduce(function(e,t){return e&&r.hasOwnProperty(t)},!0)?null:console.error("Keys Missing:",r)},dw=function(e){cw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical?r=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=hw(e)*e.slideWidth;var t,r,n,o,a,l={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?(n=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)",l=N(N({},l),{},{WebkitTransform:n,transform:o,msTransform:a})):e.vertical?l.top=e.left:l.left=e.left,e.fade&&(l={opacity:1}),t&&(l.width=t),r&&(l.height=r),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?l.marginTop=e.left+"px":l.marginLeft=e.left+"px"),l},uw=function(e){cw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=dw(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},pw=function(e){if(e.unslick)return 0;cw(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t=e.slideIndex,r=e.trackRef,n=e.infinite,o=e.centerMode,a=e.slideCount,l=e.slidesToShow,i=e.slidesToScroll,s=e.slideWidth,c=e.listWidth,d=e.variableWidth,u=e.slideHeight,p=e.vertical;if(e.fade||1===e.slideCount)return 0;var m=0;if(n?(m=-mw(e),a%i!=0&&a<t+i&&(m=-(a<t?l-(t-a):a%i)),o&&(m+=parseInt(l/2))):(a%i!=0&&a<t+i&&(m=l-a%i),o&&(m=parseInt(l/2))),g=p?t*u*-1+m*u:t*s*-1+m*s,!0===d){var f=r&&r.node;if(h=t+mw(e),g=(a=f&&f.childNodes[h])?-1*a.offsetLeft:0,!0===o){for(var h=n?t+mw(e):t,a=f&&f.children[h],g=0,v=0;v<h;v++)g-=f&&f.children[v]&&f.children[v].offsetWidth;g=(g-=parseInt(e.centerPadding))+(a&&(c-a.offsetWidth)/2)}}return g},mw=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},fw=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},hw=function(e){return 1===e.slideCount?1:mw(e)+e.slideCount+fw(e)},gw=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+vw(e)?"left":"right":e.targetSlide<e.currentSlide-bw(e)?"right":"left"},vw=function(e){var t,r=e.slidesToShow,n=e.rtl;return e.centerMode?(t=(r-1)/2+1,0<parseInt(e.centerPadding)&&(t+=1),n&&r%2==0&&(t+=1),t):n?0:r-1},bw=function(e){var t,r=e.slidesToShow,n=e.rtl;return e.centerMode?(t=(r-1)/2+1,0<parseInt(e.centerPadding)&&(t+=1),n||r%2!=0||(t+=1),t):n?r-1:0},yw=Object.keys(Xx);var Cw=function(e){var t,r,n,o=e.rtl?e.slideCount-1-e.index:e.index,a=o<0||o>=e.slideCount;return e.centerMode?(n=Math.floor(e.slidesToShow/2),r=(o-e.currentSlide)%e.slideCount==0,e.currentSlide-n-1<o&&o<=e.currentSlide+n&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":r,"slick-cloned":a,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},xw=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS)&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t},ww=function(e,t){return e.key+"-"+t},Sw=(()=>{function i(){var t;$r(this,i);for(var e,r,n,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return e=this,r=i,n=[].concat(a),r=Or(r),y(t=Ar(e,Hr()?Reflect.construct(r,n||[],Or(e).constructor):r.apply(e,n)),"node",null),y(t,"handleRef",function(e){t.node=e}),t}return Tr(i,Re().PureComponent),Pr(i,[{key:"render",value:function(){s=this.props,d=[],u=[],p=[],m=Re().Children.count(s.children),f=Zx(s),h=Jx(s),Re().Children.forEach(s.children,function(e,t){var r,n={message:"children",index:t,slidesToScroll:s.slidesToScroll,currentSlide:s.currentSlide},o=!s.lazyLoad||(s.lazyLoad,0<=s.lazyLoadedList.indexOf(t))?e:Re().createElement("div",null),a=xw(N(N({},s),{},{index:t})),l=o.props.className||"",i=Cw(N(N({},s),{},{index:t}));d.push(Re().cloneElement(o,{key:"original"+ww(o,t),"data-index":t,className:bt(i,l),tabIndex:"-1","aria-hidden":!i["slick-active"],style:N(N({outline:"none"},o.props.style||{}),a),onClick:function(e){o.props&&o.props.onClick&&o.props.onClick(e),s.focusOnSelect&&s.focusOnSelect(n)}})),s.infinite&&1<m&&!1===s.fade&&!s.unslick&&((r=m-t)<=mw(s)&&(f<=(c=-r)&&(o=e),i=Cw(N(N({},s),{},{index:c})),u.push(Re().cloneElement(o,{key:"precloned"+ww(o,c),"data-index":c,tabIndex:"-1",className:bt(i,l),"aria-hidden":!i["slick-active"],style:N(N({},o.props.style||{}),a),onClick:function(e){o.props&&o.props.onClick&&o.props.onClick(e),s.focusOnSelect&&s.focusOnSelect(n)}}))),t<fw(s))&&((c=m+t)<h&&(o=e),i=Cw(N(N({},s),{},{index:c})),p.push(Re().cloneElement(o,{key:"postcloned"+ww(o,c),"data-index":c,tabIndex:"-1",className:bt(i,l),"aria-hidden":!i["slick-active"],style:N(N({},o.props.style||{}),a),onClick:function(e){o.props&&o.props.onClick&&o.props.onClick(e),s.focusOnSelect&&s.focusOnSelect(n)}})))});var s,c,d,u,p,m,f,h,e=s.rtl?u.concat(d,p).reverse():u.concat(d,p),t=this.props,t={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return Re().createElement("div",od({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},t),e)}}])})();var kw=(()=>{function n(){return $r(this,n),e=this,t=n,r=arguments,t=Or(t),Ar(e,Hr()?Reflect.construct(t,r||[],Or(e).constructor):t.apply(e,r));var e,t,r}return Tr(n,Re().PureComponent),Pr(n,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e=this.props,t=e.onMouseEnter,r=e.onMouseOver,n=e.onMouseLeave,o=e.infinite,a=e.slidesToScroll,l=e.slideCount,i=e.currentSlide,s=(e=>e=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1)({slideCount:l,slidesToScroll:a,slidesToShow:e.slidesToShow,infinite:o}),e={onMouseEnter:t,onMouseOver:r,onMouseLeave:n},c=[],d=0;d<s;d++)var u=(d+1)*a-1,u=o?u:qx(u,0,l-1),p=u-(a-1),p=o?p:qx(p,0,l-1),u=bt({"slick-active":o?p<=i&&i<=u:i===p}),p=this.clickHandler.bind(this,{message:"dots",index:d,slidesToScroll:a,currentSlide:i}),c=c.concat(Re().createElement("li",{key:d,className:u},Re().cloneElement(this.props.customPaging(d),{onClick:p})));return Re().cloneElement(this.props.appendDots(c),N({className:this.props.dotsClass},e))}}])})();function Ew(e,t,r){return t=Or(t),Ar(e,Hr()?Reflect.construct(t,r||[],Or(e).constructor):t.apply(e,r))}var Nw=(()=>{function e(){return $r(this,e),Ew(this,e,arguments)}return Tr(e,Re().PureComponent),Pr(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"}),e=(!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null),{key:"0","data-role":"none",className:bt(e),style:{display:"block"},onClick:t}),t={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},t=this.props.prevArrow?Re().cloneElement(this.props.prevArrow,N(N({},e),t)):Re().createElement("button",od({key:"0",type:"button"},e)," ","Previous");return t}}])})(),Iw=(()=>{function e(){return $r(this,e),Ew(this,e,arguments)}return Tr(e,Re().PureComponent),Pr(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"}),e=(aw(this.props)||(e["slick-disabled"]=!0,t=null),{key:"1","data-role":"none",className:bt(e),style:{display:"block"},onClick:t}),t={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},t=this.props.nextArrow?Re().cloneElement(this.props.nextArrow,N(N({},e),t)):Re().createElement("button",od({key:"1",type:"button"},e)," ","Next");return t}}])})(),Mw=["animating"];var $w=(()=>{function n(e){$r(this,n),t=this,e=[e],r=Or(r=n),y(m=Ar(t,Hr()?Reflect.construct(r,e||[],Or(t).constructor):r.apply(t,e)),"listRefHandler",function(e){return m.list=e}),y(m,"trackRefHandler",function(e){return m.track=e}),y(m,"adaptHeight",function(){var e;m.props.adaptiveHeight&&m.list&&(e=m.list.querySelector('[data-index="'.concat(m.state.currentSlide,'"]')),m.list.style.height=nw(e)+"px")}),y(m,"componentDidMount",function(){m.props.onInit&&m.props.onInit(),m.props.lazyLoad&&0<(t=Qx(N(N({},m.props),m.state))).length&&(m.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),m.props.onLazyLoad)&&m.props.onLazyLoad(t);var t,e=N({listRef:m.list,trackRef:m.track},m.props);m.updateState(e,!0,function(){m.adaptHeight(),m.props.autoplay&&m.autoPlay("playing")}),"progressive"===m.props.lazyLoad&&(m.lazyLoadTimer=setInterval(m.progressiveLazyLoad,1e3)),"undefined"!=typeof ResizeObserver&&(m.ro=new ResizeObserver(function(){m.state.animating?(m.onWindowResized(!1),m.callbackTimers.push(setTimeout(function(){return m.onWindowResized()},m.props.speed))):m.onWindowResized()}),m.ro.observe(m.list)),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=m.props.pauseOnFocus?m.onSlideFocus:null,e.onblur=m.props.pauseOnFocus?m.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",m.onWindowResized):window.attachEvent("onresize",m.onWindowResized)}),y(m,"componentWillUnmount",function(){var e;m.animationEndCallback&&clearTimeout(m.animationEndCallback),m.lazyLoadTimer&&clearInterval(m.lazyLoadTimer),m.callbackTimers.length&&(m.callbackTimers.forEach(function(e){return clearTimeout(e)}),m.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",m.onWindowResized):window.detachEvent("onresize",m.onWindowResized),m.autoplayTimer&&clearInterval(m.autoplayTimer),null!=(e=m.ro)&&e.disconnect()}),y(m,"componentDidUpdate",function(e){m.checkImagesLoad(),m.props.onReInit&&m.props.onReInit(),m.props.lazyLoad&&0<(t=Qx(N(N({},m.props),m.state))).length&&(m.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),m.props.onLazyLoad)&&m.props.onLazyLoad(t),m.adaptHeight();var t,r=N(N({listRef:m.list,trackRef:m.track},m.props),m.state),n=m.didPropsChange(e);n&&m.updateState(r,n,function(){m.state.currentSlide>=Re().Children.count(m.props.children)&&m.changeSlide({message:"index",index:Re().Children.count(m.props.children)-m.props.slidesToShow,currentSlide:m.state.currentSlide}),e.autoplay===m.props.autoplay&&e.autoplaySpeed===m.props.autoplaySpeed||(!e.autoplay&&m.props.autoplay?m.autoPlay("playing"):m.props.autoplay?m.autoPlay("update"):m.pause("paused"))})}),y(m,"onWindowResized",function(e){m.debouncedResize&&m.debouncedResize.cancel(),m.debouncedResize=Vx(50,function(){return m.resizeWindow(e)}),m.debouncedResize()}),y(m,"resizeWindow",function(){var e,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];Boolean(m.track&&m.track.node)&&(e=N(N({listRef:m.list,trackRef:m.track},m.props),m.state),m.updateState(e,t,function(){m.props.autoplay?m.autoPlay("update"):m.pause("paused")}),m.setState({animating:!1}),clearTimeout(m.animationEndCallback),delete m.animationEndCallback)}),y(m,"updateState",function(e,t,r){n=e,o=Re().Children.count(n.children),a=n.listRef,u=Math.ceil(rw(a)),p=n.trackRef&&n.trackRef.node,p=Math.ceil(rw(p)),d=n.vertical?u:(d=n.centerMode&&2*parseInt(n.centerPadding),"string"==typeof n.centerPadding&&"%"===n.centerPadding.slice(-1)&&(d*=u/100),Math.ceil((u-d)/n.slidesToShow)),a=a&&nw(a.querySelector('[data-index="0"]')),l=a*n.slidesToShow,i=void 0===n.currentSlide?n.initialSlide:n.currentSlide,n.rtl&&void 0===n.currentSlide&&(i=o-1-n.initialSlide),s=n.lazyLoadedList||[],c=Qx(N(N({},n),{},{currentSlide:i,lazyLoadedList:s})),o={slideCount:o,slideWidth:d,listWidth:u,trackWidth:p,currentSlide:i,slideHeight:a,listHeight:l,lazyLoadedList:s=s.concat(c)},null===n.autoplaying&&n.autoplay&&(o.autoplaying="playing");var n,o,a,l,i,s,c,d=o,u=(e=N(N(N({},e),d),{},{slideIndex:d.currentSlide}),pw(e)),p=(e=N(N({},e),{},{left:u}),dw(e));!t&&Re().Children.count(m.props.children)===Re().Children.count(e.children)||(d.trackStyle=p),m.setState(d,r)}),y(m,"ssrInit",function(){if(m.props.variableWidth){var t=0,e=0,r=[],n=mw(N(N(N({},m.props),m.state),{},{slideCount:m.props.children.length})),o=fw(N(N(N({},m.props),m.state),{},{slideCount:m.props.children.length}));m.props.children.forEach(function(e){r.push(e.props.style.width),t+=e.props.style.width});for(var a=0;a<n;a++)e+=r[r.length-1-a],t+=r[r.length-1-a];for(var l=0;l<o;l++)t+=r[l];for(var i=0;i<m.state.currentSlide;i++)e+=r[i];var s={width:t+"px",left:-e+"px"};return m.props.centerMode&&(c="".concat(r[m.state.currentSlide],"px"),s.left="calc(".concat(s.left," + (100% - ").concat(c,") / 2 ) ")),{trackStyle:s}}var c=Re().Children.count(m.props.children),s=N(N(N({},m.props),m.state),{},{slideCount:c}),c=mw(s)+fw(s)+c,d=100/m.props.slidesToShow*c,c=100/c,s=-c*(mw(s)+m.state.currentSlide)*d/100;return m.props.centerMode&&(s+=(100-c*d/100)/2),{slideWidth:c+"%",trackStyle:{width:d+"%",left:s+"%"}}}),y(m,"checkImagesLoad",function(){var e=m.list&&m.list.querySelectorAll&&m.list.querySelectorAll(".slick-slide img")||[],n=e.length,o=0;Array.prototype.forEach.call(e,function(t){function e(){return++o&&n<=o&&m.onWindowResized()}var r;t.onclick?(r=t.onclick,t.onclick=function(e){r(e),t.parentNode.focus()}):t.onclick=function(){return t.parentNode.focus()},t.onload||(m.props.lazyLoad?t.onload=function(){m.adaptHeight(),m.callbackTimers.push(setTimeout(m.onWindowResized,m.props.speed))}:(t.onload=e,t.onerror=function(){e(),m.props.onLazyLoadError&&m.props.onLazyLoadError()}))})}),y(m,"progressiveLazyLoad",function(){for(var t=[],e=N(N({},m.props),m.state),r=m.state.currentSlide;r<m.state.slideCount+fw(e);r++)if(m.state.lazyLoadedList.indexOf(r)<0){t.push(r);break}for(var n=m.state.currentSlide-1;n>=-mw(e);n--)if(m.state.lazyLoadedList.indexOf(n)<0){t.push(n);break}0<t.length?(m.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),m.props.onLazyLoad&&m.props.onLazyLoad(t)):m.lazyLoadTimer&&(clearInterval(m.lazyLoadTimer),delete m.lazyLoadTimer)}),y(m,"slideHandler",function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=m.props,n=r.asNavFor,o=r.beforeChange,a=r.onLazyLoad,l=r.speed,i=r.afterChange,r=m.state.currentSlide,t=(e=>{var t=e.waitForAnimate,r=e.fade,n=e.infinite,o=e.index,a=e.slideCount,l=e.lazyLoad,i=e.currentSlide,s=e.centerMode,c=e.slidesToScroll,d=e.slidesToShow,u=e.useCSS,p=e.lazyLoadedList;if(t&&e.animating)return{};var t=o,m={},f={},h=n?o:qx(o,0,a-1);if(r){if(!n&&(o<0||a<=o))return{};o<0?t=o+a:a<=o&&(t=o-a),f={animating:!(m={animating:!0,currentSlide:t,lazyLoadedList:p=l&&p.indexOf(t)<0?p.concat(t):p,targetSlide:t}),targetSlide:t}}else(r=t)<0?(r=t+a,n?a%c!=0&&(r=a-a%c):r=0):!aw(e)&&i<t?t=r=i:s&&a<=t?(t=n?a:a-1,r=n?0:a-1):a<=t&&(r=t-a,n?a%c!=0&&(r=0):r=a-d),!n&&a<=t+d&&(r=a-d),o=pw(N(N({},e),{},{slideIndex:t})),i=pw(N(N({},e),{},{slideIndex:r})),n||(o===i&&(t=r),o=i),l&&(p=p.concat(Qx(N(N({},e),{},{currentSlide:t})))),u?f={animating:!(m={animating:!0,currentSlide:r,trackStyle:uw(N(N({},e),{},{left:o})),lazyLoadedList:p,targetSlide:h}),currentSlide:r,trackStyle:dw(N(N({},e),{},{left:i})),swipeLeft:null,targetSlide:h}:m={currentSlide:r,trackStyle:dw(N(N({},e),{},{left:i})),lazyLoadedList:p,targetSlide:h};return{state:m,nextState:f}})(N(N(N({index:e},m.props),m.state),{},{trackRef:m.track,useCSS:m.props.useCSS&&!t})),s=t.state,c=t.nextState;s&&(o&&o(r,s.currentSlide),t=s.lazyLoadedList.filter(function(e){return m.state.lazyLoadedList.indexOf(e)<0}),a&&0<t.length&&a(t),!m.props.waitForAnimate&&m.animationEndCallback&&(clearTimeout(m.animationEndCallback),i&&i(r),delete m.animationEndCallback),m.setState(s,function(){n&&m.asNavForIndex!==e&&(m.asNavForIndex=e,n.innerSlider.slideHandler(e)),c&&(m.animationEndCallback=setTimeout(function(){var e=c.animating,t=jx(c,Mw);m.setState(t,function(){m.callbackTimers.push(setTimeout(function(){return m.setState({animating:e})},10)),i&&i(s.currentSlide),delete m.animationEndCallback})},l))}))}),y(m,"changeSlide",function(e){var t,r,n,o,a,l,i,s,c,d=1<arguments.length&&void 0!==arguments[1]&&arguments[1],u=N(N({},m.props),m.state),p=(e=e,n=(u=u).slidesToScroll,a=u.currentSlide,l=u.targetSlide,c=u.lazyLoad,i=u.infinite,s=(o=u.slideCount)%n!=0?0:(o-a)%n,"previous"===e.message?(r=a-(p=0==s?n:u.slidesToShow-s),c&&!i&&(r=-1==(t=a-p)?o-1:t),i||(r=l-n)):"next"===e.message?(r=a+(p=0==s?n:s),c&&!i&&(r=(a+n)%o+s),i||(r=l+n)):"dots"===e.message?r=e.index*e.slidesToScroll:"children"===e.message?(r=e.index,i&&(t=gw(N(N({},u),{},{targetSlide:r})),r>e.currentSlide&&"left"===t?r-=o:r<e.currentSlide&&"right"===t&&(r+=o))):"index"===e.message&&(r=Number(e.index)),r);(0===p||p)&&(!0===d?m.slideHandler(p,d):m.slideHandler(p),m.props.autoplay&&m.autoPlay("update"),m.props.focusOnSelect)&&(c=m.list.querySelectorAll(".slick-current"))[0]&&c[0].focus()}),y(m,"clickHandler",function(e){!1===m.clickable&&(e.stopPropagation(),e.preventDefault()),m.clickable=!0}),y(m,"keyHandler",function(e){e=e,r=m.props.accessibility,t=m.props.rtl;var t,r=e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!r?"":37===e.keyCode?t?"next":"previous":39===e.keyCode?t?"previous":"next":"";r&&m.changeSlide({message:r})}),y(m,"selectHandler",function(e){m.changeSlide(e)}),y(m,"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),y(m,"enableBodyScroll",function(){window.ontouchmove=null}),y(m,"swipeStart",function(e){m.props.verticalSwiping&&m.disableBodyScroll();e=e,r=m.props.swipe,t=m.props.draggable,"IMG"===e.target.tagName&&Ux(e);var t,r=!r||!t&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}};""!==r&&m.setState(r)}),y(m,"swipeMove",function(e){e=((e,t)=>{var r=t.scrolling,n=t.animating,o=t.vertical,a=t.swipeToSlide,l=t.verticalSwiping,i=t.rtl,s=t.currentSlide,c=t.edgeFriction,d=t.edgeDragged,u=t.onEdge,p=t.swiped,m=t.swiping,f=t.slideCount,h=t.slidesToScroll,g=t.infinite,v=t.touchObject,b=t.swipeEvent,y=t.listHeight,C=t.listWidth;if(!r){if(n)return Ux(e);o&&a&&l&&Ux(e);r={},n=pw(t),a=(v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2))),Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2))));if(!l&&!m&&10<a)return{scrolling:!0};l&&(v.swipeLength=a);m=(i?-1:1)*(v.curX>v.startX?1:-1),a=(l&&(m=v.curY>v.startY?1:-1),Math.ceil(f/h)),f=ow(t.touchObject,l),h=v.swipeLength;return g||(0===s&&("right"===f||"down"===f)||a<=s+1&&("left"===f||"up"===f)||!aw(t)&&("left"===f||"up"===f))&&(h=v.swipeLength*c,!1===d)&&u&&(u(f),r.edgeDragged=!0),!p&&b&&(b(f),r.swiped=!0),g=l?n+h*m:o?n+h*(y/C)*m:i?n-h*m:n+h*m,r=N(N({},r),{},{touchObject:v,swipeLeft:g,trackStyle:dw(N(N({},t),{},{left:g}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||10<v.swipeLength&&(r.swiping=!0,Ux(e)),r}})(e,N(N(N({},m.props),m.state),{},{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));e&&(e.swiping&&(m.clickable=!1),m.setState(e))}),y(m,"swipeEnd",function(e){var t,e=((e,t)=>{var r=t.dragging,n=t.touchObject,o=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,i=t.listHeight,s=t.swipeToSlide,c=t.scrolling,d=t.onSwipe,u=t.targetSlide,p=t.currentSlide,m=t.infinite;if(!r)return t.swipe&&Ux(e),{};var r=l?i/a:o/a,i=ow(n,l),f={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(!c&&n.swipeLength)if(n.swipeLength>r){Ux(e),d&&d(i);var h,g,v=m?p:u;switch(i){case"left":case"up":g=v+sw(t),h=s?iw(t,g):g,f.currentDirection=0;break;case"right":case"down":g=v-sw(t),h=s?iw(t,g):g,f.currentDirection=1;break;default:h=v}f.triggerSlideHandler=h}else{o=pw(t);f.trackStyle=uw(N(N({},t),{},{left:o}))}return f})(e,N(N(N({},m.props),m.state),{},{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));e&&(t=e.triggerSlideHandler,delete e.triggerSlideHandler,m.setState(e),void 0!==t)&&(m.slideHandler(t),m.props.verticalSwiping)&&m.enableBodyScroll()}),y(m,"touchEnd",function(e){m.swipeEnd(e),m.clickable=!0}),y(m,"slickPrev",function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"previous"})},0))}),y(m,"slickNext",function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"next"})},0))}),y(m,"slickGoTo",function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"index",index:e,currentSlide:m.state.currentSlide},t)},0))}),y(m,"play",function(){var e;if(m.props.rtl)e=m.state.currentSlide-m.props.slidesToScroll;else{if(!aw(N(N({},m.props),m.state)))return!1;e=m.state.currentSlide+m.props.slidesToScroll}m.slideHandler(e)}),y(m,"autoPlay",function(e){m.autoplayTimer&&clearInterval(m.autoplayTimer);var t=m.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;m.autoplayTimer=setInterval(m.play,m.props.autoplaySpeed+50),m.setState({autoplaying:"playing"})}),y(m,"pause",function(e){m.autoplayTimer&&(clearInterval(m.autoplayTimer),m.autoplayTimer=null);var t=m.state.autoplaying;"paused"===e?m.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||m.setState({autoplaying:"focused"}):"playing"===t&&m.setState({autoplaying:"hovered"})}),y(m,"onDotsOver",function(){return m.props.autoplay&&m.pause("hovered")}),y(m,"onDotsLeave",function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")}),y(m,"onTrackOver",function(){return m.props.autoplay&&m.pause("hovered")}),y(m,"onTrackLeave",function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")}),y(m,"onSlideFocus",function(){return m.props.autoplay&&m.pause("focused")}),y(m,"onSlideBlur",function(){return m.props.autoplay&&"focused"===m.state.autoplaying&&m.autoPlay("blur")}),y(m,"render",function(){var e,t,r,n=bt("slick-slider",m.props.className,{"slick-vertical":m.props.vertical,"slick-initialized":!0}),o=N(N({},m.props),m.state),a=Gx(o,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=m.props.pauseOnHover,a=N(N({},a),{},{onMouseEnter:l?m.onTrackOver:null,onMouseLeave:l?m.onTrackLeave:null,onMouseOver:l?m.onTrackOver:null,focusOnSelect:m.props.focusOnSelect&&m.clickable?m.selectHandler:null}),l=(!0===m.props.dots&&m.state.slideCount>=m.props.slidesToShow&&(l=Gx(o,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),e=m.props.pauseOnDotsHover,l=N(N({},l),{},{clickHandler:m.changeSlide,onMouseEnter:e?m.onDotsLeave:null,onMouseOver:e?m.onDotsOver:null,onMouseLeave:e?m.onDotsLeave:null}),e=Re().createElement(kw,l)),Gx(o,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"])),o=(l.clickHandler=m.changeSlide,m.props.arrows&&(t=Re().createElement(Nw,l),r=Re().createElement(Iw,l)),null),l=(m.props.vertical&&(o={height:m.state.listHeight}),null),o=(!1===m.props.vertical?!0===m.props.centerMode&&(l={padding:"0px "+m.props.centerPadding}):!0===m.props.centerMode&&(l={padding:m.props.centerPadding+" 0px"}),N(N({},o),l)),l=m.props.touchMove,o={className:"slick-list",style:o,onClick:m.clickHandler,onMouseDown:l?m.swipeStart:null,onMouseMove:m.state.dragging&&l?m.swipeMove:null,onMouseUp:l?m.swipeEnd:null,onMouseLeave:m.state.dragging&&l?m.swipeEnd:null,onTouchStart:l?m.swipeStart:null,onTouchMove:m.state.dragging&&l?m.swipeMove:null,onTouchEnd:l?m.touchEnd:null,onTouchCancel:m.state.dragging&&l?m.swipeEnd:null,onKeyDown:m.props.accessibility?m.keyHandler:null},l={className:n,dir:"ltr",style:m.props.style};return m.props.unslick&&(o={className:"slick-list"},l={className:n,style:m.props.style}),Re().createElement("div",l,m.props.unslick?"":t,Re().createElement("div",od({ref:m.listRefHandler},o),Re().createElement(Sw,od({ref:m.trackRefHandler},a),m.props.children)),m.props.unslick?"":r,m.props.unslick?"":e)}),m.list=null,m.track=null,m.state=N(N({},_x),{},{currentSlide:m.props.initialSlide,targetSlide:m.props.initialSlide||0,slideCount:Re().Children.count(m.props.children)}),m.callbackTimers=[],m.clickable=!0,m.debouncedResize=null;var m,t,r=m.ssrInit();return m.state=N(N({},m.state),r),m}return Tr(n,Re().Component),Pr(n,[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,n=Object.keys(this.props);r<n.length;r++){var o=n[r];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==Er(e[o])&&"function"!=typeof e[o]&&!isNaN(e[o])&&e[o]!==this.props[o]){t=!0;break}}return t||Re().Children.count(this.props.children)!==Re().Children.count(e.children)}}])})(),i=t(1441),Rw=t.n(i);var Pw=(()=>{function o(e){var t,r,n;return $r(this,o),r=this,e=[e],n=Or(n=o),y(t=Ar(r,Hr()?Reflect.construct(n,e||[],Or(r).constructor):n.apply(r,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),y(t,"slickPrev",function(){return t.innerSlider.slickPrev()}),y(t,"slickNext",function(){return t.innerSlider.slickNext()}),y(t,"slickGoTo",function(e){return t.innerSlider.slickGoTo(e,1<arguments.length&&void 0!==arguments[1]&&arguments[1])}),y(t,"slickPause",function(){return t.innerSlider.pause("paused")}),y(t,"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return Tr(o,Re().Component),Pr(o,[{key:"media",value:function(e,t){function r(e){e.matches&&t()}var n=window.matchMedia(e);n.addListener(r),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var r,e,n=this;this.props.responsive&&((r=this.props.responsive.map(function(e){return e.breakpoint})).sort(function(e,t){return e-t}),r.forEach(function(e,t){t=0===t?Rw()({minWidth:0,maxWidth:e}):Rw()({minWidth:r[t-1]+1,maxWidth:e});Yx()&&n.media(t,function(){n.setState({breakpoint:e})})}),e=Rw()({minWidth:r.slice(-1)[0]}),Yx())&&this.media(e,function(){n.setState({breakpoint:null})})}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:"render",value:function(){var t=this,e=this.state.breakpoint?"unslick"===(n=this.props.responsive.filter(function(e){return e.breakpoint===t.state.breakpoint}))[0].settings?"unslick":N(N(N({},Xx),this.props),n[0].settings):N(N({},Xx),this.props);e.centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=(r=Re().Children.toArray(this.props.children)).filter(function(e){return"string"==typeof e?!!e.trim():!!e});e.variableWidth&&(1<e.rows||1<e.slidesPerRow)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var n,o,a=[],l=null,i=0;i<r.length;i+=e.rows*e.slidesPerRow){for(var s=[],c=i;c<i+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var d=[],u=c;u<c+e.slidesPerRow&&(e.variableWidth&&r[u].props.style&&(l=r[u].props.style.width),!(u>=r.length));u+=1)d.push(Re().cloneElement(r[u],{key:100*i+10*c+u,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(Re().createElement("div",{key:10*i+c},d))}e.variableWidth?a.push(Re().createElement("div",{key:i,style:{width:l}},s)):a.push(Re().createElement("div",{key:i},s))}return"unslick"===e?(n="regular slider "+(this.props.className||""),Re().createElement("div",{className:n},r)):(a.length<=e.slidesToShow&&(e.unslick=!0),Re().createElement($w,od({style:this.props.style,ref:this.innerSliderRefHandler},(o=e,yw.reduce(function(e,t){return o.hasOwnProperty(t)&&(e[t]=o[t]),e},{}))),a))}}])})();let zw="--dot-duration";var Bw=Be("Carousel",e=>[(e=>{var{componentCls:t,antCls:r}=e;return{[t]:{...F(e),".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${r}-radio-input, input${r}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${r}-radio-input, input${r}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}}}})(e),(e=>{var{componentCls:t,motionDurationSlow:r,arrowSize:n,arrowOffset:o}=e,a=e.calc(n).div(Math.SQRT2).equal();return{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:n,height:n,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:"opacity "+r,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(n).sub(a).div(2).equal(),insetInlineStart:e.calc(n).sub(a).div(2).equal(),display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:o,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:o,"&::after":{transform:"rotate(135deg)"}}}}})(e),(e=>{var{componentCls:t,dotOffset:r,dotWidth:n,dotHeight:o,dotGap:a,colorBgContainer:l,motionDurationSlow:i}=e,s=new Qe.Keyframes(e.prefixCls+"-dot-animation",{from:{width:0},to:{width:e.dotActiveWidth}});return{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:n,height:o,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:"all "+i,borderRadius:o,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:0,height:o,content:'""',background:"transparent",borderRadius:o,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden"},button:{position:"relative",display:"block",width:"100%",height:o,padding:0,color:"transparent",fontSize:0,background:l,border:0,borderRadius:o,outline:"none",cursor:"pointer",opacity:.2,transition:"all "+i,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(a).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{background:l,animationName:s,animationDuration:`var(${zw})`,animationTimingFunction:"ease-out",animationFillMode:"forwards"}}}}}}})(e),(e=>{var{componentCls:t,dotOffset:r,arrowOffset:n,marginXXS:o}=e,a=new Qe.Keyframes(e.prefixCls+"-dot-vertical-animation",{from:{height:0},to:{height:e.dotActiveWidth}}),l={width:e.dotHeight,height:e.dotWidth};return{[t+"-vertical"]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:n,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:n,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-start":{insetInlineEnd:"auto",insetInlineStart:r},"&-end":{insetInlineEnd:r,insetInlineStart:"auto"},li:{...l,margin:(0,Qe.unit)(o)+" 0",verticalAlign:"baseline",button:l,"&::after":{...l,height:0},"&.slick-active":{...l,height:e.dotActiveWidth,button:{...l,height:e.dotActiveWidth},"&::after":{...l,animationName:a,animationDuration:`var(${zw})`,animationTimingFunction:"ease-out",animationFillMode:"forwards"}}}}}}})(e),(e=>{e=e.componentCls;return[{[e+"-rtl"]:{direction:"rtl"}},{[e+"-vertical"]:{".slick-dots":{[e+"-rtl&"]:{flexDirection:"column"}}}}]})(e)],e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});let Tw="slick-dots",Ow=({currentSlide:e,slideCount:t,...r})=>ft.createElement("button",{type:"button",...r});var Hw=ft.forwardRef((e,t)=>{let{dots:r=!0,arrows:n=!1,prevArrow:o,nextArrow:a,draggable:l=!1,waitForAnimate:i=!1,dotPosition:s,dotPlacement:c,vertical:d,rootClassName:u,className:p,style:m,id:f,autoplay:h=!1,autoplaySpeed:g=3e3,rtl:v,...b}=e;var y=ft.useMemo(()=>{var e=c??s??"bottom";switch(e){case"left":return"start";case"right":return"end";default:return e}},[s,c]),C=d??("start"===y||"end"===y),{getPrefixCls:x,direction:w,className:S,style:k}=Fe("carousel"),[E]=nc("Carousel",Ei.default.Carousel);let N=ft.useRef(null),I=ft.useRef(null),M=(e,t=!1)=>{N.current.slickGoTo(e,t)},{children:$,initialSlide:R=0}=(ft.useImperativeHandle(t,()=>({goTo:M,autoPlay:N.current.innerSlider.autoPlay,innerSlider:N.current.innerSlider,prev:N.current.slickPrev,next:N.current.slickNext,nativeElement:I.current}),[N.current]),e),P=ke($).length,z=(v??"rtl"===w)&&!d;ft.useEffect(()=>{var e;0<P&&(e=z?P-R-1:R,M(e,!1))},[R,z]);var t={vertical:C,className:bt(p,S),style:{...k,...m},autoplay:!!h,...b},e=("fade"===t.effect&&(t.fade=!0),x("carousel",t.prefixCls)),w=!!r,S=bt(Tw,Tw+"-"+y,"boolean"!=typeof r&&r?.className),[k,x]=Bw(e),y=bt(e,{[e+"-rtl"]:z,[e+"-vertical"]:t.vertical},k,x,u),e=h&&!!Ze(h)&&h.dotDuration?{[zw]:g+"ms"}:{};return ft.createElement("div",{ref:I,className:y,id:f,style:e},ft.createElement(Pw,{ref:N,...t,dots:w,dotsClass:S,arrows:n,prevArrow:o??ft.createElement(Ow,{"aria-label":z?E.nextSlide:E.prevSlide}),nextArrow:a??ft.createElement(Ow,{"aria-label":z?E.prevSlide:E.nextSlide}),draggable:l,verticalSwiping:C,autoplaySpeed:g,waitForAnimate:i,rtl:z}))}),Aw=ft.createContext({});let Dw="__rc_cascader_search_mark__",Lw=(t,e,{label:r=""})=>e.some(e=>String(e[r]).toLowerCase().includes(t.toLowerCase())),Fw=(e,t,r,n)=>t.map(e=>e[n.label]).join(" / ");var Ww=(s,e,c,d,t,u)=>{let{filter:p=Lw,render:m=Fw,limit:f=50,sort:h}=t;return ft.useMemo(()=>{let i=[];return s?(function o(e,a,l=!1){e.forEach(e=>{var t,r,n;!h&&!1!==f&&0<f&&i.length>=f||(t=[...a,e],r=e[c.children],n=l||e.disabled,r&&0!==r.length&&!u||p(s,t,{label:c.label})&&i.push({...e,disabled:n,[c.label]:m(s,t,d,c),[Dw]:t,[c.children]:void 0}),r&&o(e[c.children],t,n))})}(e,[]),h&&i.sort((e,t)=>h(e[Dw],t[Dw],s,c)),!1!==f&&0<f?i.slice(0,f):i):[]},[s,e,c,d,m,u,p,h,f])};let jw="__RC_CASCADER_SPLIT__",_w="SHOW_PARENT",Kw="SHOW_CHILD";function Vw(e){return e.join(jw)}function Xw(e){return e.map(Vw)}function qw(e){var{label:e,value:t,children:r}=e||{},t=t||"value";return{label:e||"label",value:t,key:t,children:r||"children"}}function Gw(e,t){return e.isLeaf??!e[t.children]?.length}function Yw(e){var t,r=e.parentElement;r&&((t=e.offsetTop-r.offsetTop)-r.scrollTop<0?r.scrollTo({top:t}):t+e.offsetHeight-r.scrollTop>r.offsetHeight&&r.scrollTo({top:t+e.offsetHeight-r.offsetHeight}))}function Uw(e,t){return e.map(e=>e[Dw]?.map(e=>e[t.value]))}function Qw(e){var t;return e?(t=e,Array.isArray(t)&&Array.isArray(t[0])?e:(0===e.length?[]:[e]).map(e=>Array.isArray(e)?e:[e])):[]}function Zw(e,t,n){let o=new Set(e),a=t();return e.filter(e=>{var e=a[e],t=e?e.parent:null,r=e?e.children:null;return!((!e||!e.node.disabled)&&(n===Kw?r&&r.some(e=>e.key&&o.has(e.key)):t&&!t.node.disabled&&o.has(t.key)))})}function Jw(r,e,n,o=!1){let a=e;var l=[];for(let e=0;e<r.length;e+=1){let t=r[e];var i=a?.findIndex(e=>{e=e[n.value];return o?String(e)===String(t):e===t}),s=-1!==i?a?.[i]:null;l.push({value:s?.[n.value]??t,index:i,option:s}),a=s?.[n.children]}return l}function eS(n,o){return ft.useCallback(e=>{let t=[],r=[];return e.forEach(e=>{(Jw(e,n,o).every(e=>e.option)?r:t).push(e)}),[r,t]},[n,o])}let tS=ft.createContext(null),rS=ft.createContext({});var d=e=>{var{dropPosition:e,dropLevelOffset:t,indent:r}=e,n={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:n.top=0,n.left=-t*r;break;case 1:n.bottom=0,n.left=-t*r;break;case 0:n.bottom=0,n.left=r}return Re().createElement("div",{style:n})},nS=ft.memo(({prefixCls:e,level:t,isStart:r,isEnd:n})=>{var o=e+"-indent-unit",a=[];for(let e=0;e<t;e+=1)a.push(ft.createElement("span",{key:e,className:bt(o,{[o+"-start"]:r[e],[o+"-end"]:n[e]})}));return ft.createElement("span",{"aria-hidden":"true",className:e+"-indent"},a)});function oS(e,t){return e+"-"+t}function aS(e,t){return null!=e?e:t}function lS(e){var{title:e,_title:t,key:r,children:n}=e||{},e=e||"title";return{title:e,_title:t||[e],key:r||"key",children:n||"children"}}function iS(e){return function o(e){return ke(e).map(e=>{if(!((t=e)&&t.type&&t.type.isTreeNode))return(0,Te.Ay)(!e,"Tree/TreeNode can only accept TreeNode as children."),null;var t=e.key;let{children:r,...n}=e.props;return e={key:t,...n},(t=o(r)).length&&(e.children=t),e}).filter(e=>e)}(e)}function sS(e,c,t){let{_title:d,key:u,children:p}=lS(t),m=new Set(!0===c?[]:c),f=[];return function l(i,s=null){return i.map((t,e)=>{var r=oS(s?s.pos:"0",e),n=aS(t[u],r);let o;for(let e=0;e<d.length;e+=1){var a=d[e];if(void 0!==t[a]){o=t[a];break}}return r=Object.assign(at(t,[...d,u,p]),{title:o,key:n,parent:s,pos:r,children:null,data:t,isStart:[...s?s.isStart:[],0===e],isEnd:[...s?s.isEnd:[],e===i.length-1]}),f.push(r),!0===c||m.has(n)?r.children=l(t[p]||[],r):r.children=[],r})}(e),f}function cS(s,c,e){let{childrenPropName:t,externalGetKey:r,fieldNames:n}="object"==typeof e?e||{}:{externalGetKey:e},{key:o,children:a}=lS(n),d=t||a,u;r?"string"==typeof r?u=e=>e[r]:"function"==typeof r&&(u=e=>r(e)):u=(e,t)=>aS(e[o],t),function r(n,e,o,t){var a=n?n[d]:s;let l=n?o.pos+"-"+e:"0",i=n?[...t,n]:[];n&&(t=u(n,l),e={node:n,index:e,pos:l,key:t,parentPos:o.node?o.pos:null,level:o.level+1,nodes:i},c(e)),a&&a.forEach((e,t)=>{r(e,t,{node:n,pos:l,level:o?o.level+1:-1},i)})}(null)}function dS(e,{initWrapper:t,processEntity:i,onProcessFinished:r,externalGetKey:n,childrenPropName:o,fieldNames:a}={},l){n=n||l;let s={},c={},d={posEntities:s,keyEntities:c};return t&&(d=t(d)||d),cS(e,e=>{var{node:e,index:t,pos:r,key:n,parentPos:o,level:a,nodes:l}=e,e={node:e,nodes:l,index:t,key:n,pos:r,level:a},l=aS(n,r);s[r]=e,(c[l]=e).parent=s[o],e.parent&&(e.parent.children=e.parent.children||[],e.parent.children.push(e)),i&&i(e,d)},{externalGetKey:n,childrenPropName:o,fieldNames:a}),r&&r(d),d}function uS(e,t,r,n){return!1!==e&&(e||!t&&!r||t&&n&&!r)}function pS(e,{expandedKeys:t,selectedKeys:r,loadedKeys:n,loadingKeys:o,checkedKeys:a,halfCheckedKeys:l,dragOverNodeKey:i,dropPosition:s,keyEntities:c}){c=c[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==n.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(c?c.pos:""),dragOver:i===e&&0===s,dragOverGapTop:i===e&&-1===s,dragOverGapBottom:i===e&&1===s}}function mS(e){var{data:t,expanded:r,selected:n,checked:o,loaded:a,loading:l,halfChecked:i,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,eventKey:m}=e,t={...t,expanded:r,selected:n,checked:o,loaded:a,loading:l,halfChecked:i,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,key:m};return"props"in t||Object.defineProperty(t,"props",{get(){return(0,Te.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),t}function fS(){return(fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let hS="open",gS="close",vS="---";var a=a=>{let{eventKey:t,className:e,style:r,dragOver:n,dragOverGapTop:o,dragOverGapBottom:H,isLeaf:l,isStart:A,isEnd:i,expanded:s,selected:c,checked:d,halfChecked:u,loading:p,domRef:D,active:L,data:m,onMouseMove:F,selectable:f,treeId:W,...j}=a,h=st(W,t),g=Re().useContext(tS),{classNames:v,styles:b}=g||{};var y=Re().useContext(rS);let _=Re().useRef(null),[K,C]=Re().useState(!1),x=!!(g.disabled||a.disabled||y.nodeDisabled?.(m)),w=Re().useMemo(()=>!(!g.checkable||!1===a.checkable)&&g.checkable,[g.checkable,a.checkable]),S=e=>{x||w&&!a.disableCheckbox&&g.onNodeCheck(e,mS(a),!d)},k=Re().useMemo(()=>"boolean"==typeof f?f:g.selectable,[f,g.selectable]),E=e=>{var t;g.onNodeClick(e,mS(a)),k?(t=e,x||g.onNodeSelect(t,mS(a))):S(e)},N=e=>{g.onNodeDoubleClick(e,mS(a))},I=e=>{g.onNodeMouseEnter(e,mS(a))},M=e=>{g.onNodeMouseLeave(e,mS(a))},$=e=>{g.onNodeContextMenu(e,mS(a))};y=Re().useMemo(()=>!(!g.draggable||g.draggable.nodeDraggable&&!g.draggable.nodeDraggable(m)),[g.draggable,m]);let V=e=>{p||g.onNodeExpand(e,mS(a))},R=Re().useMemo(()=>{var e=(g.keyEntities[t]||{}).children;return Boolean((e||[]).length)},[g.keyEntities,t]),P=Re().useMemo(()=>uS(l,g.loadData,R,a.loaded),[l,g.loadData,R,a.loaded]);Re().useEffect(()=>{p||"function"!=typeof g.loadData||!s||P||a.loaded||g.onNodeLoad(mS(a))},[p,g.loadData,g.onNodeLoad,s,P,a]);var X=Re().useMemo(()=>g.draggable?.icon?Re().createElement("span",{className:g.prefixCls+"-draggable-icon"},g.draggable.icon):null,[g.draggable]);let z=e=>{var t=a.switcherIcon||g.switcherIcon;return"function"==typeof t?t({...a,isLeaf:e}):t};var q=Re().useMemo(()=>{var e;return w?(e="boolean"!=typeof w?w:null,Re().createElement("span",{className:bt(g.prefixCls+"-checkbox",{[g.prefixCls+"-checkbox-checked"]:d,[g.prefixCls+"-checkbox-indeterminate"]:!d&&u,[g.prefixCls+"-checkbox-disabled"]:x||a.disableCheckbox}),onClick:S,role:"checkbox","aria-checked":u?"mixed":d,"aria-disabled":x||a.disableCheckbox,"aria-labelledby":h},e)):null},[w,d,u,x,a.disableCheckbox,h]);let B=Re().useMemo(()=>P?null:s?hS:gS,[P,s]),T=Re().useMemo(()=>Re().createElement("span",{className:bt(v?.itemIcon,g.prefixCls+"-iconEle",g.prefixCls+"-icon__"+(B||"docu"),{[g.prefixCls+"-icon_loading"]:p}),style:b?.itemIcon}),[g.prefixCls,B,p]),G=Re().useMemo(()=>{var e=Boolean(g.draggable);return!a.disabled&&e&&g.dragOverNodeKey===t?g.dropIndicatorRender({dropPosition:g.dropPosition,dropLevelOffset:g.dropLevelOffset,indent:g.indent,prefixCls:g.prefixCls,direction:g.direction}):null},[g.dropPosition,g.dropLevelOffset,g.indent,g.prefixCls,g.direction,g.draggable,g.dragOverNodeKey,g.dropIndicatorRender]);var Y=Re().useMemo(()=>{var e,{title:t=vS}=a,r=g.prefixCls+"-node-content-wrapper";let n;g.showIcon?(e=a.icon||g.icon,n=e?Re().createElement("span",{className:bt(v?.itemIcon,g.prefixCls+"-iconEle",g.prefixCls+"-icon__customize"),style:b?.itemIcon},"function"==typeof e?e(a):e):T):g.loadData&&p&&(n=T);let o;return o="function"==typeof t?t(m):g.titleRender?g.titleRender(m):t,Re().createElement("span",{ref:_,title:"string"==typeof t?t:"",className:bt(r,r+"-"+(B||"normal"),{[g.prefixCls+"-node-selected"]:!x&&(c||K)}),onMouseEnter:I,onMouseLeave:M,onContextMenu:$,onClick:E,onDoubleClick:N},n,Re().createElement("span",{className:bt(g.prefixCls+"-title",v?.itemTitle),style:b?.itemTitle},o),G)},[g.prefixCls,g.showIcon,a,g.icon,T,g.titleRender,m,B,I,M,$,E,N]),U=Jt(j,{aria:!0,data:!0}),Q=(g.keyEntities[t]||{}).level,Z=i[i.length-1],O=!x&&y,J=g.draggingNodeKey===t;return Re().createElement("div",fS({ref:D,role:"treeitem",id:h,"aria-expanded":P?void 0:s,"aria-selected":k&&!x?c:void 0,"aria-checked":w&&!x?u?"mixed":d:void 0,"aria-disabled":x,className:bt(e,g.prefixCls+"-treenode",v?.item,{[g.prefixCls+"-treenode-disabled"]:x,[g.prefixCls+"-treenode-switcher-"+(s?"open":"close")]:!l,[g.prefixCls+"-treenode-checkbox-checked"]:d,[g.prefixCls+"-treenode-checkbox-indeterminate"]:u,[g.prefixCls+"-treenode-selected"]:c,[g.prefixCls+"-treenode-loading"]:p,[g.prefixCls+"-treenode-active"]:L,[g.prefixCls+"-treenode-leaf-last"]:Z,[g.prefixCls+"-treenode-draggable"]:y,dragging:J,"drop-target":g.dropTargetKey===t,"drop-container":g.dropContainerKey===t,"drag-over":!x&&n,"drag-over-gap-top":!x&&o,"drag-over-gap-bottom":!x&&H,"filter-node":g.filterTreeNode?.(mS(a)),[g.prefixCls+"-treenode-leaf"]:P}),style:{...r,...b?.item},draggable:O,onDragStart:O?e=>{e.stopPropagation(),C(!0),g.onNodeDragStart(e,a);try{e.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:y?e=>{e.preventDefault(),e.stopPropagation(),g.onNodeDragEnter(e,a)}:void 0,onDragOver:y?e=>{e.preventDefault(),e.stopPropagation(),g.onNodeDragOver(e,a)}:void 0,onDragLeave:y?e=>{e.stopPropagation(),g.onNodeDragLeave(e,a)}:void 0,onDrop:y?e=>{e.preventDefault(),e.stopPropagation(),C(!1),g.onNodeDrop(e,a)}:void 0,onDragEnd:y?e=>{e.stopPropagation(),C(!1),g.onNodeDragEnd(e,a)}:void 0,onMouseMove:F},U),Re().createElement(nS,{prefixCls:g.prefixCls,level:Q,isStart:A,isEnd:i}),X,(()=>{if(P){let e=z(!0);return!1!==e?Re().createElement("span",{className:bt(g.prefixCls+"-switcher",g.prefixCls+"-switcher-noop",v?.itemSwitcher),style:b?.itemSwitcher},e):null}let e=z(!1);return!1!==e?Re().createElement("span",{onClick:V,className:bt(g.prefixCls+"-switcher",g.prefixCls+"-switcher_"+(s?hS:gS),v?.itemSwitcher),style:b?.itemSwitcher},e):null})(),q,Y)},bS=(a.isTreeNode=1,a);var yS=function(e,t){let[r,n]=ft.useState(!1);gt(()=>{if(r)return e(),()=>{t()}},[r]),gt(()=>(n(!0),()=>{n(!1)}),[])};function CS(){return(CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xS=ft.forwardRef((e,t)=>{let{className:r,style:n,motion:o,motionNodes:a,motionType:l,onMotionStart:i,onMotionEnd:s,active:c,treeNodeRequiredProps:d,...u}=e,[p,m]=ft.useState(!0),f=ft.useContext(tS).prefixCls,h=a&&"hide"!==l;gt(()=>{a&&h!==p&&m(h)},[a]);let g=ft.useRef(!1),v=()=>{a&&!g.current&&(g.current=!0,s())};yS(()=>{a&&i()},v);return a?ft.createElement(Na,CS({ref:t,visible:p},o,{motionAppear:"show"===l,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},r)=>ft.createElement("div",{ref:r,className:bt(f+"-treenode-motion",e),style:t},a.map(e=>{let{data:{...t},title:r,key:n,isStart:o,isEnd:a}=e;delete t.children;var l=pS(n,d);return ft.createElement(bS,CS({},t,l,{title:r,active:c,data:e.data,key:n,isStart:o,isEnd:a}))}))):ft.createElement(bS,CS({domRef:t,className:r,style:n},u,{active:c}))});function wS(e,t,r){var n=e.findIndex(e=>e.key===r);let o=e[n+1];e=t.findIndex(e=>e.key===r);return o?(n=t.findIndex(e=>e.key===o.key),t.slice(e+1,n)):t.slice(e+1)}function SS(){return(SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let kS="RC_TREE_MOTION_"+Math.random();l={key:kS};let ES={key:kS,level:0,index:0,pos:"0",node:l,nodes:[l]},NS={parent:null,children:[],pos:ES.pos,data:l,title:null,key:kS,isStart:[],isEnd:[]};function IS(e,t,r,n){return!1!==t&&r?e.slice(0,Math.ceil(r/n)+1):e}function MS(e){var{key:e,pos:t}=e;return aS(e,t)}var $S=ft.forwardRef((e,t)=>{let{prefixCls:r,data:l,selectable:H,checkable:A,expandedKeys:i,selectedKeys:n,checkedKeys:o,loadedKeys:a,loadingKeys:s,halfCheckedKeys:c,keyEntities:d,disabled:u,dragging:p,dragOverNodeKey:m,dropPosition:f,motion:h,height:g,itemHeight:v,virtual:b,scrollWidth:y,focusable:C,activeItem:x,tabIndex:w,onKeyDown:S,onFocus:k,onBlur:D,onMouseDown:L,onActiveChange:F,onListChangeStart:W,onListChangeEnd:j,..._}=e,E=kt(),N=ft.useRef(null),I=ft.useRef(null),[K,V]=(ft.useImperativeHandle(t,()=>({scrollTo:e=>{N.current.scrollTo(e)},getIndentWidth:()=>I.current.offsetWidth})),ft.useState(i)),[M,$]=ft.useState(l),[X,R]=ft.useState(l),[q,P]=ft.useState([]),[G,z]=ft.useState(null),B=ft.useRef(l);function T(){var e=B.current;$(e),R(e),P([]),z(null),j()}B.current=l,gt(()=>{V(i);[n=[],a=[]]=[K,i],o=n.length,r=a.length;let t=1!==Math.abs(o-r)?{add:!1,key:null}:o<r?{add:!0,key:e(n,a)}:{add:!1,key:e(a,n)};function e(e,t){let r=new Map;e.forEach(e=>{r.set(e,!0)});e=t.filter(e=>!r.has(e));return 1===e.length?e[0]:null}var r,n,o,a;null!==t.key?t.add?(o=M.findIndex(({key:e})=>e===t.key),r=IS(wS(M,l,t.key),b,g,v),(a=M.slice()).splice(o+1,0,NS),R(a),P(r),z("show")):(n=l.findIndex(({key:e})=>e===t.key),o=IS(wS(l,M,t.key),b,g,v),(a=l.slice()).splice(n+1,0,NS),R(a),P(o),z("hide")):M!==l&&($(l),R(l))},[i,l]),ft.useEffect(()=>{p||T()},[p]);e=h?X:l;let O={expandedKeys:i,selectedKeys:n,loadedKeys:a,loadingKeys:s,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:m,dropPosition:f,keyEntities:d};return ft.createElement(ft.Fragment,null,ft.createElement("div",{className:r+"-treenode","aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ft.createElement("div",{className:r+"-indent"},ft.createElement("div",{ref:I,className:r+"-indent-unit"}))),ft.createElement(fh,SS({},_,{data:e,itemKey:MS,height:g,fullHeight:!1,virtual:b,itemHeight:v,scrollWidth:y,prefixCls:r+"-list",ref:N,role:"tree",tabIndex:!1===C||u?void 0:w,"aria-activedescendant":x?st(E,x.key):void 0,onKeyDown:S,onFocus:k,onBlur:D,onMouseDown:L,onVisibleChange:e=>{e.every(e=>MS(e)!==kS)&&T()}}),e=>{let{pos:t,data:{...r},title:n,key:o,isStart:a,isEnd:l}=e;var i=aS(o,t),i=(delete r.key,delete r.children,pS(i,O));return ft.createElement(xS,SS({},r,i,{title:n,active:!!x&&o===x.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:h,motionNodes:o===kS?q:null,motionType:G,onMotionStart:W,onMotionEnd:T,treeNodeRequiredProps:O,treeId:E,onMouseMove:()=>{F(null)}}))}))});function RS(e,t){return e?(0<=(t=(e=e.slice()).indexOf(t))&&e.splice(t,1),e):[]}function PS(e,t){e=(e||[]).slice();return-1===e.indexOf(t)&&e.push(t),e}function zS(e){return e.split("-")}function BS(e,t){let n=[];return function r(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),r(t)})}(t[e].children),n}function TS(e,t,r,n,o,a,l,i,s,c){var{clientX:d,clientY:u}=e,{top:e,height:p}=e.target.getBoundingClientRect(),m=(("rtl"===c?-1:1)*((o?.x||0)-d)-12)/n,c=s.filter(e=>i[e]?.children?.length);let f=i[r.eventKey];u<e+p/2&&(o=l.findIndex(e=>e.key===f.key),d=l[o<=0?0:o-1].key,f=i[d]);n=f.key,s=f,l=f.key;let h=0,g=0;if(!c.includes(n))for(let e=0;e<m&&(e=>{var t;return e.parent&&(t=zS(e.pos),Number(t[t.length-1])===e.parent.children.length-1)})(f);e+=1)f=f.parent,g+=1;o=t.data,d=f.node;let v=!0;return n=zS((n=f).pos),0===Number(n[n.length-1])&&0===f.level&&u<e+p/2&&a({dragNode:o,dropNode:d,dropPosition:-1})&&f.key===r.eventKey?h=-1:(s.children||[]).length&&c.includes(l)?a({dragNode:o,dropNode:d,dropPosition:0})?h=0:v=!1:0===g&&!(-1.5<m)&&a({dragNode:o,dropNode:d,dropPosition:0})?h=0:a({dragNode:o,dropNode:d,dropPosition:1})?h=1:v=!1,{dropPosition:h,dropLevelOffset:g,dropTargetKey:f.key,dropTargetPos:f.pos,dragOverNodeKey:l,dropContainerKey:0!==h&&f.parent?.key||null,dropAllowed:v}}function OS(e,t){if(e)return t=t.multiple,t?e.slice():e.length?[e[0]]:e}function HS(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return(0,Te.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function AS(e,n){let o=new Set;return(e||[]).forEach(e=>{!function e(t){var r;o.has(t)||(r=n[t])&&(o.add(t),{parent:t,node:r}=r,r.disabled||t&&e(t.key))}(e)}),[...o]}function DS(e,t){let r=new Set;return e.forEach(e=>{t.has(e)||r.add(e)}),r}function LS(e){var{disabled:e,disableCheckbox:t,checkable:r}=e||{};return!(!e&&!t)||!1===r}function FS(e,t,n,r){let o=[],a;a=r||LS;r=new Set(e.filter(e=>{var t=!!n[e];return t||o.push(e),t}));let l=new Map,i=0;Object.keys(n).forEach(e=>{var e=n[e],t=e.level;let r=l.get(t);r||(r=new Set,l.set(t,r)),r.add(e),i=Math.max(i,t)}),(0,Te.Ay)(!o.length,"Tree missing follow keys: "+o.slice(0,100).map(e=>`'${e}'`).join(", "));let s;return s=!0===t?((e,t,r,o)=>{let a=new Set(e),l=new Set;for(let e=0;e<=r;e+=1)(t.get(e)||new Set).forEach(e=>{var{key:e,node:t,children:r=[]}=e;a.has(e)&&!o(t)&&r.filter(e=>!o(e.node)).forEach(e=>{a.add(e.key)})});let n=new Set;for(let e=r;0<=e;--e)(t.get(e)||new Set).forEach(e=>{var{parent:t,node:r}=e;if(!o(r)&&e.parent&&!n.has(e.parent.key)){if(!o(e.parent.node)){let r=!0,n=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{var t=a.has(e);r&&!t&&(r=!1),n||!t&&!l.has(e)||(n=!0)}),r&&a.add(t.key),n&&l.add(t.key)}n.add(t.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(DS(l,a))}})(r,l,i,a):((e,t,r,n,o)=>{let a=new Set(e),l=new Set(t);for(let e=0;e<=n;e+=1)(r.get(e)||new Set).forEach(e=>{var{key:e,node:t,children:r=[]}=e;a.has(e)||l.has(e)||o(t)||r.filter(e=>!o(e.node)).forEach(e=>{a.delete(e.key)})});l=new Set;let i=new Set;for(let e=n;0<=e;--e)(r.get(e)||new Set).forEach(e=>{var{parent:t,node:r}=e;if(!o(r)&&e.parent&&!i.has(e.parent.key)){if(!o(e.parent.node)){let r=!0,n=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{var t=a.has(e);r&&!t&&(r=!1),n||!t&&!l.has(e)||(n=!0)}),r||a.delete(t.key),n&&l.add(t.key)}i.add(t.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(DS(l,a))}})(r,t.halfCheckedKeys,l,i,a)}function WS(){return(WS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class jS extends ft.Component{static defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:d,allowDrop:()=>!0,expandAction:!1};static TreeNode=bS;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:lS()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=ft.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){var{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e)&&this.scrollTo({key:e,offset:t})}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(n,e){let t=e.prevProps;var o={prevProps:n};function a(e){return!t&&n.hasOwnProperty(e)||t&&t[e]!==n[e]}let l,r=e.fieldNames;a("fieldNames")&&(r=lS(n.fieldNames),o.fieldNames=r),a("treeData")?{treeData:l}=n:a("children")&&((0,Te.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),l=iS(n.children)),l&&(s=dS(o.treeData=l,{fieldNames:r}),o.keyEntities={[kS]:ES,...s.keyEntities});var i,s=o.keyEntities||e.keyEntities;if(a("expandedKeys")||t&&a("autoExpandParent"))o.expandedKeys=n.autoExpandParent||!t&&n.defaultExpandParent?AS(n.expandedKeys,s):n.expandedKeys;else if(!t&&n.defaultExpandAll){let t={...s},r=(delete t[kS],[]);Object.keys(t).forEach(e=>{e=t[e];e.children&&e.children.length&&r.push(e.key)}),o.expandedKeys=r}else!t&&n.defaultExpandedKeys&&(o.expandedKeys=n.autoExpandParent||n.defaultExpandParent?AS(n.defaultExpandedKeys,s):n.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,(l||o.expandedKeys)&&(i=sS(l||e.treeData,o.expandedKeys||e.expandedKeys,r),o.flattenNodes=i),n.selectable&&(a("selectedKeys")?o.selectedKeys=OS(n.selectedKeys,n):!t&&n.defaultSelectedKeys&&(o.selectedKeys=OS(n.defaultSelectedKeys,n))),n.checkable){let r;if(a("checkedKeys")?r=HS(n.checkedKeys)||{}:!t&&n.defaultCheckedKeys?r=HS(n.defaultCheckedKeys)||{}:l&&(r=HS(n.checkedKeys)||{checkedKeys:e.checkedKeys,halfCheckedKeys:e.halfCheckedKeys}),r){let{checkedKeys:e=[],halfCheckedKeys:t=[]}=r;n.checkStrictly||(i=FS(e,!0,s),{checkedKeys:e,halfCheckedKeys:t}=i),o.checkedKeys=e,o.halfCheckedKeys=t}}return a("loadedKeys")&&(o.loadedKeys=n.loadedKeys),o}onNodeDragStart=(e,t)=>{var{expandedKeys:r,keyEntities:n}=this.state,o=this.props.onDragStart,a=t.eventKey,r=(this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY},RS(r,a));this.setState({draggingNodeKey:a,dragChildrenKeys:BS(a,n),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(r),window.addEventListener("dragend",this.onWindowDragEnd),o?.({event:e,node:mS(t)})};onNodeDragEnter=(r,n)=>{let{expandedKeys:o,keyEntities:a,dragChildrenKeys:e,flattenNodes:t,indent:l}=this.state,{onDragEnter:i,onExpand:s,allowDrop:c,direction:d}=this.props;var u,p,m,f,h,g,{pos:v,eventKey:b}=n;this.currentMouseOverDroppableNodeKey!==b&&(this.currentMouseOverDroppableNodeKey=b),!this.dragNodeProps||({dropPosition:b,dropLevelOffset:u,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}=TS(r,this.dragNodeProps,n,l,this.dragStartMousePosition,c,t,a,o,d),e.includes(p))||!h||(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==n.eventKey&&(r.persist(),this.delayedDragEnterLogic[v]=window.setTimeout(()=>{if(null!==this.state.draggingNodeKey){let e=[...o];var t=a[n.eventKey];t&&(t.children||[]).length&&(e=PS(o,n.eventKey)),this.setExpandedKeys(e),s?.(e,{node:mS(n),expanded:!0,nativeEvent:r.nativeEvent})}},800)),this.dragNodeProps.eventKey===p&&0===u)?this.resetDragState():(this.setState({dragOverNodeKey:g,dropPosition:b,dropLevelOffset:u,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h}),i?.({event:r,node:mS(n),expandedKeys:o}))};onNodeDragOver=(e,t)=>{var r,{dragChildrenKeys:n,flattenNodes:o,keyEntities:a,expandedKeys:l,indent:i}=this.state,{onDragOver:s,allowDrop:c,direction:d}=this.props;this.dragNodeProps&&({dropPosition:i,dropLevelOffset:c,dropTargetKey:o,dropContainerKey:a,dropTargetPos:l,dropAllowed:d,dragOverNodeKey:r}=TS(e,this.dragNodeProps,t,i,this.dragStartMousePosition,c,o,a,l,d),!n.includes(o))&&d&&(this.dragNodeProps.eventKey===o&&0===c?null===this.state.dropPosition&&null===this.state.dropLevelOffset&&null===this.state.dropTargetKey&&null===this.state.dropContainerKey&&null===this.state.dropTargetPos&&!1===this.state.dropAllowed&&null===this.state.dragOverNodeKey||this.resetDragState():i===this.state.dropPosition&&c===this.state.dropLevelOffset&&o===this.state.dropTargetKey&&a===this.state.dropContainerKey&&l===this.state.dropTargetPos&&d===this.state.dropAllowed&&r===this.state.dragOverNodeKey||this.setState({dropPosition:i,dropLevelOffset:c,dropTargetKey:o,dropContainerKey:a,dropTargetPos:l,dropAllowed:d,dragOverNodeKey:r}),s?.({event:e,node:mS(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);var r=this.props.onDragLeave;r?.({event:e,node:mS(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{var r=this.props.onDragEnd;this.setState({dragOverNodeKey:null}),this.cleanDragState(),r?.({event:e,node:mS(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(e,t,r=!1)=>{var n,{dragChildrenKeys:o,dropPosition:a,dropTargetKey:l,dropTargetPos:i,dropAllowed:s}=this.state;s&&(s=this.props.onDrop,this.setState({dragOverNodeKey:null}),this.cleanDragState(),null!==l)&&(n={...pS(l,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===l,data:this.state.keyEntities[l].node},l=o.includes(l),(0,Te.Ay)(!l,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue."),l=zS(i),i={event:e,node:mS(n),dragNode:this.dragNodeProps?mS(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:0!==a,dropPosition:a+Number(l[l.length-1])},r||s?.(i),this.dragNodeProps=null)};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{var e=this.state.draggingNodeKey;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{var{expandedKeys:r,flattenNodes:n}=this.state;let{expanded:o,key:a,isLeaf:l}=t;l||e.shiftKey||e.metaKey||e.ctrlKey||(t=n.filter(e=>e.key===a)[0],n=mS({...pS(a,this.getTreeNodeRequiredProps()),data:t.data}),this.setExpandedKeys((o?RS:PS)(r,a)),this.onNodeExpand(e,n))};onNodeClick=(e,t)=>{var{onClick:r,expandAction:n}=this.props;"click"===n&&this.triggerExpandActionExpand(e,t),r?.(e,t)};onNodeDoubleClick=(e,t)=>{var{onDoubleClick:r,expandAction:n}=this.props;"doubleClick"===n&&this.triggerExpandActionExpand(e,t),r?.(e,t)};onNodeSelect=(e,t)=>{let r=this.state.selectedKeys,{keyEntities:n,fieldNames:o}=this.state;var{onSelect:a,multiple:l}=this.props,i=t.selected,s=t[o.key],i=!i,l=(r=i?l?PS(r,s):[s]:RS(r,s)).map(e=>{e=n[e];return e?e.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:r}),a?.(r,{event:"select",selected:i,node:t,selectedNodes:l,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,r)=>{let{keyEntities:n,checkedKeys:o,halfCheckedKeys:a}=this.state;var{checkStrictly:l,onCheck:i}=this.props,s=t.key;let c,d={event:"check",node:t,checked:r,nativeEvent:e.nativeEvent};if(l){t=(r?PS:RS)(o,s),e=RS(a,s);c={checked:t,halfChecked:e},d.checkedNodes=t.map(e=>n[e]).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:t})}else{let{checkedKeys:e,halfCheckedKeys:t}=FS([...o,s],!0,n);r||((l=new Set(e)).delete(s),{checkedKeys:e,halfCheckedKeys:t}=FS(Array.from(l),{checked:!1,halfCheckedKeys:t},n)),c=e,d.checkedNodes=[],d.checkedNodesPositions=[],d.halfCheckedKeys=t,e.forEach(e=>{var t,e=n[e];e&&({node:e,pos:t}=e,d.checkedNodes.push(e),d.checkedNodesPositions.push({node:e,pos:t}))}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}i?.(c,d)};onNodeLoad=l=>{let i=l.key;var e=this.state.keyEntities,e=e[i];if(!e?.children?.length)return(e=new Promise((o,a)=>{this.setState(({loadedKeys:e=[],loadingKeys:t=[]})=>{let{loadData:r,onLoad:n}=this.props;return!r||e.includes(i)||t.includes(i)?null:(r(l).then(()=>{var e=this.state.loadedKeys,e=PS(e,i);n?.(e,{event:"load",node:l}),this.setUncontrolledState({loadedKeys:e}),this.setState(e=>({loadingKeys:RS(e.loadingKeys,i)})),o()}).catch(e=>{var t;this.setState(e=>({loadingKeys:RS(e.loadingKeys,i)})),this.loadingRetryTimes[i]=(this.loadingRetryTimes[i]||0)+1,10<=this.loadingRetryTimes[i]&&(t=this.state.loadedKeys,(0,Te.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:PS(t,i)}),o()),a(e)}),{loadingKeys:PS(t,i)})})})).catch(()=>{}),e};onNodeMouseEnter=(e,t)=>{var r=this.props.onMouseEnter;r?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{var r=this.props.onMouseLeave;r?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{var r=this.props.onRightClick;r&&(e.preventDefault(),r({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;var t=this.props.onMouseDown;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{var{onFocus:t,disabled:r}=this.props;let{activeKey:n,selectedKeys:o,flattenNodes:a}=this.state;this.focusedByMouse||r||null!==n||(void 0!==(r=o.find(t=>a.some(e=>e.key===t)))?this.onActiveChange(r):this.onActiveChange(a?.[0]?.key||null)),t?.(...e)};onBlur=(...e)=>{var t=this.props.onBlur;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{var{expandedKeys:e,selectedKeys:t,loadedKeys:r,loadingKeys:n,checkedKeys:o,halfCheckedKeys:a,dragOverNodeKey:l,dropPosition:i,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:r||[],loadingKeys:n||[],checkedKeys:o||[],halfCheckedKeys:a||[],dragOverNodeKey:l,dropPosition:i,keyEntities:s}};setExpandedKeys=e=>{var t,r;this.props.hasOwnProperty("expandedKeys")||({treeData:r,fieldNames:t}=this.state,r=sS(r,e,t),this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0))};onNodeExpand=(e,t)=>{let r=this.state.expandedKeys,{listChanging:n,fieldNames:o}=this.state;var a,l,{onExpand:i,loadData:s}=this.props,c=t.expanded;let d=t[o.key];n||(a=r.includes(d),l=!c,(0,Te.Ay)(c&&a||!c&&!a,"Expand state not sync with index check"),r=(l?PS:RS)(r,d),this.setExpandedKeys(r),i?.(r,{node:t,expanded:l,nativeEvent:e.nativeEvent}),l&&s&&(c=this.onNodeLoad(t))&&c.then(()=>{var e=sS(this.state.treeData,r,o);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{var e=this.state.expandedKeys,e=RS(e,d);this.setExpandedKeys(e)}))};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{var t=this.state.activeKey,{onActiveChange:r,itemScrollOffset:n=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:n}),r?.(e))};getActiveItem=()=>{let{activeKey:t,flattenNodes:e}=this.state;return null!==t&&e.find(({key:e})=>e===t)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:r}=this.state,n=t.findIndex(({key:e})=>e===r);n=((n=-1===n&&e<0?t.length:n)+e+t.length)%t.length;var e=t[n];e?(e=e.key,this.onActiveChange(e)):this.onActiveChange(null)};onKeyDown=e=>{var{activeKey:t,expandedKeys:r,checkedKeys:n,flattenNodes:o,keyEntities:a}=this.state,{onKeyDown:l,checkable:i,selectable:s,disabled:c,loadData:d}=this.props;if(!c){switch(e.key){case"ArrowUp":this.offsetActiveKey(-1),e.preventDefault();break;case"ArrowDown":this.offsetActiveKey(1),e.preventDefault();break;case"Home":this.onActiveChange(o?.[0]?.key),e.preventDefault();break;case"End":this.onActiveChange(o?.[o.length-1]?.key),e.preventDefault()}var u=this.getActiveItem();if(u&&u.data){var p=mS({...pS(t,this.getTreeNodeRequiredProps()),data:u.data,active:!0}),c=!!a[t]?.children?.length,m=!uS(u.data.isLeaf,d,c,p.loaded),f=i&&!p.disabled&&!1!==p.checkable&&!p.disableCheckbox,h=!i&&s&&!p.disabled&&!1!==p.selectable;switch(e.key){case"ArrowLeft":m&&r.includes(t)?this.onNodeExpand({},p):u.parent&&this.onActiveChange(u.parent.key),e.preventDefault();break;case"ArrowRight":m&&!r.includes(t)?this.onNodeExpand({},p):u.children&&u.children.length&&this.onActiveChange(u.children[0].key),e.preventDefault();break;case"Enter":m?(e.preventDefault(),this.onNodeExpand({},p)):f?n.includes(t)||(e.preventDefault(),this.onNodeCheck({},p,!0)):h&&!p.selected&&(e.preventDefault(),this.onNodeSelect({},p));break;case" ":f?(e.preventDefault(),this.onNodeCheck({},p,!n.includes(t))):h&&(e.preventDefault(),this.onNodeSelect({},p))}}l?.(e)}};setUncontrolledState=(o,e=!1,a=null)=>{if(!this.destroyed){let t=!1,r=!0,n={};Object.keys(o).forEach(e=>{this.props.hasOwnProperty(e)?r=!1:(t=!0,n[e]=o[e])}),!t||e&&!r||this.setState({...n,...a})}};scrollTo=e=>{e&&"object"==typeof e&&e.autoExpand&&this.setExpandedKeys(PS(this.state.expandedKeys,e.key)),this.listRef.current.scrollTo(e)};render(){var{flattenNodes:e,keyEntities:t,draggingNodeKey:r,dropLevelOffset:n,dropContainerKey:o,dropTargetKey:a,dropPosition:l,dragOverNodeKey:i,indent:s}=this.state,{prefixCls:c,className:d,style:u,styles:p,classNames:m,showLine:f,focusable:h,tabIndex:g=0,selectable:v,showIcon:b,icon:y,switcherIcon:C,draggable:x,checkable:w,checkStrictly:S,disabled:k,motion:E,loadData:N,filterTreeNode:I,height:M,itemHeight:$,scrollWidth:R,virtual:P,titleRender:z,dropIndicatorRender:B,onContextMenu:T,onScroll:H,direction:A,rootClassName:D,rootStyle:L}=this.props,F=Jt(this.props,{aria:!0,data:!0});let O;p={styles:p,classNames:m,prefixCls:c,selectable:v,showIcon:b,icon:y,switcherIcon:C,draggable:O=x?"object"==typeof x?x:"function"==typeof x?{nodeDraggable:x}:{}:O,draggingNodeKey:r,checkable:w,checkStrictly:S,disabled:k,keyEntities:t,dropLevelOffset:n,dropContainerKey:o,dropTargetKey:a,dropPosition:l,dragOverNodeKey:i,indent:s,direction:A,dropIndicatorRender:B,loadData:N,filterTreeNode:I,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ft.createElement(tS.Provider,{value:p},ft.createElement("div",{className:bt(c,d,D,{[c+"-show-line"]:f}),style:L},ft.createElement($S,WS({ref:this.listRef,prefixCls:c,style:u,data:e,disabled:k,selectable:v,checkable:!!w,motion:E,dragging:null!==r,height:M,itemHeight:$,virtual:P,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:T,onScroll:H,scrollWidth:R},this.getTreeNodeRequiredProps(),F))))}}var _S=jS,KS=(e,n)=>{let t=ft.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return ft.useCallback(()=>(t.current.options!==e&&(t.current.options=e,t.current.info=dS(e,{fieldNames:n,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,t)=>{var r=e.nodes.map(e=>e[n.value]).join(jw);(t.pathKeyEntities[r]=e).key=r}})),t.current.info.pathKeyEntities),[n,e])};function VS(r,e){var t=ft.useMemo(()=>e||[],[e]);let n=KS(t,r);var o=ft.useCallback(e=>{let t=n();return e.map(e=>{e=t[e].nodes;return e.map(e=>e[r.value])})},[n,r]);return[t,n,o]}function XS(e,s,c,d,u,p,m,f){return n=>{if(e){let t=Vw(n);var o=Xw(c),a=Xw(d),l=o.includes(t),i=u.some(e=>Vw(e)===t);let r=c,e=u;if(i&&!l)e=u.filter(e=>Vw(e)!==t);else{i=l?o.filter(e=>e!==t):[...o,t],o=p();let e;({checkedKeys:e}=FS(i,!l||{checked:!1,halfCheckedKeys:a},o));i=Zw(e,p,f);r=m(i)}s([...e,...r])}else s(n)}}function qS(o,a,l,i,s){return ft.useMemo(()=>{var e,t,[r,n]=s(a);return o&&a.length?({checkedKeys:e,halfCheckedKeys:t}=FS(Xw(r),!0,l()),[i(e),i(t),n]):[r,[],n]},[o,a,l,i,s])}function GS({prefixCls:e,checked:t,halfChecked:r,disabled:n,onClick:o,disableCheckbox:a}){var l=ft.useContext(Aw).checkable,l="boolean"!=typeof l?l:null;return ft.createElement("span",{className:bt(""+e,{[e+"-checked"]:t,[e+"-indeterminate"]:!t&&r,[e+"-disabled"]:n||a}),onClick:o},l)}function YS(){return(YS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let US="__cascader_fix_label__";function QS({prefixCls:h,multiple:g,options:e,activeValue:v,prevValuePath:s,onToggleOpen:b,onSelect:y,onActive:C,checkedSet:c,halfCheckedSet:d,loadingKeys:u,isSelectable:x,disabled:w}){var t=h+"-menu";let S=h+"-menu-item",r=ft.useRef(null),{fieldNames:p,changeOnSelect:k,expandTrigger:n,expandIcon:E,loadingIcon:N,popupMenuColumnStyle:I,optionRender:M,classNames:$,styles:R}=ft.useContext(Aw),P="hover"===n;var o=ft.useMemo(()=>e.map(e=>{var{disabled:t,disableCheckbox:r}=e,n=e[Dw],o=e[US]??e[p.label],a=e[p.value],l=Gw(e,p),n=n?n.map(e=>e[p.value]):[...s,a],i=Vw(n);return{disabled:t,label:o,value:a,isLeaf:l,isLoading:u.includes(i),checked:c.has(i),halfChecked:d.has(i),option:e,disableCheckbox:r,fullPath:n,fullPathKey:i}}),[e,c,p,d,u,s]);return ft.useEffect(()=>{var e;r.current&&(e=`.${S}-active`,e=r.current.querySelector(e))&&Yw(e)},[v,S]),ft.createElement("ul",{className:bt(t,$?.popup?.list),style:R?.popup?.list,ref:r,role:"menu"},o.map(({disabled:t,label:e,value:r,isLeaf:n,isLoading:o,checked:a,halfChecked:l,option:i,fullPath:s,fullPathKey:c,disableCheckbox:d})=>{var u=Jt(i,{aria:!0,data:!0});let p=()=>{var e;w||t||(e=[...s],P&&n&&e.pop(),C(e))},m=()=>{!x(i)||w||t||y(s,n)},f;return"string"==typeof i.title?f=i.title:"string"==typeof e&&(f=e),ft.createElement("li",YS({key:c},u,{className:bt(S,$?.popup?.listItem,{[S+"-expand"]:!n,[S+"-active"]:v===r||v===c,[S+"-disabled"]:w||t,[S+"-loading"]:o}),style:{...I,...R?.popup?.listItem},role:"menuitemcheckbox",title:f,"aria-checked":a,"data-path-key":c,onClick:()=>{p(),d||g&&!n||m()},onDoubleClick:()=>{k&&b(!1)},onMouseEnter:()=>{P&&p()},onMouseDown:e=>{e.preventDefault()}}),g&&ft.createElement(GS,{prefixCls:h+"-checkbox",checked:a,halfChecked:l,disabled:w||t||d,disableCheckbox:d,onClick:e=>{d||(e.stopPropagation(),m())}}),ft.createElement("div",{className:S+"-content"},M&&"__EMPTY__"!==r?M(i):e),!o&&E&&!n&&ft.createElement("div",{className:S+"-expand-icon"},E),o&&N&&ft.createElement("div",{className:S+"-loading-icon"},N))}))}var ZS=(e,t)=>{var r=ft.useContext(Aw).values;let n=r[0],[o,a]=ft.useState([]);return ft.useEffect(()=>{e||a(n||[])},[t,n]),[o,a]},JS=(e,s,c,d,t,n,r)=>{let{direction:o,searchValue:a,toggleOpen:l,open:i}=r,u="rtl"===o,[p,m,f,h]=ft.useMemo(()=>{let e=-1,t=s;var n=[],o=[],a=d.length;let l=Uw(s,c);for(let r=0;r<a&&t;r+=1){var i=t.findIndex((e,t)=>(l[t]?Vw(l[t]):e[c.value])===d[r]);if(-1===i)break;e=i,n.push(e),o.push(d[r]),t=t[e][c.children]}let r=s;for(let e=0;e<n.length-1;e+=1)r=r[n[e]][c.children];return[o,e,r,l]},[d,c,s]),g=e=>{t(e)},v=()=>{var e;1<p.length?(e=p.slice(0,-1),g(e)):l(!1)},b=()=>{var e=(f[m]?.[c.children]||[]).find(e=>!e.disabled);e&&(e=[...p,e[c.value]],g(e))};ft.useImperativeHandle(e,()=>({onKeyDown:e=>{var t,r=e.which;switch(r){case Ce.UP:case Ce.DOWN:{let e=0;r===Ce.UP?e=-1:r===Ce.DOWN&&(e=1),0!==e&&(t=>{var r=f.length;let n=m;-1===n&&t<0&&(n=r);for(let e=0;e<r;e+=1){n=(n+t+r)%r;var o=f[n];if(o&&!o.disabled)return o=p.slice(0,-1).concat(h[n]?Vw(h[n]):o[c.value]),g(o)}})(e);break}case Ce.LEFT:a||(u?b:v)();break;case Ce.RIGHT:a||(u?v:b)();break;case Ce.BACKSPACE:a||v();break;case Ce.ENTER:p.length&&((t=f[m]?.[Dw]||[]).length?n(t.map(e=>e[c.value]),t[t.length-1]):n(p,f[m]));break;case Ce.ESC:l(!1),i&&e.stopPropagation()}},onKeyUp:()=>{}}))};function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var tk=ft.forwardRef((e,t)=>{let{prefixCls:r,multiple:n,searchValue:o,toggleOpen:a,notFoundContent:l,direction:i,open:s,disabled:c,lockOptions:d=!1}=e,u=ft.useRef(null);var p="rtl"===i;let{options:m,values:f,halfValues:h,fieldNames:g,changeOnSelect:v,onSelect:b,searchOptions:y,popupPrefixCls:C,loadData:x,expandTrigger:w}=ft.useContext(Aw),S=C||r,[k,E]=ft.useState([]);ft.useEffect(()=>{k.length&&k.forEach(t=>{var e=t.split(jw),e=Jw(e,m,g,!0).map(({option:e})=>e),e=e[e.length-1];e&&!e[g.children]&&!Gw(e,g)||E(e=>e.filter(e=>e!==t))})},[m,k,g]);var N=ft.useMemo(()=>new Set(Xw(f)),[f]),I=ft.useMemo(()=>new Set(Xw(h)),[h]);let[M,$]=ZS(n,s);var R=e=>{$(e),(e=>{if(x&&!o){var r=Jw(e,m,g).map(({option:e})=>e),t=r[r.length-1];if(t&&!Gw(t,g)){let t=Vw(e);E(e=>[...e,t]),x(r)}}})(e)};let P=e=>{var t;return!c&&(t=e.disabled,e=Gw(e,g),!t)&&(e||v||n)},z=(e,t,r=!1)=>{b(e),!n&&(t||v&&("hover"===w||r))&&a(!1)},B=ft.useMemo(()=>o?y:m,[o,y,m]),T=(0,tt.A)(()=>B,[s,d],(e,t)=>!!t[0]&&!t[1]);var O=ft.useMemo(()=>{var t=[{options:T}];let n=T,o=Uw(n,g);for(let e=0;e<M.length;e+=1){let r=M[e];var a=n.find((e,t)=>(o[t]?Vw(o[t]):e[g.value])===r)?.[g.children];if(!a?.length)break;n=a,t.push({options:a})}return t},[T,M,g]),t=(JS(t,T,g,M,R,(e,t)=>{P(t)&&z(e,Gw(t,g),!0)},{direction:i,searchValue:o,toggleOpen:a,open:s}),ft.useEffect(()=>{if(!o)for(let e=0;e<M.length;e+=1){var t=Vw(M.slice(0,e+1)),t=u.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,'\\"')}"]`);t&&Yw(t)}},[M,o]),!O[0]?.options?.length),H=[{[g.value]:"__EMPTY__",[US]:l,disabled:!0}];let A={...e,multiple:!t&&n,onSelect:z,onActive:R,onToggleOpen:a,checkedSet:N,halfCheckedSet:I,loadingKeys:k,isSelectable:P};e=(t?[{options:H}]:O).map((e,t)=>{var r=M.slice(0,t),n=M[t];return ft.createElement(QS,ek({key:t},A,{prefixCls:S,options:e.options,prevValuePath:r,activeValue:n}))});return ft.createElement("div",{className:bt(S+"-menus",{[S+"-menu-empty"]:t,[S+"-rtl"]:p}),ref:u},e)});function rk(){return(rk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var nk=ft.forwardRef((e,t)=>{let{lockOptions:r,...n}=Gm();return ft.createElement(tk,rk({},e,n,{lockOptions:r,ref:t}))});function ok(){}function ak(e){let{prefixCls:t="rc-cascader",style:r,className:n,options:o,checkable:a,defaultValue:l,value:i,fieldNames:s,changeOnSelect:c,onChange:d,showCheckedStrategy:u,loadData:p,expandTrigger:m,expandIcon:f=">",loadingIcon:h,direction:g,notFoundContent:v="Not Found",disabled:b,optionRender:y}=e,C=!!a,[x,w]=vt(l,i);e=Qw(x);let S=ft.useMemo(()=>qw(s),[JSON.stringify(s)]),[k,E,N]=VS(S,o);var I=eS(k,S);let[M,$,R]=qS(C,e,E,N,I);e=ht(e=>{var t;w(e),d&&(t=(e=Qw(e)).map(e=>Jw(e,k,S).map(e=>e.option)),e=C?e:e[0],t=C?t:t[0],d(e,t))});let P=XS(C,e,M,$,R,E,N,u),z=ht(e=>{P(e)});var I=ft.useMemo(()=>({options:k,fieldNames:S,values:M,halfValues:$,changeOnSelect:c,onSelect:z,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:p,expandTrigger:m,expandIcon:f,loadingIcon:h,popupMenuColumnStyle:void 0,optionRender:y}),[k,S,M,$,c,z,a,p,m,f,h,y]),e=t+"-panel",B=!k.length;return ft.createElement(Aw.Provider,{value:I},ft.createElement("div",{className:bt(e,{[e+"-rtl"]:"rtl"===g,[e+"-empty"]:B},n),style:r},B?v:ft.createElement(tk,{prefixCls:t,searchValue:"",multiple:C,toggleOpen:ok,open:!0,direction:g,disabled:b})))}function lk(){return(lk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}e=ft.forwardRef((e,H)=>{let{id:A,prefixCls:t="rc-cascader",fieldNames:r,defaultValue:D,value:L,changeOnSelect:n,onChange:o,displayRender:F,checkable:a,showSearch:W,expandTrigger:l,options:j,popupPrefixCls:i,loadData:s,open:_,popupClassName:K,popupMenuColumnStyle:c,popupStyle:V,classNames:d,styles:u,placement:X,onPopupVisibleChange:q,expandIcon:p=">",loadingIcon:m,children:G,popupMatchSelectWidth:Y=!1,showCheckedStrategy:f=_w,optionRender:h,...U}=e;var Q=kt(A);let g=!!a,[Z,J]=vt(D,L);var v=Qw(Z);let b=ft.useMemo(()=>qw(r),[JSON.stringify(r)]),[y,C,x]=VS(b,j);var[e,w]=((t,e)=>{let{autoClearSearchValue:r,searchValue:n,onSearch:o}=e;return ft.useMemo(()=>{if(!t)return[!1,{}];let e={matchInputWidth:!0,limit:50,autoClearSearchValue:r,searchValue:n,onSearch:o};return(e=t&&"object"==typeof t?{...e,...t}:e).limit<=0&&(e.limit=!1),[!0,e]},[t,r,n,o])})(W,e);let{autoClearSearchValue:S=!0,searchValue:ee,onSearch:k}=w,[te,re]=vt("",ee);var E=te||"";let N=Ww(E,y,b,i||t,w,n||g);var ne=eS(y,b);let[I,M,$]=qS(g,v,C,x,ne);var R,P,z,B,T,v=ft.useMemo(()=>{var e=Zw(Xw(I),C,f);return[...$,...x(e)]},[I,C,x,$,f]),ne=(R=v,P=y,z=b,B=g,T=F,ft.useMemo(()=>{let o=T||(e=>{e=B?e.slice(-1):e;return e.every(e=>["string","number"].includes(typeof e))?e.join(" / "):e.reduce((e,t,r)=>{t=ft.isValidElement(t)?ft.cloneElement(t,{key:r}):t;return 0===r?[t]:[...e," / ",t]},[])});return R.map(e=>{var t=Jw(e,P,z),r=o(t.map(({option:e,value:t})=>e?.[z.label]??t),t.map(({option:e})=>e)),n=Vw(e);return{label:r,value:n,key:n,valueCells:e,disabled:t[t.length-1]?.option?.disabled}})},[R,P,z,T,B]));let oe=ht(e=>{var t;J(e),o&&(t=(e=Qw(e)).map(e=>Jw(e,y,b).map(e=>e.option)),e=g?e:e[0],t=g?t:t[0],o(e,t))}),ae=XS(g,oe,I,M,$,C,x,f),O=ht(e=>{g&&!S||re(""),ae(e)});var v=ft.useMemo(()=>({classNames:d,styles:u,options:y,fieldNames:b,values:I,halfValues:M,changeOnSelect:n,onSelect:O,checkable:a,searchOptions:N,popupPrefixCls:i,loadData:s,expandTrigger:l,expandIcon:p,loadingIcon:m,popupMenuColumnStyle:c,optionRender:h}),[d,u,y,b,I,M,n,O,a,N,i,s,l,p,m,c,h]),le=!(E?N:y).length,w=E&&w.matchInputWidth||le?{}:{minWidth:"auto"};return ft.createElement(Aw.Provider,{value:v},ft.createElement(_f,lk({},U,{ref:H,id:Q,prefixCls:t,autoClearSearchValue:S,popupMatchSelectWidth:Y,classNames:d,styles:u,popupStyle:{...w,...V},displayValues:ne,onDisplayValuesChange:(e,t)=>{"clear"===t.type?oe([]):(t=t.values[0].valueCells,O(t))},mode:g?"multiple":void 0,searchValue:E,onSearch:(e,t)=>{re(e),"blur"!==t.source&&k&&k(e)},showSearch:e,OptionList:nk,emptyOptions:le,open:_,popupClassName:K,placement:X,onPopupVisibleChange:e=>{q?.(e)},getRawInputElement:()=>G})))});e.SHOW_PARENT=_w,e.SHOW_CHILD=Kw,e.Panel=ak;var ik=e;var sk=function(e,t){var{getPrefixCls:r,direction:n,renderEmpty:o}=ft.useContext(Ue),t=t||n;return[r("select",e),r("cascader",e),t,o]};function ck(e,t){return ft.useMemo(()=>!!t&&ft.createElement("span",{className:e+"-checkbox-inner"}),[e,t])}let dk=ft.createElement(Al,{spin:!0}),uk=ft.createElement(nd,null),pk=ft.createElement(Gv,null);function mk({contextExpandIcon:e,contextLoadingIcon:t,expandIcon:r,loadingIcon:n,isRtl:o}){return ft.useMemo(()=>({expandIcon:r??e??(o?pk:uk),loadingIcon:n??t??dk}),[e,t,r,o,n])}let fk=e=>{var{checkboxCls:t,checkboxSize:r,lineWidth:n}=e,o=t+"-wrapper";return[{[t+"-group"]:{...F(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...F(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},["& + "+o]:{marginInlineStart:0}},[t]:{...F(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:r,height:r,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,Qe.unit)(n)} ${e.lineType} `+e.colorBorder,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:"all "+e.motionDurationSlow,flex:"none",...zc(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${r} / 2 - ${n})`,insetInlineStart:`calc(${r} / 4 - ${n})`,display:"table",width:e.calc(r).div(14).mul(5).equal(),height:e.calc(r).div(14).mul(8).equal(),border:(0,Qe.unit)(e.lineWidthBold)+" solid "+e.colorWhite,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity `+e.motionDurationFast,...Bc()},[t+"-input"]:{position:"absolute",inset:`calc(-1 * (${n}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:dn(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{"@media (hover: hover) and (pointer: fine)":{[`
${o}:not(${o}-disabled),
${t}:not(${t}-disabled)
`]:{["&:hover "+t]:{borderColor:e.colorPrimary}},[o+`:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t+"-checked"]:{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,...Bc()},"@media (hover: hover) and (pointer: fine)":{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},"@media (hover: hover) and (pointer: fine)":{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[o+"-disabled"]:{cursor:"not-allowed"},[t+"-disabled"]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function hk(e,t){e=ze(t,{checkboxCls:"."+e,checkboxSize:t.controlInteractiveSize});return fk(e)}var gk=Be("Checkbox",(e,{prefixCls:t})=>[hk(t,e)]),vk=e=>{var{prefixCls:t,componentCls:r}=e,n=r+"-menu-item",o=`
&${n}-expand ${n}-expand-icon,
${n}-loading-icon
`;return[hk(t+"-checkbox",e),{[r]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${r}-menu-empty`]:{[r+"-menu"]:{width:"100%",height:"auto",[n]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit},"&-item":{display:"flex",maxWidth:400,flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+e.motionDurationMid,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${n}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto",minWidth:0,...an},[o]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},o=e=>{var t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:t+`px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},bk=Be("Cascader",e=>{var{componentCls:t,antCls:r}=e;return[{[t]:{width:e.controlWidth}},{[t+"-dropdown"]:[{[`&${r}-select-dropdown`]:{padding:0}},vk(e)]},{[t+"-dropdown-rtl"]:{direction:"rtl"}},Rd(e)]},o,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),yk=co(["Cascader","Panel"],e=>{var t=e.componentCls;return{[t+"-panel"]:[vk(e),{display:"inline-flex",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[t+"-menus"]:{alignItems:"stretch"},[t+"-menu"]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},o,{resetFont:!1});function Ck(e){var{prefixCls:t,className:r,multiple:n,rootClassName:o,notFoundContent:a,direction:l,expandIcon:i,loadingIcon:s,disabled:c}=e,{expandIcon:d,loadingIcon:u}=Fe("cascader"),p=ft.useContext($s),c=c??p,[,p,t,l]=sk(t,l),m=nl(p),[f,h]=bk(p,m),g=(yk(p),"rtl"===t),{expandIcon:d,loadingIcon:u}=mk({contextExpandIcon:d,contextLoadingIcon:u,expandIcon:i,loadingIcon:s,isRtl:g}),i=void 0!==a?a:l?.("Cascader")||ft.createElement(Bh,{componentName:"Cascader"}),s=ck(p,n);return ft.createElement(ak,{...e,checkable:s,prefixCls:p,className:bt(r,f,o,h,m),notFoundContent:i,direction:t,expandIcon:d,loadingIcon:u,disabled:c})}var{SHOW_CHILD:n,SHOW_PARENT:c}=ik;let xk=(n,o,a)=>{var e=n.toLowerCase().split(o).reduce((e,t,r)=>0===r?[t]:[].concat(Pe(e),[o,t]),[]);let l=[],i=0;return e.forEach((e,t)=>{e=i+e.length;let r=n.slice(i,e);i=e,t%2==1&&(r=ft.createElement("span",{className:a+"-menu-item-keyword",key:"separator-"+t},r)),l.push(r)}),l},wk=(e,t,n,o)=>{let a=[],l=e.toLowerCase();return t.forEach((e,t)=>{0!==t&&a.push(" / ");let r=e[o.label];($a(r)||Ma(r))&&(r=xk(String(r),l,n)),a.push(r)}),a};var i=ft.forwardRef((e,t)=>{let{prefixCls:r,size:H,disabled:A,className:D,rootClassName:n,multiple:o,bordered:L=!0,transitionName:F,choiceTransitionName:W="",popupClassName:j,expandIcon:_,placement:a,showSearch:l,allowClear:i=!0,notFoundContent:s,direction:c,getPopupContainer:K,status:V,showArrow:X,builtinPlacements:q,style:G,variant:Y,dropdownClassName:U,dropdownRender:Q,onDropdownVisibleChange:Z,onPopupVisibleChange:J,dropdownMenuColumnStyle:ee,popupRender:te,dropdownStyle:re,popupMenuColumnStyle:ne,onOpenChange:oe,styles:ae,classNames:le,loadingIcon:ie,clearIcon:se,removeIcon:ce,suffixIcon:de,...ue}=e;var{getPrefixCls:d,getPopupContainer:pe,className:me,style:u,classNames:p,styles:m,expandIcon:f,loadingIcon:h,clearIcon:g,removeIcon:v,suffixIcon:b,searchIcon:y}=Fe("cascader"),fe=ft.useContext(Ue).popupOverflow,{status:C,hasFeedback:x,isFormItemInput:he,feedbackIcon:w}=ft.useContext(ap),C=Ih(C,V),[S,k,E,N]=sk(r,c);let I="rtl"===E;var d=d(),M=nl(S),[$,R]=ag(S,M),P=nl(k);bk(k,P);let{compactSize:ge,compactItemClassnames:ve}=bc(S,c);var[z,be]=Th("cascader",Y,L),N=void 0!==s?s:N?.("Cascader")||ft.createElement(Bh,{componentName:"Cascader"}),ye=mg(te||Q),Ce=ne||ee,xe=oe||J||Z,we=ft.useMemo(()=>{if(!l)return l;let e={render:wk};return e=Ze(l)?{...e,...l}:e},[l]),B=mc(e=>H??ge??e),T=ft.useContext($s),T=A??T,{expandIcon:f,loadingIcon:h}=mk({contextExpandIcon:f,contextLoadingIcon:h,expandIcon:_,loadingIcon:ie,isRtl:I}),Se=ck(k,o),O=fg(e.suffixIcon,X),{suffixIcon:g,removeIcon:v,clearIcon:b}=pg({...e,clearIcon:se,contextClearIcon:g,removeIcon:ce,contextRemoveIcon:v,loadingIcon:h,suffixIcon:de,contextSuffixIcon:b,searchIcon:Ze(l)?l.searchIcon:void 0,contextSearchIcon:y,hasFeedback:x,feedbackIcon:w,showSuffixIcon:O,multiple:o,prefixCls:S,componentName:"Cascader"}),y=ft.useMemo(()=>void 0!==a?a:I?"bottomRight":"bottomLeft",[a,I]),w=!0===i?{clearIcon:b}:i,O={...e,variant:z,size:B,status:C,disabled:T},b=We(u),e=We(G),[u,p]=je([p,le],[m,b,ae,e],{props:O},{popup:{_default:"root"}}),m={...p.popup.root,...re},[b]=Cp("SelectLike",m.zIndex),e=bt(j||U,k+"-dropdown",{[k+"-dropdown-rtl"]:"rtl"===E},n,M,u.popup.root,P,$,R);return ft.createElement(ik,{prefixCls:S,className:bt(!r&&k,{[S+"-lg"]:"large"===B,[S+"-sm"]:"small"===B,[S+"-rtl"]:I,[S+"-"+z]:be,[S+"-in-form-item"]:he},Nh(S,C,x),ve,me,D,n,u.root,M,P,$,R),disabled:T,style:p.root,classNames:u,styles:p,...ue,builtinPlacements:Hh(q,fe),direction:E,placement:y,notFoundContent:N,allowClear:w,showSearch:we,expandIcon:f,suffixIcon:g,removeIcon:v,loadingIcon:h,checkable:Se,popupClassName:e,popupPrefixCls:r||k,popupStyle:{...m,zIndex:b},popupRender:ye,popupMenuColumnStyle:Ce,onPopupVisibleChange:xe,choiceTransitionName:tc(d,"",W),transitionName:tc(d,"slide-up",F),getPopupContainer:K||pe,ref:t})}),a=Fn(i,"popupAlign",e=>at(e,["visible"])),Sk=(i.SHOW_PARENT=c,i.SHOW_CHILD=n,i.Panel=Ck,i._InternalPanelDoNotUseOrYouWillBeFired=a,i),kk=Re().createContext(null),Ek=ft.forwardRef((e,t)=>{let{prefixCls:r,children:n,indeterminate:o=!1,onMouseEnter:a,onMouseLeave:l,skipGroup:i=!1,disabled:s,rootClassName:c,className:d,style:u,classNames:p,styles:m,name:f,value:h,checked:g,defaultChecked:v,onChange:b,...y}=e;var{getPrefixCls:C,direction:x,className:w,style:S,classNames:k,styles:E}=Fe("checkbox");let N=ft.useContext(kk);var I=ft.useContext(ap).isFormItemInput,M=ft.useContext($s),M=s??N?.disabled??M;let[$,H]=vt(v,g),R=$;var A=ht(e=>{H(e.target.checked),b?.(e),!i&&N?.toggleOption&&N.toggleOption({label:n,value:h})});N&&!i&&(R=N.value.includes(h));let P=ft.useRef(null);var t=wt(t,P),C=(ft.useEffect(()=>{if(!i&&N)return N.registerValue(h),()=>{N.cancelValue(h)}},[h,i]),ft.useEffect(()=>{P.current?.input&&(P.current.input.indeterminate=o)},[o]),C("checkbox",r)),z=nl(C),[B,D]=gk(C,z),T={...y},e={...e,indeterminate:o,disabled:M,checked:R},S=We(S),O=We(u),[k,E]=je([k,p],[E,S,m,O],{props:e}),S=bt(C+"-wrapper",{[C+"-rtl"]:"rtl"===x,[C+"-wrapper-checked"]:R,[C+"-wrapper-disabled"]:M,[C+"-wrapper-in-form-item"]:I},w,d,k.root,c,D,z,B),O=bt(k.icon,{[C+"-indeterminate"]:o},ac,B),[e,x]=wC(T.onClick);return ft.createElement(pc,{component:"Checkbox",disabled:M},ft.createElement("label",{className:S,style:E.root,onMouseEnter:a,onMouseLeave:l,onClick:e},ft.createElement(xC,{...T,name:!i&&N?N.name:f,checked:R,onClick:x,onChange:A,prefixCls:C,className:O,style:E.icon,disabled:M,ref:t,value:h}),Se(n)&&ft.createElement("span",{className:bt(C+"-label",k.label),style:E.label},n)))}),l=ft.forwardRef((e,t)=>{let{defaultValue:r,children:n,options:o=[],prefixCls:a,className:l,rootClassName:i,style:s,onChange:c,role:d="group",...u}=e;var{getPrefixCls:e,direction:p}=ft.useContext(Ue);let[m,f]=ft.useState(u.value||r||[]),[h,g]=ft.useState([]),v=(ft.useEffect(()=>{"value"in u&&f(u.value||[])},[u.value]),ft.useMemo(()=>o.map(e=>$a(e)||Ma(e)?{label:e,value:e}:e).filter(e=>Ia(e)&&Ia(e.value)),[o])),b=t=>{g(e=>e.filter(e=>e!==t))},y=t=>{g(e=>[].concat(Pe(e),[t]))},C=e=>{var t=m.indexOf(e.value),r=Pe(m);-1===t?r.push(e.value):r.splice(t,1),"value"in u||f(r),c?.(r.filter(e=>h.includes(e)).sort((t,r)=>v.findIndex(e=>e.value===t)-v.findIndex(e=>e.value===r)))},x=e("checkbox",a),w=x+"-group";var e=nl(x),[S,k]=gk(x,e),E=at(u,["value","disabled"]),N=Array.isArray(v)&&0<v.length?v.map(e=>ft.createElement(Ek,{prefixCls:x,key:e.value.toString(),disabled:("disabled"in e?e:u).disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:bt(w+"-item",e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):n,I=ft.useMemo(()=>({toggleOption:C,value:m,disabled:u.disabled,name:u.name,registerValue:y,cancelValue:b}),[C,m,u.disabled,u.name,y,b]),p=bt(w,{[w+"-rtl"]:"rtl"===p},l,i,k,e,S);return ft.createElement("div",{className:p,style:s,role:d,...E,ref:t},ft.createElement(kk.Provider,{value:I},N))}),d=Ek,Nk=(d.Group=l,d.__ANT_CHECKBOX=!0,d),Ik=(0,ft.createContext)({});function Mk(e){return"auto"===e?"1 1 auto":Ma(e)?e+` ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 "+e:e}var $k=ft.forwardRef((n,e)=>{let{getPrefixCls:t,direction:o}=ft.useContext(Ue);var{gutter:r,wrap:a}=ft.useContext(Ik);let{prefixCls:l,span:i,order:s,offset:c,push:d,pull:u,className:p,children:m,flex:f,style:h,...g}=n,v=t("col",l);var b=t(),[y,C]=tm(v);let[x]=Q(b,"col"),w={},S={};xg.forEach(e=>{let t={};var r=n[e];Ma(r)?t.span=r:Ze(r)&&(t=r||{}),delete g[e],S={...S,[v+`-${e}-`+t.span]:Ia(t.span),[v+`-${e}-order-`+t.order]:t.order||0===t.order,[v+`-${e}-offset-`+t.offset]:t.offset||0===t.offset,[v+`-${e}-push-`+t.push]:t.push||0===t.push,[v+`-${e}-pull-`+t.pull]:t.pull||0===t.pull,[v+"-rtl"]:"rtl"===o},!t.flex&&0!==t.flex||(S[v+`-${e}-flex`]=!0,w[x(e+"-flex")]=Mk(t.flex))});b=bt(v,{[v+"-"+i]:void 0!==i,[v+"-order-"+s]:s,[v+"-offset-"+c]:c,[v+"-push-"+d]:d,[v+"-pull-"+u]:u},p,S,y,C),y={};return r?.[0]&&(C=Ma(r[0])?r[0]/2+"px":`calc(${r[0]} / 2)`,y.paddingInline=C),!f&&0!==f||(y.flex=Mk(f),!1!==a)||y.minWidth||(y.minWidth=0),ft.createElement("div",{...g,style:{...y,...h,...w},className:b,ref:e},m)}),Rk=$k;var Pk=Be("Divider",e=>{var t,e=ze(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[(e=>{var{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:a,orientationMargin:l,verticalMarginInline:i}=e,s=t+"-rail";return{[t]:{...F(e),borderBlockStart:(0,Qe.unit)(o)+" solid "+n,[s]:{borderBlockStart:(0,Qe.unit)(o)+" solid "+n},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:i,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:(0,Qe.unit)(o)+" solid "+n},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:(0,Qe.unit)(e.marginLG)+" 0"},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:(0,Qe.unit)(e.dividerHorizontalWithTextGutterMargin)+" 0",color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 "+n,[s+`-start, ${s}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[s+"-start"]:{width:`calc(${l} * 100%)`},[s+"-end"]:{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[s+"-start"]:{width:`calc(100% - ${l} * 100%)`},[s+"-end"]:{width:`calc(${l} * 100%)`}},[t+"-inner-text"]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:(0,Qe.unit)(o)+" 0 0",[s]:{borderBlockStart:(0,Qe.unit)(o)+" dashed "+n}},[`&-horizontal${t}-with-text${t}-dashed`]:{[s+`-start, ${s}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:(0,Qe.unit)(o)+" 0 0",[s]:{borderBlockStart:(0,Qe.unit)(o)+" dotted "+n}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[s+"-start"]:{width:0},[s+"-end"]:{width:"100%"},[t+"-inner-text"]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[s+"-start"]:{width:"100%"},[s+"-end"]:{width:0},[t+"-inner-text"]:{paddingInlineEnd:r}}}}})(e),{[t=e.componentCls]:{"&-horizontal":{["&"+t]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});let zk=["left","right","center","start","end"];var Bk=ft.forwardRef((e,t)=>{let{getPrefixCls:r,direction:n,className:o,style:a,classNames:l,styles:i}=Fe("divider"),{prefixCls:s,type:c,orientation:d,vertical:u,titlePlacement:p,orientationMargin:m,className:f,rootClassName:h,children:g,dashed:v,variant:b="solid",plain:y,style:C,size:x,classNames:w,styles:H,...A}=e;var S=r("divider",s),k=S+"-rail",[E,N]=Pk(S),I=mc(x),M=!!g;let $=zk.includes(d||"");var R=ft.useMemo(()=>{var e=p??($?d:"center");return"left"===e?"rtl"===n?"end":"start":"right"===e?"rtl"===n?"start":"end":e},[n,d,p,$]),P="start"===R&&null!=m,z="end"===R&&null!=m,[B,D]=hc(d,u,c),e={...e,orientation:B,titlePlacement:R,size:I},T=We(a),[T,e]=je([l,w],[i,T,H],{props:e}),E=bt(S,o,E,N,S+"-"+B,{[S+"-with-text"]:M,[S+"-with-text-"+R]:M,[S+"-dashed"]:!!v,[S+"-"+b]:"solid"!==b,[S+"-plain"]:!!y,[S+"-rtl"]:"rtl"===n,[S+"-no-default-orientation-margin-start"]:P,[S+"-no-default-orientation-margin-end"]:z,[S+"-md"]:"medium"===I||"middle"===I,[S+"-sm"]:"small"===I,[k]:!g,[T.rail]:T.rail&&!g},f,h,T.root),N=ft.useMemo(()=>!Ma(m)&&/^\d+$/.test(m)?Number(m):m,[m]),B={marginInlineStart:P?N:void 0,marginInlineEnd:z?N:void 0};let O=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:O.current})),ft.createElement("div",{ref:O,className:E,style:{...e.root,...g?{}:e.rail,...C},...A,role:"separator"},g&&!D&&ft.createElement(ft.Fragment,null,ft.createElement("div",{className:bt(k,k+"-start",T.rail),style:e.rail}),ft.createElement("span",{className:bt(S+"-inner-text",T.content),style:{...B,...e.content}},g),ft.createElement("div",{className:bt(k,k+"-end",T.rail),style:e.rail})))});let Tk=(e,t)=>{if(!e)return null;const r=e.offsetLeft,n=e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,o=e.clientWidth,a=e.offsetTop,l=e.parentElement.clientHeight-e.clientHeight-e.offsetTop,i=e.clientHeight;return t?{left:0,right:0,width:0,top:a,bottom:l,height:i}:{left:r,right:n,width:o,top:0,bottom:0,height:0}},Ok=e=>void 0!==e?e+"px":void 0;function Hk(e){let{prefixCls:n,containerRef:t,value:o,getValueIndex:r,motionName:a,onMotionStart:l,onMotionEnd:i,direction:s,vertical:c=!1}=e,d=ft.useRef(null),[u,p]=ft.useState(o),m=e=>{e=r(e),e=t.current?.querySelectorAll(`.${n}-item`)[e];return e?.offsetParent&&e},[f,h]=ft.useState(null),[g,v]=ft.useState(null),b=(gt(()=>{var e,t,r,n;u!==o&&(e=m(u),t=m(o),r=Tk(e,c),n=Tk(t,c),p(o),h(r),v(n),(e&&t?l:i)())},[o]),ft.useMemo(()=>c?Ok(f?.top??0):"rtl"===s?Ok(-f?.right):Ok(f?.left),[c,s,f])),y=ft.useMemo(()=>c?Ok(g?.top??0):"rtl"===s?Ok(-g?.right):Ok(g?.left),[c,s,g]);return f&&g?ft.createElement(Na,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>c?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},onAppearActive:()=>c?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},onVisibleChanged:()=>{h(null),v(null),i()}},({className:e,style:t},r)=>{t={...t,"--thumb-start-left":b,"--thumb-start-width":Ok(f?.width),"--thumb-active-left":y,"--thumb-active-width":Ok(g?.width),"--thumb-start-top":b,"--thumb-start-height":Ok(f?.height),"--thumb-active-top":y,"--thumb-active-height":Ok(g?.height)},r={ref:Ne(d,r),style:t,className:bt(n+"-thumb",e)};return ft.createElement("div",r)}):null}function Ak(e){return e.map(e=>{var t;return"object"==typeof e&&null!==e?(t=void 0!==(t=e).title?t.title:"object"!=typeof t.label?t.label?.toString():void 0,{...e,title:t}):{label:e?.toString(),title:e?.toString(),value:e}})}let Dk=({prefixCls:e,className:t,style:r,styles:n,classNames:o,data:a,disabled:l,checked:i,label:s,title:c,value:d,name:u,onChange:p,onFocus:m,onBlur:f,onKeyDown:h,onKeyUp:g,onMouseDown:v,itemRender:b=e=>e})=>b(ft.createElement("label",{className:bt(t,{[e+"-item-disabled"]:l}),style:r,onMouseDown:v},ft.createElement("input",{name:u,className:e+"-item-input",type:"radio",disabled:l,checked:i,onChange:e=>{l||p(e,d)},onFocus:m,onBlur:f,onKeyDown:h,onKeyUp:g}),ft.createElement("div",{className:bt(e+"-item-label",o?.label),title:c,style:n?.label},s)),{item:a});var Lk=ft.forwardRef((e,t)=>{let{prefixCls:n="rc-segmented",direction:r,vertical:o,options:a=[],disabled:l,defaultValue:i,value:s,name:c,onChange:d,className:u="",style:p,styles:m,classNames:f,motionName:h="thumb-motion",itemRender:g,...v}=e,b=ft.useRef(null);e=ft.useMemo(()=>Ne(b,t),[b,t]);let y=ft.useMemo(()=>Ak(a),[a]),[C,x]=vt(i??y[0]?.value,s),[w,S]=ft.useState(!1),k=(e,t)=>{x(t),d?.(t)};var E=at(v,["children"]);let[N,I]=ft.useState(!1),[M,$]=ft.useState(!1),R=()=>{$(!0)},P=()=>{$(!1)},z=()=>{I(!1)},B=e=>{"Tab"===e.key&&I(!0)},T=e=>{var t=y.findIndex(e=>e.value===C),r=y.length,t=(t+e+r)%r,e=y[t];e&&(x(e.value),d?.(e.value))},O=e=>{switch(e.key){case"ArrowLeft":case"ArrowUp":T(-1);break;case"ArrowRight":case"ArrowDown":T(1)}};return ft.createElement("div",od({role:"radiogroup","aria-label":"segmented control",tabIndex:l?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:p},E,{className:bt(n,{[n+"-rtl"]:"rtl"===r,[n+"-disabled"]:l,[n+"-vertical"]:o},u),ref:e}),ft.createElement("div",{className:n+"-group"},ft.createElement(Hk,{vertical:o,prefixCls:n,value:C,containerRef:b,motionName:n+"-"+h,direction:r,getValueIndex:t=>y.findIndex(e=>e.value===t),onMotionStart:()=>{S(!0)},onMotionEnd:()=>{S(!1)}}),y.map(e=>{var{value:t,disabled:r}=e;return ft.createElement(Dk,od({},e,{name:c,data:e,itemRender:g,key:t,prefixCls:n,className:bt(e.className,n+"-item",f?.item,{[n+"-item-selected"]:t===C&&!w,[n+"-item-focused"]:M&&N&&t===C}),style:m?.item,classNames:f,styles:m,checked:t===C,onChange:k,onFocus:R,onBlur:P,onKeyDown:O,onKeyUp:B,onMouseDown:z,disabled:!!l||!!r}))})))});function Fk(e,t){return{[e+`, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}let Wk=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),jk={overflow:"hidden",...an};var _k=Be("Segmented",e=>{var{lineWidth:t,calc:r}=e;return(e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,motionDurationMid:o}=e;var a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...F(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:"all "+o,...un(e),[t+"-group"]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[t+"-group"]:{flexDirection:"column"},[t+"-thumb"]:{width:"100%",height:0,padding:"0 "+(0,Qe.unit)(e.paddingXXS)}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[t+"-item"]:{position:"relative",textAlign:"center",cursor:"pointer",transition:"color "+o,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...Wk(e),color:e.itemSelectedColor},"&-focused":dn(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(e=>e+" "+o).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:(0,Qe.unit)(a),padding:"0 "+(0,Qe.unit)(e.segmentedPaddingHorizontal),...jk},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-icon > svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[t+"-thumb"]:{...Wk(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:(0,Qe.unit)(e.paddingXXS)+" 0",borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[t+"-item-label"]:{minHeight:l,lineHeight:(0,Qe.unit)(l),padding:"0 "+(0,Qe.unit)(e.segmentedPaddingHorizontal),fontSize:e.fontSizeLG},[t+`-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[t+"-item-label"]:{minHeight:i,lineHeight:(0,Qe.unit)(i),padding:"0 "+(0,Qe.unit)(e.segmentedPaddingHorizontalSM)},[t+`-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Fk(`&-disabled ${t}-item`,e),...Fk(t+"-item-disabled",e),[t+"-thumb-motion-appear-active"]:{willChange:"transform, width",transition:["transform","width"].map(e=>`${e} ${r} `+n).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[t+`-item, ${t}-thumb`]:{borderRadius:9999}}}}})(ze(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{var{colorTextLabel:e,colorText:t,colorFillSecondary:r,colorBgElevated:n,colorFill:o,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:e,itemHoverColor:t,itemHoverBg:r,itemSelectedBg:n,itemActiveBg:o,itemSelectedColor:t}});var Kk=ft.forwardRef((e,t)=>{var r=kt();let{prefixCls:n,className:o,rootClassName:a,block:l,options:i=[],size:s,style:c,vertical:d,orientation:u,shape:p="default",name:m=r,styles:f,classNames:h,...g}=e;var{getPrefixCls:r,direction:v,className:b,style:y,classNames:C,styles:x}=Fe("segmented"),e={...e,options:i,size:s,shape:p},y=We(y),w=We(c);let[S,k]=je([C,h],[x,y,f,w],{props:e}),E=r("segmented",n);var[C,x]=_k(E),y=mc(s),w=ft.useMemo(()=>i.map(n=>{if(e=n,Ze(e)&&e?.icon){let{icon:e,label:t,...r}=n;return{...r,label:ft.createElement(ft.Fragment,null,ft.createElement("span",{className:bt(E+"-item-icon",S.icon),style:k.icon},e),Se(t)&&ft.createElement("span",null,t))}}var e;return n}),[i,E,S.icon,k.icon]),[,e]=hc(u,d),r=bt(o,a,b,S.root,{[E+"-block"]:l,[E+"-sm"]:"small"===y,[E+"-lg"]:"large"===y,[E+"-vertical"]:e,[E+"-shape-"+p]:"round"===p},C,x);return ft.createElement(Lk,{...g,name:m,className:r,style:k.root,classNames:S,styles:k,itemRender:(e,{item:t})=>t.tooltip?(t=Ze(t.tooltip)?t.tooltip:{title:t.tooltip},ft.createElement(rv,{...t},e)):e,options:w,ref:t,prefixCls:E,direction:v,vertical:e})});let Vk=Re().createContext({}),Xk=Re().createContext({});var qk=({prefixCls:e,value:t,onChange:r,className:n,style:o})=>{let a=()=>{var e;r&&t&&!t.cleared&&((e=t.toHsb()).a=0,(e=gd(e)).cleared=!0,r(e))};return Re().createElement("div",{role:"button","aria-label":"Clear color",tabIndex:0,className:bt(e+"-clear",n),style:o,onClick:a,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())}})};function Gk(){return(Gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Yk=ft.forwardRef((e,t)=>ft.createElement(u,Gk({},e,{ref:t,icon:q().A})));function Uk(){return(Uk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qk=ft.forwardRef((e,t)=>ft.createElement(u,Uk({},e,{ref:t,icon:ce().A})));function Zk(){return"function"==typeof BigInt}function Jk(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function eE(e){var e=e.trim(),t=e.startsWith("-"),e=(e=(e=(e=t?e.slice(1):e).replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")?"0".concat(e):e)||"0",r=e.split("."),n=r[0]||"0",r=r[1]||"0",o=(t="0"===n&&"0"===r?!1:t)?"-":"";return{negative:t,negativeStr:o,trimStr:e,integerStr:n,decimalStr:r,fullStr:"".concat(o).concat(e)}}function tE(e){e=String(e);return!Number.isNaN(Number(e))&&e.includes("e")}function rE(e){var e=Nr(e.toLowerCase().split("e"),2),t=e[0],e=e[1],e=void 0===e?"0":e,r=t.startsWith("-"),t=Nr((r?t.slice(1):t).split("."),2),n=t[0],n=void 0===n?"0":n,t=t[1],t=void 0===t?"":t;return{decimal:t,digits:"".concat(n).concat(t).replace(/^0+/,"")||"0",exponent:Number(e),integer:n,negative:r}}function nE(e){return 0<=e.exponent?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function oE(e){var t=String(e);return tE(e)?nE(rE(t)):t.includes(".")&&lE(t)?t.length-t.indexOf(".")-1:0}function aE(e){var t,r,n,o,a,l=String(e);if(tE(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Zk()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Zk()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var i=rE(l),s=nE(i),l=100<s?(r=(t=i).decimal,n=i.digits,o=i.exponent,a=i.integer,t=i.negative,"0"===n?"0":(a=a.replace(/^0+/,"").length,r=(r.match(/^0*/)||[""])[0].length,i="",i=(a=(a||-r)+o)<=0?"0.".concat("0".repeat(-a)).concat(n):a>=n.length?"".concat(n).concat("0".repeat(a-n.length)):"".concat(n.slice(0,a),".").concat(n.slice(a)),"".concat(t?"-":"").concat(i))):e.toFixed(s)}return eE(l).fullStr}function lE(e){return"number"==typeof e?!Number.isNaN(e):e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var iE=(()=>{function o(e){$r(this,o),y(this,"origin",""),y(this,"negative",void 0),y(this,"integer",void 0),y(this,"decimal",void 0),y(this,"decimalLen",void 0),y(this,"empty",void 0),y(this,"nan",void 0),Jk(e)?this.empty=!0:(this.origin=String(e),"-"!==e&&!Number.isNaN(e)&&lE(e="string"==typeof(e=tE(e=e)?Number(e):e)?e:aE(e))?(e=eE(e),this.negative=e.negative,e=e.trimStr.split("."),this.integer=BigInt(e[0]),e=e[1]||"0",this.decimal=BigInt(e),this.decimalLen=e.length):this.nan=!0)}return Pr(o,[{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(e){e="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(e)}},{key:"negate",value:function(){var e=new o(this.toString());return e.negative=!e.negative,e}},{key:"cal",value:function(e,t,r){var n=Math.max(this.getDecimalStr().length,e.getDecimalStr().length),t=t(this.alignDecimal(n),e.alignDecimal(n)).toString(),e=r(n),r=eE(t),n=r.negativeStr,t=r.trimStr,r="".concat(n).concat(t.padStart(e+1,"0"));return new o("".concat(r.slice(0,-e),".").concat(r.slice(-e)))}},{key:"add",value:function(e){return this.isInvalidate()?new o(e):(e=new o(e)).isInvalidate()?this:this.cal(e,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(e){e=new o(e);return this.isInvalidate()||e.isInvalidate()?new o(NaN):this.cal(e,function(e,t){return e*t},function(e){return 2*e})}},{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(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return 0<arguments.length&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":eE("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),o})(),sE=(()=>{function r(e){$r(this,r),y(this,"origin",""),y(this,"number",void 0),y(this,"empty",void 0),Jk(e)?this.empty=!0:(this.origin=String(e),this.number=Number(e))}return Pr(r,[{key:"negate",value:function(){return new r(-this.toNumber())}},{key:"add",value:function(e){var t;return this.isInvalidate()?new r(e):(e=Number(e),Number.isNaN(e)?this:(t=this.number+e)>Number.MAX_SAFE_INTEGER?new r(Number.MAX_SAFE_INTEGER):t<Number.MIN_SAFE_INTEGER?new r(Number.MIN_SAFE_INTEGER):(e=Math.max(oE(this.number),oE(e)),new r(t.toFixed(e))))}},{key:"multi",value:function(e){var t,e=Number(e);return this.isInvalidate()||Number.isNaN(e)?new r(NaN):(t=this.number*e)>Number.MAX_SAFE_INTEGER?new r(Number.MAX_SAFE_INTEGER):t<Number.MIN_SAFE_INTEGER?new r(Number.MIN_SAFE_INTEGER):(e=Math.max(oE(this.number),oE(e)),new r(t.toFixed(e)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return 0<arguments.length&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":(tE(this.number)&&100<oE(this.number)?String:aE)(this.number)}}]),r})();function cE(e){return new(Zk()?iE:sE)(e)}function dE(e,t,r,n){var o,a,l,i,s,n=3<arguments.length&&void 0!==n&&n;return""===e?"":(o=(a=eE(e)).negativeStr,i=a.integerStr,a=a.decimalStr,l="".concat(t).concat(a),i="".concat(o).concat(i),0<=r?5<=(s=Number(a[r]))&&!n?dE(cE(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-s)).toString(),t,r,n):0===r?i:"".concat(i).concat(t).concat(a.padEnd(r,"0").slice(0,r)):".0"===l?i:"".concat(i).concat(l))}var uE=cE;function pE(i,e){let s=(0,ft.useRef)(null);return[function(){try{var{selectionStart:e,selectionEnd:t,value:r}=i,n=r.substring(0,e),o=r.substring(t);s.current={start:e,end:t,value:r,beforeTxt:n,afterTxt:o}}catch(e){}},function(){if(i&&s.current&&e)try{var t,r,n=i.value,{beforeTxt:o,afterTxt:a,start:l}=s.current;let e=n.length;n.startsWith(o)?e=o.length:n.endsWith(a)?e=n.length-s.current.afterTxt.length:(t=o[l-1],-1!==(r=n.indexOf(t,l-1))&&(e=r+1)),i.setSelectionRange(e,e)}catch(e){(0,Te.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: "+e.message)}}]}let mE=200,fE=600;function hE({prefixCls:e,action:t,children:r,disabled:n,className:o,style:a,onStep:l}){let i="up"===t,s=ft.useRef(),c=ft.useRef([]),d=()=>{clearTimeout(s.current)};ft.useEffect(()=>()=>{d(),c.current.forEach(e=>{$e.cancel(e)})},[]);var u=e+"-action",u=bt(u,u+"-"+t,{[u+`-${t}-disabled`]:n},o),o=()=>c.current.push($e(d));return ft.createElement("span",{unselectable:"on",role:"button",onMouseUp:o,onMouseLeave:o,onMouseDown:e=>{e.preventDefault(),d(),l(i,"handler"),s.current=setTimeout(function e(){l(i,"handler"),s.current=setTimeout(e,mE)},fE)},"aria-label":i?"Increase Value":"Decrease Value","aria-disabled":n,className:u,style:a},r||ft.createElement("span",{unselectable:"on",className:e+`-action-${t}-inner`}))}function gE(e){var t="number"==typeof e?aE(e):eE(e).fullStr;return t.includes(".")?eE(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function vE(){return(vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let bE=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),yE=e=>{e=uE(e);return e.isInvalidate()?null:e};var CE=ft.forwardRef((e,t)=>{let{mode:r="input",prefixCls:n="rc-input-number",className:H,style:A,classNames:o,styles:a,min:l,max:i,step:s=1,defaultValue:c,value:d,disabled:u,readOnly:p,upHandler:D,downHandler:L,keyboard:F,changeOnWheel:W=!1,controls:m=!0,prefix:f,suffix:j,stringMode:_,parser:h,formatter:g,precision:v,decimalSeparator:b,onChange:K,onInput:V,onPressEnter:X,onStep:q,onMouseDown:G,onClick:Y,onMouseUp:U,onMouseLeave:Q,onMouseMove:Z,onMouseEnter:J,onMouseOut:ee,changeOnBlur:te=!0,...re}=e,[y,ne]=ft.useState(!1),C=ft.useRef(!1),x=ft.useRef(!1),w=ft.useRef(!1),oe=ft.useRef(null),S=ft.useRef(null),[k,ae]=(ft.useImperativeHandle(t,()=>{return e=S.current,r={focus:e=>{It(S.current,e)},blur:()=>{S.current?.blur()},nativeElement:oe.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get(e,t){return r[t]||("function"==typeof(t=e[t])?t.bind(e):t)}}):e;var e,r}),ft.useState(()=>uE(d??c)));let E=ft.useCallback((e,t)=>{if(!t)return 0<=v?v:Math.max(oE(e),oE(s))},[v,s]),N=ft.useCallback(e=>{e=String(e);if(h)return h(e);let t=e;return(t=b?t.replace(b,"."):t).replace(/[^\w.-]+/g,"")},[h,b]),I=ft.useRef(""),le=ft.useCallback((e,t)=>{if(g)return g(e,{userTyping:t,input:String(I.current)});let r="number"==typeof e?aE(e):e;return t||(e=E(r,t),lE(r)&&(b||0<=e)&&(t=b||".",r=dE(r,t,e))),r},[g,E,b]),[M,ie]=ft.useState(()=>{var e=c??d;return k.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:le(k.toString(),!1)});function $(e,t){ie(le(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}I.current=M;let R=ft.useMemo(()=>yE(i),[i,v]),P=ft.useMemo(()=>yE(l),[l,v]),se=ft.useMemo(()=>!(!R||!k||k.isInvalidate())&&R.lessEquals(k),[R,k]),ce=ft.useMemo(()=>!(!P||!k||k.isInvalidate())&&k.lessEquals(P),[P,k]),[de,ue]=pE(S.current,y),pe=e=>R&&!e.lessEquals(R)?R:P&&!P.lessEquals(e)?P:null,z=e=>!pe(e),B=(e,t)=>{let r=e,n=z(r)||r.isEmpty();var o;return r.isEmpty()||t||(r=pe(r)||r,n=!0),p||u||!n?k:(e=r.toString(),0<=(o=E(e,t))&&(r=uE(dE(e,".",o)),z(r)||(r=uE(dE(e,".",o,!0)))),r.equals(k)||(e=r,void 0===d&&ae(e),K?.(r.isEmpty()?null:bE(_,r)),void 0===d&&$(r,t)),r)},me=(()=>{let t=(0,ft.useRef)(0),r=()=>{$e.cancel(t.current)};return(0,ft.useEffect)(()=>r,[]),e=>{r(),t.current=$e(()=>{e()})}})(),T=t=>{var e;de(),I.current=t,ie(t),x.current||(e=N(t),(e=uE(e)).isNaN())||B(e,!0),V?.(t),me(()=>{let e=t;(e=h?e:t.replace(/。/g,"."))!==t&&T(e)})};let O=ht((t,r)=>{if(!(t&&se||!t&&ce)){C.current=!1;let e=uE(w.current?gE(s):s);t||(e=e.negate());var n=(k||uE(0)).add(e.toString()),n=B(n,!1);q?.(bE(_,n),{offset:w.current?gE(s):s,type:t?"up":"down",emitter:r}),S.current?.focus()}}),fe=e=>{var t=uE(N(M));let r;r=t.isNaN()?B(k,e):B(t,e),void 0!==d?$(k,!1):r.isNaN()||$(r,!1)};ft.useEffect(()=>{if(W&&y){let e=e=>{O(e.deltaY<0,"wheel"),e.preventDefault()},t=S.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}});qe(()=>{k.isInvalidate()||$(k,!1)},[v,g]),qe(()=>{var e=uE(d),t=(ae(e),uE(N(M)));e.equals(t)&&C.current&&!g||$(e,C.current)},[d]),qe(()=>{g&&ue()},[M]);e={prefixCls:n,onStep:O,className:o?.action,style:a?.action},t=ft.createElement(hE,vE({},e,{action:"up",disabled:se}),D),e=ft.createElement(hE,vE({},e,{action:"down",disabled:ce}),L);return ft.createElement("div",{ref:oe,className:bt(n,n+"-mode-"+r,H,o?.root,{[n+"-focused"]:y,[n+"-disabled"]:u,[n+"-readonly"]:p,[n+"-not-a-number"]:k.isNaN(),[n+"-out-of-range"]:!k.isInvalidate()&&!z(k)}),style:{...a?.root,...A},onMouseDown:e=>{S.current&&e.target!==S.current&&(S.current.focus(),e.preventDefault()),G?.(e)},onMouseUp:U,onMouseLeave:Q,onMouseMove:Z,onMouseEnter:J,onMouseOut:ee,onClick:Y,onFocus:()=>{ne(!0)},onBlur:()=>{te&&fe(!1),ne(!1),C.current=!1},onKeyDown:e=>{var{key:t,shiftKey:r}=e;C.current=!0,w.current=r,"Enter"===t&&(x.current||(C.current=!1),fe(!1),X?.(e)),!1!==F&&!x.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(O("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{C.current=!1,w.current=!1},onCompositionStart:()=>{x.current=!0},onCompositionEnd:()=>{x.current=!1,T(S.current.value)},onBeforeInput:()=>{C.current=!0}},"spinner"===r&&m&&e,void 0!==f&&ft.createElement("div",{className:bt(n+"-prefix",o?.prefix),style:a?.prefix},f),ft.createElement("input",vE({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":i,"aria-valuenow":k.isInvalidate()?null:k.toString(),step:s,ref:S,className:bt(n+"-input",o?.input),style:a?.input,value:M,onChange:e=>{T(e.target.value)},disabled:u,readOnly:p},re)),void 0!==j&&ft.createElement("div",{className:bt(n+"-suffix",o?.suffix),style:a?.suffix},j),"spinner"===r&&m&&t,"input"===r&&m&&ft.createElement("div",{className:bt(n+"-actions",o?.actions),style:a?.actions},t,e))});var xE=Be("Addon",e=>[(e=>{var{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:o,paddingXS:a,fontSizeLG:l,fontSizeSM:i,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:u,lineType:p,antCls:m}=e,[m,f]=Q(m,"space-addon");return{[t]:[{...F(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:u,borderStyle:p,borderRadius:r,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:l,borderRadius:s},"&-small":{paddingInline:a,borderRadius:c,fontSize:i},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[m("addon-border-color")]:o,[m("addon-background")]:d,[m("addon-border-color-outlined")]:o,[m("addon-background-filled")]:d,borderColor:f("addon-border-color"),background:f("addon-background"),"&-variant-outlined":{[m("addon-border-color")]:f("addon-border-color-outlined")},"&-variant-filled":{[m("addon-border-color")]:"transparent",[m("addon-background")]:f("addon-background-filled"),[`&${t}-disabled`]:{[m("addon-border-color")]:o,[m("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[m("addon-border-color-outlined")]:e.colorError,[m("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[m("addon-border-color-outlined")]:e.colorWarning,[m("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}})(e),Rd(e,{focus:!1})]),wE=Re().forwardRef((e,t)=>{let{className:r,children:n,style:o,prefixCls:a,variant:l="outlined",disabled:i,status:s,...c}=e;var{getPrefixCls:e,direction:d}=Re().useContext(Ue),e=e("space-addon",a),[u,p]=xE(e),{compactItemClassnames:d,compactSize:m}=bc(e,d),u=bt(e,u,d,p,e+"-variant-"+l,Nh(e,s),{[e+"-"+m]:m,[e+"-disabled"]:i},r);return Re().createElement("div",{ref:t,className:u,style:o,...c},n)});let SE=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),kE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...SE(ze(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),EE=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),NE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...EE(e,t),[e.componentCls+`-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),IE=(e,t)=>({"&-outlined":{...EE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...kE(e)},...NE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...NE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),ME=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-`+t.status]:{[e.componentCls+"-group-addon"]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),$E=e=>({"&-outlined":{[e.componentCls+"-group"]:{"&-addon":{background:e.addonBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...ME(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...ME(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[e.componentCls+"-group-addon"]:{...kE(e)}}}}),RE="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",PE=(e,t)=>({outline:`${(0,Qe.unit)(e.lineWidthFocus)} ${e.lineType} `+t,outlineOffset:(0,Qe.unit)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>e+" 0s").join(", ")}),zE=(e,t)=>({"&, & input, & textarea":{color:t.color},[RE]:PE(e,t.color),[e.componentCls+`-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),BE=(e,t)=>{var r=e.componentCls;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${r}-sm, &${r}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${r}-lg, &${r}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[RE]:PE(e,e.activeBorderColor),[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:zE(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${r}-status-warning`]:zE(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},TE=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),OE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...TE(e,t),[e.componentCls+`-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),HE=(e,t)=>({"&-filled":{...TE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...kE(e)},...OE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...OE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),AE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-`+t.status]:{[e.componentCls+"-group-addon"]:{background:t.addonBg,color:t.addonColor}}}),DE=e=>({"&-filled":{[e.componentCls+"-group-addon"]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...AE(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...AE(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[e.componentCls+"-group"]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderTop:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder},"&-addon:last-child":{borderInlineEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderTop:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder}}}}}),LE=(e,t)=>({background:e.colorBgContainer,borderWidth:(0,Qe.unit)(e.lineWidth)+" 0",borderStyle:e.lineType+" none",borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),FE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...LE(e,t),[e.componentCls+`-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),WE=(e,t)=>({"&-underlined":{...LE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...FE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...FE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),jE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});let _E=e=>{var{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:(0,Qe.unit)(t)+" "+(0,Qe.unit)(o),fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},KE=e=>({padding:(0,Qe.unit)(e.paddingBlockSM)+" "+(0,Qe.unit)(e.paddingInlineSM),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),VE=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:(0,Qe.unit)(e.paddingBlock)+" "+(0,Qe.unit)(e.paddingInline),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all "+e.motionDurationMid,...jE(e.colorTextPlaceholder),"&-lg":{..._E(e),...t.largeStyle},"&-sm":{...KE(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),XE=e=>{var{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`]:{..._E(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...KE(e)},[`&-lg ${r}-select-single`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single`]:{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 "+(0,Qe.unit)(e.paddingInline),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all "+e.motionDurationSlow,lineHeight:1,[r+"-select"]:{margin:(0,Qe.unit)(e.calc(e.paddingBlock).add(1).mul(-1).equal())+" "+(0,Qe.unit)(e.calc(e.paddingInline).mul(-1).equal()),[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[r+"-cascader-picker"]:{margin:"-9px "+(0,Qe.unit)(e.calc(e.paddingInline).mul(-1).equal()),backgroundColor:"transparent",[r+"-cascader-input"]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[r+"-select"]:{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"]:{borderStartStartRadius:0,borderEndStartRadius:0}},[t+"-affix-wrapper"]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...cn(),[t+`-group-addon, ${t}-group-wrap, > `+t]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${r}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select,
& > ${r}-select-auto-complete ${t},
& > ${r}-cascader-picker ${t},
& > ${t}-group-wrapper `+t]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${r}-select:first-child,
& > ${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}-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.calc(e.lineWidth).mul(-1).equal(),[t+"-affix-wrapper"]:{}}}}},qE=e=>{var t=e.componentCls;return{[t+"-clear-icon"]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color "+e.motionDurationSlow,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...dn(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 "+(0,Qe.unit)(e.inputAffixPadding)}}}},GE=Be(["Input","Shared"],e=>{e=ze(e,AC(e));return[(e=>{var{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,o=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:{...F(e),...VE(e),...IE(e),...HE(e),...BE(e),...WE(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}})(e),(e=>{var{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:l}=e,i=t+"-affix-wrapper-disabled";return{[t+"-affix-wrapper"]:{...VE(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},["> input"+t]:{padding:0},[`> input${t}, > textarea`+t]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r},"&-password-icon":{display:"inline-flex",color:a,cursor:"pointer",transition:"all "+o,"&:hover":{color:l}}},...qE(e)},[t+"-underlined"]:{borderRadius:0},[i]:{[t+"-password-icon"]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}})(e)]},DC,{resetFont:!1});var YE=Be(["Input","Component"],e=>{var t,e=ze(e,AC(e));return[(e=>{var{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[t+"-group"]:{...F(e),...XE(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[t+"-group-addon"]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[t+"-group-addon"]:{borderRadius:n}},...$E(e),...DE(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[t+`, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[t+`, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[t+`, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[t+"-affix-wrapper"]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[t+"-affix-wrapper"]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}})(e),{[(t=e.componentCls)+"-out-of-range"]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}},Rd(e,{focus:!0,focusElCls:e.componentCls+"-affix-wrapper-focused"})]},DC,{resetFont:!1});var UE=Be("InputNumber",e=>{e=ze(e,AC(e));return[(e=>{var{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:l,colorError:i,paddingInlineSM:s,paddingBlockSM:c,paddingBlockLG:d,paddingInlineLG:u,colorIcon:p,colorTextDisabled:m,motionDurationMid:f,handleHoverColor:h,handleOpacity:g,paddingInline:v,paddingBlock:b,handleBg:y,handleActiveBg:C,inputAffixPadding:x,borderRadiusSM:w,controlWidth:S,handleBorderColor:k,filledHandleBg:E,lineHeightLG:N,antCls:I}=e,n=(0,Qe.unit)(r)+` ${n} `+k,[k,I]=Q(I,"input-number");return[{[t]:{...F(e),...VE(e),[k("input-padding-block")]:(0,Qe.unit)(b),[k("input-padding-inline")]:(0,Qe.unit)(v),display:"inline-flex",width:S,margin:0,paddingBlock:0,borderRadius:o,...IE(e,{[t+"-actions"]:{background:y,[t+"-action-down"]:{borderBlockStart:n}}}),...HE(e,{[t+"-actions"]:{background:E,[t+"-action-down"]:{borderBlockStart:n}},"&:focus-within":{[t+"-actions"]:{background:y}}}),...WE(e,{[t+"-actions"]:{background:y,[t+"-action-down"]:{borderBlockStart:n}}}),...BE(e),[`&${t}-borderless`]:{paddingBlock:0,[k("input-padding-block")]:(0,Qe.unit)(e.calc(b).add(r).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k("input-padding-block")]:(0,Qe.unit)(e.calc(c).add(r).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k("input-padding-block")]:(0,Qe.unit)(e.calc(d).add(r).equal())},"&-rtl":{direction:"rtl",[t+"-input"]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[t+"-input"]:{color:i}},[t+"-input"]:{...F(e),width:"100%",paddingBlock:I("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...jE(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[t+"-action"]:{...ln(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${f} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:C},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:m}},"&-mode-input":{overflow:"hidden",[t+"-actions"]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"all "+f,overflow:"hidden",[t+"-action"]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[t+"-action"]:{color:p,height:"50%",borderInlineStart:n,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[t+"-actions"]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[t+"-action"]:{flex:"none",paddingInline:I("input-padding-inline"),"&-up":{borderInlineStart:n},"&-down":{borderInlineEnd:n}},[t+"-input"]:{textAlign:"center",paddingInline:I("input-padding-inline")}}}},{[t]:{"&-lg":{[k("input-padding-block")]:(0,Qe.unit)(d),[k("input-padding-inline")]:(0,Qe.unit)(u),paddingBlock:0,fontSize:l,lineHeight:N},"&-sm":{[k("input-padding-block")]:(0,Qe.unit)(c),[k("input-padding-inline")]:(0,Qe.unit)(s),paddingBlock:0,fontSize:a,borderRadius:w}}},{[t]:{[t+`-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[t+"-prefix"]:{marginInlineEnd:x},[t+"-suffix"]:{height:"100%",marginInlineStart:x,transition:"margin "+f},[`&:hover:not(${t}-without-controls)`]:{[t+"-suffix"]:{marginInlineEnd:e.handleWidth}}}}]})(e),(e=>{var{componentCls:e,antCls:t}=e;return{[e+"-addon"]:{[`&:has(${t}-select)`]:{border:0,padding:0}}}})(e),Rd(e)]},e=>{var t=e.handleVisible??"auto",r=e.controlHeightSM-2*e.lineWidth;return{...DC(e),controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new kn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===t?1:0,handleVisibleWidth:!0===t?r:0}},{unitless:{handleOpacity:!0},resetFont:!1});let QE=ft.forwardRef((e,t)=>{let r=ft.useRef(null),{rootClassName:n,size:o,disabled:a,prefixCls:l,addonBefore:H,addonAfter:A,prefix:i,suffix:s,bordered:c,readOnly:d,status:u,controls:p=!0,variant:m,className:f,style:h,classNames:g,styles:v,mode:b,...y}=(ft.useImperativeHandle(t,()=>r.current),e);var{direction:t,className:C,style:x,styles:w,classNames:S}=Fe("inputNumber"),k=ft.useContext($s);let E=a??k;k=ft.useMemo(()=>!(!p||E||d)&&p,[p,E,d]);let{compactSize:N,compactItemClassnames:I}=bc(l,t),M="spinner"===b?ft.createElement(qC,null):ft.createElement(Qk,null),$="spinner"===b?ft.createElement(Yk,null):ft.createElement(cg,null);var R="boolean"==typeof k?k:void 0,{hasFeedback:P,isFormItemInput:z,feedbackIcon:B}=(Ze(k)&&(M=k.upIcon||M,$=k.downIcon||$),ft.useContext(ap)),T=mc(e=>o??N??e),[O,D]=Th("inputNumber",m,c),B=(P||s)&&ft.createElement(ft.Fragment,null,s,P&&B),e={...e,size:T,disabled:E,controls:k},x=We(x),L=We(h),[S,w]=je([S,g],[w,x,v,L],{props:e});return ft.createElement(CE,{ref:r,mode:b,disabled:E,className:bt(f,n,S.root,C,I,Nh(l,u,P),{[l+"-"+O]:D,[l+"-lg"]:"large"===T,[l+"-sm"]:"small"===T,[l+"-rtl"]:"rtl"===t,[l+"-in-form-item"]:z,[l+"-without-controls"]:!k}),style:w.root,upHandler:M,downHandler:$,prefixCls:l,readOnly:d,controls:R,prefix:i,suffix:B,classNames:S,styles:w,...y})}),ZE=ft.forwardRef((t,e)=>{let{addonBefore:r,addonAfter:n,prefixCls:o,className:a,status:l,rootClassName:i,...s}=t;var c=Fe("inputNumber").getPrefixCls;let d=c("input-number",o);c=ft.useContext(ap).status;let u=Ih(c,l);c=nl(d);let[p,m]=UE(d,c);var f=r||n,e=ft.createElement(QE,{ref:e,...s,prefixCls:d,status:u,className:bt(m,c,p,a),rootClassName:f?void 0:i});return f?(f=(c=e=>e?ft.createElement(wE,{className:bt(d+"-addon",m,p),variant:t.variant,disabled:t.disabled,status:u},ft.createElement(sp,{form:!0},e)):null)(r),c=c(n),ft.createElement(xc,{rootClassName:i},f,e,c)):e});var e=ZE,JE=(e._InternalPanelDoNotUseOrYouWillBeFired=e=>ft.createElement(qs,{theme:{components:{InputNumber:{handleVisible:!0}}}},ft.createElement(ZE,{...e})),e),e2=({prefixCls:e,min:t=0,max:r=100,value:n,onChange:o,className:a,formatter:l})=>{e+="-steppers";let[i,s]=(0,ft.useState)(0);n=Number.isNaN(n)?i:n;return Re().createElement(JE,{className:bt(e,a),min:t,max:r,value:n,formatter:l,size:"small",onChange:e=>{s(e||0),o?.(e)}})},t2=({prefixCls:e,value:t,onChange:r})=>{var n=e+"-alpha-input";let[o,a]=(0,ft.useState)(()=>gd(t||"#000")),l=t||o;return Re().createElement(e2,{value:bd(l),prefixCls:e,formatter:e=>e+"%",className:n,onChange:e=>{var t=l.toHsb(),e=(t.a=(e||0)/100,gd(t));a(e),r?.(e)}})};function r2(e,t,r){var n=t.cloneNode(!0),e=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},e}function n2(t,r,n,o){if(n){let e=r;"click"===r.type?n(e=r2(r,t,"")):"file"!==t.type&&void 0!==o?n(e=r2(r,t,o)):n(e)}}function o2(){return(o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a2=Re().forwardRef((e,t)=>{let{inputElement:r,children:n,prefixCls:o,prefix:a,suffix:l,addonBefore:i,addonAfter:s,className:c,style:d,disabled:u,readOnly:p,focused:m,triggerFocus:f,allowClear:h,value:g,handleReset:v,hidden:b,classes:y,classNames:C,dataAttrs:x,styles:w,components:S,onClear:k}=e;var E=n??r,N=S?.affixWrapper||"span",I=S?.groupWrapper||"span",M=S?.wrapper||"span",$=S?.groupAddon||"span";let R=(0,ft.useRef)(null);var P=!!((P=e).prefix||P.suffix||P.allowClear);let z=(0,ft.cloneElement)(E,{value:g,className:bt(E.props?.className,!P&&C?.variant)||null}),B=(0,ft.useRef)(null);if(Re().useImperativeHandle(t,()=>({nativeElement:B.current||R.current})),P){let e=null;h&&(E=!u&&!p&&g&&!("object"==typeof h&&h.disabled),t=o+"-clear-icon",P="object"==typeof h&&h?.clearIcon?h.clearIcon:"✖",e=Re().createElement("button",{type:"button",onClick:e=>{v?.(e),k?.()},onMouseDown:e=>e.preventDefault(),className:bt(t,{[t+"-hidden"]:!E,[t+"-has-suffix"]:!!l},C?.clear),style:w?.clear},P));var E=o+"-affix-wrapper",t=bt(E,{[o+"-disabled"]:u,[E+"-disabled"]:u,[E+"-focused"]:m,[E+"-readonly"]:p,[E+"-input-with-clear-btn"]:l&&h&&g},y?.affixWrapper,C?.affixWrapper,C?.variant),P=(l||h)&&Re().createElement("span",{className:bt(o+"-suffix",C?.suffix),style:w?.suffix},e,l);z=Re().createElement(N,o2({className:t,style:w?.affixWrapper,onClick:e=>{R.current?.contains(e.target)&&f?.()}},x?.affixWrapper,{ref:R}),a&&Re().createElement("span",{className:bt(o+"-prefix",C?.prefix),style:w?.prefix},a),z,P)}return((E=e).addonBefore||E.addonAfter)&&(t=(N=o+"-group")+"-addon",P=N+"-wrapper",e=bt(o+"-wrapper",N,y?.wrapper,C?.wrapper),E=bt(P,{[P+"-disabled"]:u},y?.group,C?.groupWrapper),z=Re().createElement(I,{className:E,ref:B},Re().createElement(M,{className:e},i&&Re().createElement($,{className:t},i),z,s&&Re().createElement($,{className:t},s)))),Re().cloneElement(z,{className:bt(z.props?.className,c)||null,style:{...z.props?.style,...d},hidden:b})});function l2(n,o){return ft.useMemo(()=>{let e={},{show:t,...r}=(o&&(e.show="object"==typeof o&&o.formatter?o.formatter:!!o),e={...e,...n});return{...r,show:!!t,showFormatter:"function"==typeof t?t:void 0,strategy:r.strategy||(e=>e.length)}},[n,o])}function i2({countConfig:o,value:a,maxLength:l}){return ft.useMemo(()=>{var e=o.max??l,t=o.strategy(a),r=!!e&&e<t,n=0<Number(e);return{mergedMax:e,isOutOfRange:r,dataCount:o.show?o.showFormatter?o.showFormatter({value:a,count:t,maxLength:e}):t+(n?" / "+e:""):void 0}},[o,l,a])}function s2({countConfig:n,getTarget:e}){let[t,o]=ft.useState(null),a=ft.useRef(e);return ft.useEffect(()=>{a.current=e},[e]),ft.useEffect(()=>{t&&(a.current()?.setSelectionRange(...t),o(null))},[t]),ft.useCallback((e,t)=>{let r=e;return!t&&n.exceedFormatter&&n.max&&n.strategy(e)>n.max&&e!==(r=n.exceedFormatter(e,{max:n.max}))&&o([a.current()?.selectionStart||0,a.current()?.selectionEnd||0]),r},[n])}function c2(e,t){var[e,t]=vt(e,t);return{value:e,setValue:t,formatValue:null==e?"":String(e)}}function d2(){return(d2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}o=(0,ft.forwardRef)((e,t)=>{let{autoComplete:r,onChange:o,onFocus:n,onBlur:a,onPressEnter:l,onKeyDown:i,onKeyUp:s,prefixCls:c="rc-input",disabled:d,htmlSize:u,className:p,maxLength:m,suffix:f,showCount:h,count:g,type:v="text",classes:b,classNames:y,styles:C,onCompositionStart:x,onCompositionEnd:w,...S}=e,[k,E]=(0,ft.useState)(!1),N=(0,ft.useRef)(!1),I=(0,ft.useRef)(!1),M=(0,ft.useRef)(null),$=(0,ft.useRef)(null),R=e=>{M.current&&It(M.current,e)},{setValue:P,formatValue:z}=c2(e.defaultValue,e.value),B=l2(g,h),{isOutOfRange:T,dataCount:H}=i2({countConfig:B,value:z,maxLength:m}),A=s2({countConfig:B,getTarget:()=>M.current}),O=((0,ft.useImperativeHandle)(t,()=>({focus:R,blur:()=>{M.current?.blur()},setSelectionRange:(e,t,r)=>{M.current?.setSelectionRange(e,t,r)},select:()=>{M.current?.select()},input:M.current,nativeElement:$.current?.nativeElement||M.current})),(0,ft.useEffect)(()=>{I.current&&(I.current=!1),E(e=>(!e||!d)&&e)},[d]),(e,t,r)=>{var n=A(t,N.current);"compositionEnd"===r.source&&t===n||(P(n),M.current&&n2(M.current,e,o,n))}),D=e=>{O(e,e.target.value,{source:"change"})},L=e=>{N.current=!1,O(e,e.currentTarget.value,{source:"compositionEnd"}),w?.(e)},F=e=>{!l||"Enter"!==e.key||I.current||e.nativeEvent.isComposing||(I.current=!0,l(e)),i?.(e)},W=e=>{"Enter"===e.key&&(I.current=!1),s?.(e)},j=e=>{E(!0),n?.(e)},_=e=>{I.current&&(I.current=!1),E(!1),a?.(e)};var t=T&&c+"-out-of-range";return Re().createElement(a2,d2({},S,{prefixCls:c,className:bt(p,t),handleReset:e=>{P(""),R(),M.current&&n2(M.current,e,o)},value:z,focused:k,triggerFocus:R,suffix:f||B.show?Re().createElement(Re().Fragment,null,B.show&&Re().createElement("span",{className:bt(c+"-show-count-suffix",{[c+"-show-count-has-suffix"]:!!f},y?.count),style:{...C?.count}},H),f):null,disabled:d,classes:b,classNames:y,styles:C,ref:$}),(t=at(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),Re().createElement("input",d2({autoComplete:r},t,{onChange:D,onFocus:j,onBlur:_,onKeyDown:F,onKeyUp:W,className:bt(c,{[c+"-disabled"]:d},y?.input),style:C?.input,ref:M,size:u,type:v,onCompositionStart:e=>{N.current=!0,x?.(e)},onCompositionEnd:L}))))});let u2=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,p2=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],m2={},f2;function h2(e,t=!1,r=null,n=null){f2||((f2=document.createElement("textarea")).setAttribute("tab-index","-1"),f2.setAttribute("aria-hidden","true"),f2.setAttribute("name","hiddenTextarea"),document.body.appendChild(f2)),e.getAttribute("wrap")?f2.setAttribute("wrap",e.getAttribute("wrap")):f2.removeAttribute("wrap");var{paddingSize:t,borderSize:o,boxSizing:a,sizingStyle:l}=((e,t=!1)=>{var r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&m2[r])return m2[r];let n=window.getComputedStyle(e);var e=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),o={sizingStyle:p2.map(e=>e+":"+n.getPropertyValue(e)).join(";"),paddingSize:o,borderSize:a,boxSizing:e};return t&&r&&(m2[r]=o),o})(e,t);f2.setAttribute("style",l+";"+u2),f2.value=e.value||e.placeholder||"";let i,s,c,d=f2.scrollHeight;"border-box"===a?d+=o:"content-box"===a&&(d-=t),null===r&&null===n||(f2.value=" ",l=f2.scrollHeight-t,null!==r&&(i=l*r,"border-box"===a&&(i=i+t+o),d=Math.max(i,d)),null!==n&&(s=l*n,"border-box"===a&&(s=s+t+o),c=d>s?void 0:"hidden",d=Math.min(s,d)));e={height:d,overflowY:c,resize:"none"};return i&&(e.minHeight=i),s&&(e.maxHeight=s),e}function g2(){return(g2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v2=ft.forwardRef((e,t)=>{let{prefixCls:r,defaultValue:n,value:o,autoSize:a,onResize:l,className:i,style:s,disabled:c,onChange:d,onInternalAutoSize:u,...p}=e,[m,f]=vt(n,o);e=m??"";let h=ft.useRef(null),[g,v]=(ft.useImperativeHandle(t,()=>({textArea:h.current})),ft.useMemo(()=>a&&"object"==typeof a?[a.minRows,a.maxRows]:[],[a])),b=!!a,[y,C]=ft.useState(2),[x,w]=ft.useState(),S=()=>{C(0)},k=(gt(()=>{b&&S()},[o,g,v,b]),gt(()=>{var e;0===y?C(1):1===y&&(e=h2(h.current,!1,g,v),C(2),w(e))},[y]),ft.useRef(void 0)),E=()=>{void 0!==k.current&&$e.cancel(k.current)};ft.useEffect(()=>E,[]);t=b?x:null,t={...s,...t};return 0!==y&&1!==y||(t.overflowY="hidden",t.overflowX="hidden"),ft.createElement(gr,{onResize:e=>{2===y&&(l?.(e),a)&&(E(),k.current=$e(()=>{S()}))},disabled:!(a||l)},ft.createElement("textarea",g2({},p,{ref:h,style:t,className:bt(r,i,{[r+"-disabled"]:c}),disabled:c,value:e,onChange:e=>{f(e.target.value),d?.(e)}})))});function b2(){return(b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y2=Re().forwardRef(({defaultValue:e,value:t,onFocus:r,onBlur:n,onChange:o,allowClear:a,maxLength:l,onCompositionStart:i,onCompositionEnd:s,suffix:c,prefixCls:d="rc-textarea",showCount:u,count:p,className:m,style:f,disabled:h,hidden:g,classNames:v,styles:b,onResize:y,onClear:C,onPressEnter:x,readOnly:w,autoSize:S,onKeyDown:k,...H},E)=>{let[A,N]=Re().useState(!1),I=Re().useRef(!1),[D,L]=Re().useState(null),M=(0,ft.useRef)(null),$=(0,ft.useRef)(null),R=()=>$.current?.textArea||null,{setValue:P,formatValue:z}=c2(e,t);var e=l2(p,u),{isOutOfRange:t,dataCount:p}=i2({countConfig:e,value:z,maxLength:l});let F=s2({countConfig:e,getTarget:()=>$.current?.textArea||null}),B=()=>{R()?.focus()},T=((0,ft.useImperativeHandle)(E,()=>({resizableTextArea:$.current,focus:B,blur:()=>{R()?.blur()},nativeElement:M.current?.nativeElement||R()})),(0,ft.useEffect)(()=>{N(e=>!h&&e)},[h]),(e,t)=>{t=F(t,I.current);P(t),n2(e.currentTarget,e,o,t)});let O=c;e.show&&(O=Re().createElement(Re().Fragment,null,O,Re().createElement("span",{className:bt(d+"-data-count",v?.count),style:b?.count},p)));E=!S&&!u&&!a;return Re().createElement(a2,{ref:M,value:z,allowClear:a,handleReset:e=>{P(""),B();var t=R();t&&n2(t,e,o)},suffix:O,prefixCls:d,classNames:{...v,affixWrapper:bt(v?.affixWrapper,{[d+"-show-count"]:u,[d+"-textarea-allow-clear"]:a})},disabled:h,focused:A,className:bt(m,t&&d+"-out-of-range"),style:{...f,...D&&!E?{height:"auto"}:{}},dataAttrs:"string"==typeof p?{affixWrapper:{"data-count":p}}:void 0,styles:b,hidden:g,readOnly:w,onClear:C},Re().createElement(v2,b2({},H,{autoSize:S,maxLength:l,onKeyDown:e=>{"Enter"===e.key&&x&&!e.nativeEvent.isComposing&&x(e),k?.(e)},onChange:e=>{T(e,e.target.value)},onFocus:e=>{N(!0),r?.(e)},onBlur:e=>{N(!1),n?.(e)},onCompositionStart:e=>{I.current=!0,i?.(e)},onCompositionEnd:e=>{I.current=!1,T(e,e.currentTarget.value),s?.(e)},className:bt(v?.textarea),style:{resize:f?.resize,...b?.textarea},disabled:h,prefixCls:d,onResize:e=>{y?.(e),R()?.style.height&&L(!0)},ref:$,readOnly:w})))}),C2=o;let x2=e=>{let{allowClear:t,clearIcon:r,contextAllowClear:n,contextClearIcon:o,defaultAllowClear:a}=e;return(0,ft.useMemo)(()=>!!(t??n??a)&&{clearIcon:Gs(Ze(t)?t?.clearIcon:r,Ze(n)?n?.clearIcon:o,Re().createElement(jo,null)),disabled:(Ze(t)?t?.disabled:void 0)??(Ze(n)?n?.disabled:void 0)},[t,r,n,o,a])};function w2(e,t){let r=(0,ft.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{e.current?.input&&"password"===e.current?.input.getAttribute("type")&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,ft.useEffect)(()=>(t&&n(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[t]),n}var S2=(0,ft.forwardRef)((e,t)=>{let{prefixCls:r,bordered:n=!0,status:o,size:a,disabled:l,onBlur:i,onFocus:s,suffix:c,allowClear:d,addonAfter:u,addonBefore:p,className:m,style:f,styles:h,rootClassName:g,onChange:v,classNames:b,variant:y,...C}=e;var{getPrefixCls:x,direction:w,allowClear:S,autoComplete:H,className:A,style:k,classNames:E,styles:N}=Fe("input"),x=x("input",r),I=(0,ft.useRef)(null),M=nl(x),[$,D]=GE(x,g);YE(x,M);let{compactSize:L,compactItemClassnames:F}=bc(x,w);var R=mc(e=>a??L??e),P=Re().useContext($s),P=l??P,z={...e,size:R,disabled:P},k=We(k),B=We(f),[E,N]=je([E,b],[N,k,h,B],{props:z}),{status:k,hasFeedback:B,feedbackIcon:z}=(0,ft.useContext)(ap),k=Ih(k,o),e=!!((e=e).prefix||e.suffix||e.allowClear||e.showCount)||!!B;(0,ft.useRef)(e);let T=w2(I,!0);var e=(B||c)&&Re().createElement(Re().Fragment,null,c,B&&z),z=x2({allowClear:d,contextAllowClear:S,componentName:"Input"}),[S,O]=Th("input",y,n);return Re().createElement(C2,{ref:Ne(t,I),prefixCls:x,autoComplete:H,...C,disabled:P,onBlur:e=>{T(),i?.(e)},onFocus:e=>{T(),s?.(e)},style:N.root,styles:N,suffix:e,allowClear:z,className:bt(m,g,D,M,F,A,E.root),onChange:e=>{T(),v?.(e)},addonBefore:p&&Re().createElement(sp,{form:!0,space:!0},p),addonAfter:u&&Re().createElement(sp,{form:!0,space:!0},u),classNames:{...E,input:bt({[x+"-sm"]:"small"===R,[x+"-lg"]:"large"===R,[x+"-rtl"]:"rtl"===w},E.input,$),variant:bt({[x+"-"+S]:O},Nh(x,k)),affixWrapper:bt({[x+"-affix-wrapper-sm"]:"small"===R,[x+"-affix-wrapper-lg"]:"large"===R,[x+"-affix-wrapper-rtl"]:"rtl"===w},$),wrapper:bt({[x+"-group-rtl"]:"rtl"===w},$),groupWrapper:bt({[x+"-group-wrapper-sm"]:"small"===R,[x+"-group-wrapper-lg"]:"large"===R,[x+"-group-wrapper-rtl"]:"rtl"===w,[x+"-group-wrapper-"+S]:O},Nh(x+"-group-wrapper",k,B),$)}})});let k2=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,E2=e=>k2.test("#"+e);var N2=({prefixCls:e,value:t,onChange:r})=>{e+="-hex-input";let[n,o]=(0,ft.useState)(()=>t?ed(t.toHexString()):void 0);(0,ft.useEffect)(()=>{t&&o(ed(t.toHexString()))},[t]);return Re().createElement(S2,{className:e,value:n,prefix:"#",onChange:e=>{e=e.target.value;o(ed(e)),E2(ed(e,!0))&&r?.(gd(e))},size:"small"})},I2=({prefixCls:e,value:t,onChange:n})=>{var r=e+"-hsb-input";let[o,a]=(0,ft.useState)(()=>gd(t||"#000")),l=t||o,i=(e,t)=>{var r=l.toHsb(),t=(r[t]="h"===t?e:(e||0)/100,gd(r));a(t),n?.(t)};return Re().createElement("div",{className:r},Re().createElement(e2,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:e,className:r,formatter:e=>vd(e||0).toString(),onChange:e=>i(Number(e),"h")}),Re().createElement(e2,{max:100,min:0,value:100*Number(l.toHsb().s),prefixCls:e,className:r,formatter:e=>vd(e||0)+"%",onChange:e=>i(Number(e),"s")}),Re().createElement(e2,{max:100,min:0,value:100*Number(l.toHsb().b),prefixCls:e,className:r,formatter:e=>vd(e||0)+"%",onChange:e=>i(Number(e),"b")}))},M2=({prefixCls:e,value:t,onChange:n})=>{var r=e+"-rgb-input";let[o,a]=(0,ft.useState)(()=>gd(t||"#000")),l=t||o,i=(e,t)=>{var r=l.toRgb(),t=(r[t]=e||0,gd(r));a(t),n?.(t)};return Re().createElement("div",{className:r},Re().createElement(e2,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:e,className:r,onChange:e=>i(Number(e),"r")}),Re().createElement(e2,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:e,className:r,onChange:e=>i(Number(e),"g")}),Re().createElement(e2,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:e,className:r,onChange:e=>i(Number(e),"b")}))};let $2=["hex","hsb","rgb"].map(e=>({value:e,label:e.toUpperCase()}));var R2=e=>{let{prefixCls:t,format:r,value:n,disabledAlpha:o,onFormatChange:a,onChange:l,disabledFormat:i}=e,[s,c]=vt("hex",r);var e=t+"-input",d=(0,ft.useMemo)(()=>{var e={value:n,prefixCls:t,onChange:l};switch(s){case"hsb":return Re().createElement(I2,{...e});case"rgb":return Re().createElement(M2,{...e});default:return Re().createElement(N2,{...e})}},[s,t,n,l]);return Re().createElement("div",{className:e+"-container"},!i&&Re().createElement(gg,{value:s,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{c(e),a?.(e)},className:t+"-format-select",size:"small",options:$2}),Re().createElement("div",{className:e},d),!o&&Re().createElement(t2,{prefixCls:t,value:n,onChange:l}))};function P2(e,t,r){return(e-t)/(r-t)}function z2(e,t,r,n){var o=P2(t,r,n),a={};switch(e){case"rtl":a.right=100*o+"%",a.transform="translateX(50%)";break;case"btt":a.bottom=100*o+"%",a.transform="translateY(50%)";break;case"ttb":a.top=100*o+"%",a.transform="translateY(-50%)";break;default:a.left=100*o+"%",a.transform="translateX(-50%)"}return a}function B2(e,t){return Array.isArray(e)?e[t]:e}var T2=ft.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1});let O2=ft.createContext({});function H2(){return(H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var A2=ft.forwardRef((e,t)=>{let{prefixCls:r,value:n,valueIndex:o,onStartMove:a,onDelete:l,style:i,render:s,dragging:c,draggingDelete:d,onOffsetChange:u,onChangeComplete:p,onFocus:m,onMouseEnter:f,...h}=e,{min:g,max:v,direction:b,keyboard:y,range:C,tabIndex:x,ariaLabelForHandle:w,ariaLabelledByForHandle:S,ariaRequired:k,ariaValueTextFormatterForHandle:E,styles:N,classNames:I,isHandleDisabled:M}=ft.useContext(T2),$=M(o);var e=r+"-handle",R=e=>{$?e.stopPropagation():a(e,o)},P=z2(b,n,g,v);let z={},B=(null!==o&&(z={tabIndex:$?void 0:B2(x,o)??void 0,role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":n,"aria-disabled":$,"aria-label":B2(w,o),"aria-labelledby":B2(S,o),"aria-required":B2(k,o),"aria-valuetext":B2(E,o)?.(n),"aria-orientation":"ltr"===b||"rtl"===b?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:e=>{m?.(e,o)},onMouseEnter:e=>{f(e,o)},onKeyDown:t=>{if(!$&&y){let e;switch(t.which||t.keyCode){case Ce.LEFT:e="ltr"===b||"btt"===b?-1:1;break;case Ce.RIGHT:e="ltr"===b||"btt"===b?1:-1;break;case Ce.UP:e="ttb"!==b?1:-1;break;case Ce.DOWN:e="ttb"!==b?-1:1;break;case Ce.HOME:e="min";break;case Ce.END:e="max";break;case Ce.PAGE_UP:e=2;break;case Ce.PAGE_DOWN:e=-2;break;case Ce.BACKSPACE:case Ce.DELETE:l?.(o)}void 0!==e&&(t.preventDefault(),u(e,o))}},onKeyUp:e=>{switch(e.which||e.keyCode){case Ce.LEFT:case Ce.RIGHT:case Ce.UP:case Ce.DOWN:case Ce.HOME:case Ce.END:case Ce.PAGE_UP:case Ce.PAGE_DOWN:p?.()}}}),ft.createElement("div",H2({ref:t,className:bt(e,{[e+"-"+(o+1)]:null!==o&&C,[e+"-dragging"]:c,[e+"-dragging-delete"]:d,[e+"-disabled"]:$},I.handle),style:{...P,...i,...N.handle}},z,h)));return B=s?s(B,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:d}):B});function D2(){return(D2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var L2=ft.forwardRef((e,t)=>{let{prefixCls:r,style:n,onStartMove:o,onOffsetChange:a,values:l,handleRender:i,activeHandleRender:s,draggingIndex:c,draggingDelete:d,onFocus:u,...p}=e,m=ft.useRef({}),[f,h]=ft.useState(!1),[g,v]=ft.useState(-1),b=e=>{v(e),h(!0)};ft.useImperativeHandle(t,()=>({focus:e=>{m.current[e]?.focus()},hideHelp:()=>{(0,yt().flushSync)(()=>{h(!1)})}}));let y={prefixCls:r,onStartMove:o,onOffsetChange:a,render:i,onFocus:(e,t)=>{b(t),u?.(e)},onMouseEnter:(e,t)=>{b(t)},...p};return ft.createElement(ft.Fragment,null,l.map((e,t)=>{var r=c===t;return ft.createElement(A2,D2({ref:e=>{e?m.current[t]=e:delete m.current[t]},dragging:r,draggingDelete:r&&d,style:B2(n,t),key:t,value:e,valueIndex:t},y))}),s&&f&&ft.createElement(A2,D2({key:"a11y"},y,{value:l[g],valueIndex:null,dragging:-1!==c,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:void 0,"aria-hidden":!0})))}),F2=e=>{let{prefixCls:t,style:r,children:n,value:o,onClick:a}=e;var{min:e,max:l,direction:i,includedStart:s,includedEnd:c,included:d}=ft.useContext(T2),u=t+"-text",i=z2(i,o,e,l);return ft.createElement("span",{className:bt(u,{[u+"-active"]:d&&s<=o&&o<=c}),style:{...i,...r},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(o)}},n)},W2=e=>{let{prefixCls:t,marks:r=[],onClick:n}=e,o=t+"-mark";return r.length?ft.createElement("div",{className:o},r.map(({value:e,style:t,label:r})=>ft.createElement(F2,{key:e,prefixCls:o,style:t,value:e,onClick:n},r))):null},j2=e=>{var{prefixCls:e,value:t,style:r,activeStyle:n}=e,{min:o,max:a,direction:l,included:i,includedStart:s,includedEnd:c}=ft.useContext(T2),e=e+"-dot",i=i&&s<=t&&t<=c;let d={...z2(l,t,o,a),..."function"==typeof r?r(t):r};return i&&(d={...d,..."function"==typeof n?n(t):n}),ft.createElement("span",{className:bt(e,{[e+"-active"]:i}),style:d})},_2=e=>{let{prefixCls:t,marks:r,dots:n,style:o,activeStyle:a}=e,{min:l,max:i,step:s}=ft.useContext(T2);e=ft.useMemo(()=>{let t=new Set;if(r.forEach(e=>{t.add(e.value)}),n&&null!==s){let e=l;for(;e<=i;)t.add(e),e+=s}return Array.from(t)},[l,i,s,n,r]);return ft.createElement("div",{className:t+"-step"},e.map(e=>ft.createElement(j2,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})))},K2=e=>{let{prefixCls:t,style:r,start:n,end:o,index:a,onStartMove:l,replaceCls:i}=e,{direction:s,min:c,max:d,disabled:u,range:p,classNames:m}=ft.useContext(T2);var e=t+"-track",f=P2(n,c,d),h=P2(o,c,d),g=e=>{!u&&l&&l(e,-1)},v={};switch(s){case"rtl":v.right=100*f+"%",v.width=100*h-100*f+"%";break;case"btt":v.bottom=100*f+"%",v.height=100*h-100*f+"%";break;case"ttb":v.top=100*f+"%",v.height=100*h-100*f+"%";break;default:v.left=100*f+"%",v.width=100*h-100*f+"%"}e=i||bt(e,{[e+"-"+(a+1)]:null!==a&&p,[t+"-track-draggable"]:l},m.track);return ft.createElement("div",{className:e,style:{...v,...r},onMouseDown:g,onTouchStart:g})},V2=e=>{let{prefixCls:n,style:o,values:a,startPoint:l,onStartMove:t}=e,{included:r,range:i,min:s,styles:c,classNames:d,isHandleDisabled:u}=ft.useContext(T2);let p=ft.useMemo(()=>a.some((e,t)=>u(t)),[u,a])?void 0:t;var m,e=ft.useMemo(()=>{var e,t;if(!i)return 0===a.length?[]:(e=l??s,t=a[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);var r=[];for(let e=0;e<a.length-1;e+=1)r.push({start:a[e],end:a[e+1]});return r},[a,i,l,s]);return r?(m=e?.length&&(d.tracks||c.tracks)?ft.createElement(K2,{index:null,prefixCls:n,start:e[0].start,end:e[e.length-1].end,replaceCls:bt(d.tracks,n+"-tracks"),style:c.tracks}):null,ft.createElement(ft.Fragment,null,m,e.map(({start:e,end:t},r)=>ft.createElement(K2,{index:r,prefixCls:n,style:{...B2(o,r),...c.track},start:e,end:t,key:r,onStartMove:p})))):null},X2=t=>{let r=ft.useCallback(e=>"boolean"==typeof t?t:t[e]??!1,[t]),e=ft.useCallback(e=>"boolean"==typeof t?[t,t&&0<e.length]:[0<e.length&&e.every((e,t)=>r(t)),e.some((e,t)=>r(t))],[t,r]);return ft.useMemo(()=>[r,e],[r,e])};let q2=130;function G2(e){e="targetTouches"in e?e.targetTouches[0]:e;return{pageX:e.pageX,pageY:e.pageY}}var Y2=function(p,m,a,l,i,s,o,f,c,h,g,d){let[e,v]=ft.useState(null),[u,b]=ft.useState(-1),[t,y]=ft.useState(!1),[C,x]=ft.useState(a),[w,S]=ft.useState(a),k=ft.useRef(null),E=ft.useRef(null),N=ft.useRef(null),{onDragStart:I,onDragChange:M}=ft.useContext(O2),$=(gt(()=>{-1===u&&x(a)},[a,u]),ft.useEffect(()=>()=>{k.current&&document.removeEventListener("mousemove",k.current),E.current&&document.removeEventListener("mouseup",E.current),N.current&&(k.current&&N.current.removeEventListener("touchmove",k.current),E.current)&&N.current.removeEventListener("touchend",E.current)},[]),(e,t,r)=>{void 0!==t&&v(t),x(e);let n=e;r&&(n=e.filter((e,t)=>t!==u)),o(n),M&&M({rawValues:e,deleteIndex:r?u:-1,draggingIndex:u,draggingValue:t})}),R=ht((e,r,t)=>{if(-1===e){if(!w.some((e,t)=>d(t))){var n=w[0],o=w[w.length-1],o=i-o;let t=r*(i-l);t=Math.max(t,l-n),t=Math.min(t,o);o=s(n+t),o=(t=o-n,w.map(e=>e+t));$(o)}}else{n=(i-l)*r,o=[...C],r=(o[e]=w[e],c(o,n,e,"dist"));$(r.values,r.value,t)}});var r=ft.useMemo(()=>{var e=[...a].sort((e,t)=>e-t),t=[...C].sort((e,t)=>e-t);let r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});t=h?1:0;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=t?C:a},[a,C,h]);return[u,e,t,r,(e,u,n)=>{e.stopPropagation();n=n||a;if(!d(u)){var o=n[u];b(u),v(o),S(n),x(n),y(!1);let{pageX:s,pageY:c}=G2(e),d=!1,t=(I&&I({rawValues:n,draggingIndex:u,draggingValue:o}),e=>{e.preventDefault();var{pageX:e,pageY:t}=G2(e),r=e-s,n=t-c,{width:o,height:a}=p.current.getBoundingClientRect();let l,i;switch(m){case"btt":l=-n/a,i=r;break;case"ttb":l=n/a,i=r;break;case"rtl":l=-r/o,i=n;break;default:l=r/o,i=n}d=!!h&&Math.abs(i)>q2&&g<C.length,y(d),R(u,l,d)}),r=e=>{e.preventDefault(),document.removeEventListener("mouseup",r),document.removeEventListener("mousemove",t),N.current&&(k.current&&N.current.removeEventListener("touchmove",k.current),E.current)&&N.current.removeEventListener("touchend",E.current),k.current=null,E.current=null,N.current=null,f(d),b(-1),y(!1)};document.addEventListener("mouseup",r),document.addEventListener("mousemove",t),e.currentTarget.addEventListener("touchend",r),e.currentTarget.addEventListener("touchmove",t),k.current=t,E.current=r,N.current=e.currentTarget}}]};let U2=(t,r,e,n,o,a)=>{var l="number"==typeof o?o:0;let i=e,s=n;for(let e=r-1;0<=e;--e)if(a(e)){i=t[e]+l;break}for(let e=r+1;e<t.length;e+=1)if(a(e)){s=t[e]-l;break}return[i,s]};function Q2(u,p,m,f,h,g,v){let a=ft.useCallback(e=>Math.max(u,Math.min(p,e)),[u,p]),b=ft.useCallback(e=>{var t;return null!==m&&(e=u+Math.round((a(e)-u)/m)*m,t=e=>(String(e).split(".")[1]||"").length,t=Math.max(t(m),t(p),t(u)),e=Number(e.toFixed(t)),u<=e)&&e<=p?e:null},[m,u,p,a]),y=ft.useCallback(e=>{let r=a(e);var t=f.map(e=>e.value);null!==m&&t.push(b(e)),t.push(u,p);let n=t[0],o=p-u;return t.forEach(e=>{var t=Math.abs(r-e);t<=o&&(n=e,o=t)}),n},[u,p,f,m,a,b]),C=(e,l,i,s="unit")=>{if("number"!=typeof l)return"min"===l?u:p;{let r,t=e[i];var c=t+l;let n=[];f.forEach(e=>{n.push(e.value)}),n.push(u,p),n.push(b(t));var d=0<l?1:-1;"unit"===s?n.push(b(t+d*m)):n.push(b(c)),n=n.filter(e=>null!==e).filter(e=>l<0?e<=t:e>=t),"unit"===s&&(n=n.filter(e=>e!==t));let o="unit"===s?t:c,a=(r=n[0],Math.abs(r-o));return(n.forEach(e=>{var t=Math.abs(e-o);t<a&&(r=e,a=t)}),void 0===r)?l<0?u:p:"dist"!==s&&1<Math.abs(l)?((c=[...e])[i]=r,C(c,l-d,i,s)):r}},x=(e,t,r,n="unit")=>{var o=e[r],e=C(e,t,r,n);return{value:e,changed:e!==o}},w=e=>null===g&&0===e||"number"==typeof g&&e<g;return[y,(e,t,r,n="unit")=>{var o=e.map(y),e=o[r],[a,l]=U2(o,r,u,p,g,v),t=C(o,t,r,n);if(o[r]=t,o[r]=a<=l?Math.max(a,Math.min(l,o[r])):e,!1===h){n=g||0;0<r&&o[r-1]!==e&&(o[r]=Math.max(o[r],o[r-1]+n)),r<o.length-1&&o[r+1]!==e&&(o[r]=Math.min(o[r],o[r+1]-n))}else if("number"==typeof g||null===g){for(let t=r+1;t<o.length&&!v(t);t+=1){let e=!0;for(;w(o[t]-o[t-1])&&e;)({value:o[t],changed:e}=x(o,1,t));var[,i]=U2(o,t,u,p,g,v);o[t]=Math.min(o[t],i)}for(let t=r;0<t&&!v(t-1);--t){let e=!0;for(;w(o[t]-o[t-1])&&e;)({value:o[t-1],changed:e}=x(o,-1,t-1));var[s]=U2(o,t-1,u,p,g,v);o[t-1]=Math.max(o[t-1],s)}for(let t=o.length-1;0<t;--t)if(!v(t)&&!v(t-1)){let e=!0;for(;w(o[t]-o[t-1])&&e;)({value:o[t-1],changed:e}=x(o,-1,t-1));var[c]=U2(o,t-1,u,p,g,v);o[t-1]=Math.max(o[t-1],c)}for(let t=0;t<o.length-1;t+=1)if(!v(t)&&!v(t+1)){let e=!0;for(;w(o[t+1]-o[t])&&e;)({value:o[t+1],changed:e}=x(o,1,t+1));var[,d]=U2(o,t+1,u,p,g,v);o[t+1]=Math.min(o[t+1],d)}}return{value:o[r],values:o}}]}var Z2=ft.forwardRef((e,t)=>{let{prefixCls:r="rc-slider",className:H,style:A,classNames:n,styles:o,id:D,disabled:L=!1,keyboard:a=!0,autoFocus:F,onFocus:W,onBlur:j,min:l=0,max:i=100,step:s=1,value:_,defaultValue:K,range:V,count:c,onChange:d,onBeforeChange:u,onAfterChange:p,onChangeComplete:X,allowCross:q=!0,pushable:m=!1,reverse:f,vertical:h,included:G=!0,startPoint:Y,trackStyle:U,handleStyle:Q,railStyle:Z,dotStyle:J,activeDotStyle:ee,marks:te,dots:re,handleRender:ne,activeHandleRender:oe,track:ae,tabIndex:le=0,ariaLabelForHandle:ie,ariaLabelledByForHandle:se,ariaRequired:ce,ariaValueTextFormatterForHandle:de}=e,g=ft.useRef(null),v=ft.useRef(null),[b,ue]=vt(K,_),y=ft.useMemo(()=>h?f?"ttb":"btt":f?"rtl":"ltr",[f,h]),[C,pe,x,me,fe]=(w=V,(0,ft.useMemo)(()=>{var e,t,r,n;return!0!==w&&w?({editable:e,draggableTrack:t,minCount:r,maxCount:n}=w,[!0,!!e,!e&&!!t,r||0,n]):[!!w,!1,!1,0]},[w]));var w;let S=ft.useMemo(()=>isFinite(l)?l:0,[l]),k=ft.useMemo(()=>isFinite(i)?i:100,[i]),E=ft.useMemo(()=>null!==s&&s<=0?1:s,[s]),he=ft.useMemo(()=>"boolean"==typeof m?!!m&&E:0<=m&&m,[m,E]);e=ft.useMemo(()=>{let r=te||{};return Object.keys(r).map(e=>{var t=r[e],e={value:Number(e)};return t&&"object"==typeof t&&!ft.isValidElement(t)&&("label"in t||"style"in t)?(e.style=t.style,e.label=t.label):e.label=t,e}).filter(({label:e})=>e||"number"==typeof e).sort((e,t)=>e.value-t.value)},[te]);let[N,ge]=X2(L),[I,ve]=Q2(S,k,E,e,q,he,N),M=ft.useMemo(()=>{var e=null==b?[]:Array.isArray(b)?b:[b],[t=S]=e;let r=null===b?[]:[t];if(C){if(r=[...e],c||void 0===b){var n=void 0!==c&&0<=c?c+1:2;for(r=r.slice(0,n);r.length<n;)r.push(r[r.length-1]??S)}r.sort((e,t)=>e-t)}return r.forEach((e,t)=>{r[t]=I(e)}),r},[b,C,S,c,I]),[$,be]=ft.useMemo(()=>ge(M),[ge,M]),R=pe&&!be,P=e=>C?e:e[0],z=ht(e=>{e=[...e].sort((e,t)=>e-t);d&&!(0,Vt.A)(e,M,!0)&&d(P(e)),ue(e)});var ye=ht(e=>{e&&g.current.hideHelp();e=P(M);p?.(e),(0,Te.Ay)(!p,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),X?.(e)});let[Ce,xe,we,B,Se]=Y2(v,y,M,S,k,I,z,ye,ve,R,me,N),ke=(n,t)=>{if(!$){var o=M.length?((o,a,l,i,s,c)=>{let d=-1,u=i-l;return o.forEach((e,t)=>{var r,n;c(t)||([n,r]=U2(o,t,l,i,s,c),n<=a&&a<=r&&(n=Math.abs(a-e))<=u&&(u=n,d=t))}),d})(M,n,S,k,he,N):0;if(-1!==o){var a=[...M];let r=0;var l=M.length?Math.abs(n-M[o]):k-S;M.forEach((e,t)=>{e<n&&(r=t)});let e=o;e=R&&0!==l&&(!fe||M.length<fe)?(a.splice(r+1,0,n),r+1):(a[o]=n,o),C&&!M.length&&void 0===c&&a.push(n);l=P(a);u?.(l),z(a),t?(document.activeElement?.blur?.(),g.current.focus(e),Se(t,e,a)):(p?.(l),(0,Te.Ay)(!p,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),X?.(l))}}};let[T,Ee]=ft.useState(null);ft.useEffect(()=>{var e,t;null!==T&&({value:e,index:t}=T,0<=(t=M[t]===e?t:M.indexOf(e)))&&g.current.focus(t),Ee(null)},[T]);var Ne=ft.useMemo(()=>(!x||null!==E)&&x,[x,E]),Ie=ht((e,t)=>{Se(e,t),u?.(P(M))});let Me=-1!==Ce,O=(ft.useEffect(()=>{var e;Me||(e=M.lastIndexOf(xe),g.current.focus(e))},[Me]),ft.useMemo(()=>[...B].sort((e,t)=>e-t),[B])),[$e,Re]=ft.useMemo(()=>C?[O[0],O[O.length-1]]:[S,O[0]],[O,C,S]),Pe=(ft.useImperativeHandle(t,()=>({focus:()=>{g.current.focus(0)},blur:()=>{var e=document.activeElement;v.current?.contains(e)&&e?.blur()}})),ft.useRef(F));ft.useEffect(()=>{Pe.current&&g.current.focus(0)},[]);t=ft.useMemo(()=>({min:S,max:k,direction:y,disabled:$,keyboard:a,step:E,included:G,includedStart:$e,includedEnd:Re,range:C,tabIndex:le,ariaLabelForHandle:ie,ariaLabelledByForHandle:se,ariaRequired:ce,ariaValueTextFormatterForHandle:de,styles:o||{},classNames:n||{},isHandleDisabled:N}),[S,k,y,$,a,E,G,$e,Re,C,le,ie,se,ce,de,o,n,N]);return ft.createElement(T2.Provider,{value:t},ft.createElement("div",{ref:v,className:bt(r,H,{[r+"-disabled"]:$,[r+"-vertical"]:h,[r+"-horizontal"]:!h,[r+"-with-marks"]:e.length}),style:A,onMouseDown:e=>{e.preventDefault();var{width:t,height:r,left:n,top:o,bottom:a,right:l}=v.current.getBoundingClientRect(),{clientX:i,clientY:s}=e;let c;switch(y){case"btt":c=(a-s)/r;break;case"ttb":c=(s-o)/r;break;case"rtl":c=(l-i)/t;break;default:c=(i-n)/t}var d=S+c*(k-S);ke(I(d),e)},id:D},ft.createElement("div",{className:bt(r+"-rail",n?.rail),style:{...Z,...o?.rail}}),!1!==ae&&ft.createElement(V2,{prefixCls:r,style:U,values:M,startPoint:Y,onStartMove:Ne?Ie:void 0}),ft.createElement(_2,{prefixCls:r,marks:e,dots:re,style:J,activeStyle:ee}),ft.createElement(L2,{ref:g,prefixCls:r,style:Q,values:B,draggingIndex:Ce,draggingDelete:we,onStartMove:Ie,onOffsetChange:(e,t)=>{$||N(t)||(e=ve(M,e,t),u?.(P(M)),z(e.values),Ee({value:e.value,index:t}))},onFocus:W,onBlur:j,handleRender:ne,activeHandleRender:oe,onChangeComplete:ye,onDelete:R?e=>{var t;$||!R||M.length<=me||((t=[...M]).splice(e,1),u?.(P(t)),z(t),t=Math.max(0,e-1),g.current.hideHelp(),g.current.focus(t))}:void 0}),ft.createElement(W2,{prefixCls:r,marks:e,onClick:ke})))}),J2=(0,ft.createContext)({}),eN=ft.forwardRef((e,t)=>{var{open:r,draggingDelete:n,value:o}=e;let a=(0,ft.useRef)(null),l=r&&!n,i=(0,ft.useRef)(null);function s(){$e.cancel(i.current),i.current=null}return ft.useEffect(()=>(l?i.current=$e(()=>{a.current?.forceAlign(),i.current=null}):s(),s),[l,e.title,o]),ft.createElement(rv,{ref:Ne(a,t),...e,open:l})});let tN=(e,t)=>{var{componentCls:r,railSize:n,handleSize:o,dotSize:a,marginFull:l,calc:i}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",m=i(n).mul(3).sub(o).div(2).equal(),o=i(o).sub(n).div(2).equal(),e=t?{borderWidth:(0,Qe.unit)(o)+" 0",transform:`translateY(${(0,Qe.unit)(i(o).mul(-1).equal())})`}:{borderWidth:"0 "+(0,Qe.unit)(o),transform:`translateX(${(0,Qe.unit)(e.calc(o).mul(-1).equal())})`};return{[s]:n,[d]:i(n).mul(3).equal(),[r+"-rail"]:{[c]:"100%",[d]:n},[r+`-track,${r}-tracks`]:{[d]:n},[r+"-track-draggable"]:{...e},[r+"-handle"]:{[u]:m},[r+"-mark"]:{insetInlineStart:0,top:0,[p]:i(n).mul(3).add(t?0:l).equal(),[c]:"100%"},[r+"-step"]:{insetInlineStart:0,top:0,[p]:n,[c]:"100%",[d]:n},[r+"-dot"]:{position:"absolute",[u]:i(n).sub(a).div(2).equal()}}};var rN=Be("Slider",e=>{var e=ze(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[(e=>{let{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:a,marginPart:l,colorFillContentHover:i,handleColorDisabled:s,calc:c,handleSize:d,handleSizeHover:u,handleActiveColor:p,handleActiveOutlineColor:m,handleLineWidth:f,handleLineWidthHover:h,motionDurationMid:g}=e;var v={backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${(0,Qe.unit)(f)} `+s,insetInlineStart:0,insetBlockStart:0};return{[t]:{...F(e),position:"relative",height:n,margin:(0,Qe.unit)(l)+" "+(0,Qe.unit)(a),padding:0,cursor:"pointer",touchAction:"none",userSelect:"none","&-vertical":{margin:(0,Qe.unit)(a)+" "+(0,Qe.unit)(l)},[t+"-rail"]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:"background-color "+g},[t+`-track,${t}-tracks`]:{position:"absolute",transition:"background-color "+g},[t+"-track"]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[t+"-track-draggable"]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[t+"-rail"]:{backgroundColor:e.railHoverBg},[t+"-track"]:{backgroundColor:e.trackHoverBg},[t+"-dot"]:{borderColor:i},[t+`-handle:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${(0,Qe.unit)(f)} `+e.colorPrimaryBorderHover},[t+"-dot-active"]:{borderColor:e.dotActiveBorderColor}},[t+"-handle"]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(f).mul(-1).equal(),insetBlockStart:c(f).mul(-1).equal(),width:c(d).add(c(f).mul(2)).equal(),height:c(d).add(c(f).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,Qe.unit)(f)} `+e.handleColor,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map(e=>e+" "+g).join(", ")},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:c(u).sub(d).div(2).add(h).mul(-1).equal(),insetBlockStart:c(u).sub(d).div(2).add(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${(0,Qe.unit)(h)} `+p,outline:"6px solid "+m,width:u,height:u,insetInlineStart:e.calc(d).sub(u).div(2).equal(),insetBlockStart:e.calc(d).sub(u).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[t+"-mark"]:{position:"absolute",fontSize:e.fontSize},[t+"-mark-text"]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[t+"-step"]:{position:"absolute",background:"transparent",pointerEvents:"none"},[t+"-dot"]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:(0,Qe.unit)(f)+" solid "+e.dotBorderColor,borderRadius:"50%",cursor:"pointer",transition:"border-color "+e.motionDurationSlow,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[t+"-rail"]:{backgroundColor:e.railBg+" !important"},[t+"-track"]:{backgroundColor:e.trackBgDisabled+" !important"},[`
${t}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[t+"-handle::after"]:{...v},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}},[t+"-handle-disabled::after"]:{...v},[`&-tooltip ${r}-tooltip-container`]:{minWidth:"unset"}}}})(e),(e=>{var{componentCls:t,marginPartWithMark:r}=e;return{[t+"-horizontal"]:{...tN(e,!0),[`&${t}-with-marks`]:{marginBottom:r}}}})(e),{[(e=e).componentCls+"-vertical"]:{...tN(e,!1),height:"100%"}}]},e=>{var t=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,o=e.lineWidth+1.5,a=e.colorPrimary,l=new kn(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:l,handleColorDisabled:new kn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var nN=Re().forwardRef((e,t)=>{let{prefixCls:r,range:n,className:o,rootClassName:a,style:l,disabled:i,tooltip:s={},onChangeComplete:c,classNames:d,styles:u,vertical:p,orientation:H,...m}=e,[,f]=hc(H,p),{getPrefixCls:h,direction:A,className:D,style:L,classNames:F,styles:W,getPopupContainer:g}=Fe("slider");var v=Re().useContext($s),v=i??v,e={...e,disabled:v,vertical:f},b=We(L),y=We(l),[b,y]=je([F,d],[W,b,u,y],{props:e}),{handleRender:e,direction:C}=Re().useContext(J2);let x="rtl"===(C||A),[j,w]=lt(!1),[_,S]=lt(!1),k={...s},{open:K,placement:E,getPopupContainer:N,prefixCls:I,formatter:V}=k,M=K,$=(j||_)&&!1!==M,R=(C=V)||null===C?C:e=>Ma(e)?e.toString():"",[X,P]=lt(!1);let z=(e,t)=>e||(t?x?"left":"right":"top"),B=h("slider",r);var[C,T]=rN(B),C=bt(o,D,b.root,a,{[B+"-rtl"]:x,[B+"-lock"]:X},C,T);x&&!f&&(m.reverse=!m.reverse),Re().useEffect(()=>{let e=()=>{$e(()=>{S(!1)},1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[]);let O=n&&!M;var T=e||((e,t)=>{var r=t.index;let n=e.props;function o(e,t){n[e]?.(t)}var a={...n,onMouseEnter:e=>{w(!0,!0),o("onMouseEnter",e)},onMouseLeave:e=>{w(!1),o("onMouseLeave",e)},onMouseDown:e=>{S(!0,!0),P(!0,!0),o("onMouseDown",e)},onFocus:e=>{S(!0,!0),o("onFocus",e)},onBlur:e=>{S(!1),o("onBlur",e)}},e=Re().cloneElement(e,a),a=(!!M||$)&&null!==R;return O?e:Re().createElement(eN,{...k,prefixCls:h("tooltip",I),title:R?R(t.value):void 0,value:t.value,open:a,placement:z(E,f),key:r,classNames:{root:B+"-tooltip"},getPopupContainer:N||g},e)}),e=O?(e,t)=>{e=Re().cloneElement(e,{style:{...e.props.style,visibility:"hidden"}});return Re().createElement(eN,{...k,prefixCls:h("tooltip",I),title:R?R(t.value):void 0,open:null!==R&&$,placement:z(E,f),key:"tooltip",classNames:{root:B+"-tooltip"},getPopupContainer:N||g,draggingDelete:t.draggingDelete},e)}:void 0,q={...y.root};return Re().createElement(Z2,{...m,classNames:b,styles:y,step:m.step,range:n,className:C,style:q,disabled:v,vertical:f,ref:t,prefixCls:B,handleRender:T,activeHandleRender:e,onChangeComplete:e=>{c?.(e),P(!1)}})});let oN=e=>{let{prefixCls:i,colors:s,type:c,color:t,range:r=!1,className:n,activeIndex:d,onActive:u,onDragStart:o,onDragChange:a,onKeyDelete:p,...l}=e;var e={...l,track:!1},m=ft.useMemo(()=>`linear-gradient(90deg, ${s.map(e=>e.color+` ${e.percent}%`).join(", ")})`,[s]),f=ft.useMemo(()=>t&&c?"alpha"===c?t.toRgbString():`hsl(${t.toHsb().h}, 100%, 50%)`:null,[t,c]);let h=ht(o),g=ht(a);var v=ft.useMemo(()=>({onDragStart:h,onDragChange:g}),[]);let b=ht((e,t)=>{let{onFocus:r,style:n,className:o,onKeyDown:a}=e.props;var l={...n};return"gradient"===c&&(l.background=Cd(s,t.value)),ft.cloneElement(e,{onFocus:e=>{u?.(t.index),r?.(e)},style:l,className:bt(o,{[i+"-slider-handle-active"]:d===t.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!p||p(t.index),a?.(e)}})});var y=ft.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return ft.createElement(J2.Provider,{value:y},ft.createElement(O2.Provider,{value:v},ft.createElement(nN,{...e,className:bt(n,i+"-slider"),tooltip:{open:!1},range:{editable:r,minCount:2},styles:{rail:{background:m},handle:f?{background:f}:{}},classNames:{rail:i+"-slider-rail",handle:i+"-slider-handle"}})))};function aN(e){return Pe(e).sort((e,t)=>e.percent-t.percent)}var lN=ft.memo(e=>{let{prefixCls:t,mode:r,onChange:o,onChangeComplete:n,onActive:a,activeIndex:l,onGradientDragging:i,colors:s}=e;e="gradient"===r;let c=ft.useMemo(()=>s.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[s]);var d=ft.useMemo(()=>c.map(e=>e.percent),[c]);let u=ft.useRef(c);return e?ft.createElement(oN,{min:0,max:100,prefixCls:t,className:t+"-gradient-slider",colors:c,color:null,value:d,range:!0,onChangeComplete:e=>{n(new td(c)),l>=e.length&&a(e.length-1),i(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:({rawValues:e,draggingIndex:t,draggingValue:r})=>{var n;e.length>c.length?(e=Cd(c,r),(n=Pe(c)).splice(t,0,{percent:r,color:e}),u.current=n):u.current=c,i(!0),o(new td(aN(u.current)),!0)},onDragChange:({deleteIndex:e,draggingIndex:t,draggingValue:r})=>{let n=Pe(u.current);-1!==e?n.splice(e,1):(n[t]={...n[t],percent:r},n=aN(n)),o(new td(n),!0)},onKeyDelete:e=>{var t=Pe(c),e=(t.splice(e,1),new td(t));o(e),n(e)}}):null});let iN={slider:e=>{let{value:t,onChange:r,onChangeComplete:n}=e;return ft.createElement(oN,{...e,value:[t],onChange:e=>r(e[0]),onChangeComplete:e=>n(e[0])})}};var sN=()=>{var e=(0,ft.useContext)(Vk);let{mode:n,onModeChange:t,modeOptions:r,prefixCls:o,allowClear:a,value:l,disabledAlpha:i,onChange:s,onClear:c,onChangeComplete:d,activeIndex:u,gradientDragging:p,...m}=e,f=Re().useMemo(()=>l.cleared?[{percent:0,color:new td("")},{percent:100,color:new td("")}]:l.getColors(),[l]),h=!l.isGradient(),[g,v]=Re().useState(l),b=(gt(()=>{h||v(f[u]?.color)},[h,f,p,u]),Re().useMemo(()=>h?l:p?g:f[u]?.color,[f,l,u,h,g,p])),[y,C]=Re().useState(b),[x,w]=Ng();var S=y?.equals(b)?b:y;gt(()=>{C(b)},[x,b?.toHexString()]);let k=(e,t)=>{let r=gd(e);return l.cleared&&(e=r.toRgb(),r=e.r||e.g||e.b||!t?yd(r):({type:e,value:t=0}=t,new td({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1}))),"single"===n?r:((e=Pe(f))[u]={...e[u],color:r},new td(e))};let E=null;var N=1<r.length;return(a||N)&&(E=Re().createElement("div",{className:o+"-operation"},N&&Re().createElement(Kk,{size:"small",options:r,value:n,onChange:t}),Re().createElement(qk,{prefixCls:o,value:l,onChange:e=>{s(e),c?.()},...m}))),Re().createElement(Re().Fragment,null,E,Re().createElement(lN,{...e,colors:f}),Re().createElement(Jc,{prefixCls:o,value:S?.toHsb(),disabledAlpha:i,onChange:(e,t)=>{((e,t,r)=>{e=k(e,r);C(e.isGradient()?e.getColors()[u].color:e),s(e,t)})(e,!0,t)},onChangeComplete:(e,t)=>{e=e,t=t,d(k(e,t)),w()},components:iN}),Re().createElement(R2,{value:b,onChange:e=>{s(k(e))},prefixCls:o,disabledAlpha:i,...m}))},cN=()=>{var{prefixCls:e,value:t,presets:r,onChange:n}=(0,ft.useContext)(Xk);return Array.isArray(r)?Re().createElement(kd,{value:t,presets:r,prefixCls:e,onChange:n}):null},dN=e=>{let{prefixCls:t,presets:r,panelRender:n,value:o,onChange:a,onClear:l,allowClear:i,disabledAlpha:s,mode:c,onModeChange:d,modeOptions:u,onChangeComplete:p,activeIndex:m,onActive:f,format:h,onFormatChange:g,gradientDragging:v,onGradientDragging:b,disabledFormat:y}=e;var e=t+"-inner",C=Re().useMemo(()=>({prefixCls:t,value:o,onChange:a,onClear:l,allowClear:i,disabledAlpha:s,mode:c,onModeChange:d,modeOptions:u,onChangeComplete:p,activeIndex:m,onActive:f,format:h,onFormatChange:g,gradientDragging:v,onGradientDragging:b,disabledFormat:y}),[t,o,a,l,i,s,c,d,u,p,m,f,h,g,v,b,y]),x=Re().useMemo(()=>({prefixCls:t,value:o,presets:r,onChange:a}),[t,o,r,a]),w=Re().createElement("div",{className:e+"-content"},Re().createElement(sN,null),Array.isArray(r)&&Re().createElement(Bk,null),Re().createElement(cN,null));return Re().createElement(Vk.Provider,{value:C},Re().createElement(Xk.Provider,{value:x},Re().createElement("div",{className:e},Je(n)?n(w,{components:{Picker:sN,Presets:cN}}):w)))},uN=(0,ft.forwardRef)((e,t)=>{let{color:r,prefixCls:n,open:o,disabled:a,format:l,className:i,style:s,classNames:c,styles:d,showText:u,activeIndex:p,...m}=e;var e=n+"-trigger",f=e+"-text";let h=f+"-cell",[g]=nc("ColorPicker");var v=Re().useMemo(()=>{if(!u)return"";if(Je(u))return u(r);if(r.cleared)return g.transparent;if(r.isGradient())return r.getColors().map((e,t)=>{var r=-1!==p&&p!==t;return Re().createElement("span",{key:t,className:bt(h,r&&h+"-inactive")},e.color.toRgbString()," ",e.percent,"%")});var e=r.toHexString().toUpperCase(),t=bd(r);switch(l){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return t<100?e.slice(0,7)+`,${t}%`:e}},[r,l,u,p,g.transparent,h]),b=(0,ft.useMemo)(()=>r.cleared?Re().createElement(qk,{prefixCls:n,className:c.body,style:d.body}):Re().createElement(jc,{prefixCls:n,color:r.toCssString(),className:c.body,innerClassName:c.content,style:d.body,innerStyle:d.content}),[r,n,c.body,c.content,d.body,d.content]);return Re().createElement("div",{ref:t,className:bt(e,i,c.root,{[e+"-active"]:o,[e+"-disabled"]:a}),style:{...d.root,...s},...Jt(m)},b,u&&Re().createElement("div",{className:bt(f,c.description),style:d.description},v))});let pN=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:e+" "+e});var mN=(e,t)=>{var{componentCls:r,borderRadiusSM:n,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:l}=e;return{[r+"-color-block"]:{position:"relative",borderRadius:n,width:t,height:t,boxShadow:o,flex:"none",...pN("50%",e.colorFillSecondary),[r+"-color-block-inner"]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${(0,Qe.unit)(a)} `+l,borderRadius:"inherit"}}}},fN=e=>{var{componentCls:t,antCls:r,fontSizeSM:n,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:l,paddingXXS:i,controlHeightSM:s,marginXS:c,fontSizeIcon:d,paddingXS:u,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:m,lineWidth:f}=e;return{[t+"-input-container"]:{display:"flex",[t+`-steppers${r}-input-number`]:{fontSize:n,lineHeight:o,padding:0,[r+"-input-number-input"]:{paddingInlineStart:i,paddingInlineEnd:0},[r+"-input-number-handler-wrap"]:{width:m}},[t+`-steppers${t}-alpha-input`]:{flex:"0 0 "+(0,Qe.unit)(a),marginInlineStart:l},[t+`-format-select${r}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[r+"-select-selector"]:{padding:0,border:0},[r+"-select-arrow"]:{insetInlineEnd:0},[r+"-select-selection-item"]:{paddingInlineEnd:e.calc(d).add(l).equal(),fontSize:n,lineHeight:(0,Qe.unit)(s)},[r+"-select-item-option-content"]:{fontSize:n,lineHeight:o},[r+"-select-dropdown"]:{[r+"-select-item"]:{minHeight:"auto"}}}},[t+"-input"]:{gap:l,alignItems:"center",flex:1,width:0,[t+`-hsb-input,${t}-rgb-input`]:{height:s,display:"flex",gap:l,alignItems:"center"},[t+"-steppers"]:{flex:1},[t+`-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:"0 "+(0,Qe.unit)(u),[r+"-input"]:{fontSize:n,textTransform:"uppercase",lineHeight:(0,Qe.unit)(e.calc(s).sub(e.calc(f).mul(2)).equal())},[r+"-input-prefix"]:{color:p}}}}}},hN=e=>{var{componentCls:t,controlHeightLG:r,borderRadiusSM:n,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:l,colorFillSecondary:i,lineWidthBold:s,colorPickerHandlerSize:c}=e;return{userSelect:"none",[t+"-select"]:{[t+"-palette"]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:n},[t+"-saturation"]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[t+"-handler"]:{width:c,height:c,border:(0,Qe.unit)(s)+" solid "+l,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:o+", 0 0 0 1px "+i}}},gN=e=>{var{componentCls:t,antCls:r,colorTextQuaternary:n,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:l,colorText:i,lineHeightSM:s,lineWidth:c,borderRadius:d,colorFill:u,colorWhite:p,marginXXS:m,paddingXS:f,fontHeightSM:h}=e;return{[t+"-presets"]:{[r+`-collapse-item > ${r}-collapse-header`]:{padding:0,[r+"-collapse-expand-icon"]:{height:h,color:n,paddingInlineEnd:o}},[r+"-collapse"]:{display:"flex",flexDirection:"column",gap:m},[r+`-collapse-item > ${r}-collapse-panel > ${r}-collapse-body`]:{padding:(0,Qe.unit)(f)+" 0"},"&-label":{fontSize:l,color:i,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(m).mul(1.5).equal(),[t+"-presets-color"]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:d,border:(0,Qe.unit)(c)+" solid transparent",transition:`border-color ${e.motionDurationMid} `+e.motionEaseInBack},"&:hover::before":{borderColor:u},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:(0,Qe.unit)(e.lineWidthBold)+" solid "+e.colorWhite,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity `+e.motionDurationFast},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} `+e.motionDurationFast},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:l,color:n}}}},vN=e=>{var{componentCls:t,colorPickerInsetShadow:r,colorBgElevated:n,colorFillSecondary:o,lineWidthBold:a,colorPickerHandlerSizeSM:l,colorPickerSliderHeight:i,marginSM:s,marginXS:c}=e,d=e.calc(l).sub(e.calc(a).mul(2).equal()).equal(),u=e.calc(l).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:r+", 0 0 0 1px "+e.colorPrimaryActive}};return{[t+"-slider"]:[pN((0,Qe.unit)(i),e.colorFillSecondary),{margin:0,padding:0,height:i,borderRadius:e.calc(i).div(2).equal(),"&-rail":{height:i,borderRadius:e.calc(i).div(2).equal(),boxShadow:r},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:u,height:u,borderRadius:"100%"},"&:after":{width:l,height:l,border:(0,Qe.unit)(a)+" solid "+n,boxShadow:r+", 0 0 0 1px "+o,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[t+"-slider-container"]:{display:"flex",gap:s,marginBottom:s,[t+"-slider-group"]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[t+"-gradient-slider"]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}};let bN=(e,t,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,Qe.unit)(e.controlOutlineWidth)} `+r,outline:0}),yN=e=>{e=e.componentCls;return{"&-rtl":{[e+"-presets-color"]:{"&::after":{direction:"ltr"}},[e+"-clear"]:{"&::after":{direction:"ltr"}}}}},CN=(e,t,r)=>{var{componentCls:n,borderRadiusSM:o,lineWidth:a,lineType:l,colorSplit:i,colorBorder:s,red6:c}=e;return{[n+"-clear"]:{width:t,height:t,borderRadius:o,border:(0,Qe.unit)(a)+` ${l} `+i,position:"relative",overflow:"hidden",cursor:"inherit",userSelect:"none",transition:"all "+e.motionDurationFast,...r,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:s}}}},xN=e=>{var{componentCls:t,colorError:r,colorWarning:n,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:l,colorWarningOutline:i}=e;return{[`&${t}-status-error`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:{...bN(e,r,l)}},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:{...bN(e,n,i)}}}},wN=e=>{var{componentCls:e,controlHeightLG:t,controlHeightSM:r,controlHeight:n,controlHeightXS:o,borderRadius:a,borderRadiusSM:l,borderRadiusXS:i,borderRadiusLG:s,fontSizeLG:c}=e;return{[`&${e}-lg`]:{minWidth:t,minHeight:t,borderRadius:s,[e+`-color-block, ${e}-clear`]:{width:n,height:n,borderRadius:a},[e+"-trigger-text"]:{fontSize:c}},[`&${e}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[e+`-color-block, ${e}-clear`]:{width:o,height:o,borderRadius:i},[e+"-trigger-text"]:{lineHeight:(0,Qe.unit)(o)}}}};var SN=Be("ColorPicker",e=>{var{colorTextQuaternary:t,marginSM:r}=e;return(e=>{var{antCls:t,componentCls:r,colorPickerWidth:n,colorPrimary:o,motionDurationMid:a,colorBgElevated:l,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:c,borderRadius:d,marginXS:u,marginSM:p,controlHeight:m,controlHeightSM:f,colorBgTextActive:h,colorPickerPresetColorSize:g,colorPickerPreviewSize:v,lineWidth:b,lineType:y,colorBorder:C,paddingXXS:x,fontSize:w,colorPrimaryHover:S,controlOutline:k}=e;return[{[r]:{[r+"-inner"]:{"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:(0,Qe.unit)(p)+" 0 "+(0,Qe.unit)(u)}},[r+"-panel"]:{...hN(e)},...vN(e),...mN(e,v),...fN(e),...gN(e),...CN(e,g,{marginInlineStart:"auto"}),[r+"-operation"]:{display:"flex",justifyContent:"space-between",marginBottom:u}},"&-trigger":{minWidth:m,minHeight:m,borderRadius:d,border:(0,Qe.unit)(b)+` ${y} `+C,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:"all "+a,background:l,padding:e.calc(x).sub(b).equal(),[r+"-trigger-text"]:{marginInlineStart:u,marginInlineEnd:e.calc(u).sub(e.calc(x).sub(b)).equal(),fontSize:w,color:s,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:i}}},"&:hover":{borderColor:S},[`&${r}-trigger-active`]:{...bN(e,o,k)},"&-disabled":{color:i,background:c,cursor:"not-allowed","&:hover":{borderColor:h},[r+"-trigger-text"]:{color:i}},...CN(e,f),...mN(e,f),...xN(e),...wN(e)},...yN(e)}},Rd(e,{focusElCls:r+"-trigger-active"})]})(ze(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:"inset 0 0 1px 0 "+t,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(r).equal()}))}),c=e=>{let{mode:t,value:r,defaultValue:n,format:o,defaultFormat:a,allowClear:l=!1,presets:i,children:H,trigger:s="click",open:A,disabled:D,placement:c="bottomLeft",arrow:L,panelRender:F,showText:W,style:j,className:_,size:K,rootClassName:d,prefixCls:V,styles:u,classNames:X,disabledAlpha:p=!1,onFormatChange:q,onChange:m,onClear:G,onOpenChange:Y,onChangeComplete:f,getPopupContainer:U,autoAdjustOverflow:h=!0,destroyTooltipOnHide:Q,destroyOnHidden:Z,disabledFormat:J,...ee}=e;var{getPrefixCls:g,direction:v,className:te,style:b,classNames:y,styles:C,arrow:x}=Fe("colorPicker"),w=(0,ft.useContext)($s);let S=D??w;w=g("color-picker",V),g=Xg(L,x);let{compactSize:re,compactItemClassnames:ne}=bc(w,v);var x=mc(e=>K??re??e),e={...e,trigger:s,allowClear:l,autoAdjustOverflow:h,disabledAlpha:p,arrow:g,placement:c,disabled:S,size:x},b=We(b),k=We(j),[y,C]=je([y,X],[C,b,u,k],{props:e},{popup:{_default:"root"}});let[oe,ae]=vt(!1,A);b=!S&&oe;let[E,le]=vt(a,o);let[N,ie,se,ce,de]=((e,t,o)=>{let[a]=nc("ColorPicker"),[r,n]=vt(e,t),[l,i]=ft.useState("single"),[s,c]=ft.useMemo(()=>{var e=(Array.isArray(o)?o:[o]).filter(e=>e);e.length||e.push("single");let r=new Set(e),n=[];e=(e,t)=>{r.has(e)&&n.push({label:t,value:e})};return e("single",a.singleColor),e("gradient",a.gradientColor),[n,r]},[o,a.singleColor,a.gradientColor]),[d,u]=ft.useState(null),p=(e=ht(e=>{u(e),n(e)}),ft.useMemo(()=>{var e=gd(r||"");return e.equals(d)?d:e},[r,d]));return t=ft.useMemo(()=>c.has(l)?l:s[0]?.value,[c,l,s]),ft.useEffect(()=>{i(p.isGradient()?"gradient":"single")},[p]),[p,e,t,i,s]})(n,r,t),I=(0,ft.useMemo)(()=>bd(N)<100,[N]),[ue,M]=Re().useState(null),$=t=>{if(f){let e=gd(t);p&&I&&(e=yd(t)),f(e)}},R=(e,t)=>{let r=gd(e);p&&I&&(r=yd(r)),ie(r),M(null),m&&m(r,r.toCssString()),t||$(r)},[P,z]=Re().useState(0);var[k,e]=Re().useState(!1),B=Re().useContext(ap).status,T=nl(w),[pe,O]=SN(w,T),O=bt(d,O,T,{[w+"-rtl"]:v}),T=bt(Nh(w,B),{[w+"-sm"]:"small"===x,[w+"-lg"]:"large"===x},ne,te,O,_,pe),v=bt(w,O,y.popup?.root),B={open:b,trigger:s,placement:c,arrow:g,rootClassName:d,getPopupContainer:U,autoAdjustOverflow:h,destroyOnHidden:Z??!!Q};return Re().createElement(sv,{classNames:{root:v},styles:{root:C.popup?.root,container:u?.popupOverlayInner},onOpenChange:e=>{e&&S||(ae(e),Y?.(e))},content:Re().createElement(sp,{form:!0},Re().createElement(dN,{mode:se,onModeChange:e=>{ce(e),"single"===e&&N.isGradient()?(z(0),R(new td(N.getColors()[0].color)),M(N)):"gradient"!==e||N.isGradient()||(e=I?yd(N):N,R(new td(ue||[{percent:0,color:e},{percent:100,color:e}])))},modeOptions:de,prefixCls:w,value:N,allowClear:l,disabled:S,disabledAlpha:p,presets:i,panelRender:F,format:E,onFormatChange:e=>{le(e),E!==e&&q?.(e)},onChange:R,onChangeComplete:$,onClear:G,activeIndex:P,onActive:z,gradientDragging:k,onGradientDragging:e,disabledFormat:J})),...B},H||Re().createElement(uN,{activeIndex:b?P:-1,open:b,className:T,classNames:y,styles:C,prefixCls:w,disabled:S,showText:W,format:E,...ee,color:N}))},n=Fn(c,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);c._InternalPanelDoNotUseOrYouWillBeFired=n;var kN=c;function EN(){return(EN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var NN=ft.forwardRef((e,t)=>ft.createElement(u,EN({},e,{ref:t,icon:se().A}))),IN=(e,t,r,n,o,a,l)=>{var{classNames:e,style:i,styles:s}=Fe(e),l=null===l?void 0:l??i,i=We(l);let[c,d]=je([e,t],[s,i,r],{props:a},{popup:{_default:"root"}});return ft.useMemo(()=>[{...c,popup:{...c.popup,root:bt(c.popup?.root,n)}},{...d,popup:{...d.popup,root:{...d.popup?.root,...o}}}],[c,d,n,o])},MN=t(6554);let $N=e=>{var{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=e.max(e.calc(r).sub(n).equal(),0);return{basePadding:r,containerPadding:e.max(e.calc(r).sub(o).equal(),0),itemHeight:(0,Qe.unit)(t),itemLineHeight:(0,Qe.unit)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},RN=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:i,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[t+"-selection-overflow"]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[t+"-selection-item"]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:n,cursor:"default",transition:["font-size","line-height","height"].map(e=>e+" "+o).join(", "),marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[t+"-disabled&"]:{color:l,borderColor:i,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...ln(),display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> "+r]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}}}}},PN=(e,t)=>{var{componentCls:r,controlHeight:n}=e,t=t?r+"-"+t:"",e=$N(e);return[{[r+"-multiple"+t]:{paddingBlock:e.containerPadding,paddingInlineStart:e.basePadding,minHeight:n,[r+"-selection-item"]:{height:e.itemHeight,lineHeight:(0,Qe.unit)(e.itemLineHeight)}}}]};var zN=e=>{var{componentCls:t,calc:r,lineWidth:n}=e,o=ze(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),r=ze(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[PN(o,"small"),PN(e),PN(r,"large"),{[""+t+t+"-multiple"]:{width:"100%",cursor:"text",[t+"-selector"]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[t+"-selection-placeholder"]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:"all "+e.motionDurationSlow,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none",...an}},...RN(e),[t+"-multiple-input"]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},BN=e=>{var t=e.componentCls;return{[t]:[{...IE(e),...WE(e),...HE(e),...BE(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.multipleItemBorderColor}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.multipleItemBorderColor}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.multipleItemBorderColor}}}]}};let TN=(e,t)=>({padding:(0,Qe.unit)(e)+" "+(0,Qe.unit)(t)});var ON=Be("DatePicker",e=>{var t=ze(AC(e),LC(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[HC(t),(e=>{let{componentCls:t,antCls:r,paddingInline:n,lineWidth:o,lineType:a,colorBorder:l,borderRadius:i,motionDurationMid:s,colorTextDisabled:c,colorTextPlaceholder:d,colorTextQuaternary:u,fontSizeLG:p,inputFontSizeLG:m,fontSizeSM:f,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:v,paddingXS:b,marginXS:y,colorIcon:C,lineWidthBold:x,colorPrimary:w,motionDurationSlow:S,zIndexPopup:k,paddingXXS:E,sizePopupArrow:N,colorBgElevated:I,borderRadiusLG:M,boxShadowSecondary:$,borderRadiusSM:R,colorSplit:P,cellHoverBg:z,presetsWidth:B,presetsMaxWidth:T,boxShadowPopoverArrow:O,fontHeight:H,lineHeightLG:A}=e;var[D,L]=Q(r,"date-picker");return[{[t]:{[D("affix-color")]:"inherit",...F(e),...TN(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:i,transition:["border","box-shadow","background-color"].map(e=>e+" "+s).join(", "),[t+"-prefix"]:{color:L("affix-color"),flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[t+"-input"]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:"all "+s,...jE(d),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:c,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:d}}},"&-large":{...TN(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[t+"-input > input"]:{fontSize:m??p,lineHeight:A}},"&-small":{...TN(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[t+"-input > input"]:{fontSize:h??f}},[t+"-suffix"]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:["opacity","color"].map(e=>e+" "+s).join(", "),"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[t+"-clear"]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0,appearance:"none",transform:"translateY(-50%)",cursor:"pointer",opacity:0,pointerEvents:"none",transition:["opacity","color"].map(e=>e+" "+s).join(", "),"> *":{verticalAlign:"top"},"&:hover":{color:C},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...dn(e)}},"&:hover, &:focus-within":{[t+"-clear"]:{opacity:1,pointerEvents:"auto"},[t+"-suffix:not(:last-child)"]:{opacity:0}},[t+"-separator"]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[t+"-focused &"]:{color:C},[t+"-range-separator &"]:{[t+"-disabled &"]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[t+"-active-bar"]:{bottom:e.calc(o).mul(-1).equal(),height:x,background:w,opacity:0,transition:`all ${S} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[t+"-active-bar"]:{opacity:1}},[t+"-range-separator"]:{alignItems:"center",padding:"0 "+(0,Qe.unit)(b),lineHeight:1}},"&-range, &-multiple":{[t+"-clear"]:{insetInlineEnd:n},[`&${t}-small`]:{[t+"-clear"]:{insetInlineEnd:v}}},"&-dropdown":{...F(e),...OC(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
&${t}-dropdown-placement-bottomRight`]:{[t+"-range-arrow"]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
&${t}-dropdown-placement-topRight`]:{[t+"-range-arrow"]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[t+`-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft,
&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight,
&${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft,
&${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Lh},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
&${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
&${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ah},[`&${r}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft,
&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Fh},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Dh},[t+`-panel > ${t}-time-panel`]:{paddingTop:E},[t+"-range-wrapper"]:{display:"flex",position:"relative"},[t+"-range-arrow"]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(n).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${S} ease-out`,...Ag(e,I,O),"&:before":{insetInlineStart:e.calc(n).mul(1.5).equal()}},[t+"-panel-container"]:{overflow:"hidden",verticalAlign:"top",background:I,borderRadius:M,boxShadow:$,transition:"margin "+S,display:"inline-block",pointerEvents:"auto",[t+"-panel-layout"]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[t+"-presets"]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:T,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:(0,Qe.unit)(o)+` ${a} `+P,li:{...an,borderRadius:R,paddingInline:b,paddingBlock:e.calc(g).sub(H).div(2).equal(),cursor:"pointer",transition:"all "+S,"+ li":{marginTop:y},"&:hover":{background:z}}}},[t+"-panels"]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[t+"-panel"]:{borderWidth:0}}},[t+"-panel"]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[t+"-content, table"]:{textAlign:"center"},"&-focused":{borderColor:l}}}},"&-dropdown-range":{padding:(0,Qe.unit)(e.calc(N).mul(2).div(3).equal())+" 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[t+"-separator"]:{transform:"scale(-1, 1)"},[t+"-footer"]:{"&-extra":{direction:"rtl"}}}}},Xh(e,"slide-up"),Xh(e,"slide-down"),Gh(e,"move-up"),Gh(e,"move-down")]})(t),BN(t),(e=>{var{componentCls:t,colorError:r,colorWarning:n}=e,[o]=Q(e.antCls,"date-picker");return{[t+`:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[o("affix-color")]:e.colorErrorAffix,[t+"-active-bar"]:{background:r}},[`&${t}-status-warning`]:{[o("affix-color")]:e.colorWarningAffix,[t+"-active-bar"]:{background:n}}}}})(t),zN(t),Rd(e,{focusElCls:e.componentCls+"-focused"})]},e=>({...DC(e),...FC(e),...Hg(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));let HN=(e,t,r)=>Ia(r)?r:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:("time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale:e.lang).placeholder,AN=(e,t,r)=>Ia(r)?r:"year"===t&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:("time"===t&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale:e.lang).rangePlaceholder,DN=(e,t)=>{let{allowClear:r=!0}=e,{clearIcon:n,removeIcon:o}=pg({...e,prefixCls:t,componentName:"DatePicker"});return[ft.useMemo(()=>{var e;return!1!==r&&(e=!0===r?{}:r,{clearIcon:n,...e})},[r,n]),o]},[LN,FN]=["week","WeekPicker"],[WN,jN]=["month","MonthPicker"],[_N,KN]=["year","YearPicker"],[VN,XN]=["quarter","QuarterPicker"],[qN,GN]=["time","TimePicker"];var YN=e=>ft.createElement(Bd,{size:"small",type:"primary",...e});function UN(e){return(0,ft.useMemo)(()=>({button:YN,...e}),[e])}function QN(){return(QN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ZN=ft.forwardRef((e,t)=>ft.createElement(u,QN({},e,{ref:t,icon:f().A})));function JN(){return(JN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eI=ft.forwardRef((e,t)=>ft.createElement(u,JN({},e,{ref:t,icon:x().A}))),tI=({picker:e,hasFeedback:t,feedbackIcon:r,suffixIcon:n})=>null===n||!1===n?null:!0===n||void 0===n?Re().createElement(Re().Fragment,null,e===qN?Re().createElement(eI,{"aria-hidden":"true"}):Re().createElement(ZN,{"aria-hidden":"true"}),t&&r):n,rI=Y=>(0,ft.forwardRef)((e,t)=>{let{prefixCls:r,getPopupContainer:n,components:o,className:a,style:l,classNames:i,styles:s,placement:c,size:d,disabled:u,bordered:p=!0,placeholder:m,status:f,variant:h,picker:g,dropdownClassName:v,popupClassName:H,popupStyle:A,rootClassName:D,suffixIcon:b,separator:L,allowClear:F,clearIcon:W,...j}=e;var y=g===qN?"timePicker":"datePicker",{suffixIcon:C,clearIcon:x,allowClear:w}=Fe(y),{getPrefixCls:S,direction:k,getPopupContainer:_,rangePicker:E}=(0,ft.useContext)(Ue);let N=ft.useRef(null);var I=S("picker",r);let{compactSize:K,compactItemClassnames:V}=bc(I,k);var S=S(),M=L??E?.separator,$=Ia(M),[X,q]=Th("rangePicker",h,p),R=nl(I),[P,z]=ON(I,R),P=bt(P,z,R,D),z=x2({componentName:"RangePicker",allowClear:F,clearIcon:W,contextAllowClear:w,contextClearIcon:x,defaultAllowClear:!0}),R=UN(o),w=mc(e=>d??K??e),x=ft.useContext($s),x=u??x,B={...e,size:w,disabled:x,status:f,variant:h},[y,B]=IN(y,i,s,H||v,A,B,E?.style??null),{hasFeedback:T,status:G,feedbackIcon:O}=(0,ft.useContext)(ap),O=tI({picker:g,hasFeedback:T,feedbackIcon:O,suffixIcon:void 0===b?C:b}),[C]=((0,ft.useImperativeHandle)(t,()=>N.current),nc("Calendar",MN.A)),t=lr(C,e.locale||{}),[C]=Cp("DatePicker",B?.popup?.root?.zIndex);return ft.createElement(sp,{space:!0},ft.createElement(eC,{separator:ft.createElement("span",{"aria-hidden":!$||void 0,className:I+"-separator"},$?M:ft.createElement(NN,null)),disabled:x,ref:N,placement:c,placeholder:AN(t,g,m),suffixIcon:O,prevIcon:ft.createElement("span",{className:I+"-prev-icon"}),nextIcon:ft.createElement("span",{className:I+"-next-icon"}),superPrevIcon:ft.createElement("span",{className:I+"-super-prev-icon"}),superNextIcon:ft.createElement("span",{className:I+"-super-next-icon"}),transitionName:S+"-slide-up",picker:g,...j,locale:t.lang,getPopupContainer:n||_,generateConfig:Y,components:R,direction:k,prefixCls:I,rootClassName:P,className:bt({[I+"-large"]:"large"===w,[I+"-small"]:"small"===w,[I+"-"+X]:q},Nh(I,Ih(G,f),T),V,a,E?.className),style:l,classNames:y,styles:{...B,popup:{...B.popup,root:{...B.popup.root,zIndex:C}}},allowClear:z}))}),nI=J=>{var e=(U,Q="DatePicker")=>{let Z=Q===GN?"timePicker":"datePicker";return(0,ft.forwardRef)((e,t)=>{let{prefixCls:r,getPopupContainer:n,components:o,style:a,className:l,size:i,bordered:s,placement:c,placeholder:d,disabled:u,status:p,variant:m,onCalendarChange:f,classNames:h,styles:g,dropdownClassName:H,popupClassName:A,popupStyle:D,rootClassName:L,suffixIcon:v,allowClear:F,clearIcon:W,...b}=e;var{suffixIcon:y,clearIcon:C,allowClear:x}=Fe(Q===GN?"timePicker":"datePicker"),{getPrefixCls:w,direction:S,getPopupContainer:j,[Z]:k}=(0,ft.useContext)(Ue),E=w("picker",r);let{compactSize:_,compactItemClassnames:K}=bc(E,S);var N=mc(e=>i??_??e),I=ft.useContext($s),I=u??I,M={...e,size:N,disabled:I,status:p,variant:m},[M,$]=IN(Z,h,g,A||H,D,M,k?.style);let R=ft.useRef(null);var[V,X]=Th("datePicker",m,s),P=nl(E),[z,B]=ON(E,P),z=bt(z,B,P,L),B=((0,ft.useImperativeHandle)(t,()=>R.current),U||e.picker),P=w();let{onSelect:T,multiple:q}=b,G=T&&"time"===U&&!q;var[,t]=DN(e,E),w=x2({componentName:Q,allowClear:F,clearIcon:W,contextAllowClear:x,contextClearIcon:C,defaultAllowClear:!0}),x=UN(o),{hasFeedback:C,status:Y,feedbackIcon:O}=(0,ft.useContext)(ap),O=tI({picker:B,hasFeedback:C,feedbackIcon:O,suffixIcon:void 0===v?y:v}),[y]=nc("DatePicker",MN.A),y=lr(y,e.locale||{}),[e]=Cp("DatePicker",$?.popup?.root?.zIndex);return ft.createElement(sp,{space:!0},ft.createElement(iC,{ref:R,placeholder:HN(y,B,d),suffixIcon:O,placement:c,prevIcon:ft.createElement("span",{className:E+"-prev-icon"}),nextIcon:ft.createElement("span",{className:E+"-next-icon"}),superPrevIcon:ft.createElement("span",{className:E+"-super-prev-icon"}),superNextIcon:ft.createElement("span",{className:E+"-super-next-icon"}),transitionName:P+"-slide-up",picker:U,onCalendarChange:(e,t,r)=>{f?.(e,t,r),G&&T(e)},showToday:!0,...b,locale:y.lang,getPopupContainer:n||j,generateConfig:J,components:x,direction:S,disabled:I,prefixCls:E,rootClassName:z,className:bt({[E+"-large"]:"large"===N,[E+"-small"]:"small"===N,[E+"-"+V]:X},Nh(E,Ih(Y,p),C),K,k?.className,l),style:a,classNames:M,styles:{...$,popup:{...$.popup,root:{...$.popup.root,zIndex:e}}},allowClear:w,removeIcon:t}))})},t=e(),r=e(LN,FN),n=e(WN,jN),o=e(_N,KN),a=e(VN,XN);return{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:o,TimePicker:e(qN,GN),QuarterPicker:a}},a=e=>{var{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:o,TimePicker:a,QuarterPicker:l}=nI(e),e=rI(e);return t.WeekPicker=r,t.MonthPicker=n,t.YearPicker=o,t.RangePicker=e,t.TimePicker=a,t.QuarterPicker=l,t},i=a(s),l=Fn(i,"popupAlign",void 0,"picker"),d=(i._InternalPanelDoNotUseOrYouWillBeFired=l,Fn(i.RangePicker,"popupAlign",void 0,"picker")),oI=(i._InternalRangePanelDoNotUseOrYouWillBeFired=d,i.generatePicker=a,i),aI={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},lI=Re().createContext(null);let iI=e=>ke(e).map(e=>({...e?.props,key:e.key}));var sI=(t,r)=>{var[e,,]=(0,ft.useMemo)(()=>{{var e,s=t;let o=[],a=[],l=!1,i=0;return r.filter(e=>e).forEach(e=>{let{filled:t,...r}=e;var n;t?(a.push(r),o.push(a),a=[],i=0):(n=s-i,(i+=e.span||1)>=s?(i>s?(l=!0,a.push({...r,span:n})):a.push(r),o.push(a),a=[],i=0):a.push(r))}),0<a.length&&o.push(a),[o=o.map(e=>{var t,r=e.reduce((e,t)=>e+(t.span||1),0);return r<s&&((t=e[e.length-1]).span=s-(r-(t.span||1))),e}),l]}},[r,t]);return e},e=e=>e.children,cI=t=>{var{itemPrefixCls:r,component:n,span:o,className:a,style:l,labelStyle:e,contentStyle:i,bordered:s,label:c,content:d,colon:u,type:p,styles:m,classNames:f}=t,{classNames:h,styles:g}=Re().useContext(lI),[h,f]=je([h,f],[g,m],{props:t}),g={...e,...f.label},m={...i,...f.content};if(s){let e;"label"===p&&(e=g);t=(e="content"===p?m:e)?{...l,...e}:l;return Re().createElement(n,{colSpan:o,style:t,className:bt(a,{[r+"-item-"+p]:"label"===p||"content"===p,[h.label]:h.label&&"label"===p,[h.content]:h.content&&"content"===p})},Se(c)&&Re().createElement("span",null,c),Se(d)&&Re().createElement("span",null,d))}return Re().createElement(n,{className:bt(r+"-item",a),style:l,colSpan:o},Re().createElement("div",{className:r+"-item-container"},Se(c)&&Re().createElement("span",{style:g,className:bt(r+"-item-label",h.label,{[r+"-item-no-colon"]:!u})},c),Se(d)&&Re().createElement("span",{style:m,className:bt(r+"-item-content",h.content)},d)))};function dI(e,{colon:p,prefixCls:m,bordered:f},{component:h,type:g,showLabel:v,showContent:b,labelStyle:y,contentStyle:C,styles:x}){return e.map(({label:e,children:t,prefixCls:r=m,className:n,style:o,labelStyle:a,contentStyle:l,span:i=1,key:s,styles:c,classNames:d},u)=>{s=s??u;return"string"==typeof h?ft.createElement(cI,{key:g+"-"+s,className:n,style:o,classNames:d,styles:{label:{...y,...x?.label,...a,...c?.label},content:{...C,...x?.content,...l,...c?.content}},span:i,colon:p,component:h,itemPrefixCls:r,bordered:f,label:v?e:null,content:b?t:null,type:g}):(u={label:{...y,...x?.label,...a,...c?.label},content:{...C,...x?.content,...l,...c?.content}},[ft.createElement(cI,{key:"label-"+s,className:n,style:o,classNames:d,styles:u,span:1,colon:p,component:h[0],itemPrefixCls:r,bordered:f,label:e,type:"label"}),ft.createElement(cI,{key:"content-"+s,className:n,style:o,classNames:d,styles:u,span:2*i-1,component:h[1],itemPrefixCls:r,bordered:f,content:t,type:"content"})])})}var uI=e=>{var t=ft.useContext(lI),{prefixCls:r,vertical:n,row:o,index:a,bordered:l}=e;return n?ft.createElement(ft.Fragment,null,ft.createElement("tr",{key:"label-"+a,className:r+"-row"},dI(o,e,{component:"th",type:"label",showLabel:!0,...t})),ft.createElement("tr",{key:"content-"+a,className:r+"-row"},dI(o,e,{component:"td",type:"content",showContent:!0,...t}))):ft.createElement("tr",{key:a,className:r+"-row"},dI(o,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,...t}))};let pI=e=>{var{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,"> table":{tableLayout:"auto"},[t+"-row"]:{borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:(0,Qe.unit)(e.padding)+" "+(0,Qe.unit)(e.paddingLG),borderInlineEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-medium`]:{[t+"-row"]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:(0,Qe.unit)(e.paddingSM)+" "+(0,Qe.unit)(e.paddingLG)}}},[`&${t}-small`]:{[t+"-row"]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:(0,Qe.unit)(e.paddingXS)+" "+(0,Qe.unit)(e.padding)}}}}}};var mI=Be("Descriptions",e=>(e=>{var{componentCls:t,extraColor:r,itemPaddingBottom:n,itemPaddingEnd:o,colonMarginRight:a,colonMarginLeft:l,titleMarginBottom:i}=e;return{[t]:{...F(e),...pI(e),"&-rtl":{direction:"rtl"},[t+"-header"]:{display:"flex",alignItems:"center",marginBottom:i},[t+"-title"]:{...an,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[t+"-extra"]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[t+"-view"]:{width:"100%",borderRadius:e.borderRadiusLG,table:{minWidth:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[t+"-row"]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[t+"-item-label"]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:(0,Qe.unit)(l)+" "+(0,Qe.unit)(a)},[`&${t}-item-no-colon::after`]:{content:'""'}},[t+"-item-no-label"]:{"&::after":{margin:0,content:'""'}},[t+"-item-content"]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[t+"-item"]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[t+"-item-label"]:{display:"inline-flex",alignItems:"baseline"},[t+"-item-content"]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-medium":{[t+"-row"]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[t+"-row"]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}})(ze(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText})),o=ft.forwardRef((e,t)=>{let{prefixCls:r,title:n,extra:o,column:a,colon:l=!0,bordered:i,layout:s,children:c,className:d,rootClassName:u,style:p,size:m,labelStyle:f,contentStyle:h,styles:g,items:v,classNames:b,...y}=e;var{getPrefixCls:C,direction:x,className:w,style:S,classNames:k,styles:E}=Fe("descriptions");let N=C("descriptions",r),I=Ig();var C=ft.useMemo(()=>Ma(a)?a:kg(I,a)??kg(I,aI)??3,[I,a]),M=((r,e,t)=>{let n=ft.useMemo(()=>e||iI(t),[e,t]);return ft.useMemo(()=>n.map(({span:e,...t})=>"filled"===e?{...t,filled:!0}:{...t,span:Ma(e)?e:kg(r,e)}),[n,r])})(I,v,c),$=mc(m),R=sI(C,M),[P,z]=mI(N),e={...e,column:C,items:M,size:$},C=We(S),M=We(p);let[B,T]=je([k,b],[E,C,g,M],{props:e});S=ft.useMemo(()=>({labelStyle:f,contentStyle:h,styles:{label:T.label,content:T.content},classNames:{label:B.label,content:B.content}}),[f,h,T.label,T.content,B.label,B.content]);let O=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:O.current})),ft.createElement(lI.Provider,{value:S},ft.createElement("div",{ref:O,className:bt(N,w,B.root,{[N+"-medium"]:"medium"===$||"middle"===$,[N+"-small"]:"small"===$,[N+"-bordered"]:!!i,[N+"-rtl"]:"rtl"===x},d,u,P,z),style:T.root,...y},(n||o)&&ft.createElement("div",{className:bt(N+"-header",B.header),style:T.header},n&&ft.createElement("div",{className:bt(N+"-title",B.title),style:T.title},n),o&&ft.createElement("div",{className:bt(N+"-extra",B.extra),style:T.extra},o)),ft.createElement("div",{className:N+"-view"},ft.createElement("table",null,ft.createElement("tbody",null,R.map((e,t)=>ft.createElement(uI,{key:t,index:t,colon:l,prefixCls:N,vertical:"vertical"===s,bordered:i,row:e})))))))}),fI=(o.Item=e,o);let hI=ft.createContext({});var gI=ft.createContext(null);function vI(){return(vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var bI=e=>{let{prefixCls:t,className:r,containerRef:n,...o}=e;var a=ft.useContext(hI).panel,a=wt(a,n);return ft.createElement("div",vI({className:bt(t+"-section",r),role:"dialog",ref:a},Jt(e,{aria:!0}),{"aria-modal":"true"},o))};function yI(e){if("string"==typeof e){var t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&(0,Te.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function CI(){return(CI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xI=ft.forwardRef((n,e)=>{let{prefixCls:o,open:a,placement:t,inline:r,push:l,forceRender:i,autoFocus:s,focusTrap:c,classNames:d,rootClassName:u,rootStyle:p,zIndex:m,className:H,id:A,style:D,motion:f,width:h,height:g,size:v,maxSize:L,children:F,mask:b,maskClosable:W,maskMotion:j,maskClassName:_,maskStyle:K,afterOpenChange:V,onClose:X,onMouseEnter:q,onMouseOver:G,onMouseLeave:Y,onClick:U,onKeyDown:Q,onKeyUp:Z,styles:y,drawerRender:C,resizable:x,defaultSize:w}=n,S=ft.useRef(null),J=(ft.useImperativeHandle(e,()=>S.current),((e,t,r,n,o)=>{var[n]=Ot(t&&(n??!1!==o),e);return Re().useEffect(()=>{t&&!0===r&&e()?.focus({preventScroll:!0})},[t]),n})(()=>S.current,a,s,c,b)),[k,E]=ft.useState(!1),N=ft.useContext(gI),ee,I=(ee="boolean"==typeof l?l?{}:{distance:0}:l||{})?.distance??N?.pushDistance??180;var e=ft.useMemo(()=>({pushDistance:I,push:()=>{E(!0)},pull:()=>{E(!1)}}),[I]),te=(ft.useEffect(()=>{a?N?.push?.():N?.pull?.()},[a]),ft.useEffect(()=>()=>{N?.pull?.()},[]),ft.createElement(Na,CI({key:"mask"},j,{visible:b&&a}),({className:e,style:t},r)=>ft.createElement("div",{className:bt(o+"-mask",e,d?.mask,_),style:{...t,...K,...y?.mask},onClick:W&&a?X:void 0,ref:r}))),M="function"==typeof f?f(t):f;let[$,re]=ft.useState(),R="left"===t||"right"===t,P=ft.useMemo(()=>{var e=R?h:g;return yI(v??e??$??w??(R?378:void 0))},[v,h,g,w,R,$]),ne=ft.useMemo(()=>{var e={};if(k&&I)switch(t){case"top":e.transform=`translateY(${I}px)`;break;case"bottom":e.transform=`translateY(${-I}px)`;break;case"left":e.transform=`translateX(${I}px)`;break;default:e.transform=`translateX(${-I}px)`}return R?e.width=yI(P):e.height=yI(P),e},[k,I,t,R,P]),z=ft.useRef(null),oe=!!x,B="object"==typeof x&&x||{};var T=ht(e=>{re(e),B.onResize?.(e)});let{dragElementProps:ae,isDragging:O}=(e=>{let{prefixCls:t,direction:n,className:r,style:o,maxSize:a,containerRef:l,currentSize:i,onResize:s,onResizeEnd:c,onResizeStart:d}=e,[u,p]=ft.useState(!1),[m,f]=ft.useState(0),[h,g]=ft.useState(0),v="left"===n||"right"===n,b=(e=ht(e=>{e.preventDefault(),e.stopPropagation(),p(!0),v?f(e.clientX):f(e.clientY);let t;"number"==typeof i?t=i:l?.current&&(e=l.current.getBoundingClientRect(),t=v?e.width:e.height),g(t),d?.(t)}),ht(r=>{if(u){let e=(v?r.clientX:r.clientY)-m,t=("right"!==n&&"bottom"!==n||(e=-e),h+e);t<0&&(t=0),a&&t>a&&(t=a),s?.(t)}})),y=ft.useCallback(()=>{var e;u&&(p(!1),l?.current)&&(e=l.current.getBoundingClientRect(),e=v?e.width:e.height,c?.(e))},[u,l,c,v]);return ft.useEffect(()=>{if(u)return document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y)}},[u,b,y]),{dragElementProps:{className:bt(t+"-dragger",t+"-dragger-"+n,{[t+"-dragger-dragging"]:u,[t+"-dragger-horizontal"]:v,[t+"-dragger-vertical"]:!v},r),style:o,onMouseDown:e},isDragging:u}})({prefixCls:o+"-resizable",direction:t,className:d?.dragger,style:y?.dragger,maxSize:L,containerRef:z,currentSize:P,onResize:T,onResizeStart:B.onResizeStart,onResizeEnd:B.onResizeEnd}),le={onMouseEnter:q,onMouseOver:G,onMouseLeave:Y,onClick:U,onKeyDown:Q,onKeyUp:Z,onFocus:e=>{J(e.target)}};T=ft.createElement(Na,CI({key:"panel"},M,{visible:a,forceRender:i,onVisibleChanged:V,removeOnLeave:!1,leavedClassName:o+"-content-wrapper-hidden"}),({className:e,style:t},r)=>{r=ft.createElement(bI,CI({id:A,containerRef:r,prefixCls:o,className:bt(H,d?.section),style:{...D,...y?.section}},Jt(n,{aria:!0}),le),F);return ft.createElement("div",CI({ref:z,className:bt(o+"-content-wrapper",O&&o+"-content-wrapper-dragging",d?.wrapper,!O&&e),style:{...t,...ne,...y?.wrapper}},Jt(n,{data:!0})),oe&&ft.createElement("div",ae),C?C(r):r)}),M={...p};return m&&(M.zIndex=m),ft.createElement(gI.Provider,{value:e},ft.createElement("div",{className:bt(o,o+"-"+t,u,{[o+"-open"]:a,[o+"-inline"]:r}),style:M,tabIndex:-1,ref:S},te,T))}),wI=e=>{let{open:t=!1,prefixCls:r="rc-drawer",placement:n="right",autoFocus:o=!0,keyboard:a=!0,width:l,height:i,size:s,maxSize:c,mask:d=!0,maskClosable:u=!0,getContainer:p,forceRender:m,afterOpenChange:f,destroyOnHidden:h,onMouseEnter:g,onMouseOver:v,onMouseLeave:b,onClick:y,onKeyDown:C,onKeyUp:x,onClose:w,resizable:S,defaultSize:k,focusTriggerAfterClose:E,panelRef:N}=e,[I,M]=ft.useState(!1),[$,R]=ft.useState(!1),P=(gt(()=>{R(!0)},[]),!!$&&t),z=ft.useRef(null),B=ft.useRef(null);gt(()=>{P&&(B.current=document.activeElement)},[P]);var T,O=ft.useMemo(()=>({panel:N}),[N]);return m||I||P||!h?(T={onMouseEnter:g,onMouseOver:v,onMouseLeave:b,onClick:y,onKeyDown:C,onKeyUp:x},e={...e,open:P,prefixCls:r,placement:n,autoFocus:o,keyboard:a,width:l,height:i,size:s,maxSize:c,defaultSize:k,mask:d,maskClosable:u,inline:!1===p,afterOpenChange:e=>{M(e),f?.(e),e||!1===E||!B.current||z.current?.contains(B.current)||B.current?.focus({preventScroll:!0})},ref:z,resizable:S,...T},ft.createElement(hI.Provider,{value:O},ft.createElement(Vi,{open:P||m||I,autoDestroy:!1,getContainer:p,autoLock:d&&(P||I),onEsc:({top:e,event:t})=>{e&&a&&(t.stopPropagation(),w?.(t))}},ft.createElement(xI,e)))):null},SI=e=>{let{prefixCls:t,ariaId:r,title:n,footer:o,extra:a,closable:l,loading:i,onClose:s,headerStyle:c,bodyStyle:d,footerStyle:u,children:p,classNames:m,styles:f}=e;var h=Fe("drawer");let{classNames:g,styles:v,closable:b}=h,[y,C]=je([g,m],[v,f],{props:{...e,closable:l??b}}),x=ft.useMemo(()=>{var e=l??b;if(!1!==e)return Ze(e)&&"end"===e?.placement?"end":"start"},[l,b]);var w=ft.useCallback(e=>ft.createElement("button",{type:"button",onClick:s,className:bt(t+"-close",{[t+"-close-"+x]:"end"===x},y.close),style:C.close},e),[s,t,x,y.close,C.close]);let[S,k,E]=hp(cp(e),cp(h),{closable:!0,closeIconRender:w}),N=Ss(k,{disabled:E}),I=Se(n),M=Se(a);return ft.createElement(ft.Fragment,null,I||S||M?ft.createElement("div",{style:{...C.header,...c},className:bt(t+"-header",y.header,{[t+"-header-close-only"]:S&&!I&&!M})},ft.createElement("div",{className:t+"-header-title"},"start"===x&&N,I&&ft.createElement("div",{className:bt(t+"-title",y.title),style:C.title,id:r},n)),M&&ft.createElement("div",{className:bt(t+"-extra",y.extra),style:C.extra},a),"end"===x&&N):null,ft.createElement("div",{className:bt(t+"-body",y.body),style:{...C.body,...d}},i?ft.createElement(jp,{active:!0,title:!1,paragraph:{rows:5},className:t+"-body-skeleton"}):p),o?ft.createElement("div",{className:bt(t+"-footer",y.footer),style:{...C.footer,...u}},o):null)};let kI=e=>({left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"})[e],EI=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),NI=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:"all "+t}},...EI({opacity:e},{opacity:1})}),II=(e,t)=>[NI(.7,t),EI({transform:kI(e)},{transform:"none"})];var MI=e=>{let{componentCls:t,motionDurationSlow:r}=e;return{[t]:{[t+"-mask-motion"]:NI(0,r),[t+"-panel-motion"]:["left","right","top","bottom"].reduce((e,t)=>({...e,["&-"+t]:II(t,r)}),{})}}};var $I=Be("Drawer",e=>{e=ze(e,{});return[(e=>{var{borderRadiusSM:t,componentCls:r,zIndexPopup:n,colorBgMask:o,colorBgElevated:a,motionDurationSlow:l,motionDurationMid:i,paddingXS:s,padding:c,paddingLG:d,fontSizeLG:u,lineHeightLG:p,lineWidth:m,lineType:f,colorSplit:h,marginXS:g,colorIcon:v,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:C,colorText:x,fontWeightStrong:w,footerPaddingBlock:S,footerPaddingInline:k,draggerSize:E,calc:N}=e,I=r+"-content-wrapper",M=r+"-resizable-dragger";return{[r]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${r}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${r}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${r}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${r}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[r+"-mask"]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto",[`&${r}-mask-blur`]:{backdropFilter:"blur(4px)"}},[I]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:"all "+l,"&-hidden":{display:"none"}},["&-left > "+I]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},["&-right > "+I]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},["&-top > "+I]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},["&-bottom > "+I]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[r+"-section"]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[r+"-header"]:{display:"flex",flex:0,alignItems:"center",padding:(0,Qe.unit)(c)+" "+(0,Qe.unit)(d),fontSize:u,lineHeight:p,borderBottom:(0,Qe.unit)(m)+` ${f} `+h,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[r+"-extra"]:{flex:"none"},[r+"-close"]:{display:"inline-flex",width:N(u).add(s).equal(),height:N(u).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:v,fontWeight:w,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:"all "+i,textRendering:"auto",[`&${r}-close-end`]:{marginInlineStart:g},[`&:not(${r}-close-end)`]:{marginInlineEnd:g},"&:disabled":{pointerEvents:"none"},"&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:C},...un(e)},[r+"-title"]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:p},[r+"-body"]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[r+"-body-skeleton"]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[r+"-footer"]:{flexShrink:0,padding:(0,Qe.unit)(S)+" "+(0,Qe.unit)(k),borderTop:(0,Qe.unit)(m)+` ${f} `+h},[M]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[M+"-left"]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:E,cursor:"col-resize"},[M+"-right"]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:E,cursor:"col-resize"},[M+"-top"]:{insetInline:0,bottom:0,height:E,cursor:"row-resize"},[M+"-bottom"]:{insetInline:0,top:0,height:E,cursor:"row-resize"},[I+"-dragging"]:{userSelect:"none",transition:"none",willChange:"width, height",[r+"-content"]:{pointerEvents:"none"},[r+"-section"]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}})(e),MI(e)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}));let RI={distance:180},PI=378,zI={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};n=e=>{let{rootClassName:t,size:r,defaultSize:n=PI,height:o,width:a,mask:l,push:i=RI,open:s,afterOpenChange:c,onClose:d,prefixCls:u,getContainer:p,panelRef:m=null,style:f,className:h,resizable:g,"aria-labelledby":v,focusable:b,maskClosable:y,maskStyle:C,drawerStyle:x,contentWrapperStyle:H,destroyOnClose:A,destroyOnHidden:D,...w}=e,S=w.placement;var k=kt(),k=Se(w.title)?k:void 0;let{getPopupContainer:E,getPrefixCls:L,direction:F,className:W,style:j,classNames:_,styles:K,mask:V,focusable:X}=Fe("drawer"),N=L("drawer",u);var[q,G]=$I(N),I=void 0===p&&E?()=>E(document.body):p,Y=ft.useMemo(()=>Ma(r)?r:"large"===r?736:"default"===r?PI:"string"==typeof r?/^\d+(\.\d+)?$/.test(r)?Number(r):r:S&&"left"!==S&&"right"!==S?o:a,[r,S,a,o]),U={motionName:tc(N,"mask-motion"),...zI},M=Vp(),M=Ne(m,M),[$,Q]=Cp("Drawer",w.zIndex),[R,Z,P]=Us(l,V,N,y),z=xp({...X,...b},!1!==I&&R),{classNames:B,styles:T,rootStyle:J}=w,e={...e,zIndex:$,panelRef:m,mask:R,maskClosable:P,defaultSize:n,push:i,focusable:z},O=We(j,"section"),ee=We(x,"section"),te=We(f,"section"),[B,O]=je([_,B],[K,O,T,ee,te],{props:e}),T=bt({"no-mask":!R,[N+"-rtl"]:"rtl"===F},t,q,G,B.root);return ft.createElement(sp,{form:!0,space:!0},ft.createElement(gp.Provider,{value:Q},ft.createElement(wI,{prefixCls:N,onClose:d,maskMotion:U,motion:e=>({motionName:tc(N,"panel-motion-"+e),...zI}),...w,classNames:{mask:bt(B.mask,Z.mask),section:B.section,wrapper:B.wrapper,dragger:B.dragger},styles:{mask:{...O.mask,...C},section:O.section,wrapper:{...O.wrapper,...H},dragger:O.dragger},open:s,mask:R,maskClosable:P,push:i,size:Y,defaultSize:n,rootStyle:{...O.root,...J},className:bt(W,h),rootClassName:T,getContainer:I,afterOpenChange:c,panelRef:M,zIndex:$,...g?{resizable:g}:{},"aria-labelledby":v??k,destroyOnHidden:D??A,focusTriggerAfterClose:z.focusTriggerAfterClose,focusTrap:z.trap},ft.createElement(SI,{prefixCls:N,size:r,...w,ariaId:k,onClose:d}))))};n._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:r,className:n,placement:o="right",...a}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("drawer",t),[l,i]=$I(e),l=bt(e,e+"-pure",e+"-"+o,l,i,n);return ft.createElement("div",{className:l,style:r},ft.createElement(SI,{prefixCls:e,...a}))};var BI=n;function TI(e){return["small","middle","medium","large"].includes(e)}function OI(e){return!!e&&Ma(e)}let HI=Re().createContext({latestIndex:0}),AI=HI.Provider;var DI=e=>{var{className:e,prefix:t,index:r,children:n,separator:o,style:a,classNames:l,styles:i}=e,s=ft.useContext(HI).latestIndex;return Se(n)?ft.createElement(ft.Fragment,null,ft.createElement("div",{className:e,style:a},n),r<s&&o&&ft.createElement("span",{className:bt(t+"-item-separator",l?.separator),style:i?.separator},o)):null};var LI=Be("Space",e=>{e=ze(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[(e=>{var{componentCls:e,antCls:t}=e;return{[e]:{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"}},[e+"-item:empty"]:{display:"none"},[e+`-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}})(e),{[e.componentCls]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}]},()=>({}),{resetStyle:!1}),c=ft.forwardRef((e,t)=>{var{getPrefixCls:r,direction:n,size:o,className:a,style:l,classNames:i,styles:s}=Fe("space");let{size:c=o??"small",align:d,className:u,rootClassName:p,children:m,direction:f,orientation:h,prefixCls:g,split:v,separator:b,style:y,vertical:C,wrap:x=!1,classNames:w,styles:S,...k}=e;var[o,E]=Array.isArray(c)?c:[c,c],N=TI(E),I=TI(o),H=OI(E),A=OI(o);let M=ke(m,{keepEmpty:!0});var[$,R]=hc(h,C,f),R=void 0!==d||R?d:"center";let D=b??v,P=r("space",g);var[r,L]=LI(P),e={...e,size:c,orientation:$,align:R},l=We(l),z=We(y);let[B,T]=je([i,w],[s,l,S,z],{props:e});i=bt(P,a,r,P+"-"+$,{[P+"-rtl"]:"rtl"===n,[P+"-align-"+R]:R,[P+"-gap-row-"+E]:N,[P+"-gap-col-"+o]:I},u,p,L,B.root);let O=bt(P+"-item",B.item);s=M.map((e,t)=>{var r=e?.key||O+"-"+t;return ft.createElement(DI,{prefix:P,classNames:B,styles:T,className:O,key:r,index:t,separator:D,style:T.item},e)}),l=ft.useMemo(()=>({latestIndex:M.reduce((e,t,r)=>Se(t)?r:e,0)}),[M]);return 0===M.length?null:(z={},x&&(z.flexWrap="wrap"),!I&&A&&(z.columnGap=o),!N&&H&&(z.rowGap=E),ft.createElement("div",{ref:t,className:i,style:{...z,...T.root},...k},ft.createElement(AI,{value:l},s)))}),FI=(c.Compact=xc,c.Addon=wE,c),s=e=>{var{getPopupContainer:t,getPrefixCls:r,direction:n}=ft.useContext(Ue);let{prefixCls:o,type:a="default",danger:l,disabled:i,loading:s,onClick:c,htmlType:d,children:u,className:p,menu:m,arrow:f,autoFocus:h,trigger:g,align:v,open:b,onOpenChange:y,placement:C,getPopupContainer:x,href:w,icon:S=ft.createElement(vb,null),title:k,buttonsRender:E=e=>e,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:M,overlayStyle:$,destroyOnHidden:R,destroyPopupOnHide:P,dropdownRender:z,popupRender:B,...H}=e;var r=r("dropdown",o),T=r+"-button",t={menu:m,arrow:f,autoFocus:h,align:v,disabled:i,trigger:i?[]:g,onOpenChange:y,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:I,classNames:{root:M},styles:{root:$},destroyOnHidden:R,popupRender:B||z},{compactSize:r,compactItemClassnames:O}=bc(r,n),T=bt(T,O,p),O=("destroyPopupOnHide"in e&&(t.destroyPopupOnHide=P),"open"in e&&(t.open=b),"placement"in e?t.placement=C:t.placement="rtl"===n?"bottomLeft":"bottomRight",ft.createElement(Yb,{type:a,danger:l,disabled:i,loading:s,onClick:c,htmlType:d,href:w,title:k},u)),[e,n]=E([O,ft.createElement(Yb,{type:a,danger:l,icon:S})]);return ft.createElement(FI.Compact,{className:T,size:r,block:!0,...H},e,ft.createElement(Fb,{...t},n))};s.__ANT_BUTTON=!0;var l=Fb,WI=(l.Button=s,l);let jI=["wrap","nowrap","wrap-reverse"],_I=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],KI=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],VI=(e,t)=>{t=!0===t.wrap?"wrap":t.wrap;return{[e+"-wrap-"+t]:t&&jI.includes(t)}},XI=(t,r)=>{let n={};return KI.forEach(e=>{n[t+"-align-"+e]=r.align===e}),n[t+"-align-stretch"]=!r.align&&!!r.vertical,n},qI=(t,r)=>{let n={};return _I.forEach(e=>{n[t+"-justify-"+e]=r.justify===e}),n};var GI=(e,t)=>bt({...VI(e,t),...XI(e,t),...qI(e,t)});var YI=Be("Flex",e=>{var{paddingXS:t,padding:r,paddingLG:n}=e,e=ze(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[(e=>{e=e.componentCls;return{[e]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}})(e),{[e.componentCls]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}},(e=>{let t=e.componentCls,r={};return jI.forEach(e=>{r[t+"-wrap-"+e]={flexWrap:e}}),r})(e),(e=>{let t=e.componentCls,r={};return KI.forEach(e=>{r[t+"-align-"+e]={alignItems:e}}),r})(e),(e=>{let t=e.componentCls,r={};return _I.forEach(e=>{r[t+"-justify-"+e]={justifyContent:e}}),r})(e)]},()=>({}),{resetStyle:!1}),UI=Re().forwardRef((e,t)=>{let{prefixCls:r,rootClassName:n,className:o,style:a,flex:l,gap:i,vertical:s,orientation:c,component:d="div",children:u,...p}=e;var{flex:m,direction:f,getPrefixCls:h}=Re().useContext(Ue),h=h("flex",r),[g,v]=YI(h),[,b]=hc(c,s??m?.vertical),g=bt(o,n,m?.className,h,g,v,GI(h,{...e,vertical:b}),{[h+"-rtl"]:"rtl"===f,[h+"-gap-"+i]:TI(i),[h+"-vertical"]:b}),v={...m?.style,...a};return Ia(l)&&(v.flex=l),Ia(i)&&!TI(i)&&(v.gap=i),Re().createElement(d,{ref:t,className:g,style:v,...at(p,["justify","wrap","align"])},u)});let QI=Re().createContext(null);function ZI(){return(ZI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var JI=ft.forwardRef((e,t)=>ft.createElement(u,ZI({},e,{ref:t,icon:D().A}))),e4=(e,t)=>Se(e)?Ze(e)&&!(0,ft.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,t4=t=>{var{componentCls:e,floatButtonSize:r,iconCls:n,antCls:o,floatButtonIconSize:a}=t;let[l,i]=Q(o,"float-btn");var[,s]=Q(o,"btn"),c=e=>[`linear-gradient(${e}, ${e})`,`conic-gradient(${t.colorPrimary} ${i("progress","0turn")}, ${t.colorBorderSecondary} 0)`].join(", "),d=e+"-badge",u=Math.SQRT2,u=(u-1)/u,p=t.calc(t.borderRadius).mul(u).equal(),u=t.calc(t.controlHeight).div(2).mul(u).equal();return{[e]:[{[l("size")]:(0,Qe.unit)(r)},{flexDirection:"column",margin:0,padding:(0,Qe.unit)(t.paddingXXS)+" 0",width:i("size"),minHeight:i("size"),height:"auto",wordBreak:"break-word",whiteSpace:"normal",gap:t.calc(t.paddingXXS).div(2).equal(),"&-rtl":{direction:"rtl"},[`&${e}-individual`]:{position:"fixed",zIndex:t.zIndexPopupBase,insetInlineEnd:t.floatButtonInsetInlineEnd,bottom:t.floatButtonInsetBlockEnd,boxShadow:t.boxShadowSecondary},[`&${e}-pure`]:{position:"relative",inset:"auto"},"&:empty":{display:"none"},[e+"-icon"]:{lineHeight:1},[`&${o}-btn${e}-progress`]:{borderWidth:(0,Qe.unit)(t.lineWidthBold),borderColor:"transparent",backgroundImage:c(s("bg-color")),backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",[`&:not(:disabled):not(${o}-btn-disabled)`]:{"&:hover":{borderColor:"transparent",backgroundImage:c(s("bg-color-hover"))},"&:active":{borderColor:"transparent",backgroundImage:c(s("bg-color-active"))}},[`&:disabled, &${o}-btn-disabled`]:{borderColor:"transparent",backgroundImage:c(s("bg-color-disabled"))}},[`&${e}-icon-only`]:{[n]:{fontSize:a}},[e+"-content"]:{fontSize:t.fontSizeSM},[d]:{position:"absolute",top:0,insetInlineEnd:0,[`&:not(${d}-dot)`]:{transform:"translate(50%, -50%)"}},[`&-rtl ${d}:not(${d}-dot)`]:{transform:"translate(-50%, -50%)"},"&-square":{[d+"-dot"]:{marginTop:p,marginInlineEnd:p}},"&-circle":{[d]:{marginTop:u,marginInlineEnd:u}}}]}},r4=e=>{var{componentCls:t,antCls:r,floatButtonSize:n,padding:o}=e,a=t+"-group",l=a+"-list",[r,i]=Q(r,"float-btn");return{[a]:[{[r("list-transform-start")]:`translate(0,${(0,Qe.unit)(n)})`,[r("list-trigger-offset")]:`calc(${(0,Qe.unit)(n)} + ${(0,Qe.unit)(o)})`},{...F(e),position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,gap:o,"&-rtl":{direction:"rtl"},[`&${t}-pure`]:{position:"relative",inset:"auto"},[t]:{position:"relative",inset:"auto"}},{[`&:not(${a}-individual) `+l]:{boxShadow:e.boxShadowSecondary},[`&${a}-individual `+l]:{gap:o},["&-menu-mode "+l]:{position:"absolute"},[l]:{borderRadius:e.borderRadiusLG,"&-motion":{transition:"all "+e.motionDurationSlow,"&-enter, &-appear":{opacity:0,transform:i("list-transform-start"),"&-active":{opacity:1,transform:"translate(0, 0)"}},"&-leave":{"&-active":{opacity:0,transform:i("list-transform-start")}}}},"&-top":{[l]:{bottom:i("list-trigger-offset")}},"&-bottom":{[l]:{[r("list-transform-start")]:`translate(0, calc(${(0,Qe.unit)(n)} * -1))`,top:i("list-trigger-offset")}},"&-left":{[l]:{[r("list-transform-start")]:`translate(${(0,Qe.unit)(n)}, 0)`,right:i("list-trigger-offset")}},"&-right":{[l]:{[r("list-transform-start")]:`translate(calc(${(0,Qe.unit)(n)} * -1), 0)`,left:i("list-trigger-offset")}}}]}},n4=Be("FloatButton",e=>{var{controlHeightLG:t,marginXXL:r,marginLG:n,fontSizeIcon:o,calc:a}=e,a=ze(e,{floatButtonIconSize:a(o).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:n});return[t4(a),r4(a),lm(e)]},()=>({}),{order:-998});let o4="float-btn";var a4=Re().forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,style:a,type:l="default",shape:i="circle",icon:s,description:c,content:d,tooltip:u,badge:p={},classNames:m,styles:f,...h}=e;var{getPrefixCls:g,direction:v}=Re().useContext(Ue),b=Re().useContext(QI);let y=g(o4,r);var g=nl(y),{shape:b,individual:C,classNames:x,styles:w}=b||{},b=b||i,C=C??!0,S=d??c,k={...e,type:l,shape:b},[E,N]=n4(y,g),I=Re().useMemo(()=>({icon:y+"-icon",content:y+"-content"}),[y]),[I,x]=je([I,x,m],[w,f],{props:k}),w=Se(S)||s?s:Re().createElement(JI,null),[k]=Cp("FloatButton",a?.zIndex),k={...a,zIndex:k},M=at(p,["title","children","status","text"]),e="badge"in e&&Re().createElement(Iv,{...M,className:bt(M.className,y+"-badge",{[y+"-badge-dot"]:M.dot})}),M=e4(u);let $=Re().createElement(Bd,{...h,ref:t,className:bt(E,N,g,y,n,o,y+"-"+l,y+"-"+b,{[y+"-rtl"]:"rtl"===v,[y+"-individual"]:C,[y+"-icon-only"]:!Se(S)}),classNames:I,styles:x,style:k,shape:b,type:l,size:"large",icon:w,_skipSemantic:!0},S,e);return $=M?Re().createElement(rv,{...M},$):$});let l4=e=>{var t=tl(e);let r=null;return za(e)?r=e.document.documentElement:Ba(e)?r=e.documentElement:Ta(e)&&(r=e),r&&0<(e=Math.max(r.scrollHeight-r.clientHeight,0))?Math.min(Math.max(t/e,0),1):0};var i4=e=>{let{getTarget:n,showProgress:o,visibilityHeight:a}=e,[t,l]=Re().useState(0===a),[r,i]=Re().useState(0);return Re().useEffect(()=>{let e=n();var t=()=>{l(tl(e)>=a),o&&i(l4(e))};let r=Cr(t);return t(),e?.addEventListener("scroll",r),()=>{r.cancel(),e?.removeEventListener("scroll",r)}},[n,o,a]),Re().useEffect(()=>{if(o){let e=Cr(()=>{i(l4(n()))});return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),e.cancel()}}},[n,o]),{scrollProgress:r,visible:t}};let s4=Re().createElement(pv,null);var c4=Re().forwardRef((e,t)=>{var r=Fe("floatButton").backTopIcon;let{prefixCls:n,className:o,style:a,type:l="default",shape:i="circle",visibilityHeight:s=400,icon:c,target:d,onClick:u,duration:p=450,showProgress:m=!1,...f}=e;e=c??r??s4;let h=Re().useRef(null);Re().useImperativeHandle(t,()=>({nativeElement:h.current}));r=Re().useCallback(()=>h.current?.ownerDocument||window,[]);let g=d||r;var{scrollProgress:t,visible:r}=i4({getTarget:g,showProgress:m,visibilityHeight:s});let v=e=>{var t=window.matchMedia?.("(prefers-reduced-motion: reduce)");rl(0,{getContainer:g,duration:t?.matches?0:p}),u?.(e)};var b=(0,ft.useContext)(Ue).getPrefixCls;let y=b(o4,n);var b=b(),[C]=Q(b,"float-btn"),x=(0,ft.useContext)(QI)?.shape;let w={prefixCls:y,icon:e,type:l,shape:x||i,style:m?{[C("progress")]:t+"turn",...a}:a,...f};return Re().createElement(Na,{visible:r,motionName:b+"-fade"},({className:e},t)=>Re().createElement(a4,{ref:Ne(h,t),...w,onClick:v,className:bt(o,e,{[y+"-progress"]:m})}))}),d=(e,t)=>{let{prefixCls:r,className:n,style:o,classNames:a,styles:l,rootClassName:i,shape:s="circle",type:c="default",placement:d,icon:u=Re().createElement(JI,null),closeIcon:p,trigger:m,children:f,onOpenChange:h,open:H,onClick:A,disabled:D,...L}=e;var{direction:F,getPrefixCls:g,closeIcon:v,classNames:b,styles:W,className:j,style:y}=Fe("floatButtonGroup"),v=p??v??Re().createElement(Ko,null),g=g(o4,r),C=nl(g),[_,K]=n4(g,C),g=g+"-group",x=m&&["click","hover"].includes(m),w=Re().useContext($s);let S=D??w;var[w]=Cp("FloatButton",o?.zIndex);let k=Re().useRef(null),E=(Re().useImperativeHandle(t,()=>({nativeElement:k.current})),["top","left","right","bottom"].includes(d)?d:"top"),[N,V]=vt(!1,H),I="hover"===m,M="click"===m,$=ht(e=>{S||N!==e&&(V(e),h?.(e))});Re().useEffect(()=>{if(M){let e=e=>{k.current?.contains(e.target)||$(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}},[M]);let R="circle"===s;var t={...e,shape:s,type:c,placement:E,disabled:S},y=We(y),X=We(o);let[P,z]=je([b,a],[W,y,l,X],{props:t}),B=Re().useMemo(()=>({shape:s,individual:R,classNames:{root:P.item,icon:P.itemIcon,content:P.itemContent},styles:{root:z.item,icon:z.itemIcon,content:z.itemContent}}),[s,R,P,z]);b=Re().useMemo(()=>({...B,individual:!0,classNames:{root:P.trigger,icon:P.triggerIcon,content:P.triggerContent},styles:{root:z.trigger,icon:z.triggerIcon,content:z.triggerContent}}),[B,P,z]);let q,T=g+"-list",O=e=>{var t="top"===E||"bottom"===E,e={className:bt(T,P.list,e),style:z.list};return q=R?Re().createElement(UI,{vertical:t,...e},f):Re().createElement(FI.Compact,{vertical:t,...e},f)};return Re().createElement(QI.Provider,{value:B},Re().createElement("div",{className:bt(g,_,K,C,j,P.root,n,i,{[g+"-rtl"]:"rtl"===F,[g+"-individual"]:R,[g+"-"+E]:x,[g+"-menu-mode"]:x}),style:{zIndex:w,...z.root},ref:k,onMouseEnter:()=>{I&&$(!0)},onMouseLeave:()=>{I&&$(!1)}},x?Re().createElement(Na,{visible:N,motionName:T+"-motion"},({className:e})=>O(e)):O(),x&&Re().createElement(QI.Provider,{value:b},Re().createElement(a4,{type:c,icon:N?v:u,"aria-label":e["aria-label"],className:g+"-trigger",onClick:e=>{M&&$(!N),A?.(e)},disabled:S,...L}))))},d4=Re().forwardRef(d);let u4=({backTop:e,...t})=>e?ft.createElement(c4,{...t,visibilityHeight:0}):ft.createElement(a4,{...t});var a=({className:e,items:t,classNames:r,styles:n,prefixCls:o,...a})=>{var l=ft.useContext(Ue).getPrefixCls,l=l(o4,o)+"-pure";return t?ft.createElement(d4,{className:bt(e,l),classNames:r,styles:n,...a},t.map((e,t)=>ft.createElement(u4,{key:t,...e}))):ft.createElement(u4,{className:bt(e,l),classNames:r,styles:n,...a})},p4=(a4.BackTop=c4,a4.Group=d4,a4._InternalPanelDoNotUseOrYouWillBeFired=a,a4);function m4(e){let[t,r]=lt(e);return ft.useEffect(()=>{r(e,{ms:e.length?0:10})},[e]),t}var f4=e=>{let{componentCls:t,motionDurationFast:r,motionEaseInOut:n}=e;e=t+"-show-help-item";return{[t+"-show-help"]:{transition:`opacity ${r} `+n,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[e]:{overflow:"hidden",transition:["height","opacity","transform"].map(e=>`${e} ${r} `+n).join(", ")+" !important",[`&${e}-appear, &${e}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${e}-leave-active`]:{transform:"translateY(-5px)"}}}}};let h4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,Qe.unit)(e.controlOutlineWidth)} `+e.controlOutline},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),g4=(e,t)=>{e=e.formItemCls;return{[e]:{[e+"-label > label"]:{height:t},[e+"-control-input"]:{minHeight:t}}}},v4=e=>({padding:e.verticalLabelPadding,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),b4=e=>({...v4(e),margin:e.verticalLabelMargin}),y4=e=>{var[t]=Q(e.antCls,"form");return{...v4(e),[t("item-label-margin")]:e.verticalLabelMargin}},C4=e=>{var{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[r+`:not(${r}-vertical) > ${r}-row > ${r}-label`]:b4(e),[t+`:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[r+`-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}};let x4=(e,t)=>ze(e,{formItemCls:e.componentCls+"-item",rootPrefixCls:t});var w4=Be("Form",(e,{rootPrefixCls:t})=>{var r,e=x4(e,t);return[{[r=(t=e).componentCls]:{...F(t),...h4(t),[r+"-text"]:{display:"inline-block",paddingInlineEnd:t.paddingSM},"&-small":{...g4(t,t.controlHeightSM)},"&-large":{...g4(t,t.controlHeightLG)}}},(e=>{var{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:o,labelRequiredMarkColor:a,labelColor:l,labelFontSize:i,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:u}=e,[p]=Q(o,"grid");return{[t]:{...F(e),marginBottom:u,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-row`]:{display:"none"},[t+"-label"]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:l,fontSize:i,["> "+r]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[t+"-optional"]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[t+"-tooltip"]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[t+"-control"]:{[p("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} `+e.motionEaseOut},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[t+"-feedback-icon"]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:im,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}})(e),f4(e),(e=>{var{antCls:t,formItemCls:r}=e;return{[r+"-horizontal"]:{[r+"-label"]:{flexGrow:0},[r+"-control"]:{flex:"1 1 0",minWidth:0},[r+`-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`> ${r}-row > ${t}-col-24${r}-label,
> ${r}-row > ${t}-col-xl-24${r}-label`]:b4(e)}}})(e),(e=>{var{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[t+"-inline"]:{display:"flex",flexWrap:"wrap",[r+"-inline"]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
> ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[t+"-text"]:{display:"inline-block"},[r+"-has-feedback"]:{display:"inline-block"}}}}})(e),(e=>{var{componentCls:t,formItemCls:r,antCls:n,verticalLabelHeight:o}=e,[a,l]=Q(n,"form");return{[r]:{[a("item-label-margin")]:"initial"},[r+"-label"]:{margin:l("item-label-margin")},[r+"-vertical"]:{[r+"-row"]:{flexDirection:"column"},[r+"-label > label"]:{height:o},[r+"-control"]:{width:"100%"},[`> ${r}-row > ${r}-label,
> ${r}-row > ${n}-col-24${r}-label,
> ${r}-row > ${n}-col-xl-24${r}-label`]:y4(e)},[`@media (max-width: ${(0,Qe.unit)(e.screenXSMax)})`]:[C4(e),{[t]:{[r+`:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-xs-24${r}-label`]:b4(e)}}}],[`@media (max-width: ${(0,Qe.unit)(e.screenSMMax)})`]:{[t]:{[r+`:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-sm-24${r}-label`]:b4(e)}}},[`@media (max-width: ${(0,Qe.unit)(e.screenMDMax)})`]:{[t]:{[r+`:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-md-24${r}-label`]:b4(e)}}},[`@media (max-width: ${(0,Qe.unit)(e.screenLGMax)})`]:{[t]:{[r+`:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-lg-24${r}-label`]:b4(e)}}}}})(e),md(e),im]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3});let S4=[];function k4(e,t,r,n=0){return{key:"string"==typeof e?e:t+"-"+n,error:e,errorStatus:r}}var E4=({help:e,helpStatus:t,errors:r=S4,warnings:n=S4,className:o,fieldId:a,onVisibleChanged:l})=>{let i=ft.useContext(op).prefixCls,{classNames:s,styles:c}=ft.useContext(tp),d=i+"-item-explain",u=nl(i),[p,m]=w4(i,u);var f=ft.useMemo(()=>rc(i),[i]);let h=m4(r),g=m4(n),v=Ia(e),b=ft.useMemo(()=>v?[k4(e,"help",t)]:[].concat(Pe(h.map((e,t)=>k4(e,"error","error",t))),Pe(g.map((e,t)=>k4(e,"warning","warning",t)))),[e,t,v,h,g]),y=ft.useMemo(()=>{let r={};return b.forEach(({key:e})=>{r[e]=(r[e]||0)+1}),b.map((e,t)=>({...e,key:1<r[e.key]?e.key+"-fallback-"+t:e.key}))},[b]),C={};return a&&(C.id=a+"_help"),ft.createElement(Na,{motionDeadline:f.motionDeadline,motionName:i+"-show-help",visible:!!y.length,onVisibleChanged:l},e=>{var{className:e,style:t}=e;return ft.createElement("div",{...C,className:bt(d,e,s?.help,m,u,o,p),style:{...c?.help,...t}},ft.createElement(Ea,{keys:y,...rc(i),motionName:i+"-show-help-item",component:!1},e=>{var{key:e,error:t,errorStatus:r,className:n,style:o}=e;return ft.createElement("div",{key:e,className:bt(n,s?.helpItem,{[d+"-"+r]:r}),style:{...c?.helpItem,...o}},t)}))})},i=ft.forwardRef((e,t)=>{var r=ft.useContext($s);let{getPrefixCls:n,direction:o,requiredMark:a,colon:l,scrollToFirstError:i,className:s,style:c,styles:d,classNames:u,tooltip:p,labelAlign:H,labelWrap:A}=Fe("form"),{prefixCls:D,className:L,rootClassName:F,size:W,disabled:m=r,form:j,colon:_,labelAlign:K,labelWrap:V,labelCol:f,wrapperCol:h,layout:g="horizontal",scrollToFirstError:v,requiredMark:b,onFinishFailed:X,name:y,style:q,feedbackIcons:C,variant:G,classNames:Y,styles:U,tooltip:Q,...Z}=e;var r=mc(W),J=ft.useContext(ki);let x=ft.useMemo(()=>void 0!==b?b:void 0===a||a,[b,a]),w=_??l,S=K??H,k=V??A,E={...p,...Q};var N=n("form",D),I=nl(N),[ee,te]=w4(N,I),e={...e,size:r,disabled:m,layout:g,colon:w,requiredMark:x,labelAlign:S,labelWrap:k},M=We(c),$=We(q);let[R,P]=je([u,Y],[d,M,U,$],{props:e});M=bt(N,N+"-"+g,{[N+"-hide-required-mark"]:!1===x,[N+"-rtl"]:"rtl"===o,[N+"-large"]:"large"===r,[N+"-small"]:"small"===r},te,I,ee,s,L,F,R.root);let[z]=hC(j),B=z.__INTERNAL__;B.name=y;$=ft.useMemo(()=>({name:y,labelAlign:S,labelCol:f,labelWrap:k,wrapperCol:h,layout:g,colon:w,requiredMark:x,itemRef:B.itemRef,form:z,feedbackIcons:C,tooltip:E,classNames:R,styles:P}),[y,S,k,f,h,g,w,x,z,C,R,P,E]);let T=ft.useRef(null),O=(ft.useImperativeHandle(t,()=>({...z,nativeElement:T.current?.nativeElement})),(t,r)=>{if(t){let e={block:"nearest"};Ze(t)&&(e={...e,...t}),z.scrollToField(r,e)}});return ft.createElement(ip.Provider,{value:G},ft.createElement(Ms,{disabled:m},ft.createElement(zs.Provider,{value:r},ft.createElement(np,{validateMessages:J},ft.createElement(tp.Provider,{value:$},ft.createElement(lp,{status:!0},ft.createElement(ep,{id:y,...Z,name:y,onFinishFailed:e=>{X?.(e),e.errorFields.length&&(e=e.errorFields[0].name,void 0!==v?O(v,e):void 0!==i&&O(i,e))},form:z,ref:T,style:P?.root,className:M})))))))}),N4=e=>!Je(e)&&(e=ke(e)).length<=1?e[0]:e,e=()=>{var{status:e,errors:t=[],warnings:r=[]}=ft.useContext(ap);return{status:e,errors:t,warnings:r}},o=(e.Context=ap,e);function I4(e){let[t,r]=ft.useState(e),n=ft.useRef(null),o=ft.useRef([]),a=ft.useRef(!1);return ft.useEffect(()=>(a.current=!1,()=>{a.current=!0,$e.cancel(n.current),n.current=null}),[]),[t,function(e){a.current||(null===n.current&&(o.current=[],n.current=$e(()=>{n.current=null,r(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}var M4=()=>{let n=ft.useContext(tp).itemRef,o=ft.useRef({});return(e,t)=>{var t=t&&Ze(t)&&St(t),r=e.join("_");return o.current.name===r&&o.current.originRef===t||(o.current.name=r,o.current.originRef=t,o.current.ref=Ne(n(e),t)),o.current.ref}};function $4(e,t){let o=[void 0,void 0];e=Array.isArray(e)?e:[e,void 0];let a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return e.forEach((t,r)=>{if(Ze(t))for(let e=0;e<Cg.length;e++){var n=Cg[e];if(a[n]&&void 0!==t[n]){o[r]=t[n];break}}else o[r]=t}),o}let R4=(t,r)=>{if($a(t))return t;if(Ze(t))for(let e=0;e<Cg.length;e++){var n=Cg[e];if(r&&r[n]){n=t[n];if(void 0!==n)return n}}return""};var P4=ft.forwardRef((e,t)=>{let{prefixCls:r,justify:n,align:o,className:a,style:l,children:i,gutter:s=0,wrap:c,...d}=e;var{getPrefixCls:e,direction:u}=ft.useContext(Ue),p=Ig(!0,null),m=R4(o,p),f=R4(n,p),e=e("row",r),[h,g]=Jp(e),p=$4(s,p),f=bt(e,{[e+"-no-wrap"]:!1===c,[e+"-"+f]:f,[e+"-"+m]:m,[e+"-rtl"]:"rtl"===u},a,h,g),m={};p?.[0]&&(e=Ma(p[0])?p[0]/-2+"px":`calc(${p[0]} / -2)`,m.marginInline=e);let[v,b]=p;m.rowGap=b;u=ft.useMemo(()=>({gutter:[v,b],wrap:c}),[v,b,c]);return ft.createElement(Ik.Provider,{value:u},ft.createElement("div",{...d,className:f,style:{...m,...l},ref:t},i))});var z4=uo(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{e=e.formItemCls;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[e+"-control"]:{display:"flex"}}}})(x4(e,t)));let B4=24;var T4=e=>{let{prefixCls:t,status:r,labelCol:o,wrapperCol:a,children:n,errors:l,warnings:i,_internalItemRender:s,extra:c,help:d,fieldId:u,marginBottom:p,onErrorVisibleChanged:m,label:f}=e;var h=t+"-item";let g=ft.useContext(tp);var{classNames:v,styles:b}=g,y=ft.useMemo(()=>{let n={...a||g.wrapperCol||{}};return null!==f||o||a||!g.labelCol||[void 0].concat(Pe(xg)).forEach(e=>{var e=e?[e]:[],t=tr(g.labelCol,e),t=Ze(t)?t:{},r=tr(n,e),r=Ze(r)?r:{};"span"in t&&!("offset"in r)&&t.span<B4&&(n=rr(n,[].concat(e,["offset"]),t.span))}),n},[a,g.wrapperCol,g.labelCol,f,o]),C=bt(h+"-control",y.className),x=ft.useMemo(()=>{let{labelCol:e,wrapperCol:t,...r}=g;return r},[g]);let w=ft.useRef(null),[S,k]=ft.useState(0);gt(()=>{c&&w.current?k(w.current.clientHeight):k(0)},[c]);var E=ft.createElement("div",{className:h+"-control-input"},ft.createElement("div",{className:bt(h+"-control-input-content",v?.content),style:b?.content},n)),N=ft.useMemo(()=>({prefixCls:t,status:r}),[t,r]),N=null!==p||l.length||i.length?ft.createElement(op.Provider,{value:N},ft.createElement(E4,{fieldId:u,errors:l,warnings:i,help:d,helpStatus:r,className:h+"-explain-connected",onVisibleChanged:m})):null,I={},I=(u&&(I.id=u+"_extra"),c?ft.createElement("div",{...I,className:bt(h+"-extra",v?.extra),style:b?.extra,ref:w},c):null),v=N||I?ft.createElement("div",{className:h+"-additional",style:p?{minHeight:p+S}:{}},N,I):null,b=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:E,errorList:N,extra:I}):ft.createElement(ft.Fragment,null,E,v);return ft.createElement(tp.Provider,{value:x},ft.createElement($k,{...y,className:C},b),ft.createElement(z4,{prefixCls:t}))};function O4(){return(O4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var H4=ft.forwardRef((e,t)=>ft.createElement(u,O4({},e,{ref:t,icon:ee().A}))),A4=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:o,colon:a,required:l,requiredMark:i,tooltip:s,vertical:c})=>{var[d]=nc("Form"),{labelAlign:u,labelCol:p,labelWrap:m,colon:f,classNames:h,styles:g,tooltip:v}=ft.useContext(tp);if(!Se(t))return null;n=n||p||{},p=e+"-item-label",o=bt(p,"left"===(o||u)&&p+"-left",n.className,{[p+"-wrap"]:!!m});let b=t;u=!0===a||!1!==f&&!1!==a,u&&!c&&"string"==typeof t&&t.trim()&&(b=t.replace(/[:|:]\s*$/,"")),p=e4(s,v),p&&(m=ft.createElement(rv,{...p},ft.createElement("span",{className:e+"-item-tooltip",onClick:e=>{e.preventDefault()},tabIndex:-1},p.icon||p.children||ft.createElement(H4,null))),b=ft.createElement(ft.Fragment,null,b,m)),f="optional"===i,a=Je(i),c=!1===i;a?b=i(b,{required:!!l}):f&&!l&&(b=ft.createElement(ft.Fragment,null,b,ft.createElement("span",{className:e+"-item-optional"},d?.optional||Ei.default.Form?.optional)));let y;c?y="hidden":(f||a)&&(y="optional");s=bt(h?.label,{[e+"-item-required"]:l,[e+"-item-required-mark-"+y]:y,[e+"-item-no-colon"]:!u});return ft.createElement($k,{...n,className:o},ft.createElement("label",{htmlFor:r,className:s,style:g?.label,title:"string"==typeof t?t:void 0},b))};let D4={success:Fo,warning:Xo,error:jo,validating:Al};var L4=function({children:e,errors:n,warnings:o,hasFeedback:a,validateStatus:t,prefixCls:r,meta:l,noStyle:i,name:s}){let c=r+"-item",d=ft.useContext(tp).feedbackIcons,u=pC(n,o,l,null,!!a,t),{isFormItemInput:p,status:m,hasFeedback:f,feedbackIcon:h,name:g}=ft.useContext(ap);return r=ft.useMemo(()=>{let e;a&&(r=!0!==a&&a.icons||d,r=u&&r?.({status:u,errors:n,warnings:o})?.[u],t=u?D4[u]:null,e=!1!==r&&t?ft.createElement("span",{className:bt(c+"-feedback-icon",c+"-feedback-icon-"+u)},r||ft.createElement(t,null)):null);var t,r={status:u||"",errors:n,warnings:o,hasFeedback:!!a,feedbackIcon:e,isFormItemInput:!0,name:s};return i&&(r.status=(u??m)||"",r.isFormItemInput=p,r.hasFeedback=!!(a??f),r.feedbackIcon=void 0!==a?r.feedbackIcon:h,r.name=s??g),r},[u,n,o,a,d,i,s,p,m,c,f,h,g]),ft.createElement(ap.Provider,{value:r},e)};function F4(e){let{prefixCls:t,className:r,rootClassName:n,style:o,help:a,errors:l,warnings:i,validateStatus:s,meta:c,hasFeedback:d,hidden:u,children:p,fieldId:m,required:f,isRequired:h,onSubItemMetaChange:g,layout:v,name:b,...y}=e;var C=t+"-item",{requiredMark:x,layout:w}=ft.useContext(tp),w=v||w,S="vertical"===w;let k=ft.useRef(null),E=m4(l),N=m4(i);var I=Ia(a);let M=!!(I||E.length||N.length);var $=!!k.current&&mt(k.current);let[R,P]=ft.useState(null);gt(()=>{var e;M&&k.current&&(e=getComputedStyle(k.current),P(Number.parseInt(e.marginBottom,10)))},[M,$]);$=pC(($=!1)?E:c.errors,$?N:c.warnings,c,"",!!d,s),I=bt(C,r,n,{[C+"-with-help"]:I||E.length||N.length,[C+"-has-feedback"]:$&&d,[C+"-has-success"]:"success"===$,[C+"-has-warning"]:"warning"===$,[C+"-has-error"]:"error"===$,[C+"-is-validating"]:"validating"===$,[C+"-hidden"]:u,[C+"-"+w]:w});return ft.createElement("div",{className:I,style:o,ref:k},ft.createElement(P4,{className:C+"-row",...at(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},ft.createElement(A4,{htmlFor:m,...e,requiredMark:x,required:f??h,prefixCls:t,vertical:S}),ft.createElement(T4,{...e,...c,errors:E,warnings:N,prefixCls:t,status:$,help:a,marginBottom:R,onErrorVisibleChanged:e=>{e||M||P(null)}},ft.createElement(rp.Provider,{value:g},ft.createElement(L4,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:$,name:b},p)))),!!R&&ft.createElement("div",{className:C+"-margin-offset",style:{marginBottom:-R}}))}let W4="__SPLIT__";let j4=ft.memo(e=>e.children,(e,r)=>{return n=e.control,o=r.control,t=Object.keys(n),a=Object.keys(o),t.length===a.length&&t.every(e=>{var t=n[e],e=o[e];return t===e||Je(t)||Je(e)})&&e.update===r.update&&e.childProps.length===r.childProps.length&&e.childProps.every((e,t)=>e===r.childProps[t]);var n,o,t,a});function _4(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}n=function(s){let{name:c,noStyle:o,className:n,dependencies:e,prefixCls:t,shouldUpdate:d,rules:u,children:r,required:p,label:a,messageVariables:l,trigger:m="onChange",validateTrigger:i,hidden:f,help:h,layout:g}=s;var v=ft.useContext(Ue).getPrefixCls;let b=ft.useContext(tp).name,y=N4(r),C=Je(y),x=ft.useContext(rp);var w=ft.useContext(tu).validateTrigger;let S=Ia(i)?i:w,k=Ia(c),E=v("form",t),N=nl(E),[I,M]=w4(E,N),H=(ml("Form.Item"),ft.useContext(ru)),$=ft.useRef(null),[R,A]=I4({}),[P,D]=Ge(()=>_4()),L=(r,n)=>{A(e=>{var e={...e},t=[].concat(Pe(r.name.slice(0,-1)),Pe(n)).join(W4);return r.destroy?delete e[t]:e[t]=r,e})},[z,B]=ft.useMemo(()=>{let t=Pe(P.errors),r=Pe(P.warnings);return Object.values(R).forEach(e=>{t.push.apply(t,Pe(e.errors||[])),r.push.apply(r,Pe(e.warnings||[]))}),[t,r]},[R,P.errors,P.warnings]),F=M4();function T(e,t,r){return o&&!f?ft.createElement(L4,{prefixCls:E,hasFeedback:s.hasFeedback,validateStatus:s.validateStatus,meta:P,errors:z,warnings:B,noStyle:!0,name:c},e):ft.createElement(F4,{key:"row",...s,className:bt(n,M,N,I),prefixCls:E,fieldId:t,isRequired:r,errors:z,warnings:B,meta:P,onSubItemMetaChange:L,layout:g,name:c},e)}if(!k&&!C&&!e)return T(y);let O={};return"string"==typeof a?O.label=a:c&&(O.label=String(c)),l&&(O={...O,...l}),ft.createElement(Wu,{...s,messageVariables:O,trigger:m,validateTrigger:S,onMetaChange:t=>{var r,n=H?.getKey(t.name);if(D(t.destroy?_4():t,!0),o&&!1!==h&&x){let e=t.name;t.destroy?e=$.current||e:void 0!==n&&([n,r]=n,e=[n].concat(Pe(r)),$.current=e),x(t,e)}}},(t,r,n)=>{var r=dC(c).length&&r?r.name:[],o=uC(r,b),a=void 0!==p?p:u?.some(e=>!(!Ze(e)||!e.required||e.warningOnly)||!!Je(e)&&(e=e(n))?.required&&!e?.warningOnly);let l={...t},i=null;if(Array.isArray(y)&&k)i=y;else if((!C||(d||e)&&!k)&&(!e||C||k))if(ft.isValidElement(y)){let e={...y.props,...l};e.id||(e.id=o),(h||0<z.length||0<B.length||s.extra)&&(t=[],(h||0<z.length)&&t.push(o+"_help"),s.extra&&t.push(o+"_extra"),e["aria-describedby"]=t.join(" ")),0<z.length&&(e["aria-invalid"]="true"),a&&(e["aria-required"]="true"),Ie(y)&&(e.ref=F(r,y));new Set([].concat(Pe(dC(m)),Pe(dC(S)))).forEach(t=>{e[t]=(...e)=>{l[t]?.(...e),y.props[t]?.(...e)}});t=[e["aria-required"],e["aria-invalid"],e["aria-describedby"]];i=ft.createElement(j4,{control:l,update:y,childProps:t},Ss(y,e))}else i=C&&(d||e)&&!k?y(n):y;return T(i,o,a)})};n.useStatus=o;c=({prefixCls:e,children:n,...t})=>{var r=ft.useContext(Ue).getPrefixCls;let o=r("form",e),a=ft.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return ft.createElement(ju,{...t},(e,t,r)=>ft.createElement(op.Provider,{value:a},n(e.map(e=>({...e,fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))};var s=i,K4=(s.Item=n,s.List=c,s.ErrorList=E4,s.useForm=hC,s.useFormInstance=function(){var e=ft.useContext(tp).form;return e},s.useWatch=Ju,s.Provider=np,s);var V4={useBreakpoint:function(){return Ig()}};let X4=ft.createContext(null);function q4(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}let G4={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Y4(e,t,r,n){var o=t+r,a=(r-n)/2;if(n<r){if(0<t)return{[e]:a};if(t<0&&o<n)return{[e]:-a}}else if(t<0||n<o)return{[e]:t<0?a:-a};return{}}function U4(e,t,r,n){var{width:o,height:a}=q4();let l=null;return e<=o&&t<=a?l={x:0,y:0}:(o<e||a<t)&&(l={...Y4("x",r,e,o),...Y4("y",n,t,a)}),l}function Q4({src:e,isCustomPlaceholder:t,fallback:r}){let[n,o]=(0,ft.useState)(t?"loading":"normal"),a=(0,ft.useRef)(!1),l="error"===n,i=((0,ft.useEffect)(()=>{let t=!0;var r;return r=e,new Promise(e=>{var t;r?((t=document.createElement("img")).onerror=()=>e(!1),t.onload=()=>e(!0),t.src=r):e(!1)}).then(e=>{!e&&t&&o("error")}),()=>{t=!1}},[e]),(0,ft.useEffect)(()=>{t&&!a.current?o("loading"):l&&o("normal")},[e]),()=>{o("normal")});return[e=>{a.current=!1,"loading"===n&&e?.complete&&(e.naturalWidth||e.naturalHeight)&&(a.current=!0,i())},l&&r?{src:r}:{onLoad:i,src:e},n]}function Z4(e,t){var r=e.x-t.x;return Math.hypot(r,e.y-t.y)}function J4(a,t,l,i,e,d,u){let{rotate:s,scale:c,x:r,y:n}=e,[p,m]=(0,ft.useState)(!1),f=(0,ft.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=e=>{f.current={...f.current,...e}};return(0,ft.useEffect)(()=>{let e=e=>{e.preventDefault()};return l&&t&&window.addEventListener("touchmove",e,{passive:!1}),()=>{window.removeEventListener("touchmove",e)}},[l,t]),{isTouching:p,onTouchStart:e=>{t&&(e.stopPropagation(),m(!0),{touches:e=[]}=e,1<e.length?h({point1:{x:e[0].clientX,y:e[0].clientY},point2:{x:e[1].clientX,y:e[1].clientY},eventType:"touchZoom"}):h({point1:{x:e[0].clientX-r,y:e[0].clientY-n},eventType:"move"}))},onTouchMove:e=>{var t,r,n,o,a,l,{touches:e=[]}=e,{point1:i,point2:s,eventType:c}=f.current;1<e.length&&"touchZoom"===c?(t={x:e[0].clientX,y:e[0].clientY},r={x:e[1].clientX,y:e[1].clientY},[l,a]=(o=s,l=r,a=Z4(n=i,a=t),l=Z4(o,l),0===a&&0===l?[n.x,n.y]:[n.x+(a=a/(a+l))*(o.x-n.x),n.y+a*(o.y-n.y)]),o=Z4(t,r)/Z4(i,s),u(o,"touchZoom",l,a,!0),h({point1:t,point2:r,eventType:"touchZoom"})):"move"===c&&(d({x:e[0].clientX-i.x,y:e[0].clientY-i.y},"move"),h({eventType:"move"}))},onTouchEnd:()=>{if(l){if(p&&m(!1),h({eventType:"none"}),i>c)return d({x:0,y:0,scale:i},"touchZoom");var e=a.current.offsetWidth*c,t=a.current.offsetHeight*c,{left:r,top:n}=a.current.getBoundingClientRect(),o=s%180!=0,o=U4(o?t:e,o?e:t,r,n);o&&d({...o},"dragRebound")}}}}function eM(e){var{prefixCls:e,icon:t,onClick:r,className:n,style:o}=e;return ft.createElement("button",{className:bt(e+"-close",n),style:o,onClick:r},t)}function tM(e){let{prefixCls:t,showProgress:r,current:n,count:o,showSwitch:a,classNames:l,styles:i,icons:s,image:c,transform:d,countRender:u,actionsRender:p,scale:m,minScale:f,maxScale:h,onActive:g,onFlipY:v,onFlipX:b,onRotateLeft:y,onRotateRight:C,onZoomOut:x,onZoomIn:w,onClose:S,onReset:k}=e;var{left:e,right:E,prev:N,next:I,flipY:M,flipX:$,rotateLeft:R,rotateRight:P,zoomOut:z,zoomIn:B}=s,H=r&&ft.createElement("div",{className:t+"-progress"},u?u(n+1,o):ft.createElement("bdi",null,n+1+" / "+o));let T=t+"-actions-action";var O=({type:e,disabled:t,onClick:r,icon:n})=>ft.createElement("button",{type:"button",key:e,className:bt(T,T+"-"+e,{[T+"-disabled"]:!!t}),onClick:r,disabled:!!t,"aria-label":e},n),N=a?O({icon:N??e,onClick:()=>g(-1),type:"prev",disabled:0===n}):void 0,e=a?O({icon:I??E,onClick:()=>g(1),type:"next",disabled:n===o-1}):void 0,I=O({icon:M,onClick:v,type:"flipY"}),E=O({icon:$,onClick:b,type:"flipX"}),M=O({icon:R,onClick:y,type:"rotateLeft"}),$=O({icon:P,onClick:C,type:"rotateRight"}),R=O({icon:z,onClick:x,type:"zoomOut",disabled:m<=f}),P=O({icon:B,onClick:w,type:"zoomIn",disabled:m===h}),z=ft.createElement("div",{className:bt(t+"-actions",l.actions),style:i.actions},I,E,M,$,R,P);return ft.createElement("div",{className:bt(t+"-footer",l.footer),style:i.footer},H,p?p(z,{icons:{prevIcon:N,nextIcon:e,flipYIcon:I,flipXIcon:E,rotateLeftIcon:M,rotateRightIcon:$,zoomOutIcon:R,zoomInIcon:P},actions:{onActive:g,onFlipY:v,onFlipX:b,onRotateLeft:y,onRotateRight:C,onZoomOut:x,onZoomIn:w,onReset:k,onClose:S},transform:d,current:n,total:o,image:c}):z)}function rM(e){let{prefixCls:t,onActive:r,current:n,count:o,icons:{left:a,right:l,prev:i,next:s}}=e;var e=t+"-switch",c=0===n,d=n===o-1;return ft.createElement(ft.Fragment,null,ft.createElement("button",{className:bt(e,e+"-prev",{[e+"-disabled"]:c}),onClick:()=>r(-1),disabled:c},i??a),ft.createElement("button",{type:"button",className:bt(e,e+"-next",{[e+"-disabled"]:d}),onClick:()=>r(1),disabled:d},s??l))}function nM(){return(nM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let oM=({fallback:e,src:t,imgRef:r,...n})=>{let[o,a]=Q4({src:t,fallback:e});return Re().createElement("img",nM({ref:e=>{r.current=e,o(e)}},n,a))};var aM=e=>{let{prefixCls:r,rootClassName:H,src:t,alt:n,imageInfo:A,fallback:D,movable:o=!0,onClose:a,open:l,afterOpenChange:L,maskClosable:F=!0,icons:i={},closeIcon:s,getContainer:W,current:c=0,count:d=1,countRender:j,scaleStep:u=.5,minScale:p=1,maxScale:m=50,motionName:_="fade",imageRender:f,imgCommonProps:K,actionsRender:V,onTransform:X,onChange:q,classNames:h={},styles:g={},mousePosition:v,zIndex:b,wheel:G=!0,focusTrap:Y=!0}=e;var y=(0,ft.useRef)(null);let C=(0,ft.useRef)(null),x=(0,ft.useRef)(null),w=(0,ft.useContext)(X4),S=w&&1<d,U=w&&1<=d,[k,E]=(0,ft.useState)(!0),{transform:N,resetTransform:I,updateTransform:M,dispatchZoomChange:$}=((h,g,v,n)=>{let o=(0,ft.useRef)(null),a=(0,ft.useRef)([]),[b,t]=(0,ft.useState)(G4),y=(e,r)=>{null===o.current&&(a.current=[],o.current=$e(()=>{t(e=>{let t=e;return a.current.forEach(e=>{t={...t,...e}}),o.current=null,n?.({transform:t,action:r}),t})})),a.current.push({...b,...e})};return{transform:b,resetTransform:e=>{t(G4),(0,Vt.A)(G4,b)||n?.({transform:G4,action:e})},updateTransform:y,dispatchZoomChange:(e,t,r,n,o)=>{var{width:a,height:l,offsetWidth:i,offsetHeight:s,offsetLeft:c,offsetTop:d}=h.current;let u=e,p=b.scale*e;p>v?(p=v,u=v/b.scale):p<g&&(p=o?p:g,u=p/b.scale);var o=r??innerWidth/2,r=n??innerHeight/2,n=u-1,a=n*a*.5,l=n*l*.5,o=n*(o-b.x-c),c=n*(r-b.y-d);let m=b.x-(o-a),f=b.y-(c-l);e<1&&1===p&&(n=i*p,r=s*p,{width:d,height:o}=q4(),n<=d)&&r<=o&&(m=0,f=0),y({x:m,y:f,scale:p},t)}}})(y,p,m,X),{isMoving:Q,onMouseDown:Z,onWheel:J}=((a,t,l,n,e,i,o,s=!0)=>{let{rotate:c,scale:d,x:u,y:p}=e,[m,f]=(0,ft.useState)(!1),h=(0,ft.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),r=e=>{l&&m&&i({x:e.pageX-h.current.diffX,y:e.pageY-h.current.diffY},"move")},g=()=>{var e,t,r,n,o;l&&m&&(f(!1),{transformX:e,transformY:t}=h.current,u!==e)&&p!==t&&(e=a.current.offsetWidth*d,t=a.current.offsetHeight*d,{left:r,top:n}=a.current.getBoundingClientRect(),o=U4((o=c%180!=0)?t:e,o?e:t,r,n))&&i({...o},"dragRebound")};return(0,ft.useEffect)(()=>{if(t){window.addEventListener("mouseup",g,!1),window.addEventListener("mousemove",r,!1);try{window.top!==window.self&&(window.top.addEventListener("mouseup",g,!1),window.top.addEventListener("mousemove",r,!1))}catch(e){(0,Te.Ay)(!1,"[rc-image] "+e)}}return()=>{window.removeEventListener("mouseup",g),window.removeEventListener("mousemove",r);try{window.top?.removeEventListener("mouseup",g),window.top?.removeEventListener("mousemove",r)}catch(e){}}},[l,m,u,p,c,t]),{isMoving:m,onMouseDown:e=>{t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),h.current={diffX:e.pageX-u,diffY:e.pageY-p,transformX:u,transformY:p},f(!0))},onMouseMove:r,onMouseUp:g,onWheel:t=>{if(l&&s&&0!=t.deltaY){var r=Math.abs(t.deltaY/100);let e=1+Math.min(r,1)*n;0<t.deltaY&&(e=1/e),o(e,"wheel",t.clientX,t.clientY)}}}})(y,o,l,u,N,M,$,G);var{isTouching:ee,onTouchStart:te,onTouchMove:re,onTouchEnd:R}=J4(y,o,l,p,N,M,$);let{rotate:P,scale:z}=N;(0,ft.useEffect)(()=>{k||E(!0)},[k]),(0,ft.useEffect)(()=>{l||I("close")},[l]);let B=Re().createElement(oM,nM({},K,{width:e.width,height:e.height,imgRef:y,className:r+"-img",alt:n,style:{transform:`translate3d(${N.x}px, ${N.y}px, 0) scale3d(${N.flipX?"-":""}${z}, ${N.flipY?"-":""}${z}, 1) rotate(${P}deg)`,transitionDuration:(!k||ee)&&"0s"},fallback:D,src:t,onWheel:J,onMouseDown:Z,onDoubleClick:e=>{l&&(1!==z?M({x:0,y:0,scale:1},"doubleClick"):$(1+u,"doubleClick",e.clientX,e.clientY))},onTouchStart:te,onTouchMove:re,onTouchEnd:R,onTouchCancel:R})),ne={url:t,alt:n,...A},oe=()=>{$(1+u,"zoomIn")},ae=()=>{$(1/(1+u),"zoomOut")},le=()=>{M({rotate:P+90},"rotateRight")},ie=()=>{M({rotate:P-90},"rotateLeft")},se=()=>{M({flipX:!N.flipX},"flipX")},ce=()=>{M({flipY:!N.flipY},"flipY")},de=()=>{I("reset")},T=e=>{var t=c+e;0<=t&&t<=d-1&&(E(!1),I(e<0?"prev":"next"),q?.(t,c))},ue=ht(e=>{l&&(e=e.keyCode,S)&&(e===Ce.LEFT?T(-1):e===Ce.RIGHT&&T(1))}),[pe,me]=((0,ft.useEffect)(()=>{if(l)return window.addEventListener("keydown",ue),()=>{window.removeEventListener("keydown",ue)}},[l]),(0,ft.useState)(!1));Re().useEffect(()=>{l&&me(!0)},[l]);let[O,fe]=(0,ft.useState)(!1);gt(()=>{l&&fe(!0)},[l]);gt(()=>{l&&(x.current=document.activeElement)},[l]),Ot(Y&&l&&O,()=>C.current);let he={...g.body};return v&&(he.transformOrigin=`${v.x}px ${v.y}px`),Re().createElement(Vi,{open:O&&l,autoDestroy:!1,getContainer:W,autoLock:pe,onEsc:({top:e})=>{e&&a?.()}},Re().createElement(Na,{motionName:_,visible:O&&l,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:e=>{e||(me(!1),x.current?.focus?.(),x.current=null),L?.(e)}},({className:e,style:t})=>{t={...g.root,...t};return b&&(t.zIndex=b),Re().createElement("div",{ref:C,className:bt(r,H,h.root,e,{[r+"-movable"]:o,[r+"-moving"]:Q}),style:t,role:"dialog","aria-modal":"true","aria-label":n,tabIndex:-1},Re().createElement("div",{className:bt(r+"-mask",h.mask),style:g.mask,onClick:F?a:void 0}),Re().createElement("div",{className:bt(r+"-body",h.body),style:he},f?f(B,{transform:N,image:ne,...w?{current:c}:{}}):B),!1!==s&&null!==s&&Re().createElement(eM,{prefixCls:r,icon:!0!==s&&s||i.close,onClick:a,className:h.close,style:g.close}),S&&Re().createElement(rM,{prefixCls:r,current:c,count:d,icons:i,onActive:T}),Re().createElement(tM,{prefixCls:r,showProgress:U,current:c,count:d,showSwitch:S,classNames:h,styles:g,image:ne,transform:N,icons:i,countRender:j,actionsRender:V,scale:z,minScale:p,maxScale:m,onActive:T,onFlipY:ce,onFlipX:se,onRotateLeft:ie,onRotateRight:le,onZoomOut:ae,onZoomIn:oe,onClose:a,onReset:de}))}))};let lM=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt","fetchPriority"];function iM(){return(iM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let sM=0;function cM(){return(cM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}l=r=>{let{prefixCls:e="rc-image",previewPrefixCls:t=e+"-preview",rootClassName:n,className:o,style:a,classNames:l={},styles:i={},width:s,height:c,src:d,alt:u,placeholder:p,fallback:m,preview:f=!0,onClick:h,onError:g,onKeyDown:v,...b}=r,y=(0,ft.useContext)(X4),C=!!f,{src:x,open:w,onOpenChange:S,cover:k,rootClassName:E,...N}=f&&"object"==typeof f?f:{};var I="object"==typeof k&&k.placement||"center",M="object"==typeof k&&k.coverNode?k.coverNode:k;let[$,H]=vt(!!w,w),[A,R]=(0,ft.useState)(null),P=e=>{H(e),S?.(e)};let z=x??d;var[D,L,B]=Q4({src:d,isCustomPlaceholder:p&&!0!==p,fallback:m});let T=(0,ft.useMemo)(()=>{let t={};return lM.forEach(e=>{void 0!==r[e]&&(t[e]=r[e])}),t},lM.map(e=>r[e]));var F=(0,ft.useMemo)(()=>({...T,src:z}),[z,T]);let O=((e,t)=>{let[r]=ft.useState(()=>(sM+=1,String(sM))),n=ft.useContext(X4),o={data:t,canPreview:e};return ft.useEffect(()=>{if(n)return n.register(r,o)},[]),ft.useEffect(()=>{n&&n.register(r,o)},[e,t]),r})(C,F);return ft.createElement(ft.Fragment,null,ft.createElement("div",cM({},b,{className:bt(e,n,l.root,{[e+"-error"]:"error"===B}),onClick:C?e=>{var t=e.target.getBoundingClientRect(),r=t.x+t.width/2,t=t.y+t.height/2;y?y.onPreview(O,z,r,t):(R({x:r,y:t}),P(!0)),h?.(e)}:h,role:C?"button":b.role,tabIndex:C&&null==b.tabIndex?0:b.tabIndex,"aria-label":C?b["aria-label"]??u:b["aria-label"],onKeyDown:e=>{var t;v?.(e),!C||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t=(e=e.target.getBoundingClientRect()).x+e.width/2,e=e.y+e.height/2,y?y.onPreview(O,z,t,e):(R({x:t,y:e}),P(!0)))},style:{width:s,height:c,...i.root}}),ft.createElement("img",cM({},T,{className:bt(e+"-img",{[e+"-img-placeholder"]:!0===p},l.image,o),style:{height:c,...i.image,...a},ref:D},L,{width:s,height:c,onError:g})),"loading"===B&&ft.createElement("div",{"aria-hidden":"true",className:e+"-placeholder"},p),!1!==k&&C&&ft.createElement("div",{className:bt(e+"-cover",l.cover,e+"-cover-"+I),style:{display:"none"===a?.display?"none":void 0,...i.cover}},M)),!y&&C&&ft.createElement(aM,cM({"aria-hidden":!$,open:$,prefixCls:t,onClose:()=>{P(!1)},mousePosition:A,src:z,alt:u,imageInfo:{width:s,height:c},fallback:m,imgCommonProps:T},N,{classNames:l?.popup,styles:i?.popup,rootClassName:bt(E,n)})))};l.PreviewGroup=({previewPrefixCls:e="rc-image-preview",classNames:t,styles:r,children:n,icons:o={},items:a,preview:l,fallback:i})=>{let{open:s,onOpenChange:c,current:d,onChange:u,...p}=l&&"object"==typeof l?l:{},[m,f,h]=(e=>{let[o,n]=ft.useState({});var t=ft.useCallback((t,r)=>(n(e=>({...e,[t]:r})),()=>{n(e=>{e={...e};return delete e[t],e})}),[]);return[ft.useMemo(()=>e?e.map(t=>{if("string"==typeof t)return{data:{src:t}};let r={};return Object.keys(t).forEach(e=>{["src",...lM].includes(e)&&(r[e]=t[e])}),{data:r}}):Object.keys(o).reduce((e,t)=>{var{canPreview:r,data:n}=o[t];return r&&e.push({data:n,id:t}),e},[]),[e,o]),t,!!e]})(a),[g,v]=vt(0,d),[b,y]=(0,ft.useState)(!1),{src:C,...x}=m[g]?.data||{},[w,S]=vt(!!s,s),k=ht(e=>{S(e),e!==w&&c?.(e,{current:g})}),[E,N]=(0,ft.useState)(null),I=ft.useCallback((t,r,e,n)=>{var o=h?m.findIndex(e=>e.data.src===r):m.findIndex(e=>e.id===t);v(o<0?0:o),k(!0),N({x:e,y:n}),y(!0)},[m,h]);ft.useEffect(()=>{w?b||v(0):y(!1)},[w]);l=ft.useMemo(()=>({register:f,onPreview:I}),[f,I]);return ft.createElement(X4.Provider,{value:l},n,ft.createElement(aM,iM({"aria-hidden":!w,open:w,prefixCls:e,onClose:()=>{k(!1),N(null)},mousePosition:E,imgCommonProps:x,src:C,fallback:i,icons:o,current:g,count:m.length,onChange:(e,t)=>{v(e),u?.(e,t)}},p,{classNames:t?.popup,styles:r?.popup})))};var dM=l,uM=(a,l,i,s,c,d,u)=>{let[p]=Cp("ImagePreview",a?.zIndex),[m,f,h]=Us(a?.mask,l?.mask,i+"-preview");return Re().useMemo(()=>{var e,t,r,n,o;return a&&({cover:e,getContainer:t,closeIcon:r,rootClassName:n}=a,o=(l??{}).closeIcon,{motionName:tc(i+"-preview","fade"),...a,...u?{cover:e??u}:{},icons:d,getContainer:t??c,zIndex:p,closeIcon:r??o,rootClassName:bt(s,n),mask:m,maskClosable:h,blurClassName:f.mask})},[a,l,i,s,c,u,d,p,m,h,f])};function pM(e){return Ze(e)&&!(0,ft.isValidElement)(e)}function mM(e){let g=(0,ft.useMemo)(()=>"boolean"==typeof e?e?{}:null:Ze(e)?e:{},[e]);return(0,ft.useMemo)(()=>{if(!g)return[g,"",""];let{open:e,onOpenChange:t,cover:r,actionsRender:n,visible:o,onVisibleChange:a,rootClassName:l,maskClassName:i,mask:s,forceRender:c,destroyOnClose:d,toolbarRender:u,...p}=g,m;t?m=t:a&&(m=(e,t)=>{t=(t||{}).current;void 0!==t?a(e,!e,t):a(e,!e)});f=s;var[f,h]=(0,ft.isValidElement)(f)?[f,void 0]:"boolean"==typeof f||Ze(f)?[void 0,f]:[void 0,void 0];return[{...p,open:e??o,onOpenChange:m,cover:r??f,mask:h,actionsRender:n??u},l,i]},[g])}function fM(){return(fM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}d=ft.forwardRef((e,t)=>ft.createElement(u,fM({},e,{ref:t,icon:ne().A})));function hM(){return(hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}a=ft.forwardRef((e,t)=>ft.createElement(u,hM({},e,{ref:t,icon:oe().A})));function gM(){return(gM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}e=ft.forwardRef((e,t)=>ft.createElement(u,gM({},e,{ref:t,icon:ie().A})));function vM(){return(vM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}o=ft.forwardRef((e,t)=>ft.createElement(u,vM({},e,{ref:t,icon:pe().A})));function bM(){return(bM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}i=ft.forwardRef((e,t)=>ft.createElement(u,bM({},e,{ref:t,icon:me().A})));let yM=new Qe.Keyframes("antImageProgressActive",{"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}});n=(e,t,r,n="translate(0%, 0%)",o=.8)=>new Qe.Keyframes(e,{"0%":{transform:n,opacity:o},"50%":{transform:t,opacity:r},"100%":{transform:n,opacity:o}});let CM=n("antImageInkFlow1","translate(15%, -20%) scale(1.25)",.5),xM=n("antImageInkFlow2","translate(-18%, 15%) scale(0.85)",.9,"translate(0%, 0%) scale(1.1)",.7),wM=n("antImageInkFlow3","translate(8%, 10%) scale(1.15)",.8,"translate(0%, 0%) scale(0.85)",.65),SM=e=>({position:e||"absolute",inset:0});var kM=Be("Image",e=>{var t,r,e=ze(e,{previewCls:e.componentCls+"-preview",imagePreviewSwitchSize:e.controlHeightLG});return[{[r=(t=e).componentCls]:{position:"relative",display:"inline-block",...un(t),[r+"-img"]:{width:"100%",height:"auto",verticalAlign:"middle"},[r+"-img-placeholder"]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[r+"-placeholder"]:{...SM()}}},(e=>{var{componentCls:e,motionDurationSlow:t,colorTextLightSolid:r}=e;return{[e]:{[e+"-cover"]:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:r,background:new kn("#000").setA(.3).toRgbString(),cursor:"pointer",opacity:0,transition:"opacity "+t},"&:hover, &:focus-visible":{[e+"-cover"]:{opacity:1}},[e+"-cover-top"]:{inset:"0 0 auto 0",justifyContent:"center"},[e+"-cover-bottom"]:{inset:"auto 0 0 0",justifyContent:"center"}}}})(e),(e=>{var{componentCls:t,motionDurationMid:r,motionEaseInOut:n,progressAnimationDuration:o}=e,n={position:"absolute",width:"150%",height:"150%",left:"-25%",top:"-25%",animationTimingFunction:n,animationIterationCount:"infinite",pointerEvents:"none",willChange:"transform, opacity"};return{[t+"-progress-wrapper"]:{position:"relative",display:"inline-block",overflow:"hidden",borderRadius:"inherit",backgroundColor:e.colorBgBase,backdropFilter:"blur(8px)",[t+"-progress-ink-1"]:{...n,background:"radial-gradient(ellipse 65% 55% at 25% 30%, rgba(100, 180, 255, 0.98) 0%, transparent 55%)",animationName:CM,animationDuration:o,filter:"blur(40px)","&::before":{content:'""',...n,background:"radial-gradient(ellipse 60% 65% at 75% 45%, rgba(180, 140, 255, 0.95) 0%, transparent 50%)",animationName:xM,animationDuration:`calc(${o} + 2s)`,animationDelay:"-1s",filter:"blur(45px)"},"&::after":{content:'""',...n,background:"radial-gradient(ellipse 55% 50% at 50% 70%, rgba(100, 220, 220, 0.9) 0%, transparent 45%)",animationName:wM,animationDuration:`calc(${o} + 0.5s)`,animationDelay:"-2s",filter:"blur(38px)"}},[t+"-progress-ink-2"]:{...n,background:"radial-gradient(ellipse 45% 40% at 60% 20%, rgba(255, 150, 200, 0.88) 0%, transparent 45%)",animationName:wM,animationDuration:`calc(${o} + 1.5s)`,animationDelay:"-3s",filter:"blur(42px)","&::before":{content:'""',...n,background:"radial-gradient(ellipse 50% 55% at 20% 75%, rgba(160, 190, 255, 0.88) 0%, transparent 50%)",animationName:CM,animationDuration:`calc(${o} + 2.5s)`,animationDelay:"-2.5s",filter:"blur(35px)"}},[t+"-progress-content"]:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"center",width:"100%",paddingInline:e.paddingLG,textAlign:"center",fontSize:e.fontSize,color:e.colorTextSecondary,zIndex:1},[t+"-progress-rail"]:{width:"100%",height:6,marginTop:e.marginSM,backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:e.borderRadiusXS,overflow:"hidden",backdropFilter:"blur(4px)","&::before":{content:'""',display:"block",height:"100%",width:"var(--progress-percent, 0%)",background:"linear-gradient(90deg, rgba(120, 170, 255, 0.85) 0%, rgba(160, 150, 245, 0.85) 40%, rgba(130, 200, 220, 0.85) 60%, rgba(120, 170, 255, 0.85) 100%)",backgroundSize:"200% 100%",borderRadius:e.borderRadiusXS/2,transition:`width ${r} ease`,animationName:yM,animationDuration:o,animationTimingFunction:"linear",animationIterationCount:"infinite"}},[t+"-progress-indicator"]:{marginTop:e.marginXS}}}})(e),(e=>{var{motionEaseOut:t,previewCls:r,motionDurationSlow:n,componentCls:o,colorBgMask:a,marginXL:l,marginSM:i,margin:s,colorTextLightSolid:c,paddingSM:d,paddingLG:u,previewOperationHoverColor:p,previewOperationColorDisabled:m,previewOperationSize:f,zIndexPopup:h}=e,g=new kn(a).setA(.1),v=g.clone().setA(.2),c={position:"absolute",color:c,backgroundColor:g.toRgbString(),borderRadius:"50%",padding:d,outline:0,border:0,cursor:"pointer",transition:"all "+n,display:"flex",fontSize:f,"&:hover":{backgroundColor:v.toRgbString()},"&:active":{backgroundColor:g.toRgbString()},"&:focus-visible":dn(e)};return{[o+"-preview"]:{textAlign:"center",inset:0,position:"fixed",userSelect:"none",zIndex:h,[r+"-mask"]:{inset:0,position:"absolute",background:a,backdropFilter:"blur(0px)",transition:"backdrop-filter "+n,[`&${o}-preview-mask-blur`]:{backdropFilter:"blur(4px)"},[`&${o}-preview-mask-hidden`]:{display:"none"}},[r+"-body"]:{...SM(),"pointer-events":"none",display:"flex",alignItems:"center",justifyContent:"center","> *":{pointerEvents:"auto"}},[r+"-img"]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",transition:`transform ${n} ${t} 0s`},[`&-movable ${r}-img`]:{cursor:"grab"},[`&-moving ${r}-img`]:{cursor:"grabbing"},[r+"-close"]:{...c,top:i,insetInlineEnd:i},[r+"-switch"]:{...c,top:"50%",transform:"translateY(-50%)","&-disabled":{"&, &:hover, &:active":{color:m,background:"transparent",cursor:"not-allowed"}},"&-prev":{insetInlineStart:i},"&-next":{insetInlineEnd:i}},[r+"-footer"]:{position:"absolute",bottom:l,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)",gap:s},[r+"-actions"]:{display:"flex",gap:d,padding:"0 "+(0,Qe.unit)(u),backgroundColor:g.toRgbString(),borderRadius:100,fontSize:f,"&-action":{color:"inherit",background:"transparent",border:0,font:"inherit",padding:d,cursor:"pointer",transition:"all "+n,display:"flex",[`&:not(${r}-actions-action-disabled):hover`]:{color:p},"&:focus-visible":dn(e),"&-disabled":{color:m,cursor:"not-allowed"}}}}}})(e),(e=>{var{previewCls:e,motionDurationSlow:t}=e;return{[e]:{"&-fade":{transition:"opacity "+t,"&-enter, &-appear":{opacity:0,[e+"-body"]:{transform:"scale(0)"},"&-active":{opacity:1,[e+"-body"]:{transform:"scale(1)",transition:"transform "+t}}},"&-leave":{opacity:1,"&-active":{opacity:0,[e+"-body"]:{transform:"scale(0)",transition:"transform "+t}}}}}}})(e)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new kn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new kn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new kn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon,progressAnimationDuration:"3s"}));let EM={rotateLeft:ft.createElement(d,null),rotateRight:ft.createElement(a,null),zoomIn:ft.createElement(o,null),zoomOut:ft.createElement(i,null),close:ft.createElement(Ko,null),left:ft.createElement(Gv,null),right:ft.createElement(nd,null),flipX:ft.createElement(e,null),flipY:ft.createElement(e,{rotate:90})};let NM={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0};var IM=e=>{var{prefixCls:e,percent:t,render:r,classNames:n,styles:o,rootClassName:a,rootStyle:l,width:i,height:s}=e,c=Ma(t)&&Number.isFinite(t),t=c?Math.max(0,Math.min(100,Math.round(t))):0,d=c?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,"aria-label":t+"%"}:{"aria-busy":!0},u=c?ft.createElement("div",{className:bt(e+"-progress-rail",n?.rail),style:{...o?.rail,"--progress-percent":t+"%"}}):null,r=r?r(u,t):ft.createElement(ft.Fragment,null,u,c&&ft.createElement("div",{className:bt(e+"-progress-indicator",n?.indicator),style:o?.indicator},t+"%"));return ft.createElement("div",{className:bt(e,e+"-progress-wrapper",n?.root,a),style:{width:i,height:s,...l,...o?.root},...d},!c&&ft.createElement("span",{role:"status","aria-live":"polite",style:NM},"Loading"),ft.createElement("div",{className:e+"-progress-ink-1"}),ft.createElement("div",{className:e+"-progress-ink-2"}),ft.createElement("div",{className:bt(e+"-progress-content",n?.content),style:o?.content},r))},c=e=>{let{prefixCls:t,preview:r,className:n,rootClassName:o,style:a,styles:l,classNames:i,wrapperStyle:s,fallback:H,placeholder:c,...A}=e,{getPrefixCls:D,getPopupContainer:L,className:F,style:d,preview:W,styles:u,classNames:p,fallback:j}=Fe("image"),m=D("image",t);var f=nl(m),[h,g]=kM(m,f),g=bt(o,h,g,f),f=bt(n,h,F);let[_,v,b]=mM(r),[K,y,C]=mM(W);h=uM(_,K,m,g,L,EM,!0),e={...e,preview:h};let x=ft.useMemo(()=>({cover:bt(C,b),popup:{root:bt(y,v)}}),[v,b,y,C]),{mask:w,blurClassName:S}=h??{},k=ft.useMemo(()=>({mask:bt({[m+"-preview-mask-hidden"]:!w},S)}),[w,m,S]);var E=ft.useMemo(()=>[p,i,x,{popup:k}],[p,i,x,k]),N=We(d,"image"),I=We(a,"image"),M=We(d),$=We(a),[E,N]=je(E,[u,{root:s},N,l,I],{props:e},{popup:{_default:"root"},placeholder:{}}),[,I]=je([],[u,M,{root:s},l,$],{props:e},{popup:{_default:"root"},placeholder:{}});let{image:V,...X}=N;var R,M=H??j,$=(R=c,(0,ft.useMemo)(()=>R&&pM(R)?"boolean"==typeof R.progress?{progressConfig:R.progress?{}:void 0}:{progressConfig:R.progress}:{},[R])).progressConfig,e=void 0!==$,{percent:N,render:$}=$||{},q=E?.placeholder?.progress,G=I?.placeholder?.progress;let{width:P,height:z,src:B,...Y}=A,T=pM(c)?void 0:c;var O=T&&!B;return e||O?ft.createElement(IM,{prefixCls:m,percent:N,render:O?e=>T:$,classNames:q,styles:G,rootClassName:bt(g,f),rootStyle:I?.root,width:P,height:z}):ft.createElement(dM,{prefixCls:m,preview:h||!1,rootClassName:g,className:f,style:V,fallback:M,placeholder:T,width:P,height:z,src:B,...Y,classNames:E,styles:X})},MM=(c.PreviewGroup=({previewPrefixCls:e,preview:t,classNames:r,styles:n,...o})=>{let{getPrefixCls:a,getPopupContainer:l,direction:i,preview:s,classNames:c,styles:d}=Fe("image");var e=a("image",e),u=e+"-preview",p=nl(e),[m,f]=kM(e,p),m=bt(m,f,p),[f,p,t]=mM(t),[h,g,v]=mM(s),b=ft.useMemo(()=>({...EM,left:"rtl"===i?ft.createElement(nd,null):ft.createElement(Gv,null),right:"rtl"===i?ft.createElement(Gv,null):ft.createElement(nd,null)}),[i]),f=uM(f,h,e,m,l,EM),{mask:h,blurClassName:m}=f??{},y={...o,classNames:r,styles:n},[r,v]=je([c,r,{cover:bt(v,t),popup:{root:bt(g,p),mask:bt({[e+"-preview-mask-hidden"]:!h},m)}}],[d,n],{props:y},{popup:{_default:"root"}});return ft.createElement(dM.PreviewGroup,{preview:f,previewPrefixCls:u,icons:b,...o,classNames:r,styles:v})},c),s=e=>{var{getPrefixCls:t,direction:r}=(0,ft.useContext)(Ue),{prefixCls:n,className:o}=e,n=t("input-group",n),t=t("input"),[t,a]=YE(t),a=bt(n,a,{[n+"-lg"]:"large"===e.size,[n+"-sm"]:"small"===e.size,[n+"-compact"]:e.compact,[n+"-rtl"]:"rtl"===r},t,o);let l=(0,ft.useContext)(ap);n=(0,ft.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return ft.createElement(ap.Provider,{value:n},ft.createElement(FI.Compact,{className:a,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))};var $M=Be(["Input","OTP"],e=>(e=>{var{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[t+"-input-wrapper"]:{position:"relative",[t+"-mask-icon"]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[t+"-mask-input"]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[t+"-mask-input[type=number]::-webkit-inner-spin-button"]:{"-webkit-appearance":"none",margin:0},[t+"-mask-input[type=number]"]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[t+"-input"]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})(ze(e,AC(e))),DC);var RM=ft.forwardRef((e,t)=>{let{className:r,value:o,onChange:n,onActiveChange:a,index:l,mask:i,onFocus:s,type:c,...d}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("otp"),u="string"==typeof i?i:"•";let p=ft.useRef(null);ft.useImperativeHandle(t,()=>p.current);let m=()=>{$e(()=>{var e=p.current?.input;document.activeElement===e&&e&&e.select()})};return ft.createElement("span",{className:e+"-input-wrapper",role:"presentation"},i&&""!==o&&void 0!==o&&ft.createElement("span",{className:e+"-mask-icon","aria-hidden":"true"},u),ft.createElement(S2,{"aria-label":"OTP Input "+(l+1),...d,type:c??(i?"password":"text"),ref:p,value:o,onInput:e=>{n(l,e.target.value)},onFocus:e=>{s?.(e),m()},onKeyDown:e=>{var{key:t,ctrlKey:r,metaKey:n}=e;"ArrowLeft"===t?a(l-1):"ArrowRight"===t?a(l+1):"z"===t&&(r||n)?e.preventDefault():"Backspace"!==t||o||a(l-1),m()},onMouseDown:m,onMouseUp:m,className:bt(r,{[e+"-mask-input"]:i})}))});function PM(e){return(e||"").split("")}let zM=e=>{var{index:e,prefixCls:t,separator:r,className:n,style:o}=e,e=Je(r)?r(e):r;return e?ft.createElement("span",{className:bt(t+"-separator",n),style:o},e):null};l=ft.forwardRef((e,t)=>{let{prefixCls:r,length:o=6,size:n,defaultValue:a,value:l,onChange:i,formatter:s,separator:c,variant:d,disabled:u,status:p,autoFocus:m,mask:f,type:h,autoComplete:g,onInput:v,onFocus:b,inputMode:y,classNames:H,styles:A,className:D,style:L,...F}=e;var{classNames:C,styles:x,getPrefixCls:w,direction:W,style:S,className:j}=Fe("otp");let k=w("otp",r);var[w]=Th("otp",d,void 0,"input"),e={...e,length:o,variant:w},S=We(S),E=We(L);let[N,I]=je([C,H],[x,S,A,E],{props:e});var C=Jt(F,{aria:!0,data:!0,attr:!0}),[x,S]=$M(k);let M=mc(e=>n??e),$=ft.useContext(ap),R=Ih($.status,p);E=ft.useMemo(()=>({...$,status:R,hasFeedback:!1,feedbackIcon:null}),[$,R]);let P=ft.useRef(null),z=ft.useRef({}),B=(ft.useImperativeHandle(t,()=>({focus:()=>{z.current[0]?.focus()},blur:()=>{for(let e=0;e<o;e+=1)z.current[e]?.blur()},nativeElement:P.current})),e=>s?s(e):e),[T,O]=ft.useState(()=>PM(B(a||""))),_=(ft.useEffect(()=>{void 0!==l&&O(PM(l))},[l]),ht(e=>{O(e),v&&v(e),i&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>T[t]!==e)&&i(e.join(""))})),K=ht((t,e)=>{let r=Pe(T);for(let e=0;e<t;e+=1)r[e]||(r[e]="");e.length<=1?r[t]=e:r=r.slice(0,t).concat(PM(e));for(let e=(r=r.slice(0,o)).length-1;0<=e&&!r[e];--e)r.pop();e=B(r.map(e=>e||" ").join(""));return r=PM(e).map((e,t)=>" "!==e||r[t]?e:r[t])}),V=(e,t)=>{var r=K(e,t),t=Math.min(e+t.length,o-1);t!==e&&void 0!==r[e]&&z.current[t]?.focus(),_(r)},X=e=>{z.current[e]?.focus()},q={variant:w,disabled:u,status:R,mask:f,type:h,inputMode:y,autoComplete:g};return ft.createElement("div",{...C,ref:P,className:bt(D,k,{[k+"-sm"]:"small"===M,[k+"-lg"]:"large"===M,[k+"-rtl"]:"rtl"===W},S,x,j,N.root),style:I.root,role:"group"},ft.createElement(ap.Provider,{value:E},Array.from({length:o}).map((e,t)=>{var r="otp-"+t,n=T[t]||"";return ft.createElement(ft.Fragment,{key:r},ft.createElement(RM,{ref:e=>{z.current[t]=e},index:t,size:M,htmlSize:1,className:bt(N.input,k+"-input"),style:I.input,onChange:V,value:n,onActiveChange:X,autoFocus:0===t&&m,onFocus:e=>((e,t)=>{for(let e=0;e<t;e+=1)if(!z.current[e]?.input?.value){z.current[e]?.focus();break}b?.(e)})(e,t),...q}),t<o-1&&ft.createElement(zM,{separator:c,index:t,prefixCls:k,className:bt(N.separator),style:I.separator}))})))});function BM(){return(BM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var TM=ft.forwardRef((e,t)=>ft.createElement(u,BM({},e,{ref:t,icon:O().A})));function OM(){return(OM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var HM=ft.forwardRef((e,t)=>ft.createElement(u,OM({},e,{ref:t,icon:H().A})));let AM=e=>e?ft.createElement(HM,null):ft.createElement(TM,null),DM={click:"onClick",hover:"onMouseOver"};n=ft.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:a,prefixCls:l,inputPrefixCls:i,suffix:s,className:c,style:d,classNames:u,styles:p,variant:m,...f}=e,{getPrefixCls:h,className:g,style:v,classNames:b,styles:y,iconRender:C}=Fe("inputPassword");var[x]=Th("inputPassword",m,e.bordered,"input");let[w]=nc("global");var S=ft.useContext($s);let k=r??S;var S={...e,disabled:k,variant:x},E=We(v),N=We(d),[E,N]=je([b,u],[y,E,p,N],{props:S});let I=Ze(o)&&void 0!==o.visible,[M,$]=(0,ft.useState)(()=>!!I&&o.visible);S=(0,ft.useRef)(null);ft.useEffect(()=>{I&&$(o.visible)},[I,o]);let H=w2(S),R=()=>{var e;k||(M&&H(),e=!M,$(e),Ze(o)&&o.onVisibleChange?.(e))};var P,A=h("input",i),z=h("input-password",l),B=o&&(T=z,O=DM[n]||"",P=(a||C||AM)(M),B=Ze(o)?o.tabIndex:void 0,ft.createElement("span",{key:"passwordIcon",role:"button",tabIndex:k?-1:B??0,className:T+"-icon","aria-disabled":k,"aria-pressed":M,"aria-label":M?w.hide:w.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),R())},[O]:R},P)),T=bt(z,g,c,{[z+"-"+e.size]:!!e.size}),O={...f,type:M?"text":"password",prefixCls:A,suffix:ft.createElement(ft.Fragment,null,B,s),disabled:k,className:T,classNames:E,styles:N,variant:x};return ft.createElement(S2,{ref:Ne(t,S),...O})});var LM=Be(["Input","Search"],e=>(e=>{var{componentCls:t,antCls:r,calc:n,max:o}=e,a=t+"-btn",[l,i]=Q(r,"input-search"),s=e.inputFontSizeSM??e.fontSize,o=o(e.controlHeightSM,n(s).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[l("btn-height")]:(0,Qe.unit)(e.controlHeight),width:"100%",[a]:{height:i("btn-height"),"&:focus-visible":{zIndex:5},[`&${r}-btn-icon-only`]:{width:i("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[l("btn-height")]:(0,Qe.unit)(e.controlHeightLG)},[`&${t}-small`]:{[l("btn-height")]:(0,Qe.unit)(e.controlHeightSM)},[`&${t}-small `+a]:{minHeight:o,[`&${e.antCls}-btn-icon-only`]:{minWidth:o}}}}})(ze(e,AC(e))),DC),d=ft.forwardRef((e,t)=>{let{prefixCls:r,inputPrefixCls:n,className:o,size:a,style:l,enterButton:i=!1,searchIcon:s,addonAfter:c,loading:d,disabled:u,onSearch:p,onChange:m,onCompositionStart:H,onCompositionEnd:A,variant:f,onPressEnter:D,classNames:L,styles:F,hidden:W,...h}=e;var{direction:g,getPrefixCls:v,className:j,style:b,classNames:y,styles:C,searchIcon:x}=Fe("inputSearch"),w=ft.useContext($s),w=u??w,[S,,k]=Th("inputSearch",f,e.bordered),k=k?S:void 0,[S]=Th("inputSearch",f,e.bordered,"input"),e={...e,enterButton:i,variant:k},b=We(b),E=We(l),[y,C]=je([y,L],[C,b,F,E],{props:e},{button:{_default:"root"}});let N=ft.useRef(!1);var b=v("input-search",r),E=v("input",n),[e,v]=LM(b);let _=bc(b,g).compactSize;var I=mc(e=>a??_??e);let M=ft.useRef(null);var $=e=>{document.activeElement===M.current?.input&&e.preventDefault()};let R=e=>{p&&p(M.current?.input?.value,e,{source:"input"})};var x="boolean"==typeof i?Gs(s,x,ft.createElement(ug,null)):null,P=b+"-btn",P=bt(P,{[P+"-"+k]:k});let z,B=i||{};var T=B.type&&!0===B.type.__ANT_BUTTON,w=(z=T||"button"===B.type?(O=B.props,Ss(B,{disabled:w||O.disabled||!T&&d,onMouseDown:$,onClick:e=>{B?.props?.onClick?.(e),R(e)},key:"enterButton",...T?{className:bt(P,O.className),loading:d||O.loading,size:I}:{}})):ft.createElement(Bd,{classNames:y.button,styles:C.button,className:P,color:i?"primary":"default",size:I,disabled:u,key:"enterButton",onMouseDown:$,onClick:R,loading:d,icon:x,variant:"borderless"===k||"filled"===k||"underlined"===k?"text":i?"solid":void 0},i),c&&(z=[z,Ss(c,{key:"addonAfter"})]),bt(b,v,{[b+"-rtl"]:"rtl"===g,[b+"-"+I]:!!I,[b+"-with-button"]:!!i},o,j,e,y.root)),T=Jt(h,{data:!0}),O=at({...h,classNames:at(y,["button","root"]),styles:at(C,["button","root"]),prefixCls:E,type:"search",size:I,variant:S,onPressEnter:e=>{N.current||d||(D?.(e),R(e))},onCompositionStart:e=>{N.current=!0,H?.(e)},onCompositionEnd:e=>{N.current=!1,A?.(e)},onChange:e=>{e?.target&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),m?.(e)},disabled:u},Object.keys(T));return ft.createElement(xc,{className:w,style:C.root,...T,hidden:W},ft.createElement(S2,{ref:Ne(M,t),...O}),z)});var FM=Be(["Input","TextArea"],e=>(e=>{var{componentCls:t,paddingLG:r}=e,n=t+"-textarea";return{["textarea"+t]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all "+e.motionDurationSlow,resize:"vertical","@media (hover: none) and (pointer: coarse)":{resize:"none"},[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[t+"-textarea-affix-wrapper-resize-dirty"]:{width:"auto"},[n]:{position:"relative","&-show-count":{[t+"-data-count"]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${n}-has-feedback ${t}
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,["> textarea"+t]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[t+"-suffix"]:{margin:0,"> *:not(:last-child)":{marginInline:0},[t+"-clear-icon"]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[n+"-suffix"]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[t+"-suffix"]:{[t+"-data-count"]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[t+"-suffix"]:{[t+"-clear-icon"]:{insetInlineEnd:e.paddingInlineSM}}}}}})(ze(e,AC(e))),DC,{resetFont:!1}),WM=(0,ft.forwardRef)((e,t)=>{let{prefixCls:r,bordered:n=!0,size:o,disabled:a,status:l,allowClear:i,classNames:s,rootClassName:c,className:d,style:u,styles:p,variant:m,showCount:f,onMouseDown:h,onResize:g,...v}=e;var{getPrefixCls:b,direction:y,allowClear:C,autoComplete:x,className:w,style:S,classNames:k,styles:E}=Fe("textArea"),N=ft.useContext($s),N=a??N,{status:I,hasFeedback:M,feedbackIcon:$}=ft.useContext(ap),I=Ih(I,l),S=We(S),R=We(u),[k,E]=je([k,s],[E,S,p,R],{props:e});let P=ft.useRef(null);ft.useImperativeHandle(t,()=>({resizableTextArea:P.current?.resizableTextArea,focus:e=>{It(P.current?.resizableTextArea?.textArea,e)},blur:()=>P.current?.blur(),nativeElement:P.current?.nativeElement||null}));var S=b("input",r),R=nl(S),[t,b]=GE(S,c);FM(S,R);let{compactSize:z,compactItemClassnames:H}=bc(S,y);var B=mc(e=>o??z??e),[A,D]=Th("textArea",m,n),C=x2({allowClear:i,contextAllowClear:C,componentName:"TextArea"});let[T,O]=ft.useState(!1),[L,F]=ft.useState(!1);return ft.createElement(y2,{autoComplete:x,...v,style:E.root,styles:E,disabled:N,allowClear:C,className:bt(b,R,d,c,H,w,k.root,{[S+"-textarea-affix-wrapper-resize-dirty"]:L}),classNames:{...k,textarea:bt({[S+"-sm"]:"small"===B,[S+"-lg"]:"large"===B},t,k.textarea,T&&S+"-mouse-active"),variant:bt({[S+"-"+A]:D},Nh(S,I)),affixWrapper:bt(S+"-textarea-affix-wrapper",{[S+"-affix-wrapper-rtl"]:"rtl"===y,[S+"-affix-wrapper-sm"]:"small"===B,[S+"-affix-wrapper-lg"]:"large"===B,[S+"-textarea-show-count"]:f||e.count?.show},t)},prefixCls:S,suffix:M&&ft.createElement("span",{className:S+"-textarea-suffix"},$),showCount:f,ref:P,onResize:e=>{g?.(e),T&&Je(getComputedStyle)&&(e=P.current?.nativeElement?.querySelector("textarea"))&&"both"===getComputedStyle(e).resize&&F(!0)},onMouseDown:e=>{O(!0),h?.(e);let t=()=>{O(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})}),a=S2,jM=(a.Group=s,a.Search=d,a.TextArea=WM,a.Password=n,a.OTP=l,a);var o=({suffixCls:n,tagName:o})=>r=>ft.forwardRef((e,t)=>ft.createElement(r,{ref:t,suffixCls:n,tagName:o,...e})),i=ft.forwardRef((e,t)=>{let{prefixCls:r,suffixCls:n,className:o,tagName:a,...l}=e;var e=ft.useContext(Ue).getPrefixCls,e=e("layout",r),[i,s]=db(e);return ft.createElement(a,{className:bt(r||(n?e+"-"+n:e),o,i,s),ref:t,...l})}),e=o({tagName:"div",displayName:"Layout"})(ft.forwardRef((e,t)=>{var r=ft.useContext(Ue).direction;let[n,o]=ft.useState([]),{prefixCls:a,className:l,rootClassName:i,children:s,hasSider:c,tagName:d,style:u,...p}=e;var e=at(p,["suffixCls"]),{getPrefixCls:m,className:f,style:h}=Fe("layout"),m=m("layout",a),g=(v=n,b=s,"boolean"==typeof(g=c)?g:!!v.length||ke(b).some(e=>e.type===hb)),[v,b]=db(m),g=bt(m,{[m+"-has-sider"]:g,[m+"-rtl"]:"rtl"===r},f,l,i,v,b),m=ft.useMemo(()=>({siderHook:{addSider:t=>{o(e=>[].concat(Pe(e),[t]))},removeSider:t=>{o(e=>e.filter(e=>e!==t))}}}),[]);return ft.createElement(cb.Provider,{value:m},ft.createElement(d,{ref:t,className:g,style:{...h,...u},...e},s))})),c=o({suffixCls:"header",tagName:"header",displayName:"Header"})(i),s=o({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(i),d=o({suffixCls:"content",tagName:"main",displayName:"Content"})(i),n=e,_M=(n.Header=c,n.Footer=s,n.Content=d,n.Sider=hb,n._InternalSiderContext=mb,n);function KM(){return(KM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var VM=ft.forwardRef((e,t)=>ft.createElement(u,KM({},e,{ref:t,icon:I().A})));function XM(){return(XM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qM=ft.forwardRef((e,t)=>ft.createElement(u,XM({},e,{ref:t,icon:M().A}))),GM=t(9925);let YM=[10,20,50,100];var UM=e=>{let{pageSizeOptions:t=YM,locale:r,changeSize:n,pageSize:o,goButton:a,quickGo:l,rootPrefixCls:i,disabled:s,buildOptionText:c,showSizeChanger:d,sizeChangerRender:u}=e,[p,m]=Re().useState(""),f=Re().useMemo(()=>!p||Number.isNaN(p)?void 0:Number(p),[p]),h="function"==typeof c?c:e=>e+" "+r.items_per_page;var e=e=>{""===p||e.keyCode!==Ce.ENTER&&"click"!==e.type||(m(""),l?.(f))},g=i+"-options";if(!d&&!l)return null;let v=null,b=null,y=null;return d&&u&&(v=u({disabled:s,size:o,onSizeChange:e=>{n?.(Number(e))},"aria-label":r.page_size,className:g+"-size-changer",options:(t.some(e=>e.toString()===o.toString())?t:t.concat([o]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t)))).map(e=>({label:h(e),value:e}))})),l&&(a&&(y="boolean"==typeof a?Re().createElement("button",{type:"button",onClick:e,onKeyUp:e,disabled:s,className:g+"-quick-jumper-button"},r.jump_to_confirm):Re().createElement("span",{onClick:e,onKeyUp:e},a)),b=Re().createElement("div",{className:g+"-quick-jumper"},r.jump_to,Re().createElement("input",{disabled:s,type:"text",value:p,onChange:e=>{e=e.target.value;/^\d*$/.test(e)&&m(e)},onKeyUp:e,onBlur:e=>{a||""===p||(m(""),e.relatedTarget&&(e.relatedTarget.className.includes(i+"-item-link")||e.relatedTarget.className.includes(i+"-item")))||l?.(f)},"aria-label":r.page}),r.page,y)),Re().createElement("li",{className:g},v,b)},QM=e=>{let{rootPrefixCls:t,page:r,active:n,className:o,style:a,showTitle:l,onClick:i,onKeyPress:s,itemRender:c}=e;var e=t+"-item",e=bt(e,e+"-"+r,{[e+"-active"]:n,[e+"-disabled"]:!r},o),d=c(r,"page",Re().createElement("a",{rel:"nofollow"},r));return d?Re().createElement("li",{title:l?String(r):null,className:e,style:a,onClick:()=>{i(r)},onKeyDown:e=>{s(e,i,r)},tabIndex:0},d):null};function ZM(){return(ZM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let JM=(e,t,r)=>r;function e3(){}function t3(e){e=Number(e);return"number"==typeof e&&!Number.isNaN(e)&&isFinite(e)&&Math.floor(e)===e}function r3(e,t,r){return Math.floor((r-1)/(void 0===e?t:e))+1}var n3=n=>{let{prefixCls:o="rc-pagination",selectPrefixCls:H="rc-select",className:A,classNames:r,styles:a,current:D,defaultCurrent:L=1,total:l=0,pageSize:F,defaultPageSize:W=10,onChange:i=e3,hideOnSinglePage:j,align:e,showPrevNextJumpers:_=!0,showQuickJumper:t,showLessItems:s,showTitle:c=!0,onShowSizeChange:K=e3,locale:d=GM.A,style:V,totalBoundaryShowSizeChanger:X=50,disabled:u,simple:p,showTotal:q,showSizeChanger:G=l>X,sizeChangerRender:Y,pageSizeOptions:U,itemRender:m=JM,jumpPrevIcon:Q,jumpNextIcon:Z,prevIcon:J,nextIcon:ee}=n;var te=Re().useRef(null);let[f,re]=vt(W,F),[ne,oe]=vt(L,D),h=Math.max(1,Math.min(ne,r3(void 0,f,l))),[g,v]=Re().useState(h);(0,ft.useEffect)(()=>{v(h)},[h]);i,0 in n;let ae=Math.max(1,h-(s?3:5)),le=Math.min(r3(void 0,f,l),h+(s?3:5));function b(e,t){let r=e||Re().createElement("button",{type:"button","aria-label":t,className:o+"-item-link"});return r="function"==typeof e?Re().createElement(e,n):r}function ie(e){var e=e.target.value,t=r3(void 0,f,l);let r;return r=""===e?e:Number.isNaN(Number(e))?g:t<=e?t:Number(e)}var se=l>f&&t;function ce(e){var t=ie(e);switch(t!==g&&v(t),e.keyCode){case Ce.ENTER:y(t);break;case Ce.UP:y(t-1);break;case Ce.DOWN:y(t+1)}}function y(t){if(t3(r=t)&&r!==h&&t3(l)&&0<l&&!u){r=r3(void 0,f,l);let e=t;return r<t?e=r:t<1&&(e=1),e!==g&&v(e),oe(e),i?.(e,f),e}var r;return h}let C=1<h,x=h<r3(void 0,f,l);function de(){C&&y(h-1)}function ue(){x&&y(h+1)}function pe(){y(ae)}function me(){y(le)}function w(e,t,...r){"Enter"!==e.key&&e.charCode!==Ce.ENTER&&e.keyCode!==Ce.ENTER||t(...r)}function S(e){"click"!==e.type&&e.keyCode!==Ce.ENTER||y(g)}let k=null;var fe=Jt(n,{aria:!0,data:!0}),he=q&&Re().createElement("li",{className:o+"-total-text"},q(l,[0===l?0:(h-1)*f+1,h*f>l?l:h*f]));let ge=null;var E=r3(void 0,f,l);if(j&&l<=f)return null;var N=[],I={rootPrefixCls:o,onClick:y,onKeyPress:w,showTitle:c,itemRender:m,page:-1,className:r?.item,style:a?.item},ve=0<h-1?h-1:0,be=h+1<E?h+1:E,M=t&&t.goButton,$="object"==typeof p?p.readOnly:!p;let R=M,ye=null;p&&(M&&(R="boolean"==typeof M?Re().createElement("button",{type:"button",onClick:S,onKeyUp:S},d.jump_to_confirm):Re().createElement("span",{onClick:S,onKeyUp:S},M),R=Re().createElement("li",{title:c?""+d.jump_to+h+"/"+E:null,className:o+"-simple-pager"},R)),ye=Re().createElement("li",{title:c?h+"/"+E:null,className:bt(o+"-simple-pager",r?.item),style:a?.item},$?g:Re().createElement("input",{type:"text","aria-label":d.jump_to,value:g,disabled:u,onKeyDown:function(e){e.keyCode!==Ce.UP&&e.keyCode!==Ce.DOWN||e.preventDefault()},onKeyUp:ce,onChange:ce,onBlur:function(e){y(ie(e))},size:3}),Re().createElement("span",{className:o+"-slash"},"/"),E));var M=s?1:2;if(E<=3+2*M){E||N.push(Re().createElement(QM,ZM({},I,{key:"noPager",page:1,className:o+"-item-disabled"})));for(let e=1;e<=E;e+=1)N.push(Re().createElement(QM,ZM({},I,{key:e,page:e,active:h===e})))}else{var $=s?d.prev_3:d.prev_5,P=s?d.next_3:d.next_5,z=m(ae,"jump-prev",b(Q,"prev page")),B=m(le,"jump-next",b(Z,"next page"));_&&(k=z?Re().createElement("li",{title:c?$:null,key:"prev",onClick:pe,tabIndex:0,onKeyDown:function(e){w(e,pe)},className:bt(o+"-jump-prev",{[o+"-jump-prev-custom-icon"]:!!Q})},z):null,ge=B?Re().createElement("li",{title:c?P:null,key:"next",onClick:me,tabIndex:0,onKeyDown:function(e){w(e,me)},className:bt(o+"-jump-next",{[o+"-jump-next-custom-icon"]:!!Z})},B):null);let t=Math.max(1,h-M),r=Math.min(h+M,E);h-1<=M&&(r=1+2*M),E-h<=M&&(t=E-2*M);$=!!k&&h-1>=2*M&&3!==h,z=!!ge&&E-h>=2*M&&h!==E-2;!s&&$&&r!==E&&(t+=1),!s&&z&&1!==t&&--r;for(let e=t;e<=r;e+=1)N.push(Re().createElement(QM,ZM({},I,{key:e,page:e,active:h===e})));$&&(N[0]=Re().cloneElement(N[0],{className:bt(o+"-item-after-jump-prev",N[0].props.className)}),N.unshift(k)),z&&(P=N[N.length-1],N[N.length-1]=Re().cloneElement(P,{className:bt(o+"-item-before-jump-next",P.props.className)}),N.push(ge)),1!==t&&N.unshift(Re().createElement(QM,ZM({},I,{key:1,page:1}))),r!==E&&N.push(Re().createElement(QM,ZM({},I,{key:E,page:E})))}B=ve,B=m(B,"prev",b(J,"prev page"));let T=Re().isValidElement(B)?Re().cloneElement(B,{disabled:!C}):B,O=(T&&(M=!C||!E,T=Re().createElement("li",{title:c?d.prev_page:null,onClick:de,tabIndex:M?null:0,onKeyDown:function(e){w(e,de)},className:bt(o+"-prev",r?.item,{[o+"-disabled"]:M}),style:a?.item,"aria-disabled":M},T)),$=be,$=m($,"next",b(ee,"next page")),Re().isValidElement($)?Re().cloneElement($,{disabled:!x}):$);if(O){let e,t;t=p?(e=!x,C?0:null):(e=!x||!E)?null:0,O=Re().createElement("li",{title:c?d.next_page:null,onClick:ue,tabIndex:t,onKeyDown:function(e){w(e,ue)},className:bt(o+"-next",r?.item,{[o+"-disabled"]:e}),style:a?.item,"aria-disabled":e},O)}z=bt(o,A,{[o+"-start"]:"start"===e,[o+"-center"]:"center"===e,[o+"-end"]:"end"===e,[o+"-simple"]:p,[o+"-disabled"]:u});return Re().createElement("ul",ZM({className:z,style:V,ref:te},fe),he,T,p?ye:N,O,Re().createElement(UM,{locale:d,rootPrefixCls:o,disabled:u,selectPrefixCls:H,changeSize:function(e){var t=r3(e,f,l),t=h>t&&0!==t?t:h;re(e),v(t),K?.(h,e),oe(t),i?.(t,e)},pageSize:f,pageSizeOptions:U,quickGo:se?y:null,goButton:R,showSizeChanger:G,sizeChangerRender:Y}))},o3=t(5059);let a3=e=>{var t=e.componentCls;return{[t+"-disabled"]:{"&, &:hover":{cursor:"not-allowed",[t+"-item-link"]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[t+"-item-link"]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[t+"-item"]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[t+"-item-link"]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[t+"-simple&"]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[t+"-simple-pager"]:{color:e.colorTextDisabled},[t+`-jump-prev, ${t}-jump-next`]:{[t+"-item-link-icon"]:{opacity:0},[t+"-item-ellipsis"]:{opacity:1}}}}},l3=e=>{var t=e.componentCls;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...KE(e),width:e.paginationMiniQuickJumperInputWidth}}}}},i3=e=>{var t=e.componentCls;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{..._E(e)}}}}},s3=e=>{var{componentCls:t,antCls:r}=e,[,r]=Q(r,"pagination");return{[`&${t}-simple`]:{[t+`-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[t+"-item-link"]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[t+"-simple-pager"]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:"0 "+(0,Qe.unit)(e.paginationItemPaddingInline),textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderRadius:e.borderRadius,outline:"none",transition:"border-color "+e.motionDurationMid,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,Qe.unit)(e.inputOutlineOffset)} 0 ${(0,Qe.unit)(e.controlOutlineWidth)} `+e.controlOutline},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[t+`-prev, ${t}-next`]:{[t+"-item-link"]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[t+"-simple-pager"]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},c3=e=>{var t=e.componentCls,r=t+`-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[r]:{background:e.colorFillTertiary,borderColor:"transparent","&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...kE(e)}}},[`&${t}-borderless`]:{[r]:{background:"transparent",border:"none","&:focus":{outline:"none",boxShadow:"none"},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-underlined`]:{[r]:{background:e.colorBgContainer,borderWidth:(0,Qe.unit)(e.lineWidth)+" 0",borderStyle:e.lineType+" none",borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"}}}}},d3=e=>{var{componentCls:t,iconCls:r,sizeLG:n,antCls:o}=e,[,o]=Q(o,"pagination");return{[t+`-jump-prev, ${t}-jump-next`]:{outline:0,[t+"-item-container"]:{position:"relative",[t+"-item-link-icon"]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:"all "+e.motionDurationMid,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[t+"-item-ellipsis"]:{position:"absolute",inset:0,display:"inline-flex",justifyContent:"center",alignItems:"center",margin:"auto",color:e.colorTextDisabled,textAlign:"center",opacity:1,transition:"all "+e.motionDurationMid,[r+"-ellipsis > svg"]:{width:n,height:n}}},"&:hover":{[t+"-item-link-icon"]:{opacity:1},[t+"-item-ellipsis"]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:o("item-spacing-actual")},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:o("item-size-actual"),height:o("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:o("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:"all "+e.motionDurationMid},[t+`-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[t+"-item-link"]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:"all "+e.motionDurationMid},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[t+"-item-link"]:{backgroundColor:"transparent"}}},[t+"-slash"]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[t+"-options"]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle",[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:"auto"},"&-quick-jumper":{display:"inline-block",height:o("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:o("item-size-actual"),verticalAlign:"baseline",input:{...VE(e),...EE(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...kE(e)},width:e.quickJumperInputWidth,height:o("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:o("item-spacing-actual"),marginInlineEnd:o("item-spacing-actual")}}}}},u3=e=>{var{componentCls:t,antCls:r}=e,[,r]=Q(r,"pagination");return{[t+"-item"]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:(0,Qe.unit)(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:"0 "+(0,Qe.unit)(e.paginationItemPaddingInline),color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:"all "+e.motionDurationMid,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}};l=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...DC(e)});let p3=e=>ze(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},AC(e));var m3=Be("Pagination",e=>{var t,e=p3(e);return[(e=>{var{componentCls:t,antCls:r}=e,[r,n]=Q(r,"pagination");return{[t]:{[r("item-size-actual")]:(0,Qe.unit)(e.itemSize),[r("item-spacing-actual")]:(0,Qe.unit)(e.marginXS),"&-small":{[r("item-size-actual")]:(0,Qe.unit)(e.itemSizeSM),[r("item-spacing-actual")]:(0,Qe.unit)(e.marginXXS)},"&-large":{[r("item-size-actual")]:(0,Qe.unit)(e.itemSizeLG),[r("item-spacing-actual")]:(0,Qe.unit)(e.marginSM)},...F(e),display:"flex",alignItems:"center","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[t+"-total-text"]:{display:"inline-block",height:n("item-size-actual"),marginInlineEnd:n("item-spacing-actual"),lineHeight:(0,Qe.unit)(e.calc(n("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...u3(e),...d3(e),...s3(e),...c3(e),...l3(e),...i3(e),...a3(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[t+"-item"]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[t+"-options"]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}})(e),{[(t=(e=e).componentCls)+`:not(${t}-disabled)`]:{[t+"-item"]:{...un(e)},[t+`-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[t+"-item-link-icon"]:{opacity:1},[t+"-item-ellipsis"]:{opacity:0},...dn(e)}},[t+`-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:dn(e)}}}]},l);var f3=uo(["Pagination","bordered"],e=>{var t,e=p3(e);return{[""+(t=(e=e).componentCls)+t+`-bordered${t}-disabled`]:{"&, &:hover":{[t+"-item-link"]:{borderColor:e.colorBorder}},"&:focus-visible":{[t+"-item-link"]:{borderColor:e.colorBorder}},[t+`-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[t+`-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[t+"-item-link"]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[""+t+t+"-bordered"]:{[t+`-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[t+"-item-link"]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[t+"-item-link"]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[t+"-item"]:{backgroundColor:e.itemBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},l);function h3(e){return(0,ft.useMemo)(()=>"boolean"==typeof e?[e,{}]:Ze(e)?[!0,e]:[void 0,void 0],[e])}var g3=e=>{let{align:t,prefixCls:r,selectPrefixCls:n,className:o,rootClassName:a,style:l,size:i,locale:s,responsive:c,showSizeChanger:d,components:u,selectComponentClass:p,pageSizeOptions:m,styles:f,classNames:h,...g}=e;var v=Ig(c).xs,[,b]=so();let{getPrefixCls:y,direction:C,showSizeChanger:x,className:w,style:S,classNames:k,styles:H,totalBoundaryShowSizeChanger:A}=Fe("pagination"),E=y("pagination",r);var[D,L]=m3(E);let N=mc(i);var v="small"===N||!(!v||N||!c),[I,M]=Th("input"),e={...e,size:N},$=We(S),R=We(l),[$,R]=je([k,h],[H,$,f,R],{props:e}),[e]=nc("Pagination",o3.A),e={...e,...s},[P,z]=h3(d),[B,T]=h3(x),P=P??B;let O=z??T,F=p||gg;B=ft.useMemo(()=>m?m.map(Number):void 0,[m]),z=ft.useMemo(()=>{var e=ft.createElement("span",{className:E+"-item-ellipsis"},ft.createElement(vb,null));return{prevIcon:ft.createElement("button",{className:E+"-item-link",type:"button",tabIndex:-1},"rtl"===C?ft.createElement(nd,null):ft.createElement(Gv,null)),nextIcon:ft.createElement("button",{className:E+"-item-link",type:"button",tabIndex:-1},"rtl"===C?ft.createElement(Gv,null):ft.createElement(nd,null)),jumpPrevIcon:ft.createElement("a",{className:E+"-item-link"},ft.createElement("div",{className:E+"-item-container"},"rtl"===C?ft.createElement(qM,{className:E+"-item-link-icon"}):ft.createElement(VM,{className:E+"-item-link-icon"}),e)),jumpNextIcon:ft.createElement("a",{className:E+"-item-link"},ft.createElement("div",{className:E+"-item-container"},"rtl"===C?ft.createElement(VM,{className:E+"-item-link-icon"}):ft.createElement(qM,{className:E+"-item-link-icon"}),e))}},[C,E]),T=y("select",n),M=bt({[E+"-"+t]:!!t,[E+"-"+N]:N,[E+"-"+I]:M&&"outlined"!==I,[E+"-mini"]:v,[E+"-rtl"]:"rtl"===C,[E+"-bordered"]:b.wireframe},w,o,a,$.root,D,L),I={...R.root};return ft.createElement(ft.Fragment,null,b.wireframe&&ft.createElement(f3,{prefixCls:E}),ft.createElement(n3,{...z,...g,styles:R,classNames:$,style:I,prefixCls:E,selectPrefixCls:T,className:M,locale:e,pageSizeOptions:B,showSizeChanger:P,totalBoundaryShowSizeChanger:g.totalBoundaryShowSizeChanger??A,sizeChangerRender:e=>{let{disabled:t,size:r,onSizeChange:n,"aria-label":o,className:a,options:l}=e;e=u?.sizeChanger;if(e)return ft.createElement(e,{value:r,onChange:n,disabled:!!t,className:a});let{className:i,onChange:s}=O||{};e=l.find(e=>String(e.value)===String(r))?.value;return ft.createElement(F,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":o,options:l,...O,value:e,onChange:(e,t)=>{n?.(e),s?.(e,t)},size:N,className:bt(E+"-options-size-changer-select",a,i)})}}))};let v3=100,b3=v3/5,y3=v3/2-b3/2,C3=2*y3*Math.PI,x3=50,w3=e=>{var{dotClassName:e,style:t,hasCircleCls:r}=e;return ft.createElement("circle",{className:bt(e+"-circle",{[e+"-circle-bg"]:r}),r:y3,cx:x3,cy:x3,strokeWidth:b3,style:t})};var S3=({percent:e,prefixCls:t})=>{var t=t+"-dot",r=t+"-holder",n=r+"-hidden";let[o,a]=ft.useState(!1);gt(()=>{0!==e&&a(!0)},[e]);var l,i=Math.max(Math.min(e,100),0);return o?(l={strokeDashoffset:""+C3/4,strokeDasharray:C3*i/100+" "+C3*(100-i)/100},ft.createElement("span",{className:bt(r,t+"-progress",{[n]:i<=0})},ft.createElement("svg",{viewBox:`0 0 ${v3} `+v3,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i},ft.createElement(w3,{dotClassName:t,hasCircleCls:!0}),ft.createElement(w3,{dotClassName:t,style:l})))):null};function k3(e){let{prefixCls:t,percent:r=0,className:n,style:o}=e;var e=t+"-dot",a=e+"-holder";return ft.createElement(ft.Fragment,null,ft.createElement("span",{className:bt(a,n,0<r&&a+"-hidden"),style:o},ft.createElement("span",{className:bt(e,t+"-dot-spin")},[1,2,3,4].map(e=>ft.createElement("i",{className:t+"-dot-item",key:e})))),ft.createElement(S3,{prefixCls:t,percent:r}))}function E3(e){let{prefixCls:t,indicator:r,percent:n,className:o,style:a}=e,l=t+"-dot";return r&&ft.isValidElement(r)?Ss(r,e=>({className:bt(e.className,l,o),style:{...e.style,...a},percent:n})):ft.createElement(k3,{prefixCls:t,percent:n,className:o,style:a})}let N3=new Qe.Keyframes("antSpinMove",{to:{opacity:1}}),I3=new Qe.Keyframes("antRotate",{to:{transform:"rotate(405deg)"}});var M3=Be("Spin",e=>{var t,r,n,e=ze(e,{spinDotDefault:e.colorTextDescription});return[(r=(t=e).componentCls,n=r+"-section",{[r]:{...F(t),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, > `+n]:{display:"flex",alignItems:"center",flexDirection:"column",gap:t.paddingSM,color:t.colorPrimary},["&"+n]:{display:"inline-flex"},["> "+n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[r+"-description"]:{fontSize:t.fontSize,lineHeight:1},[r+"-container"]:{position:"relative",transition:"opacity "+t.motionDurationSlow,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:"all "+t.motionDurationSlow,content:'""',pointerEvents:"none"}},"&-spinning":{[r+"-description"]:{textShadow:"0 0px 5px "+t.colorBgContainer},[r+"-container"]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:t.colorBgMask,zIndex:t.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:"all "+t.motionDurationMid,[`&${r}-spinning`]:{opacity:1,pointerEvents:"auto"},["> "+n]:{color:t.colorWhite,[r+"-description"]:{color:t.colorTextLightSolid}}}}}),(e=>{let{componentCls:t,antCls:r,motionDurationSlow:n}=e;var[o,a]=Q(r,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${a("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[t+"-dot"]:{"&-holder":{width:"1em",height:"1em",fontSize:a("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(e=>`${e} ${n} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:a("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:I3,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:a("dot-item-size"),height:a("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:N3,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(e=>`${e} ${n} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}})(e),(e=>{var t=e.componentCls,[r]=Q(e.antCls,"spin");return{[t]:{"&-sm":{[r("dot-holder-size")]:e.dotSizeSM},"&-lg":{[r("dot-holder-size")]:e.dotSizeLG}}}})(e)]},e=>{var{controlHeightLG:e,controlHeight:t}=e;return{contentHeight:400,dotSize:e/2,dotSizeSM:.35*e,dotSizeLG:t}});let $3=200,R3=[[30,.05],[70,.03],[96,.01]];let P3;var a=ft.forwardRef((e,t)=>{let{prefixCls:r,spinning:n=!0,delay:o=0,className:a,rootClassName:l,size:i,tip:s,description:c,wrapperClassName:d,style:u,children:p,fullscreen:m=!1,indicator:f,percent:h,classNames:g,styles:v,...b}=e;var{getPrefixCls:y,direction:C,indicator:x,className:w,style:S,classNames:k,styles:E}=Fe("spin"),y=y("spin",r),[N,I]=M3(y);let[M,$]=ft.useState(()=>{return n&&(e=n,t=o,!(e&&t&&!Number.isNaN(Number(t))));var e,t});var R=((e,t)=>{let[r,n]=ft.useState(0),o=ft.useRef(null),a="auto"===t;return ft.useEffect(()=>(a&&e&&(n(0),o.current=setInterval(()=>{n(t=>{var r=100-t;for(let e=0;e<R3.length;e+=1){var[n,o]=R3[e];if(t<=n)return t+r*o}return t})},$3)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?r:t})(M,h),P=(ft.useEffect(()=>{if(n){let e=Vx(o,()=>{$(!0)});return e(),()=>{e?.cancel?.()}}$(!1)},[o,n]),mc(e=>i??e)),z=c??s,e={...e,size:P,spinning:M,tip:z,description:z,fullscreen:m,children:p,percent:R},S=We(S),[k,E]=je([k,g],[E,S,v],{props:e}),S=f??x??P3,e=void 0!==p,x=e||m,S=ft.createElement(ft.Fragment,null,ft.createElement(E3,{className:bt(k.indicator),style:E.indicator,prefixCls:y,indicator:S,percent:R}),z&&ft.createElement("div",{className:bt(y+"-description",k.tip,k.description),style:{...E.tip,...E.description}},z));let B=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:B.current})),ft.createElement("div",{ref:B,className:bt(y,{[y+"-sm"]:"small"===P,[y+"-lg"]:"large"===P,[y+"-spinning"]:M,[y+"-rtl"]:"rtl"===C,[y+"-fullscreen"]:m},l,k.root,m&&k.mask,x?d:[y+"-section",k.section],w,a,N,I),style:{...E.root,...x?{}:E.section,...m?E.mask:{},...u},"aria-live":"polite","aria-busy":M,...b},M&&(x?ft.createElement("div",{className:bt(y+"-section",k.section),style:E.section},S):S),e&&ft.createElement("div",{className:bt(y+"-container",k.container),style:E.container},p))}),z3=(a.setDefaultIndicator=e=>{P3=e},a);let B3=Re().createContext({});B3.Consumer;o=Re().forwardRef((e,t)=>{let{prefixCls:r,className:n,avatar:o,title:a,description:l,...i}=e;var e=(0,ft.useContext)(Ue).getPrefixCls,e=e("list",r),s=bt(e+"-item-meta",n);let c=Re().useRef(null);Re().useImperativeHandle(t,()=>({nativeElement:c.current}));t=Re().createElement("div",{className:e+"-item-meta-content"},a&&Re().createElement("h4",{className:e+"-item-meta-title"},a),l&&Re().createElement("div",{className:e+"-item-meta-description"},l));return Re().createElement("div",{ref:c,...i,className:s},o&&Re().createElement("div",{className:e+"-item-meta-avatar"},o),(a||l)&&t)}),i=Re().forwardRef((e,t)=>{let{prefixCls:r,children:n,actions:o,extra:a,styles:l,className:i,classNames:s,colStyle:c,...d}=e,{grid:u,itemLayout:p}=(0,ft.useContext)(B3),{getPrefixCls:m,list:f}=(0,ft.useContext)(Ue);var e=e=>bt(f?.item?.classNames?.[e],s?.[e]),h=e=>({...f?.item?.styles?.[e],...l?.[e]});let g=m("list",r);var v=o&&0<o.length&&Re().createElement("ul",{className:bt(g+"-item-action",e("actions")),key:"actions",style:h("actions")},o.map((e,t)=>Re().createElement("li",{key:g+"-item-action-"+t},e,t!==o.length-1&&Re().createElement("em",{className:g+"-item-action-split"})))),b=u?"div":"li",b=Re().createElement(b,{...d,...u?{}:{ref:t},className:bt(g+"-item",{[g+"-item-no-flex"]:!("vertical"===p?!!a:!((b=ke(n)).some($a)&&1<b.length))},i)},"vertical"===p&&a?[Re().createElement("div",{className:g+"-item-main",key:"content"},n,v),Re().createElement("div",{className:bt(g+"-item-extra",e("extra")),key:"extra",style:h("extra")},a)]:[n,v,Ss(a,{key:"extra"})]);return u?Re().createElement($k,{ref:t,flex:1,style:c},b):b}),i.Meta=o,e=i;var T3=Be("List",e=>{e=ze(e,{listBorderedCls:e.componentCls+"-bordered",minHeight:e.controlHeightLG});return[(e=>{var{componentCls:t,antCls:r,controlHeight:n,minHeight:o,paddingSM:a,marginLG:l,padding:i,itemPadding:s,colorPrimary:c,itemPaddingSM:d,itemPaddingLG:u,paddingXS:p,margin:m,colorText:f,colorTextDescription:h,motionDurationSlow:g,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:w,titleMarginBottom:S,descriptionFontSize:k}=e;return{[t]:{...F(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[t+"-header"]:{background:b},[t+"-footer"]:{background:y},[t+`-header, ${t}-footer`]:{paddingBlock:a},[t+"-pagination"]:{marginBlockStart:l,[r+"-pagination-options"]:{textAlign:"start"}},[t+"-spin"]:{minHeight:o,textAlign:"center"},[t+"-items"]:{margin:0,padding:0,listStyle:"none"},[t+"-item"]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:f,[t+"-item-meta"]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[t+"-item-meta-avatar"]:{marginInlineEnd:w},[t+"-item-meta-content"]:{flex:"1 0",width:0,color:f},[t+"-item-meta-title"]:{margin:`0 0 ${(0,Qe.unit)(e.marginXXS)} 0`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:"all "+g,"&:hover":{color:c}}},[t+"-item-meta-description"]:{color:h,fontSize:k,lineHeight:e.lineHeight}},[t+"-item-action"]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:"0 "+(0,Qe.unit)(p),color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[t+"-item-action-split"]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[t+"-empty"]:{padding:(0,Qe.unit)(i)+" 0",color:h,fontSize:e.fontSizeSM,textAlign:"center"},[t+"-empty-text"]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[t+"-item-no-flex"]:{display:"block"}},[t+`-grid ${r}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:m,paddingBlock:0,borderBlockEnd:"none"},[t+`-vertical ${t}-item`]:{alignItems:"initial",[t+"-item-main"]:{display:"block",flex:1},[t+"-item-extra"]:{marginInlineStart:l},[t+"-item-meta"]:{marginBlockEnd:x,[t+"-item-meta-title"]:{marginBlockStart:0,marginBlockEnd:S,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[t+"-item-action"]:{marginBlockStart:i,marginInlineStart:"auto","> li":{padding:"0 "+(0,Qe.unit)(i),"&:first-child":{paddingInlineStart:0}}}},[t+`-split ${t}-item`]:{borderBlockEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,"&:last-child":{borderBlockEnd:"none"}},[t+`-split ${t}-header`]:{borderBlockEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit},[t+`-split${t}-empty ${t}-footer`]:{borderTop:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit},[t+`-loading ${t}-spin-nested-loading`]:{minHeight:n},[t+`-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit},[t+`-lg ${t}-item`]:{padding:u},[t+`-sm ${t}-item`]:{padding:d},[t+`:not(${t}-vertical)`]:{[t+"-item-no-flex"]:{[t+"-item-action"]:{float:"right"}}}}})(e),(e=>{var{listBorderedCls:t,componentCls:r,paddingLG:n,margin:o,itemPaddingSM:a,itemPaddingLG:l,marginLG:i,borderRadiusLG:s}=e,c=(0,Qe.unit)(e.calc(s).sub(e.lineWidth).equal());return{[t]:{border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderRadius:s,[r+"-header"]:{borderRadius:c+` ${c} 0 0`},[r+"-footer"]:{borderRadius:`0 0 ${c} `+c},[r+`-header,${r}-footer,${r}-item`]:{paddingInline:n},[r+"-pagination"]:{margin:(0,Qe.unit)(o)+" "+(0,Qe.unit)(i)}},[""+t+r+"-sm"]:{[r+`-item,${r}-header,${r}-footer`]:{padding:a}},[""+t+r+"-lg"]:{[r+`-item,${r}-header,${r}-footer`]:{padding:l}}}})(e),(e=>{var{componentCls:t,screenSM:r,screenMD:n,marginLG:o,marginSM:a,margin:l}=e;return{[`@media screen and (max-width:${n}px)`]:{[t]:{[t+"-item"]:{[t+"-item-action"]:{marginInlineStart:o}}},[t+"-vertical"]:{[t+"-item"]:{[t+"-item-extra"]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${r}px)`]:{[t]:{[t+"-item"]:{flexWrap:"wrap",[t+"-action"]:{marginInlineStart:a}}},[t+"-vertical"]:{[t+"-item"]:{flexWrap:"wrap-reverse",[t+"-item-main"]:{minWidth:e.contentWidth},[t+"-item-extra"]:{margin:"auto auto "+(0,Qe.unit)(l)}}}}}})(e)]},e=>({contentWidth:220,itemPadding:(0,Qe.unit)(e.paddingContentVertical)+" 0",itemPaddingSM:(0,Qe.unit)(e.paddingContentVerticalSM)+" "+(0,Qe.unit)(e.paddingContentHorizontal),itemPaddingLG:(0,Qe.unit)(e.paddingContentVerticalLG)+" "+(0,Qe.unit)(e.paddingContentHorizontalLG),headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[e+"-container"]}),c=ft.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:o=!1,split:a=!0,className:l,rootClassName:i,style:s,children:c,itemLayout:d,loadMore:u,grid:p,dataSource:m=[],size:f,header:h,footer:g,loading:v=!1,rowKey:b,renderItem:y,locale:C,...x}=e;e=Ze(n)?n:{};let[H,A]=ft.useState(e.defaultCurrent||1),[D,L]=ft.useState(e.defaultPageSize||10);var{getPrefixCls:e,direction:w,className:S,style:F}=Fe("list"),W=ft.useContext(Ue).renderEmpty,k=r=>(e,t)=>{A(e),L(t),n&&n?.[r]?.(e,t)},E=k("onChange"),k=k("onShowSizeChange"),N=!!(u||n||g),e=e("list",r),[I,M]=T3(e);let $=v;var R=!!($="boolean"==typeof $?{spinning:$}:$)?.spinning;let P="";switch(mc(f)){case"large":P="lg";break;case"small":P="sm"}N=bt(e,{[e+"-vertical"]:"vertical"===d,[e+"-"+P]:P,[e+"-split"]:a,[e+"-bordered"]:o,[e+"-loading"]:R,[e+"-grid"]:!!p,[e+"-something-after-last-item"]:N,[e+"-rtl"]:"rtl"===w},S,l,i,I,M),w=e+"-container",S=er({current:1,total:0,position:"bottom"},{total:m.length,current:H,pageSize:D},n||{}),I=Math.ceil(S.total/S.pageSize),S.current=Math.min(S.current,I),I=n&&ft.createElement("div",{className:bt(e+"-pagination")},ft.createElement(g3,{align:"end",...S,onChange:E,onShowSizeChange:k}));let z=Pe(m);n&&m.length>(S.current-1)*S.pageSize&&(z=Pe(m).splice((S.current-1)*S.pageSize,S.pageSize));E=Object.keys(p||{}).some(e=>Cg.includes(e));let B=Ig(E),T=ft.useMemo(()=>{for(let e=0;e<Cg.length;e+=1){var t=Cg[e];if(B[t])return t}},[B]),j=ft.useMemo(()=>{var e;return p&&(e=T&&p[T]?p[T]:p.column)?{width:100/e+"%",maxWidth:100/e+"%"}:void 0},[JSON.stringify(p),T]),O=R&&ft.createElement("div",{style:{minHeight:53}});0<z.length?(k=z.map((e,t)=>{if(!y)return null;let r;return r=(r=Je(b)?b(e):b?e[b]:e.key)??"list-item-"+t,ft.createElement(ft.Fragment,{key:r},y(e,t))}),O=p?ft.createElement(P4,{className:bt(w,M),gutter:p.gutter},ft.Children.map(k,e=>ft.createElement("div",{key:e?.key,style:j},e))):ft.createElement("ul",{className:bt(e+"-items",w,M)},k)):c||R||(O=ft.createElement("div",{className:e+"-empty-text"},C?.emptyText||W?.("List")||ft.createElement(Bh,{componentName:"List"})));E=S.position,w=ft.useMemo(()=>({grid:p,itemLayout:d}),[JSON.stringify(p),d]);return ft.createElement(B3.Provider,{value:w},ft.createElement("div",{ref:t,style:{...F,...s},className:N,...x},("top"===E||"both"===E)&&I,h&&ft.createElement("div",{className:e+"-header"},h),ft.createElement(z3,{...$},O,c),g&&ft.createElement("div",{className:e+"-footer"},g),u||("bottom"===E||"both"===E)&&I))}),O3=(c.Item=e,c);function H3(e,t){var{group:e,groupKey:r,groupItems:n,prefixCls:o,fixed:a,sticky:l,className:i,style:s}=e,l=vr(o+"-group-header",{[o+"-group-header-sticky"]:l,[o+"-group-header-fixed"]:a},i);return ft.createElement("div",{ref:t,className:l,style:s},e.title(r,n))}var A3=ft.forwardRef(H3);function D3(e,a){return ft.useMemo(()=>{let o=new Map;return a&&e.forEach((e,t)=>{var r=a.key(e),n=o.get(r),e={item:e,index:t};n?n.push(e):o.set(r,[e])}),o},[e,a])}function L3(t){return ht(e=>"function"==typeof t?t(e):e[t])}let F3=(e,t)=>t+":"+e;function W3(){return(W3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j3(e,t){let{data:r,group:n,height:o,itemRender:a,onScroll:l,prefixCls:i,rowKey:s,sticky:c,direction:d,classNames:u,styles:p}=e;e=((e,r,n)=>{let l=ft.useRef(null),i=ft.useCallback(e=>{var t;return n&&(e=e.closest("."+CSS.escape(r+"-group-section"))?.querySelector("."+CSS.escape(r+"-group-header")))&&(t=(t=e.getBoundingClientRect()).height||t.bottom-t.top||e.offsetHeight,Number.isFinite(t))?t:0},[r,n]),s=ft.useCallback((e,t,r,n)=>{var n=n&&"bottom"!==t?i(e):0,o=e.style.scrollMarginTop,a=e.style.scrollMarginBottom;e.style.scrollMarginTop=n+r+"px",e.style.scrollMarginBottom=r+"px",e.scrollIntoView({block:"bottom"===t?"end":"auto"===t?"nearest":"start",inline:"nearest"}),e.style.scrollMarginTop=o,e.style.scrollMarginBottom=a},[i]),t=ft.useCallback(e=>{var t,r,n,o,a=l.current;a&&null!=e&&("number"==typeof e?a.scrollTop=e:"key"in e||"groupKey"in e?({align:o="auto",offset:t=0}=e,n=(r="key"in e)?F3(e.key,"item"):F3(e.groupKey,"group"),(n=a.querySelector(`[data-key="${CSS.escape(n)}"]`))&&s(n,o,t,r)):({left:n,top:o}=e,void 0!==n&&(a.scrollLeft=n),void 0!==o&&(a.scrollTop=o)))},[s]);return ft.useImperativeHandle(e,()=>({scrollTo:t}),[t]),l})(t,i,!(!c||!n)),t=D3(r,n);let m=L3(s),f=ft.useCallback((e,t)=>({"data-key":F3(e,t)}),[]),h=ft.useCallback((e,t)=>{var r=m(e),n=f(r,"item");return ft.createElement("div",W3({key:r,className:vr(i+"-item",u?.item),style:p?.item},n),a(e,t))},[u?.item,m,f,a,i,p?.item]);t=n?Array.from(t,([e,t])=>{var r=t.map(({item:e})=>e);return ft.createElement("div",W3({key:e,className:i+"-group-section"},f(e,"group")),ft.createElement(A3,{group:n,groupKey:e,groupItems:r,prefixCls:i,sticky:c,className:u?.groupHeader,style:p?.groupHeader}),t.map(({item:e,index:t})=>h(e,t)))}):r.map((e,t)=>h(e,t));return ft.createElement("div",{ref:e,className:vr(i,{[i+"-rtl"]:"rtl"===d},u?.root),dir:d,style:{maxHeight:o,overflowY:void 0===o?void 0:"auto",overflowAnchor:"none",...p?.root},onScroll:l},t)}var _3=ft.forwardRef(j3);let K3=1;function V3(e){let{enabled:c,group:d,groupKeys:u,groupKeyToItems:p,prefixCls:m,listRef:f,headerClassName:h,headerStyle:g}=e;return ft.useCallback(e=>{let{getSize:t,scrollTop:r,virtual:n}=e;if(!(c&&d&&u.length&&n))return null;let o=f.current?.nativeElement;if(!o)return null;let a=e=>t(F3(e,"group"));var e=((e,t,r)=>{let n=0,o=e.length-1,a=0;for(;n<=o;){var l=Math.floor((n+o)/2);t(e[l])<=r+K3?(a=l,n=l+1):o=l-1}return a})(u,e=>a(e).top,r),l=u[e],i=p.get(l)||[],s=a(l),s=s.bottom-s.top,e=u[e+1],e=void 0!==e?Math.min(0,a(e).top-s-r):0;return ft.createElement(Vi,{open:!0,getContainer:()=>o},ft.createElement("div",{className:m+"-group-header-holder"},ft.createElement(A3,{fixed:!0,group:d,groupKey:l,groupItems:i,prefixCls:m,className:h,style:{...g,top:e}})))},[c,d,u,p,m,f,h,g])}function X3(e,t){let{data:r,group:a,height:n,itemHeight:o,itemRender:l,onScroll:i,prefixCls:s,rowKey:c,sticky:d,direction:u,classNames:p,styles:m}=e,f=ft.useRef(null);var h,g,v,b,e=D3(r,a),y=L3(c);h=r,g=e,v=y,b=a;let{rows:C,groupKeys:x,groupKeyToItems:w}=ft.useMemo(()=>{let r=[],n=[],o=new Map,a=(e,t)=>({type:"item",item:e,index:t,taggedKey:F3(v(e),"item")});return b?g.forEach((e,t)=>{o.set(t,e.map(({item:e})=>e)),n.push(t),r.push({type:"group",groupKey:t,taggedKey:F3(t,"group")}),e.forEach(({item:e,index:t})=>{r.push(a(e,t))})}):h.forEach((e,t)=>{r.push(a(e,t))}),{rows:r,groupKeys:n,groupKeyToItems:o}},[h,b,g,v]),S=ft.useMemo(()=>{let t=new Map,r;return C.forEach(e=>{"group"===e.type?r=e.groupKey:void 0!==r&&t.set(e.taggedKey,r)}),t},[C]),k=ht(o=>{var e,t;if(o&&"object"==typeof o)if("groupKey"in o)({groupKey:r,align:e,offset:t}=o),f.current?.scrollTo({key:F3(r,"group"),align:e,offset:t});else{if("key"in o){var r=F3(o.key,"item");let n=d&&a&&"bottom"!==o.align?S.get(r):void 0;return void 0===n?void f.current?.scrollTo({...o,key:r}):void f.current?.scrollTo({...o,key:r,offset:({getSize:e,align:t})=>{var r=o.offset??0;return"top"!==t?r:(e=(t=e(F3(n,"group"))).bottom-t.top,r+(Number.isFinite(e)?e:0))}})}f.current?.scrollTo(o)}else f.current?.scrollTo(o)});ft.useImperativeHandle(t,()=>({scrollTo:k}),[k]);e=V3({enabled:!(!d||!a),group:a,groupKeys:x,groupKeyToItems:w,prefixCls:s,listRef:f,headerClassName:p?.groupHeader,headerStyle:m?.groupHeader});let E=ft.useCallback(e=>{var t=w.get(e)||[];return ft.createElement(A3,{group:a,groupKey:e,groupItems:t,prefixCls:s,className:p?.groupHeader,style:m?.groupHeader})},[p?.groupHeader,a,w,s,m?.groupHeader]);return ft.createElement(fh,{ref:f,data:C,direction:u,fullHeight:!1,height:n,itemHeight:o,itemKey:"taggedKey",onScroll:i,prefixCls:s,virtual:!0,extraRender:e,className:p?.root,style:m?.root},e=>"group"===e.type?E(e.groupKey):ft.createElement("div",{className:vr(s+"-item",p?.item),style:m?.item},l(e.item,e.index)))}var q3=ft.forwardRef(X3);function G3(e,t){let{items:r,virtual:n=!0,prefixCls:o="rc-listy",...a}=e;e=ft.useMemo(()=>r||[],[r]),e={...a,data:e,prefixCls:o,ref:t};return n?ft.createElement(q3,e):ft.createElement(_3,e)}var Y3=(0,ft.forwardRef)(G3),U3=Be("Listy",e=>{var{componentCls:t,itemPaddingBlock:r,itemPaddingInline:n}=e;return{[t]:{...F(e),position:"relative",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,[t+"-item"]:{padding:(0,Qe.unit)(r)+" "+(0,Qe.unit)(n),borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit,transition:`background-color ${e.motionDurationMid} `+e.motionEaseInOut,"&:hover":{backgroundColor:e.controlItemBgHover}},[t+"-group-header"]:{boxSizing:"border-box",padding:(0,Qe.unit)(e.paddingXS)+" "+(0,Qe.unit)(n),color:e.colorTextDescription,fontWeight:e.fontWeightStrong,backgroundColor:e.colorBgContainer,backgroundImage:`linear-gradient(${e.colorFillAlter}, ${e.colorFillAlter})`,"&-sticky":{position:"sticky",top:0,insetInline:0,zIndex:1},"&-fixed":{position:"absolute",top:0,insetInline:0,transform:"translateY(0)",pointerEvents:"auto"},"&-holder":{position:"absolute",inset:0,overflow:"hidden",pointerEvents:"none"}},[t+"-group-section"]:{position:"relative"},[t+"-scrollbar"]:{zIndex:1,cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},"&-rtl":{direction:"rtl"}}}},e=>({itemPaddingBlock:e.paddingSM,itemPaddingInline:e.padding})),s=(e,t)=>{let{prefixCls:r,rootClassName:n,className:o,style:a,classNames:l,styles:i,virtual:s,...c}=e;var{getPrefixCls:d,direction:u,className:p,style:m,classNames:f,styles:h}=Fe("listy"),g=Re().useContext(Ue).virtual,d=d("listy",r),v=nl(d),[b,y]=U3(d,v),[,C]=so(),C={...C,...C.Listy},C=C.fontHeight+2*(C.itemPaddingBlock??C.paddingSM),m=We(m),x=We(a),[f,h]=je([f,l],[h,m,i,x],{props:e}),m=bt(p,f.root,n,o,b,y,v),x=s??g??!1;return Re().createElement(Y3,{...c,ref:t,prefixCls:d,direction:u,virtual:x,itemHeight:C,classNames:{...f,root:m},styles:h})},Q3=Re().forwardRef(s);var Z3=Re().forwardRef((e,t)=>{let{item:r,style:n,prefixCls:o,itemRender:a,className:l,index:i,column:s,onResize:c}=e;var e=o+"-item",d=(0,ft.useMemo)(()=>r.children??a?.({...r,index:i,column:s}),[r,a,s,i]);let u=Re().createElement("div",{ref:t,style:n,className:bt(e,l)},d);return u=c?Re().createElement(gr,{onResize:c},u):u}),J3=Be("Masonry",t=>{var e=t.componentCls,r=e+"-item";return{[e]:{position:"relative",boxSizing:"border-box",display:"flex",flexDirection:"column",flexWrap:"wrap","&-rtl":{direction:"rtl"},["& > "+r]:{boxSizing:"border-box","&-fade":{"&-appear":{transition:`opacity ${t.motionDurationSlow} `+t.motionEaseOut,opacity:0,"&-active":{opacity:1}},"&-leave":{transition:`opacity ${t.motionDurationFast} `+t.motionEaseOut,opacity:1,"&-active":{opacity:0}}},[`&:not(${r}-fade)`]:{transition:["left","right","top"].map(e=>`${e} ${t.motionDurationSlow} `+t.motionEaseOut).join(",")}}}}}),e$=ft.forwardRef((e,t)=>{let{rootClassName:r,className:n,style:o,classNames:a,styles:l,columns:i,prefixCls:s,gutter:c=0,items:d,itemRender:u,onLayoutChange:p,fresh:m}=e;var{getPrefixCls:f,direction:h,className:g,style:v,classNames:b,styles:y}=Fe("masonry");let C=f("masonry",s);var f=f(),x=nl(C),[x,w]=J3(C,x);let[S,k]=Q(f,"masonry"),E=ft.useRef(null),[H,A]=(ft.useImperativeHandle(t,()=>({nativeElement:E.current})),(()=>{let r=ft.useRef(null);return null===r.current&&(r.current=new Map),[(e,t)=>{r.current.set(e,t)},e=>r.current.get(e)]})()),[N,D]=ft.useState([]),I=(ft.useEffect(()=>{D(d||[])},[d]),Ig());f=$4(c,I);let[M=0,L=M]=f,$=ft.useMemo(()=>{var e;return i?Ma(i)?i:(e=Cg.find(e=>I[e]&&void 0!==i[e]))?i[e]:i.xs??1:3},[i,I]);t={...e,columns:$},f=We(v),e=We(o);let[R,P]=je([b,a],[y,f,l,e],{props:t}),[F,W]=ft.useState([]),z=(e=>{let t=ft.useRef(0),r=()=>{$e.cancel(t.current)};return ft.useEffect(()=>r,[]),ht(()=>{r(),t.current=$e(e)})})(()=>{let t=N.map((e,t)=>{var t=e.key??t,r=A(t)?.getBoundingClientRect();return[t,r?r.height:0,e.column]});W(e=>(0,Vt.A)(e,t)?e:t)}),[B,j]=((i,s,c)=>{var[e,t]=ft.useMemo(()=>{var t=new Array(s).fill(0),r=new Map;for(let e=0;e<i.length;e+=1){var[n,o,a]=i[e],a=a??t.indexOf(Math.min.apply(Math,Pe(t))),l=t[a=Math.min(a,s-1)];r.set(n,{column:a,top:l}),t[a]+=o+c}return[r,Math.max(0,Math.max.apply(Math,Pe(t))-c)]},[s,i,c]);return[e,t]})(F,$,L),T=ft.useMemo(()=>N.map((e,t)=>{var r=e.key??t;return{item:e,itemIndex:t,itemKey:r,key:r,position:B.get(r)}}),[N,B]),[O,_]=(ft.useEffect(()=>{z()},[N,$]),ft.useState([]));return gt(()=>{p&&T.every(({position:e})=>e)&&_(e=>{var t=T.map(({item:e,position:t})=>[e,t.column]);return(0,Vt.A)(e,t)?e:t})},[T]),gt(()=>{p&&d&&d.length===O.length&&p(O.map(([e,t])=>({...e,column:t})))},[O]),ft.createElement(gr,{onResize:z},ft.createElement("div",{ref:E,className:bt(C,g,R.root,r,n,x,w,{[C+"-rtl"]:"rtl"===h}),style:{height:j,...P.root},onLoad:z,onError:z},ft.createElement(Ea,{keys:T,component:!1,motionAppear:!0,motionLeave:!0,motionName:C+"-item-fade"},(e,t)=>{let{item:r,itemKey:n,position:o={},itemIndex:a,key:l,className:i,style:s}=e;var{column:e=0}=o,c={[S("item-width")]:`calc((100% + ${M}px) / ${$})`,insetInlineStart:`calc(${k("item-width")} * ${e})`,width:`calc(${k("item-width")} - ${M}px)`,top:o.top,position:"absolute"};return ft.createElement(Z3,{prefixCls:C,key:l,item:r,style:{...s,...P.item,...c},className:bt(R.item,i),ref:Ne(t,e=>H(n,e)),index:a,itemRender:u,column:e,onResize:m?z:null})})))});var t$=ft.createContext(null);var r$=function(e){let{notFoundContent:t,activeIndex:r,setActiveIndex:i,selectOption:n,onFocus:o,onBlur:a,onScroll:l}=Re().useContext(t$),{prefixCls:s,options:c,opened:d}=e,u=c[r]||{},p=(0,ft.useRef)(null);return(0,ft.useEffect)(()=>{var e;-1!==r&&p.current&&d&&(e=p.current?.findItem?.({key:u.key}))&&e.scrollIntoView({block:"nearest",inline:"nearest"})},[r,u.key,d]),Re().createElement(lb,{ref:p,prefixCls:s+"-menu",activeKey:u.key,onSelect:({key:t})=>{var e=c.find(({key:e})=>e===t);n(e)},onFocus:o,onBlur:a,onScroll:l},c.map((e,t)=>{let{key:r,disabled:n,className:o,style:a,label:l}=e;return Re().createElement(D0,{key:r,disabled:n,className:o,style:a,onMouseEnter:()=>{n||i(t)}},l)}),!c.length&&Re().createElement(D0,{disabled:!0},t))};let n$={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}};var o$=e=>{let{prefixCls:t,options:r,children:n,visible:o,transitionName:a,getPopupContainer:l,popupClassName:i,popupStyle:s,direction:c,placement:d,popupRender:u}=e;var e=t+"-dropdown",[p,m]=ft.useState(!1),p=ft.createElement(r$,{prefixCls:e,options:r,opened:p}),f=(0,ft.useMemo)(()=>{let e;return e="rtl"===c?"top"===d?"topLeft":"bottomLeft":"top"===d?"topRight":"bottomRight"},[c,d]),p=u?u(p):p;return ft.createElement(Cs,{prefixCls:e,popupVisible:o,popup:p,popupPlacement:f,popupMotion:{motionName:a},builtinPlacements:n$,getPopupContainer:l,popupClassName:i,popupStyle:s,afterOpenChange:m},n)};function a$(e){return(e||"").toLowerCase()}function l$(e,t){var{measureLocation:t,prefix:r,targetText:n,selectionStart:o,split:a}=t;let l=e.slice(0,t),i=(l=(l=l[l.length-a.length]===a?l.slice(0,l.length-a.length):l)&&""+l+a,((e,t,r)=>{var n=e[0];if(!n||n===r)return e;let o=e;var a=t.length;for(let e=0;e<a;e+=1){if(a$(o[e])!==a$(t[e])){o=o.slice(e);break}e===a-1&&(o=o.slice(a))}return o})(e.slice(o),n.slice(o-t-r.length),a));i.slice(0,a.length)===a&&(i=i.slice(a.length));e=""+l+r+n+a;return{text:e+i,selectionLocation:e.length}}let i$=ft.createContext({});function s$(){return(s$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let c$=(0,ft.forwardRef)((e,t)=>{let{prefixCls:r,className:H,style:n,classNames:o,styles:a,prefix:l="@",split:s=" ",notFoundContent:A="Not Found",value:D,defaultValue:L,children:i,options:c,allowClear:F,hasWrapper:W,silent:j,validateSearch:_=function(e,t){return!t||-1===e.indexOf(t)},filterOption:d=function(e,{value:t=""}){return e=e.toLowerCase(),-1!==t.toLowerCase().indexOf(e)},onChange:K,onKeyDown:V,onKeyUp:X,onPressEnter:u,onSearch:p,onSelect:q,onFocus:m,onBlur:G,transitionName:Y,placement:U,direction:Q,getPopupContainer:Z,popupClassName:J,rows:ee=1,visible:te,onPopupScroll:re,popupRender:ne,...oe}=e,f=(0,ft.useMemo)(()=>Array.isArray(l)?l:[l],[l]),h=(0,ft.useRef)(null),g=(0,ft.useRef)(null),v=(0,ft.useRef)(null),b=()=>g.current?.resizableTextArea?.textArea,[y,C]=(Re().useImperativeHandle(t,()=>({focus:()=>g.current?.focus(),blur:()=>g.current?.blur(),textarea:g.current?.resizableTextArea?.textArea,nativeElement:h.current})),(0,ft.useState)(!1)),[x,w]=(0,ft.useState)(""),[S,ae]=(0,ft.useState)(""),[le,ie]=(0,ft.useState)(0),[k,E]=(0,ft.useState)(0),[se,ce]=(0,ft.useState)(!1),N=kt(e.id),[I,de]=vt(L||"",D),ue=(0,ft.useContext)(i$).open,[M,$,R,P]=((0,ft.useEffect)(()=>{y&&v.current&&(v.current.scrollTop=b().scrollTop)},[y]),Re().useMemo(()=>{if(ue)for(let e=0;e<f.length;e+=1){var t=f[e],r=I.lastIndexOf(t);if(0<=r)return[!0,"",t,r]}return[y,x,S,le]},[ue,y,f,I,x,S,le])),z=Re().useCallback(t=>{let e;return(e=c&&0<c.length?c.map(e=>({...e,key:`${e?.key??e.value}-`+N})):ke(i).map(({props:e,key:t})=>({...e,label:e.children,key:`${t||e.value}-`+N}))).filter(e=>!1===d||d(t,e))},[c,N,i,d]),B=Re().useMemo(()=>z($),[z,$]),T=Re().useCallback((t,r=1)=>{var n=B.length;if(n)for(let e=0;e<n;e+=1){var o=(t+e*r+n)%n;if(!B[o]?.disabled)return o}return-1},[B]),pe=((0,ft.useEffect)(()=>{var e;!M||(e=B[k])&&!e.disabled||E(T(0))},[M,B,k,T,E]),(()=>{let[e,r]=(0,ft.useState)({id:0,callback:null});var t=(0,ft.useCallback)(t=>{r(({id:e})=>({id:e+1,callback:t}))},[]);return(0,ft.useEffect)(()=>{e.callback?.()},[e]),t})()),O=e=>{C(!1),ie(0),w(""),pe(e)},me=e=>{de(e),K?.(e)};let fe=t=>{if(t&&!t.disabled){var{value:n=""}=t;let{text:e,selectionLocation:r}=l$(I,{measureLocation:P,targetText:n,prefix:R,selectionStart:b()?.selectionStart,split:s});me(e),O(()=>{var e,t;e=b(),t=r,e.setSelectionRange(t,t),e.blur(),e.focus()}),q?.(t,R)}};let he=(0,ft.useRef)(void 0),ge=e=>{window.clearTimeout(he.current),!se&&e&&m&&m(e),ce(!0)},ve=e=>{he.current=window.setTimeout(()=>{ce(!1),O(),G?.(e)},0)};t=Re().useMemo(()=>{var e=a?.textarea?.resize??n?.resize,t={...a?.textarea};return void 0!==e&&(t.resize=e),{...a,textarea:t}},[n,a]),e=Re().createElement(Re().Fragment,null,Re().createElement(y2,s$({classNames:{textarea:o?.textarea},styles:t,ref:g,value:I},oe,{rows:ee,onChange:({target:{value:e}})=>{me(e)},onKeyDown:e=>{var t,r=e.which;if(V?.(e),M)if(r===Ce.UP||r===Ce.DOWN)B.length&&(t=r===Ce.UP?-1:1,-1!==(t=T(k+t,t))&&E(t),e.preventDefault());else if(r===Ce.ESC)O();else if(r===Ce.ENTER&&(e.preventDefault(),!j))if(B.length){let e=k;-1===(e=B[e]&&!B[e].disabled?e:T(0))?O():(E(e),fe(B[e]))}else O()},onKeyUp:e=>{var n,t,{key:r,which:o}=e,a=e.target,a=(l=a.selectionStart,a.value.slice(0,l)),{location:l,prefix:i}=(n=a,f.reduce((e,t)=>{var r=n.lastIndexOf(t);return r>e.location?{location:r,prefix:t}:e},{location:-1,prefix:""}));X?.(e),-1===[Ce.ESC,Ce.UP,Ce.DOWN,Ce.ENTER].indexOf(o)&&(-1!==l?(e=a.slice(l+i.length),a=_(e,s),t=!!z(e).length,a?(r===i||"Shift"===r||o===Ce.ALT||"AltGraph"===r||M||e!==$&&t)&&(o=e,r=i,t=l,C(!0),w(o),ae(r),ie(t),E(T(0))):M&&O(),p&&a&&p(e,i)):M&&O())},onPressEnter:e=>{!M&&u&&u(e)},onFocus:ge,onBlur:ve})),M&&Re().createElement("div",{ref:v,className:r+"-measure"},I.slice(0,P),Re().createElement(t$.Provider,{value:{notFoundContent:A,activeIndex:k,setActiveIndex:E,selectOption:fe,onFocus:()=>{ge()},onBlur:()=>{ve()},onScroll:e=>{re?.(e)}}},Re().createElement(o$,{prefixCls:r,transitionName:Y,placement:U,direction:Q,options:B,visible:!0,getPopupContainer:Z,popupClassName:bt(J,o?.popup),popupStyle:a?.popup,popupRender:ne},Re().createElement("span",null,R))),I.slice(P+R.length)));return W?e:Re().createElement("div",{className:bt(r,H),style:n,ref:h},e)});d=(0,ft.forwardRef)(({suffix:e,prefixCls:t="rc-mentions",defaultValue:r,value:n,id:o,allowClear:a,onChange:l,classNames:i,styles:s,className:c,disabled:d,onClear:u,...p},m)=>{var f=!(!e&&!a);let h=(0,ft.useRef)(null),g=(0,ft.useRef)(null),[v,b]=((0,ft.useImperativeHandle)(m,()=>({...g.current,nativeElement:h.current?.nativeElement||g.current?.nativeElement})),vt(r||"",n)),y=e=>{b(e),l?.(e)};return Re().createElement(a2,{suffix:e,prefixCls:t,value:v,allowClear:a,handleReset:()=>{y("")},className:bt(t,c,{[t+"-has-suffix"]:f}),classNames:i,disabled:d,ref:h,onClear:u},Re().createElement(c$,s$({className:i?.mentions,styles:s,classNames:i,prefixCls:t,id:o,ref:g,onChange:y,disabled:d,hasWrapper:f},p)))});d.Option=()=>null;var d$=d,u$=(e,t={})=>!Ia(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e];var p$=Be("Mentions",e=>{e=ze(e,AC(e));return[(e=>{var{componentCls:t,colorText:r,antCls:n,colorTextDisabled:o,calc:a}=e,[l,i]=Q(n,"cmp-mentions");return{[t]:[F(e),VE(e,{largeStyle:{padding:0},smallStyle:{padding:0}}),IE(e),HE(e),BE(e),WE(e),{[l("padding-inline")]:e.paddingInline,[l("padding-block")]:e.paddingBlock,[l("control-height")]:e.controlHeight,display:"flex",padding:0,whiteSpace:"pre-wrap","> textarea":[F(e),jE(e.colorTextPlaceholder),{background:"transparent",border:"none",borderRadius:"inherit",outline:"none",flex:"auto",minWidth:0,resize:"none","&:disabled":{color:o}}],[`> textarea, ${t}-measure`]:{color:r,boxSizing:"border-box",margin:0,minHeight:a(i("control-height")).sub(a(e.lineWidth).mul(2).equal()).equal(),paddingInline:i("padding-inline"),paddingBlock:i("padding-block"),overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},[t+"-measure"]:{position:"absolute",inset:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},[t+"-suffix"]:{display:"inline-flex",alignItems:"center",flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineEnd:i("padding-inline"),columnGap:e.marginXS,[t+"-clear-icon"]:{cursor:"pointer",border:0,background:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"}},[n+"-form-item-feedback-icon"]:{display:"inline-flex",alignItems:"center",justifyContent:"center"}}},{"&-has-suffix":{"> textarea":{paddingInlineEnd:a(e.paddingXXS).mul(1.5).add(e.fontSizeIcon).add(i("padding-inline")).equal()}}},{"&-disabled":{"> textarea":{...kE(e)}}},{"&-lg":{[l("padding-inline")]:e.paddingInlineLG,[l("padding-block")]:e.paddingBlockLG,[l("control-height")]:e.controlHeightLG},"&-sm":{[l("padding-inline")]:e.paddingInlineSM,[l("padding-block")]:e.paddingBlockSM,[l("control-height")]:e.controlHeightSM}}]}})(e),(e=>{var{componentCls:t,fontSize:r,paddingXXS:n,colorBgElevated:o,borderRadiusLG:a,boxShadowSecondary:l,itemPaddingVertical:i,controlPaddingHorizontal:s,colorText:c,borderRadius:d,lineHeight:u,colorTextDisabled:p,controlItemBgHover:m,motionDurationSlow:f}=e;return{[t]:{"&-dropdown":{...F(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:r,fontVariant:"initial",padding:n,backgroundColor:o,borderRadius:a,outline:"none",boxShadow:l,"&-hidden":{display:"none"},[t+"-dropdown-menu"]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{...an,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:(0,Qe.unit)(i)+" "+(0,Qe.unit)(s),color:c,borderRadius:d,fontWeight:"normal",lineHeight:u,cursor:"pointer",transition:`background-color ${f} ease`,"&:hover":{backgroundColor:m},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:m,cursor:"not-allowed"}},"&-selected":{color:c,fontWeight:e.fontWeightStrong,backgroundColor:m},"&-active":{backgroundColor:m}}}}}}})(e)]},e=>({...DC(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}));let m$=d$.Option;function f$(){return!0}var n=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,disabled:a,loading:l,filterOption:i,children:s,notFoundContent:c,options:d,status:u,allowClear:p,popupClassName:m,style:f,variant:h,classNames:g,styles:H,size:A,popupRender:D,...v}=e,[L,b]=ft.useState(!1);var y=ft.useRef(null),t=Ne(t,y),y=mc(e=>A??e),{getPrefixCls:C,direction:x,allowClear:w,className:S,style:k,classNames:E,styles:N}=Fe("mentions");let I=ft.useContext(Ue).renderEmpty;var{status:M,hasFeedback:$,feedbackIcon:R}=ft.useContext(ap),M=Ih(M,u),P=ft.useContext($s),P=a??P,C=C("mentions",r),e={...e,disabled:P,status:M,variant:h},k=We(k),z=We(f),[E,N]=je([E,g],[N,k,H,z],{props:e}),k=ft.useMemo(()=>void 0!==c?c:I?.("Select")||ft.createElement(Bh,{componentName:"Select"}),[c,I]),z=ft.useMemo(()=>l?ft.createElement(m$,{value:"ANTD_SEARCHING",disabled:!0},ft.createElement(z3,{size:"small"})):s,[l,s]),e=l?[{value:"ANTD_SEARCHING",disabled:!0,label:ft.createElement(z3,{size:"small"})}]:d,F=l?f$:i,w=x2({allowClear:p,contextAllowClear:w,defaultAllowClear:!1,componentName:"Mentions"}),B=nl(C),[T,O]=p$(C,B),[W,j]=Th("mentions",h),[_]=Cp("SelectLike",N.popup?.zIndex),$=$&&ft.createElement(ft.Fragment,null,R),R=bt(S,n,o,O,B,E.root,{[C+"-sm"]:"small"===y,[C+"-lg"]:"large"===y}),S=mg(D);return ft.createElement(d$,{silent:l,prefixCls:C,notFoundContent:k,className:R,disabled:P,allowClear:w,direction:x,style:N.root,popupRender:S,...v,filterOption:F,onFocus:(...e)=>{v.onFocus&&v.onFocus.apply(v,e),b(!0)},onBlur:(...e)=>{v.onBlur&&v.onBlur.apply(v,e),b(!1)},ref:t,options:e,suffix:$,styles:{textarea:N.textarea,popup:{...N.popup,zIndex:_},suffix:N.suffix},classNames:{textarea:bt(E.textarea),popup:bt(E.popup,m,o,T,O,B),suffix:E.suffix,mentions:bt({[C+"-disabled"]:P,[C+"-focused"]:L,[C+"-rtl"]:"rtl"===x},T),variant:bt({[C+"-"+W]:j},Nh(C,M)),affixWrapper:T}},z)}),l=(n.Option=m$,Fn(n,void 0,void 0,"mentions")),h$=(n._InternalPanelDoNotUseOrYouWillBeFired=l,n.getMentions=(e="",t={})=>{var{prefix:t="@",split:r=" "}=t;let o=u$(t);return e.split(r).reduce((e,t="")=>{let r=null;var n;return o.some(e=>t.slice(0,e.length)===e&&(r=e,!0)),null!==r&&(n={prefix:r,value:t.slice(r.length)}).value&&e.push(n),e},[])},n),a=e=>{var{items:e,classNames:t,style:r}=e,n=Fe("message").getPrefixCls;let a=n("message");var n=nl(a),[o,l]=fi(a,n);let i=a+"-notice";e=e.map(e=>{var{content:e,duration:t,key:r,type:n}=e,o=n?i+"-icon-"+n:void 0;return{key:r,duration:t,icon:gi(n),title:e,className:i+"-"+n,classNames:{wrapper:a+"-"+n,icon:o}}});return ft.createElement($l,{prefixCls:a,placement:"top",configList:e,className:bt(o,l,n),classNames:{...t,wrapper:t?.wrapper,title:t?.title},style:r,stack:!1})};let g$=null,v$=e=>e(),b$=[],y$={};function C$(){var{getContainer:e,duration:t,rtl:r,maxCount:n,top:o,stack:a}=y$;let l=e?.()||document.body;return{getContainer:()=>l,duration:t,rtl:r,maxCount:n,top:o,stack:a}}let x$=Re().forwardRef((e,t)=>{let{messageConfig:r,sync:n}=e;var e=(0,ft.useContext)(Ue).getPrefixCls,e=y$.prefixCls||e("message"),o=(0,ft.useContext)(jm);let[a,l]=wi({...r,prefixCls:e,...o.message});return Re().useImperativeHandle(t,()=>{let e={...a};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(n(),a[t].apply(a,e))}),{instance:e,sync:n}}),l}),w$=Re().forwardRef((e,t)=>{let[r,n]=Re().useState(C$);var o=()=>{n(C$)},a=(Re().useEffect(o,[]),Vs()),l=a.getRootPrefixCls(),i=a.getIconPrefixCls(),s=a.getTheme(),t=Re().createElement(x$,{ref:t,sync:o,messageConfig:r});return Re().createElement(qs,{prefixCls:l,iconPrefixCls:i,theme:s},a.holderRender?a.holderRender(t):t)}),S$=()=>{if(g$)g$.instance&&(b$.forEach(t=>{let{type:r,skipped:e}=t;if(!e)switch(r){case"open":v$(()=>{var e=g$.instance.open({...y$,...t.config});e?.then(t.resolve),t.setCloseFn(e)});break;case"destroy":v$(()=>{g$?.instance.destroy(t.key)});break;default:v$(()=>{var e=(e=g$.instance)[r].apply(e,Pe(t.args));e?.then(t.resolve),t.setCloseFn(e)})}}),b$=[]);else{let e=document.createDocumentFragment(),n={fragment:e};g$=n,void v$(()=>{sr(Re().createElement(w$,{ref:e=>{let{instance:t,sync:r}=e||{};Promise.resolve().then(()=>{!n.instance&&t&&(n.instance=t,n.sync=r,S$())})}}),e)})}};let k$={open:function(n){var e=vi(e=>{let t,r={type:"open",config:n,resolve:e,setCloseFn:e=>{t=e}};return b$.push(r),()=>{t?v$(()=>{t()}):r.skipped=!0}});return S$(),e},destroy:e=>{b$.push({type:"destroy",key:e}),S$()},config:function(e){y$={...y$,...e},v$(()=>{g$?.sync?.()})},useMessage:Si,_InternalPanelDoNotUseOrYouWillBeFired:Dn,_InternalListDoNotUseOrYouWillBeFired:a};["success","info","warning","error","loading"].forEach(t=>{k$[t]=(...e)=>{return n=t,o=e,Vs(),e=vi(e=>{let t,r={type:n,args:o,resolve:e,setCloseFn:e=>{t=e}};return b$.push(r),()=>{t?v$(()=>{t()}):r.skipped=!0}}),S$(),e;var n,o}});var E$=k$,o=Xm(e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:l,children:i,footer:s,style:c,classNames:d,styles:u,...p}=e;var m=ft.useContext(Ue).getPrefixCls,{className:f,style:h,classNames:g,styles:v}=Fe("modal"),b=m(),m=t||m("modal"),y=nl(b),[C,x]=pm(m,y),h=We(h),w=We(c),[g,v]=je([g,d],[v,h,u,w],{props:e}),h=m+"-confirm";let S={};return S=a?{closable:o??!1,title:"",footer:"",children:ft.createElement(vm,{...e,prefixCls:m,confirmPrefixCls:h,rootPrefixCls:b,content:i})}:{closable:o??!0,title:l,footer:null!==s&&ft.createElement(Up,{...e}),children:i},ft.createElement(Kd,{prefixCls:m,className:bt(C,m+"-pure-panel",a&&h,a&&h+"-"+a,r,f,x,y,g.root),style:v.root,...p,closeIcon:Yp(m,n),closable:o,classNames:g,styles:v,...S})});function N$(e){return Sm(km(e))}var i=fm,I$=(i.useModal=zm,i.info=function(e){return Sm(Em(e))},i.success=function(e){return Sm(Nm(e))},i.error=function(e){return Sm(Im(e))},i.warning=N$,i.warn=N$,i.confirm=function(e){return Sm(Mm(e))},i.destroyAll=function(){for(;Cm.length;){var e=Cm.pop();e&&e()}},i.config=function({rootPrefixCls:e}){xm=e},i._InternalPanelDoNotUseOrYouWillBeFired=o,i),e=e=>{var{items:e,classNames:t,placement:r="topRight",style:n}=e,o=Fe("notification").getPrefixCls,o=o("notification"),a=nl(o),[l,i]=ci(o,a);let s=o+"-notice";e=e.map(e=>{var{actions:e,description:t,duration:r,key:n,showProgress:o,title:a,type:l}=e,i=s+"-icon-"+l;return{key:n,actions:e,closable:{closeIcon:Tm(s)},description:t,duration:r,icon:Bm[l],showProgress:o,title:a,className:s+"-"+l,classNames:{icon:i}}});return ft.createElement($l,{prefixCls:o,placement:r,configList:e,className:bt(l,i,a),classNames:t,style:n,stack:!1})};let M$=null,$$=e=>e(),R$=[],P$={};function z$(){var{getContainer:e,rtl:t,maxCount:r,top:n,bottom:o,showProgress:a,pauseOnHover:l}=P$;let i=e?.()||document.body;return{getContainer:()=>i,rtl:t,maxCount:r,top:n,bottom:o,showProgress:a,pauseOnHover:l}}let B$=Re().forwardRef((e,t)=>{let{notificationConfig:r,sync:n}=e;var e=(0,ft.useContext)(Ue).getPrefixCls,e=P$.prefixCls||e("notification"),o=(0,ft.useContext)(jm);let[a,l]=Fm({...r,prefixCls:e,...o.notification});return Re().useEffect(n,[]),Re().useImperativeHandle(t,()=>{let e={...a};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(n(),a[t].apply(a,e))}),{instance:e,sync:n}}),l}),T$=Re().forwardRef((e,t)=>{let[r,n]=Re().useState(z$);var o=()=>{n(z$)},a=(Re().useEffect(o,[]),Vs()),l=a.getRootPrefixCls(),i=a.getIconPrefixCls(),s=a.getTheme(),t=Re().createElement(B$,{ref:t,sync:o,notificationConfig:r});return Re().createElement(qs,{prefixCls:l,iconPrefixCls:i,theme:s},a.holderRender?a.holderRender(t):t)}),O$=()=>{if(M$)M$.instance&&(R$.forEach(e=>{switch(e.type){case"open":$$(()=>{M$.instance.open({...P$,...e.config})});break;case"destroy":$$(()=>{M$?.instance?.destroy(e.key)})}}),R$=[]);else{let e=document.createDocumentFragment(),n={fragment:e};M$=n,void $$(()=>{sr(Re().createElement(T$,{ref:e=>{let{instance:t,sync:r}=e||{};Promise.resolve().then(()=>{!n.instance&&t&&(n.instance=t,n.sync=r,O$())})}}),e)})}};function H$(e){Vs();R$.push({type:"open",config:e}),O$()}let A$={open:H$,destroy:e=>{R$.push({type:"destroy",key:e}),O$()},config:function(e){P$={...P$,...e},$$(()=>{M$?.sync?.()})},useNotification:Wm,_InternalPanelDoNotUseOrYouWillBeFired:Wn,_InternalListDoNotUseOrYouWillBeFired:e};["success","info","warning","error"].forEach(t=>{A$[t]=e=>H$({...e,type:t})});var D$=A$,L$=Be("Popconfirm",e=>{var{componentCls:e,iconCls:t,antCls:r,zIndexPopup:n,colorText:o,colorWarning:a,marginXXS:l,marginXS:i,fontSize:s,fontWeightStrong:c,colorTextHeading:d}=e;return{[e]:{zIndex:n,[`&${r}-popover`]:{fontSize:s},[e+"-message"]:{marginBottom:i,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon`]:{color:a},[`> ${e}-message-icon `+t]:{fontSize:s,lineHeight:1,marginInlineEnd:i},[e+"-title"]:{fontWeight:c,color:d,"&:only-child":{fontWeight:"normal"}},[e+"-description"]:{marginTop:l,color:o}},[e+"-buttons"]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:i}}}}},e=>{e=e.zIndexPopupBase;return{zIndexPopup:e+60}},{resetStyle:!1});let F$=e=>{var{prefixCls:e,okButtonProps:t,cancelButtonProps:r,title:n,description:o,cancelText:a,okText:l,okType:i="primary",icon:s=ft.createElement(Xo,null),showCancel:c=!0,close:d,onConfirm:u,onCancel:p,onPopupClick:m,classNames:f,styles:h}=e,g=ft.useContext(Ue).getPrefixCls,[v]=nc("Popconfirm",Ei.default.Popconfirm),n=Pg(n),o=Pg(o);return ft.createElement("div",{className:e+"-inner-content",onClick:m},ft.createElement("div",{className:e+"-message"},s&&ft.createElement("span",{className:bt(e+"-message-icon",f?.icon),style:h?.icon},s),ft.createElement("div",{className:e+"-message-text"},Se(n)&&ft.createElement("div",{className:bt(e+"-title",f?.title),style:h?.title},n),Se(o)&&ft.createElement("div",{className:bt(e+"-description",f?.content),style:h?.content},o))),ft.createElement("div",{className:e+"-buttons"},c&&ft.createElement(Bd,{onClick:p,size:"small",...r},a||v?.cancelText),ft.createElement(Td,{buttonProps:{size:"small",...kc(i),...t},actionFn:u,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||v?.okText)))};var c=ft.forwardRef((t,e)=>{let{prefixCls:r,placement:n="top",trigger:o,okType:a="primary",icon:l=ft.createElement(Xo,null),children:i,overlayClassName:s,onOpenChange:c,overlayStyle:d,styles:u,arrow:p,classNames:m,disabled:f=!1,mouseEnterDelay:h,mouseLeaveDelay:g,...v}=t;var{getPrefixCls:b,className:y,style:C,classNames:x,styles:w,arrow:S,trigger:k,mouseEnterDelay:E,mouseLeaveDelay:N}=Fe("popconfirm");let[I,M]=vt(t.defaultOpen??!1,t.open);S=Xg(p,S),k=o||k||"click",E=h??E??.1,N=g??N??.1;let $=e=>{M(e),c?.(e)};var b=b("popconfirm",r),R={...t,placement:n,trigger:k,okType:a,overlayStyle:d,styles:u,classNames:m,mouseEnterDelay:E,mouseLeaveDelay:N},C=We(C),P=We(d),[x,w]=je([x,m],[w,C,u,P],{props:R}),C=bt(b,y,s,x.root);return L$(b),ft.createElement(sv,{arrow:S,...at(v,["title"]),trigger:k,placement:n,onOpenChange:e=>{f||$(e)},open:I,ref:e,mouseEnterDelay:E,mouseLeaveDelay:N,classNames:{root:C,container:x.container,arrow:x.arrow},styles:{root:w.root,container:w.container,arrow:w.arrow},content:ft.createElement(F$,{okType:a,icon:l,...t,prefixCls:b,close:()=>{$(!1)},onConfirm:e=>t.onConfirm?.call(void 0,e),onCancel:e=>{$(!1),t.onCancel?.call(void 0,e)},classNames:x,styles:w}),"data-popover-inject":!0},i)}),W$=(c._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,placement:r,className:n,style:o,...a}=e;e=ft.useContext(Ue).getPrefixCls,e=e("popconfirm",t);return L$(e),ft.createElement(iv,{placement:r,className:bt(e,n),style:o,content:ft.createElement(F$,{prefixCls:e,...a})})},c);let j$={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},_$=()=>{let e=(0,ft.useRef)([]),n=(0,ft.useRef)(null);return(0,ft.useEffect)(()=>{let t=Date.now(),r=!1;e.current.forEach(e=>{e&&(r=!0,(e=e.style).transitionDuration=".3s, .3s, .3s, .06s",n.current)&&t-n.current<100&&(e.transitionDuration="0s, 0s")}),r&&(n.current=Date.now())}),e.current};let K$=({bg:e,children:t})=>ft.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function V$(r,n){return Object.keys(r).map(e=>{var t=parseFloat(e),t=Math.floor(t*n)+"%";return r[e]+" "+t})}var X$=ft.forwardRef((e,t)=>{var{prefixCls:e,color:r,gradientId:n,radius:o,className:a,style:l,ptg:i,strokeLinecap:s,strokeWidth:c,size:d,gapDegree:u}=e,p=r&&"object"==typeof r,m=p?"#FFF":void 0,f=d/2,e=ft.createElement("circle",{className:bt(e+"-circle-path",a),r:o,cx:f,cy:f,stroke:m,strokeLinecap:s,strokeWidth:c,opacity:0===i?0:1,style:l,ref:t});return p?(a=n+"-conic",o=u?180+u/2+"deg":"0deg",f=V$(r,(360-u)/360),m=V$(r,1),s=`conic-gradient(from ${o}, ${f.join(", ")})`,c=`linear-gradient(to ${u?"bottom":"top"}, ${m.join(", ")})`,ft.createElement(ft.Fragment,null,ft.createElement("mask",{id:a},e),ft.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:`url(#${a})`},ft.createElement(K$,{bg:c},ft.createElement(K$,{bg:s}))))):e});let q$=100,G$=(e,t,r,n,o,a,l,i,s,c,d=0)=>{r=r/100*360*((360-a)/360),a=0===a?0:{bottom:0,top:180,left:90,right:-90}[l];let u=(100-n)/100*t;"round"===s&&100!==n&&(u+=c/2)>=t&&(u=t-.01);l=q$/2;return{stroke:"string"==typeof i?i:void 0,strokeDasharray:t+"px "+e,strokeDashoffset:u+d,transform:`rotate(${o+r+a}deg)`,transformOrigin:l+`px ${l}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var Y$=({id:e,loading:t})=>t?{indeterminateStyleProps:{transform:"rotate(0deg)",animation:(t=e+"-indeterminate-animate")+" 1s linear infinite"},indeterminateStyleAnimation:Re().createElement("style",null,`@keyframes ${t} {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}`)}:{indeterminateStyleProps:{},indeterminateStyleAnimation:null};function U$(){return(U$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Q$(e){e=e??[];return Array.isArray(e)?e:[e]}var Z$=e=>{let{id:t,prefixCls:i,classNames:s={},styles:c={},steps:r,strokeWidth:d,railWidth:n,gapDegree:u=0,gapPosition:p,railColor:m,strokeLinecap:o,style:a,className:l,strokeColor:f,percent:h,loading:g,...v}={...j$,...e};e=kt(t);let b=e+"-gradient",y=50-d/2,C=2*Math.PI*y,x=0<u?90+u/2:-90,w=C*((360-u)/360),{count:S,gap:k}="object"==typeof r?r:{count:r,gap:2},E=Q$(h),N=Q$(f);var I=N.find(e=>e&&"object"==typeof e);let M=I&&"object"==typeof I?"butt":o,{indeterminateStyleProps:$,indeterminateStyleAnimation:R}=Y$({id:e,loading:g});I=G$(C,w,0,100,x,u,p,m,M,d);let P=_$();return ft.createElement("svg",U$({className:bt(i+"-circle",s.root,l),viewBox:"0 0 100 100",style:{...c.root,...a},id:t,role:"presentation"},v),!S&&ft.createElement("circle",{className:bt(i+"-circle-rail",s.rail),r:y,cx:50,cy:50,stroke:m,strokeLinecap:M,strokeWidth:n||d,style:{...I,...c.rail}}),(S?()=>{let o=Math.round(S*(E[0]/100)),a=100/S,l=0;return new Array(S).fill(null).map((e,t)=>{var r=t<=o-1?N[0]:m,n=r&&"object"==typeof r?`url(#${b})`:void 0,r=G$(C,w,l,a,x,u,p,r,"butt",d,k);return l+=100*(w-r.strokeDashoffset+k)/w,ft.createElement("circle",{key:t,className:bt(i+"-circle-path",s.track),r:y,cx:50,cy:50,stroke:n,strokeWidth:d,opacity:1,style:{...r,...c.track},ref:e=>{P[t]=e}})})}:()=>{let o=0;return E.map((e,t)=>{var r=N[t]||N[N.length-1],n=G$(C,w,o,e,x,u,p,r,M,d);return o+=e,ft.createElement(X$,{key:t,color:r,ptg:e,radius:y,prefixCls:i,gradientId:b,className:s.track,style:{...n,...$,...c.track},strokeLinecap:M,strokeWidth:d,gapDegree:u,ref:e=>{P[t]=e},size:100})}).reverse()})(),R)};function J$(e){return!e||e<0?0:100<e?100:e}function e6({success:e}){let t;return t=e&&"percent"in e?e.percent:t}let t6=({percent:e,success:t})=>{t=J$(e6({success:t}));return[t,J$(J$(e)-t)]},r6=({success:e={},strokeColor:t})=>{e=e.strokeColor;return[e||An.green,t||null]},n6=(e,t,r)=>{let n=-1,o=-1;var a;return"step"===t?(a=r.steps,"string"==typeof e||void 0===e?(n="small"===e?2:14,o=r.strokeWidth??8):Ma(e)?[n,o]=[e,e]:[n=14,o=8]=Array.isArray(e)?e:[e.width,e.height],n*=a):"line"===t?(a=r?.strokeWidth,"string"==typeof e||void 0===e?o=a||("small"===e?6:8):Ma(e)?[n,o]=[e,e]:[n=-1,o=8]=Array.isArray(e)?e:[e.width,e.height]):"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[n,o]="small"===e?[60,60]:[120,120]:Ma(e)?[n,o]=[e,e]:Array.isArray(e)&&(n=e[0]??e[1]??120,o=e[0]??e[1]??120)),[n,o]},o6=3,a6=e=>o6/e*100,l6=["root","body","indicator"];var i6=e=>{let{prefixCls:t,classNames:r,styles:n,railColor:o,trailColor:a,strokeLinecap:l="round",gapPosition:i,gapPlacement:s,gapDegree:c,width:d=120,type:u,children:p,success:m,size:f=d,steps:h}=e,g=Fe("progress").direction;var v=o??a,[b,y]=n6(f,"circle");let C=e.strokeWidth;void 0===C&&(C=Math.max(a6(b),6));var y={width:b,height:y,fontSize:.15*b+6},x=ft.useMemo(()=>c||0===c?c:"dashboard"===u?75:void 0,[c,u]),w=t6(e),S=ft.useMemo(()=>{var e=(s??i)||("dashboard"===u?"bottom":void 0),t="rtl"===g;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[g,s,i,u]),k=Ze(e.strokeColor),e=r6({success:m,strokeColor:e.strokeColor}),k=bt(t+"-body",{[t+"-circle-gradient"]:k},r.body),w=ft.createElement(Z$,{steps:h,percent:h?w[1]:w,strokeWidth:C,railWidth:C,strokeColor:h?e[1]:e,strokeLinecap:l,railColor:v,prefixCls:t,gapDegree:x,gapPosition:S,classNames:at(r,l6),styles:at(n,l6)}),e=b<=20,v=ft.createElement("div",{className:k,style:{...y,...n.body}},w,!e&&p);return e?ft.createElement(rv,{title:p},v):v};let s6="--progress-line-stroke-color",c6=e=>{var t=e?"100%":"-100%";return new Qe.Keyframes(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})};var d6=Be("Progress",e=>{var t,r=e.calc(e.marginXXS).div(2).equal(),e=ze(e,{progressStepMarginInlineEnd:r,progressStepMinWidth:r,progressActiveMotionDuration:"2.4s"});return[(e=>{var{componentCls:t,iconCls:r}=e;return{[t]:{...F(e),display:"inline-flex","&-rtl":{direction:"rtl"},[t+"-indicator"]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[t+"-indicator"]:{color:e.colorError}},[`&${t}-status-success`]:{[t+"-indicator"]:{color:e.colorSuccess}}}}})(e),{[(t=(r=e).componentCls)+"-line"]:{position:"relative",width:"100%",fontSize:r.fontSize,[t+"-body"]:{display:"inline-flex",alignItems:"center",width:"100%",gap:r.marginXS},[t+"-rail"]:{flex:"auto",background:r.remainingColor,borderRadius:r.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[t+"-track:after"]:{content:'""',position:"absolute",inset:0,backgroundColor:r.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:c6(),animationDuration:r.progressActiveMotionDuration,animationTimingFunction:r.motionEaseOutQuint,animationIterationCount:"infinite"}},[t+"-track"]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:r.defaultColor,transition:`all ${r.motionDurationSlow} `+r.motionEaseInOutCirc,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:r.colorSuccess}},[`&${t}-status-exception`]:{[t+"-track"]:{background:r.colorError}},[`&${t}-status-success`]:{[t+"-track"]:{background:r.colorSuccess}},[t+"-indicator-outer"]:{[`&${t}-indicator-start`]:{order:-1}},[t+"-body-layout-bottom"]:{flexDirection:"column",alignItems:"center",gap:r.marginXXS},[t+`-indicator${t}-indicator-inner`]:{color:r.colorWhite,paddingInline:r.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},(e=>{var{componentCls:t,iconCls:r}=e;return{[t+"-circle"]:{[t+"-circle-rail"]:{stroke:e.remainingColor},[t+`-body:not(${t}-circle-gradient)`]:{[t+"-circle-path"]:{stroke:e.defaultColor}},[t+"-body"]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[t+"-indicator"]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[t+`-body:not(${t}-circle-gradient)`]:{[t+"-circle-path"]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[t+`-body:not(${t}-circle-gradient)`]:{[t+"-circle-path"]:{stroke:e.colorSuccess}}}},[t+"-inline-circle"]:{lineHeight:1,[t+"-inner"]:{verticalAlign:"bottom"}}}})(e),{[r=e.componentCls]:{[r+"-steps"]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[r+"-indicator"]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:"all "+e.motionDurationSlow,"&-active":{backgroundColor:e.defaultColor}}}}},(e=>{var{componentCls:t,iconCls:r}=e;return{[t]:{[t+`-small&-line, ${t}-small&-line ${t}-indicator `+r]:{fontSize:e.fontSizeSM}}}})(e)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}));let u6=r=>{let n=[];return Object.keys(r).forEach(e=>{var t=Number.parseFloat(e.replace(/%/g,""));Number.isNaN(t)||n.push({key:t,value:r[e]})}),(n=n.sort((e,t)=>e.key-t.key)).map(({key:e,value:t})=>t+` ${e}%`).join(", ")},p6=(e,t)=>{let{from:r=An.blue,to:n=An.blue,direction:o="rtl"===t?"to left":"to right",...a}=e;if(0!==Object.keys(a).length){let e=`linear-gradient(${o}, ${u6(a)})`;return{background:e,[s6]:e}}let l=`linear-gradient(${o}, ${r}, ${n})`;return{background:l,[s6]:l}};var m6=e=>{var{prefixCls:t,classNames:r,styles:n,direction:o,percent:a,size:l,strokeWidth:i,strokeColor:s,strokeLinecap:c="round",children:d,railColor:u,trailColor:p,percentPosition:m,success:f}=e,{align:m,type:h}=m,u=u??p,p="square"===c||"butt"===c?0:void 0,c=l??[-1,i||("small"===l?6:8)],[l,c]=n6(c,"line",{strokeWidth:i}),i={backgroundColor:u||void 0,borderRadius:p,height:c},u=t+"-track",o=s&&"string"!=typeof s?p6(s,o):{[s6]:s,background:s},s={width:J$(a)+"%",height:c,borderRadius:p,...o},a=e6(e),o={width:J$(a)+"%",height:c,borderRadius:p,backgroundColor:f?.strokeColor};return ft.createElement("div",{className:bt(t+"-body",r.body,{[t+"-body-layout-bottom"]:"center"===m&&"outer"===h}),style:{width:0<l?l:"100%",...n.body}},ft.createElement("div",{className:bt(t+"-rail",r.rail),style:{...i,...n.rail}},ft.createElement("div",{className:bt(u,r.track),style:{...s,...n.track}},"inner"===h&&d),void 0!==a&&ft.createElement("div",{className:bt(u,u+"-success",r.track),style:{...o,...n.track}})),"outer"===h&&d)},f6=e=>{var{classNames:t,styles:r,size:e,steps:n,rounding:o=Math.round,percent:a=0,strokeWidth:l=8,strokeColor:i,railColor:s,trailColor:c,prefixCls:d,children:u}=e,p=o(n*(a/100)),o=e??["small"===e?2:14,l],[a,m]=n6(o,"step",{steps:n,strokeWidth:l}),f=a/n,h=Array.from({length:n}),g=s??c;for(let e=0;e<n;e++){var v=Array.isArray(i)?i[e]:i;h[e]=ft.createElement("div",{key:e,className:bt(d+"-steps-item",{[d+"-steps-item-active"]:e<=p-1},t.track),style:{backgroundColor:e<=p-1?v:g,width:f,height:m,...r.track}})}return ft.createElement("div",{className:bt(d+"-steps-body",t.body),style:r.body},h,u)};let h6=["normal","exception","active","success"];var g6=ft.forwardRef((o,e)=>{let{prefixCls:t,className:r,rootClassName:n,classNames:a,styles:l,steps:i,strokeColor:s,percent:c=0,size:d="medium",showInfo:u=!0,type:p="line",status:m,format:f,style:h,percentPosition:g={},...v}=o,{align:b="end",type:y="outer"}=g,C=Array.isArray(s)?s[0]:s;var x="string"==typeof s||Array.isArray(s)?s:void 0;let w=ft.useMemo(()=>{var e;return!!C&&(e="string"==typeof C?C:Object.values(C)[0],new kn(e).isLight())},[s]),S=ft.useMemo(()=>{var e=e6(o);return Number.parseInt((void 0!==e?e??0:c??0)?.toString(),10)},[c,o.success]),k=ft.useMemo(()=>!h6.includes(m)&&100<=S?"success":m||"normal",[m,S]);var{getPrefixCls:E,direction:N,className:H,style:I,classNames:M,styles:$}=Fe("progress");let R=E("progress",t);var[E,A]=d6(R),D={...o,percent:c,type:p,size:d,showInfo:u,percentPosition:g},I=We(I),L=We(h);let[P,z]=je([M,a],[$,I,l,L],{props:D}),B="line"===p,T=B&&!i;M=ft.useMemo(()=>{if(!u)return null;var e=e6(o);let t;var r=f||(e=>e+"%"),n=B&&w&&"inner"===y;return"inner"===y||f||"exception"!==k&&"success"!==k?t=r(J$(c),J$(e)):"exception"===k?t=B?ft.createElement(jo,null):ft.createElement(Ko,null):"success"===k&&(t=B?ft.createElement(Fo,null):ft.createElement(ig,null)),ft.createElement("span",{className:bt(R+"-indicator",{[R+"-indicator-bright"]:n,[R+"-indicator-"+b]:T,[R+"-indicator-"+y]:T},P.indicator),style:z.indicator,title:"string"==typeof t?t:void 0},t)},[u,c,S,k,p,R,f,B,w,y,b,T,P.indicator,z.indicator]),$={...o,classNames:P,styles:z};let O;"line"===p?O=i?ft.createElement(f6,{...$,strokeColor:x,prefixCls:R,steps:Ze(i)?i.count:i},M):ft.createElement(m6,{...$,strokeColor:C,prefixCls:R,direction:N,percentPosition:{align:b,type:y}},M):"circle"!==p&&"dashboard"!==p||(O=ft.createElement(i6,{...$,strokeColor:C,prefixCls:R,progressStatus:k},M));I=bt(R,R+"-status-"+k,{[R+"-"+("dashboard"===p?"circle":p)]:"line"!==p,[R+"-inline-circle"]:"circle"===p&&n6(d,"circle")[0]<=20,[R+"-line"]:T,[R+"-line-align-"+b]:T,[R+"-line-position-"+y]:T,[R+"-steps"]:i,[R+"-show-info"]:u,[R+"-small"]:"small"===d,[R+"-rtl"]:"rtl"===N},H,r,n,P.root,E,A);return ft.createElement("div",{ref:e,style:z.root,className:I,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100,...at(v,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},O)});function v6(t,r,n){if(r<0||31<r||t>>>r!=0)throw new RangeError("Value out of range");for(let e=r-1;0<=e;e--)n.push(t>>>e&1)}function b6(e,t){return 0!=(e>>>t&1)}function y6(e){if(!e)throw new Error("Assertion error")}class C6{static#_=(y(this,"NUMERIC",new C6(1,[10,12,14])),y(this,"ALPHANUMERIC",new C6(2,[9,11,13])),y(this,"BYTE",new C6(4,[8,16,16])),y(this,"KANJI",new C6(8,[8,10,12])),void y(this,"ECI",new C6(7,[0,0,0])));modeBits;numBitsCharCount;constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}class x6{static#_=(y(this,"LOW",new x6(0,1)),y(this,"MEDIUM",new x6(1,0)),y(this,"QUARTILE",new x6(2,3)),void y(this,"HIGH",new x6(3,2)));ordinal;formatBits;constructor(e,t){this.ordinal=e,this.formatBits=t}}class w6{static makeBytes(e){var t,r=[];for(t of e)v6(t,8,r);return new w6(C6.BYTE,e.length,r)}static makeNumeric(t){if(!w6.isNumeric(t))throw new RangeError("String contains non-numeric characters");var r=[];for(let e=0;e<t.length;){var n=Math.min(t.length-e,3);v6(parseInt(t.substring(e,e+n),10),3*n+1,r),e+=n}return new w6(C6.NUMERIC,t.length,r)}static makeAlphanumeric(e){if(!w6.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[];let r;for(r=0;r+2<=e.length;r+=2){var n=45*w6.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r));v6(n+=w6.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),11,t)}return r<e.length&&v6(w6.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new w6(C6.ALPHANUMERIC,e.length,t)}static makeSegments(e){return""==e?[]:w6.isNumeric(e)?[w6.makeNumeric(e)]:w6.isAlphanumeric(e)?[w6.makeAlphanumeric(e)]:[w6.makeBytes(w6.toUtf8ByteArray(e))]}static makeEci(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)v6(e,8,t);else if(e<16384)v6(2,2,t),v6(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");v6(6,3,t),v6(e,21,t)}return new w6(C6.ECI,0,t)}static isNumeric(e){return w6.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return w6.ALPHANUMERIC_REGEX.test(e)}mode;numChars;bitData;constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(var n of e){var o=n.mode.numCharCountBits(t);if(n.numChars>=1<<o)return 1/0;r+=4+o+n.bitData.length}return r}static toUtf8ByteArray(e){var t=encodeURI(e),r=[];for(let e=0;e<t.length;e++)"%"!=t.charAt(e)?r.push(t.charCodeAt(e)):(r.push(parseInt(t.substring(e+1,e+3),16)),e+=2);return r}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/;static ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"}class S6{static encodeText(e,t){e=w6.makeSegments(e);return S6.encodeSegments(e,t)}static encodeBinary(e,t){e=w6.makeBytes(e);return S6.encodeSegments([e],t)}static encodeSegments(t,r,e=1,n=40,o=-1,a=!0){if(!(S6.MIN_VERSION<=e&&e<=n&&n<=S6.MAX_VERSION)||o<-1||7<o)throw new RangeError("Invalid value");let l,i;for(l=e;;l++){let e=8*S6.getNumDataCodewords(l,r);var s=w6.getTotalBits(t,l);if(s<=e){i=s;break}if(l>=n)throw new RangeError("Data too long")}let c=r;for(var d of[x6.MEDIUM,x6.QUARTILE,x6.HIGH])a&&i<=8*S6.getNumDataCodewords(l,d)&&(c=d);var u,p=[];for(u of t){v6(u.mode.modeBits,4,p),v6(u.numChars,u.mode.numCharCountBits(l),p);for(var m of u.getData())p.push(m)}y6(p.length==i);let f=8*S6.getNumDataCodewords(l,c);y6(p.length<=f),v6(0,Math.min(4,f-p.length),p),v6(0,(8-p.length%8)%8,p),y6(p.length%8==0);for(let e=236;p.length<f;e^=253)v6(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach((e,t)=>{h[t>>>3]|=e<<7-(7&t)}),new S6(l,c,h,o)}size;mask;modules=[];isFunction=[];version;errorCorrectionLevel;constructor(e,t,r,n){let o=n;if(this.version=e,this.errorCorrectionLevel=t,e<S6.MIN_VERSION||e>S6.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||7<o)throw new RangeError("Mask value out of range");this.size=4*e+17;var a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();n=this.addEccAndInterleave(r);if(this.drawCodewords(n),-1==o){let t=1e9;for(let e=0;e<8;e++){this.applyMask(e),this.drawFormatBits(e);var l=this.getPenaltyScore();l<t&&(o=e,t=l),this.applyMask(e)}}y6(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);var r=this.getAlignmentPatternPositions(),n=r.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0==t&&0==e||0==t&&e==n-1||t==n-1&&0==e||this.drawAlignmentPattern(r[t],r[e]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){e=this.errorCorrectionLevel.formatBits<<3|e;let t=e;for(let e=0;e<10;e++)t=t<<1^1335*(t>>>9);var r=21522^(e<<10|t);y6(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,b6(r,e));this.setFunctionModule(8,7,b6(r,6)),this.setFunctionModule(8,8,b6(r,7)),this.setFunctionModule(7,8,b6(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,b6(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,b6(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,b6(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(!(this.version<7)){let t=this.version;for(let e=0;e<12;e++)t=t<<1^7973*(t>>>11);var r=this.version<<12|t;y6(r>>>18==0);for(let e=0;e<18;e++){var n=b6(r,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}}drawFinderPattern(r,n){for(let t=-4;t<=4;t++)for(let e=-4;e<=4;e++){var o=Math.max(Math.abs(e),Math.abs(t)),a=r+e,l=n+t;0<=a&&a<this.size&&0<=l&&l<this.size&&this.setFunctionModule(a,l,2!=o&&4!=o)}}drawAlignmentPattern(r,n){for(let t=-2;t<=2;t++)for(let e=-2;e<=2;e++)this.setFunctionModule(r+e,n+t,1!=Math.max(Math.abs(e),Math.abs(t)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(r){var e=this.version,t=this.errorCorrectionLevel;if(r.length!=S6.getNumDataCodewords(e,t))throw new RangeError("Invalid argument");var n=S6.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e];let o=S6.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e];t=Math.floor(S6.getNumRawDataModules(e)/8);let a=n-t%n,l=Math.floor(t/n);var i=[],s=S6.reedSolomonComputeDivisor(o);for(let e=0,t=0;e<n;e++){var c=r.slice(t,t+l-o+(e<a?0:1)),d=(t+=c.length,S6.reedSolomonComputeRemainder(c,s));e<a&&c.push(0),i.push(c.concat(d))}let u=[];for(let r=0;r<i[0].length;r++)i.forEach((e,t)=>{(r!=l-o||t>=a)&&u.push(e[r])});return y6(u.length==t),u}drawCodewords(n){if(n.length!=Math.floor(S6.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let r=this.size-1;1<=r;r-=2){6==r&&(r=5);for(let t=0;t<this.size;t++)for(let e=0;e<2;e++){var a=r-e,l=0==(r+1&2)?this.size-1-t:t;!this.isFunction[l][a]&&o<8*n.length&&(this.modules[l][a]=b6(n[o>>>3],7-(7&o)),o++)}}y6(o==8*n.length)}applyMask(n){if(n<0||7<n)throw new RangeError("Mask value out of range");for(let r=0;r<this.size;r++)for(let t=0;t<this.size;t++){let e;switch(n){case 0:e=(t+r)%2==0;break;case 1:e=r%2==0;break;case 2:e=t%3==0;break;case 3:e=(t+r)%3==0;break;case 4:e=(Math.floor(t/3)+Math.floor(r/2))%2==0;break;case 5:e=t*r%2+t*r%3==0;break;case 6:e=(t*r%2+t*r%3)%2==0;break;case 7:e=((t+r)%2+t*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][t]&&e&&(this.modules[r][t]=!this.modules[r][t])}}getPenaltyScore(){let o=0;for(let n=0;n<this.size;n++){let t=!1,r=0;var a=[0,0,0,0,0,0,0];for(let e=0;e<this.size;e++)this.modules[n][e]==t?5==++r?o+=S6.PENALTY_N1:5<r&&o++:(this.finderPenaltyAddHistory(r,a),t||(o+=this.finderPenaltyCountPatterns(a)*S6.PENALTY_N3),t=this.modules[n][e],r=1);o+=this.finderPenaltyTerminateAndCount(t,r,a)*S6.PENALTY_N3}for(let n=0;n<this.size;n++){let t=!1,r=0;var l=[0,0,0,0,0,0,0];for(let e=0;e<this.size;e++)this.modules[e][n]==t?5==++r?o+=S6.PENALTY_N1:5<r&&o++:(this.finderPenaltyAddHistory(r,l),t||(o+=this.finderPenaltyCountPatterns(l)*S6.PENALTY_N3),t=this.modules[e][n],r=1);o+=this.finderPenaltyTerminateAndCount(t,r,l)*S6.PENALTY_N3}for(let t=0;t<this.size-1;t++)for(let e=0;e<this.size-1;e++){var r=this.modules[t][e];r==this.modules[t][e+1]&&r==this.modules[t+1][e]&&r==this.modules[t+1][e+1]&&(o+=S6.PENALTY_N2)}let e=0;for(var t of this.modules)e=t.reduce((e,t)=>e+(t?1:0),e);var n=this.size*this.size,n=Math.ceil(Math.abs(20*e-10*n)/n)-1;return y6(0<=n&&n<=9),y6(0<=(o+=n*S6.PENALTY_N4)&&o<=2568888),o}getAlignmentPatternPositions(){if(1==this.version)return[];var t=Math.floor(this.version/7)+2,r=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*t-2)),n=[6];for(let e=this.size-7;n.length<t;e-=r)n.splice(1,0,e);return n}static getNumRawDataModules(e){if(e<S6.MIN_VERSION||e>S6.MAX_VERSION)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;var r;return 2<=e&&(r=Math.floor(e/7)+2,t-=(25*r-10)*r-55,7<=e)&&(t-=36),y6(208<=t&&t<=29648),t}static getNumDataCodewords(e,t){return Math.floor(S6.getNumRawDataModules(e)/8)-S6.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*S6.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}static reedSolomonComputeDivisor(t){if(t<1||255<t)throw new RangeError("Degree out of range");var r=[];for(let e=0;e<t-1;e++)r.push(0);r.push(1);let n=1;for(let e=0;e<t;e++){for(let e=0;e<r.length;e++)r[e]=S6.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=S6.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,t){let n=t.map(()=>0);for(var o of e){let r=o^n.shift();n.push(0),t.forEach((e,t)=>{n[t]^=S6.reedSolomonMultiply(e,r)})}return n}static reedSolomonMultiply(t,r){if(t>>>8!=0||r>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let e=7;0<=e;e--)n=n<<1^285*(n>>>7),n^=(r>>>e&1)*t;return y6(n>>>8==0),n}finderPenaltyCountPatterns(e){var t=e[1],r=(y6(t<=3*this.size),0<t&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t);return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){let n=t;return e&&(this.finderPenaltyAddHistory(n,r),n=0),n+=this.size,this.finderPenaltyAddHistory(n,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){let r=e;0==t[0]&&(r+=this.size),t.pop(),t.unshift(r)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]}let k6={L:x6.LOW,M:x6.MEDIUM,Q:x6.QUARTILE,H:x6.HIGH};let E6=4,N6=0,I6=.1,M6=(e,a=0)=>{let l=[];return e.forEach((r,n)=>{let o=null;r.forEach((e,t)=>{if(e||null===o)return t===r.length-1?e?void(null===o?l.push(`M${t+a},${n+a} h1v1H${t+a}z`):l.push(`M${o+a},${n+a} h${t+1-o}v1H${o+a}z`)):void 0:void(e&&null===o&&(o=t));l.push(`M${o+a} ${n+a}h${t-o}v1H${o+a}z`),o=null})}),l.join("")},$6=(e,r)=>e.slice().map((e,t)=>t<r.y||t>=r.y+r.h?e:e.map((e,t)=>(t<r.x||t>=r.x+r.w)&&e)),R6=(e,t,r,n)=>{if(null==n)return null;var o,a,l,i,r=e.length+2*r,s=Math.floor(t*I6),r=r/t,t=(n.width||s)*r,s=(n.height||s)*r,c=null==n.x?e.length/2-t/2:n.x*r,e=null==n.y?e.length/2-s/2:n.y*r,r=null==n.opacity?1:n.opacity;let d=null;return n.excavate&&(o=Math.floor(c),a=Math.floor(e),l=Math.ceil(t+c-o),i=Math.ceil(s+e-a),d={x:o,y:a,w:l,h:i}),{x:c,y:e,h:s,w:t,excavation:d,opacity:r,crossOrigin:n.crossOrigin}},P6=(e,t)=>null!=t?Math.max(Math.floor(t),0):e?E6:N6,z6=(()=>{try{(new Path2D).addPath(new Path2D)}catch{return!1}return!0})(),B6=e=>{let{value:t,level:r,minVersion:n,includeMargin:o,marginSize:a,imageSettings:l,size:i,boostLevel:s}=e,c=Re().useMemo(()=>{var e=(Array.isArray(t)?t:[t]).reduce((e,t)=>(e.push(...w6.makeSegments(t)),e),[]);return S6.encodeSegments(e,k6[r],n,void 0,void 0,s)},[t,r,n,s]);return Re().useMemo(()=>{var e=c.getModules(),t=P6(o,a);return{cells:e,margin:t,numCells:e.length+2*t,calculatedImageSettings:R6(e,i,t,l),qrcode:c}},[c,i,l,o,a])},T6=Re().forwardRef((e,t)=>{let{value:r,size:l=128,level:n="L",bgColor:i="#FFFFFF",fgColor:s="#000000",includeMargin:o=!1,minVersion:a=1,marginSize:c,style:d,imageSettings:u,boostLevel:p,...m}=e;e=u?.src;let f=Re().useRef(null),h=Re().useRef(null);var g=Re().useCallback(e=>{f.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);let[,v]=Re().useState(!1),{margin:b,cells:y,numCells:C,calculatedImageSettings:x}=B6({value:r,level:n,minVersion:a,includeMargin:o,marginSize:c,imageSettings:u,size:l,boostLevel:p});Re().useEffect(()=>{if(f.current){var t=f.current;let n=t.getContext("2d");if(n){let e=y;var r=h.current,o=null!=x&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth,a=(o&&null!=x.excavation&&(e=$6(y,x.excavation)),window.devicePixelRatio||1),t=(t.height=t.width=l*a,l/C*a);n.scale(t,t),n.fillStyle=i,n.fillRect(0,0,C,C),n.fillStyle=s,z6?n.fill(new Path2D(M6(e,b))):y.forEach((e,r)=>{e.forEach((e,t)=>{e&&n.fillRect(t+b,r+b,1,1)})}),x&&(n.globalAlpha=x.opacity),o&&n.drawImage(r,x.x+b,x.y+b,x.w,x.h)}}}),Re().useEffect(()=>{v(!1)},[e]);var w={height:l,width:l,...d};let S=null;return null!=e&&(S=Re().createElement("img",{alt:"QR-Code",src:e,key:e,style:{display:"none"},onLoad:()=>{v(!0)},ref:h,crossOrigin:x?.crossOrigin})),Re().createElement(Re().Fragment,null,Re().createElement("canvas",od({style:w,height:l,width:l,ref:g,role:"img"},m)),S)}),O6=Re().forwardRef((e,t)=>{let{value:r,size:n=128,level:o="L",bgColor:a="#FFFFFF",fgColor:l="#000000",includeMargin:i=!1,minVersion:s=1,title:c,marginSize:d,imageSettings:u,boostLevel:p,...m}=e;var{margin:e,cells:f,numCells:h,calculatedImageSettings:g}=B6({value:r,level:o,minVersion:s,includeMargin:i,marginSize:d,imageSettings:u,size:n,boostLevel:p});let v=f,b=null;null!=u&&null!=g&&(null!=g.excavation&&(v=$6(f,g.excavation)),b=Re().createElement("image",{href:u.src,height:g.h,width:g.w,x:g.x+e,y:g.y+e,preserveAspectRatio:"none",opacity:g.opacity,crossOrigin:g.crossOrigin}));f=M6(v,e);return Re().createElement("svg",od({height:n,width:n,viewBox:`0 0 ${h} `+h,ref:t,role:"img"},m),!!c&&Re().createElement("title",null,c),Re().createElement("path",{fill:a,d:`M0,0 h${h}v${h}H0z`,shapeRendering:"crispEdges"}),Re().createElement("path",{fill:l,d:f,shapeRendering:"crispEdges"}),b)});function H6(){return(H6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var A6=ft.forwardRef((e,t)=>ft.createElement(u,H6({},e,{ref:t,icon:te().A})));let D6=Re().createElement(z3,null);function L6({prefixCls:e,locale:t,onRefresh:r,statusRender:n,status:o}){var a=Re().createElement(Re().Fragment,null,Re().createElement("p",{className:e+"-expired"},t?.expired),r&&Re().createElement(Bd,{type:"link",icon:Re().createElement(A6,null),onClick:r},t?.refresh)),e=Re().createElement("p",{className:e+"-scanned"},t?.scanned);let l={expired:a,loading:D6,scanned:e};return(n??(e=>l[e.status]))({status:o,locale:t,onRefresh:r})}var F6=Be("QRCode",e=>(e=>{var{componentCls:t,lineWidth:r,lineType:n,colorSplit:o}=e;return{[t]:{...F(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:(0,Qe.unit)(r)+` ${n} `+o,position:"relative",overflow:"hidden",[`& > ${t}-cover`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeCoverBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[t+"-borderless"]:{borderColor:"transparent",padding:0,borderRadius:0}}})(ze(e,{QRCodeTextColor:e.colorText})),e=>({QRCodeCoverBackgroundColor:new kn(e.colorBgContainer).setA(.96).toRgbString()})),W6=Re().forwardRef((e,t)=>{var[,r]=so();let{value:n,type:o="canvas",icon:a="",size:l=160,iconSize:i,color:s=r.colorText,errorLevel:c="M",status:d="active",bordered:u=!0,onRefresh:p,style:m,className:f,rootClassName:h,prefixCls:g,bgColor:v="transparent",marginSize:b,statusRender:y,classNames:C,styles:x,boostLevel:w,...S}=e;var{getPrefixCls:r,className:k,style:E,classNames:N,styles:I}=Fe("qrcode"),e={...e,bgColor:v,type:o,size:l,status:d,bordered:u,errorLevel:c},E=We(E),M=We(m),[N,I]=je([N,C],[I,E,x,M],{props:e}),E=r("qrcode",g),[M,e]=F6(E),r={src:a,x:void 0,y:void 0,height:Ma(i)?i:i?.height??40,width:Ma(i)?i:i?.width??40,excavate:!0,crossOrigin:"anonymous"},$=Jt(S,!0),R=at(S,Object.keys($)),r={value:n,size:l,level:c,bgColor:v,fgColor:s,style:{width:m?.width,height:m?.height},imageSettings:a?r:void 0,marginSize:b,boostLevel:w,...$},[$]=nc("QRCode");let P=Re().useRef(null);return Re().useImperativeHandle(t,()=>({nativeElement:P.current})),n?(t=bt(E,f,h,M,e,k,N.root,{[E+"-borderless"]:!u}),M={backgroundColor:v,...I.root,width:m?.width??l,height:m?.height??l},Re().createElement("div",{ref:P,...R,className:t,style:M},"active"!==d&&Re().createElement("div",{className:bt(E+"-cover",N.cover),style:I.cover},Re().createElement(L6,{prefixCls:E,locale:$,status:d,onRefresh:p,statusRender:y})),"canvas"===o?Re().createElement(T6,{...r}):Re().createElement(O6,{...r}))):null}),s=kC,j6=(s.Button=NC,s.Group=EC,s.__ANT_RADIO=!0,s);function _6(){return(_6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var K6=ft.forwardRef((e,t)=>ft.createElement(u,_6({},e,{ref:t,icon:le().A})));function V6(e,t){let{disabled:r,prefixCls:n,character:o,characterRender:a,index:l,count:i,value:s,allowHalf:c,focused:d,onHover:u,onClick:p}=e;var m=l+1,f=new Set([n]),m=(0===s&&0===l&&d?f.add(n+"-focused"):c&&m<=s+.5&&s<m?(f.add(n+"-half"),f.add(n+"-active"),d&&f.add(n+"-focused")):(m<=s?f.add(n+"-full"):f.add(n+"-zero"),m===s&&d&&f.add(n+"-focused")),"function"==typeof o?o(e):o);let h=Re().createElement("li",{className:bt(Array.from(f)),ref:t},Re().createElement("div",{onClick:r?null:e=>{p(e,l)},onKeyDown:r?null:e=>{e.keyCode===Ce.ENTER&&p(e,l)},onMouseMove:r?null:e=>{u(e,l)},role:"radio","aria-checked":s>l?"true":"false","aria-posinset":l+1,"aria-setsize":i,tabIndex:r?-1:0},Re().createElement("div",{className:n+"-first"},m),Re().createElement("div",{className:n+"-second"},m)));return h=a?a(h,e):h}var X6=Re().forwardRef(V6);function q6(){let r=ft.useRef({});return[function(e){return r.current[e]},function(t){return e=>{r.current[t]=e}}]}function G6(e){o=(n=(t=e).ownerDocument).body,n=n&&n.documentElement,r=(t=t.getBoundingClientRect()).left,t=t.top;var t,r={left:r-=n.clientLeft||o.clientLeft||0,top:t-=n.clientTop||o.clientTop||0},n=e.ownerDocument,o=n.defaultView||n.parentWindow;return r.left+=(e=>{let t=e.pageXOffset;var r="scrollLeft";return t="number"!=typeof t&&(e=e.document,"number"!=typeof(t=e.documentElement[r]))?e.body[r]:t})(o),r.left}function Y6(){return(Y6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function U6(e,t){let{prefixCls:r="rc-rate",className:n,defaultValue:o,value:a,count:l=5,allowHalf:i=!1,allowClear:s=!0,keyboard:c=!0,character:d="★",characterRender:u,disabled:p,direction:m="ltr",tabIndex:f=0,autoFocus:h,onHoverChange:g,onChange:v,onFocus:b,onBlur:y,onKeyDown:C,onMouseLeave:x,...w}=e,[S,k]=q6(),E=Re().useRef(null),N=()=>{p||E.current?.focus()},[I,M]=(Re().useImperativeHandle(t,()=>({focus:N,blur:()=>{p||E.current?.blur()}})),vt(o||0,a)),[H,$]=vt(null),R=(e,t)=>{var r,n="rtl"===m;let o=e+1;return i&&(r=G6(e=S(e)),e=e.clientWidth,n&&e/2<t-r||!n&&t-r<e/2)&&(o-=.5),o},P=e=>{M(e),v?.(e)},[A,z]=Re().useState(!1);let[B,T]=Re().useState(null),D=(e,t)=>{t=R(t,e.pageX);t!==H&&(T(t),$(null)),g?.(t)},O=e=>{p||(T(null),$(null),g?.(void 0)),e&&x?.(e)},L=(e,t)=>{t=R(t,e.pageX);let r=!1;s&&(r=t===I),O(),P(r?0:t),$(r?t:null)};Re().useEffect(()=>{h&&!p&&N()},[]);e=new Array(l).fill(0).map((e,t)=>Re().createElement(X6,{ref:k(t),index:t,count:l,disabled:p,prefixCls:r+"-star",allowHalf:i,value:null===B?I:B,onClick:L,onHover:D,key:e||t,character:d,characterRender:u,focused:A})),t=bt(r,n,{[r+"-disabled"]:p,[r+"-rtl"]:"rtl"===m});return Re().createElement("ul",Y6({className:t,onMouseLeave:O,tabIndex:p?-1:f,onFocus:p?null:()=>{z(!0),b?.()},onBlur:p?null:()=>{z(!1),y?.()},onKeyDown:p?null:e=>{var t=e.keyCode,r="rtl"===m,n=i?.5:1;c&&(t===Ce.RIGHT&&I<l&&!r?(P(I+n),e.preventDefault()):t===Ce.LEFT&&0<I&&!r||t===Ce.RIGHT&&0<I&&r?(P(I-n),e.preventDefault()):t===Ce.LEFT&&I<l&&r&&(P(I+n),e.preventDefault())),C?.(e)},ref:E},Jt(w,{aria:!0,data:!0,attr:!0})),e)}var Q6=Re().forwardRef(U6);let Z6=e=>{var t=e.componentCls;return{[t+"-star"]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:(0,Qe.unit)(e.lineWidthFocus)+" dashed "+e.starColor,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:"all "+e.motionDurationMid,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},J6=e=>({["&-rtl"+e.componentCls]:{direction:"rtl"}});var eR=Be("Rate",e=>{var t,e=ze(e,{});return{[t=(e=e).componentCls]:{...F(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none","&-small":{fontSize:e.starSizeSM},"&-large":{fontSize:e.starSizeLG},[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},...Z6(e),...J6(e)}}},e=>({lineWidthFocus:0===e.lineWidthFocus?0:e.lineWidth,starColor:e.yellow6,starSize:.625*e.controlHeight,starSizeSM:.625*e.controlHeightSM,starSizeLG:.625*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})),tR=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,style:a,tooltips:l,character:i=ft.createElement(K6,null),disabled:s,size:c,...d}=e;var{getPrefixCls:e,direction:u,className:p,style:m}=Fe("rate"),e=e("rate",r),[f,h]=eR(e),m={...m,...a},g=ft.useContext($s),g=s??g,v=mc(e=>c??e);return ft.createElement(Q6,{ref:t,character:i,characterRender:(e,{index:t=0})=>l?(t=l[t],Ze(t)?ft.createElement(rv,{...t},e):ft.createElement(rv,{title:t},e)):e,disabled:g,...d,className:bt({[e+"-large"]:"large"===v,[e+"-small"]:"small"===v},n,o,f,h,p),style:m,prefixCls:e,direction:u})});function rR(){return(rR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}d=ft.forwardRef((e,t)=>ft.createElement(u,rR({},e,{ref:t,icon:ue().A}))),l=()=>ft.createElement("svg",{width:"252",height:"294"},ft.createElement("title",null,"No Found"),ft.createElement("g",{fill:"none",fillRule:"evenodd"},ft.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),ft.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),ft.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),ft.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),ft.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),ft.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),ft.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),ft.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),ft.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),ft.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),ft.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),ft.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),ft.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),ft.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),ft.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),ft.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),ft.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),ft.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),ft.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),ft.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),ft.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),ft.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),ft.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),ft.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),ft.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),ft.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),ft.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),ft.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),ft.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),ft.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),ft.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),ft.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),ft.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),ft.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),ft.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),ft.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),ft.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),ft.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),ft.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),ft.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),n=()=>ft.createElement("svg",{width:"254",height:"294"},ft.createElement("title",null,"Server Error"),ft.createElement("g",{fill:"none",fillRule:"evenodd"},ft.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),ft.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),ft.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),ft.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),ft.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),ft.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),ft.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),ft.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),ft.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),ft.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),ft.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),ft.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),ft.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),ft.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),ft.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),ft.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),ft.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),ft.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),ft.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),ft.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),ft.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),ft.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),ft.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),ft.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),ft.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),ft.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),ft.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),ft.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),ft.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),ft.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),ft.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),ft.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),ft.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),ft.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),ft.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),ft.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),ft.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),ft.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),ft.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),ft.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),ft.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),ft.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),ft.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),ft.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"})));let nR=e=>{var{componentCls:t,lineHeightHeading3:r,iconCls:n,padding:o,paddingXL:a,paddingXS:l,paddingLG:i,marginXS:s,lineHeight:c}=e;return{[t]:{padding:(0,Qe.unit)(e.calc(i).mul(2).equal())+" "+(0,Qe.unit)(a),"&-rtl":{direction:"rtl"}},[t+` ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[t+` ${t}-icon`]:{marginBottom:i,textAlign:"center",["& > "+n]:{fontSize:e.iconFontSize}},[t+` ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:s,textAlign:"center"},[t+` ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[t+` ${t}-body`]:{marginTop:i,padding:(0,Qe.unit)(i)+" "+(0,Qe.unit)(e.calc(o).mul(2.5).equal()),backgroundColor:e.colorFillAlter},[t+` ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},oR=e=>{var t=e.componentCls;return{[t+`-success ${t}-icon`]:{color:e.resultSuccessIconColor},[t+`-error ${t}-icon`]:{color:e.resultErrorIconColor},[t+`-info ${t}-icon`]:{color:e.resultInfoIconColor},[t+`-warning ${t}-icon`]:{color:e.resultWarningIconColor}}};var aR=Be("Result",e=>{var e=ze(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295});return e=e,[nR(e),oR(e)]},e=>{var{fontSizeHeading3:e,fontSize:t,paddingLG:r}=e;return{titleFontSize:e,subtitleFontSize:t,iconFontSize:Ma(e)?3*e:`calc(${e} * 3)`,extraMargin:r+"px 0 0 0"}});let lR={success:Fo,error:jo,info:Xo,warning:d},iR={404:l,500:n,403:()=>ft.createElement("svg",{width:"251",height:"294"},ft.createElement("title",null,"Unauthorized"),ft.createElement("g",{fill:"none",fillRule:"evenodd"},ft.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),ft.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),ft.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),ft.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),ft.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),ft.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),ft.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),ft.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),ft.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),ft.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),ft.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),ft.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),ft.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),ft.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),ft.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),ft.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),ft.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),ft.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),ft.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),ft.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),ft.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),ft.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),ft.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),ft.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),ft.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),ft.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),ft.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),ft.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),ft.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),ft.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),ft.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),ft.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),ft.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),ft.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),ft.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),ft.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),ft.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),ft.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),ft.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),ft.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),ft.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),ft.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),ft.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"})))},sR=Object.keys(iR),cR=({icon:e,status:t,className:r,style:n})=>{var o;return sR.includes(""+t)?(o=iR[t],ft.createElement("div",{className:r,style:n},ft.createElement(o,null))):(o=ft.createElement(lR[t]),null===e||!1===e?null:ft.createElement("div",{className:r,style:n},e||o))},dR=({className:e,extra:t,style:r})=>Se(t)?ft.createElement("div",{className:e,style:r},t):null;var Dn=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,subTitle:a,title:l,style:i,children:s,status:c="info",icon:d,extra:u,styles:p,classNames:m,...f}=e;var{getPrefixCls:h,direction:g,className:v,style:b,classNames:y,styles:C}=Fe("result"),e={...e,status:c},b=We(b),x=We(i),[y,C]=je([y,m],[C,b,p,x],{props:e}),b=h("result",r),[x,e]=aR(b),h=bt(b,b+"-"+c,n,v,o,{[b+"-rtl"]:"rtl"===g},x,e,y.root),v=bt(b+"-title",y.title),g=bt(b+"-subtitle",y.subTitle),x=bt(b+"-extra",y.extra),e=bt(b+"-body",y.body),b=bt(b+"-icon",{[b+"-image"]:sR.includes(""+c)},y.icon),y={...C.root},w=Jt(f,{aria:!0,data:!0});let S=ft.useRef(null);return ft.useImperativeHandle(t,()=>({nativeElement:S.current})),ft.createElement("div",{ref:S,...w,className:h,style:y},ft.createElement(cR,{className:b,style:C.icon,status:c,icon:d}),Se(l)&&ft.createElement("div",{className:v,style:C.title},l),Se(a)&&ft.createElement("div",{className:g,style:C.subTitle},a),ft.createElement(dR,{className:x,extra:u,style:C.extra}),Se(s)&&ft.createElement("div",{className:e,style:C.body},s))}),uR=(Dn.PRESENTED_IMAGE_403=iR[403],Dn.PRESENTED_IMAGE_404=iR[404],Dn.PRESENTED_IMAGE_500=iR[500],Dn),pR=P4;let mR=(0,ft.forwardRef)((e,t)=>{var{prefixCls:e,className:r,children:n,destroyOnHidden:o=!1,size:a,style:l,supportMotion:i}=e,s=0===a||"string"==typeof a&&0===Number.parseFloat(a),e=bt(e+"-panel",{[e+"-panel-hidden"]:s,[e+"-panel-transition"]:i},r),i=void 0!==a;return Re().createElement("div",{ref:t,className:e,style:{...l,flexBasis:i?a:"auto",flexGrow:i?0:1}},!(o&&s)&&n)});a=()=>null;var fR=function(e){return ft.useMemo(()=>ke(e).filter(e=>ft.isValidElement(e)).map(e=>{var e=e.props;let{collapsible:t,...r}=e;return{...r,collapsible:(e=t,Ze(e)?{...e,showCollapsibleIcon:void 0===e.showCollapsibleIcon?"auto":e.showCollapsibleIcon}:{start:e=!!e,end:e,showCollapsibleIcon:"auto"})}}),[e])};function hR(e,t){return e.collapsible&&t.collapsible?!0===e.showCollapsibleIcon||!0===t.showCollapsibleIcon||("auto"===e.showCollapsibleIcon||"auto"===t.showCollapsibleIcon)&&"auto":e.collapsible?e.showCollapsibleIcon:!!t.collapsible&&t.showCollapsibleIcon}function gR(e){return Number(e.slice(0,-1))/100}function vR(e){return"string"==typeof e&&e.endsWith("%")}function bR(e,t){let r=e.map(e=>e.size),n=e.length,o=t||0,a=e=>e*o,[l,i]=Re().useState(()=>e.map(e=>e.defaultSize)),C=Re().useMemo(()=>r.some(Ia)?r:l,[n,l,r]),x=Re().useMemo(()=>e.map(e=>vR(e.min)?gR(e.min):(e.min||0)/o),[e,o]),w=Re().useMemo(()=>e.map(e=>vR(e.max)?gR(e.max):(e.max||o)/o),[e,o]),s=Re().useMemo(()=>{var s=[];for(let e=0;e<n;e+=1){var t=C[e];vR(t)?s[e]=gR(t):t||0===t?(t=Number(t),Number.isNaN(t)||(s[e]=t/o)):s[e]=void 0}{var c=s,d=x,u=w;let r=0,n=[];c.forEach((e,t)=>{void 0===e?n.push(t):r+=e});var p,m=1-r,f=n.length;if(c.length&&!n.length&&1!==r){if(0===r){let e=1/c.length;return c.map(()=>e)}let t=1/r;return c.map(e=>e*t)}if(m<0){let t=1/r;return c.map(e=>void 0===e?0:e*t)}let e=0,t=0,o=0,a=1;for(p of n){var h=d[p]||0,g=u[p]||1;e+=h,t+=g,o=Math.max(o,h),a=Math.min(a,g)}if(1<e&&t<1){let t=1/f;return c.map(e=>void 0===e?t:e)}let l=m/f;if(o<=l&&l<=a)return c.map(e=>void 0===e?l:e);var v=Pe(c);let i=m-e;for(let e=0;e<f;e+=1){var b=n[e],y=d[b]||0,y=(u[b]||1)-(v[b]=y),y=Math.min(y,i);v[b]+=y,i-=y}return v}},[n,C,o,x,w]),c=Re().useMemo(()=>s.map(a),[s,o]);return[Re().useMemo(()=>t?c:C,[c,C,t]),c,s,x,w,i]}let yR=e=>Ma(e)&&Number.isFinite(e)?Math.round(e):0,CR=300;var xR=e=>{let{prefixCls:t,rootPrefixCls:r,vertical:o,index:n,active:a,ariaNow:l,ariaMin:i,ariaMax:s,resizable:c,draggerIcon:d,draggerStyle:u,draggerClassName:p,collapsibleIcon:m,startCollapsible:f,endCollapsible:h,onDraggerDoubleClick:g,onOffsetStart:v,onOffsetUpdate:b,onOffsetEnd:y,onCollapse:C,lazy:x,containerSize:w,showStartCollapsibleIcon:S,showEndCollapsibleIcon:k}=e,E=t+"-bar",N=(0,ft.useRef)(0);var[e]=Q(r,"splitter");let[I,M]=(0,ft.useState)(null),[$,R]=(0,ft.useState)(0),P=o?0:$,H=o?$:0;let z=ht((e,t)=>{t=o?t:e,e=w*l/100,t=e+t,n=Math.max(0,w*i/100),r=Math.min(w,w*s/100);var r,n=Math.max(n,Math.min(r,t))-e;R(n)}),B=ht(()=>{b(n,P,H,!0),R(0),y(!0)}),T=(e,t)=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C(n,t))};var O=e=>{switch(e){case!0:return E+"-collapse-bar-always-visible";case!1:return E+"-collapse-bar-always-hidden";case"auto":return E+"-collapse-bar-hover-only"}},e=(gt(()=>{if(I){var e,t;let r={mousemove:e=>{var{pageX:e,pageY:t}=e,e=e-I[0],t=t-I[1];x?z(e,t):b(n,e,t)},mouseup:()=>{(x?B:y)(),M(null)},touchmove:e=>{var t;1===e.touches.length&&(t=(e=e.touches[0]).pageX-I[0],e=e.pageY-I[1],x?z(t,e):b(n,t,e))},touchend:()=>{(x?B:y)(),M(null)}};for([e,t]of Object.entries(r))window.addEventListener(e,t);return()=>{for(var[e,t]of Object.entries(r))window.removeEventListener(e,t)}}},[I,n,x]),{[e("bar-preview-offset")]:$+"px"}),[A,D,L,F]=Re().useMemo(()=>{let e=null,t=null;var r=void 0!==m?.start,n=void 0!==m?.end;return t=o?(e=r?m.start:Re().createElement(Qk,null),n?m.end:Re().createElement(cg,null)):(e=r?m.start:Re().createElement(Gv,null),n?m.end:Re().createElement(nd,null)),[e,t,r,n]},[m,o]);return Re().createElement("div",{className:E},x&&Re().createElement("div",{className:bt(E+"-preview",{[E+"-preview-active"]:!!$}),style:e}),Re().createElement("div",{style:u?.default,className:bt(E+"-dragger",{[E+"-dragger-disabled"]:!c,[E+"-dragger-active"]:a,[E+"-dragger-customize"]:void 0!==d},p?.default,a&&p?.active),onMouseDown:e=>{e.stopPropagation();var t=Date.now(),r=t-N.current;0<r&&r<CR||(N.current=t,c&&e.currentTarget&&(M([e.pageX,e.pageY]),v(n)))},onTouchStart:e=>{c&&1===e.touches.length&&(e=e.touches[0],M([e.pageX,e.pageY]),v(n))},onDoubleClick:()=>g?.(n),role:"separator","aria-disabled":!c,"aria-orientation":o?"horizontal":"vertical","aria-valuenow":yR(l),"aria-valuemin":yR(i),"aria-valuemax":yR(s)},void 0!==d?Re().createElement("div",{className:bt(E+"-dragger-icon")},d):null),f&&Re().createElement("div",{className:bt(E+"-collapse-bar",E+"-collapse-bar-start",{[E+"-collapse-bar-customize"]:L},O(S)),role:"button",tabIndex:0,"aria-label":"Toggle start panel",onClick:()=>C(n,"start"),onKeyDown:e=>T(e,"start")},Re().createElement("span",{className:bt(E+"-collapse-icon",E+"-collapse-start")},A)),h&&Re().createElement("div",{className:bt(E+"-collapse-bar",E+"-collapse-bar-end",{[E+"-collapse-bar-customize"]:F},O(k)),role:"button",tabIndex:0,"aria-label":"Toggle end panel",onClick:()=>C(n,"end"),onKeyDown:e=>T(e,"end")},Re().createElement("span",{className:bt(E+"-collapse-icon",E+"-collapse-end")},D)))};let wR={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"};var SR=Be("Splitter",e=>{var{componentCls:t,colorFill:r,splitBarDraggableSize:n,splitBarSize:o,splitTriggerSize:a,controlItemBgHover:l,controlItemBgActive:i,controlItemBgActiveHover:s,colorPrimary:c,antCls:d,calc:u}=e,[,d]=Q(d,"splitter"),p=t+"-bar",m=t+"-mask",f=t+"-panel",u=u(a).div(2).equal(),h={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:{...F(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",["> "+p]:{flex:"none",position:"relative",userSelect:"none",[p+"-dragger"]:{...wR,zIndex:1,"&::before":{content:'""',background:l,...wR},"&::after":{content:'""',background:r,...wR},[`&:hover:not(${p}-dragger-active)`]:{"&::before":{background:i}},"&-active":{zIndex:2,"&::before":{background:s}},[`&-active${p}-dragger-customize`]:{[p+"-dragger-icon"]:{color:c}},[`&-disabled${p}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:l}},"&::after":{display:"none"},[p+"-dragger-icon"]:{display:"none"}},"&-customize":{[p+"-dragger-icon"]:{...wR,display:"flex",alignItems:"center",color:r},"&::after":{display:"none"}}},[p+"-collapse-bar"]:{...wR,zIndex:e.zIndexPopupBase,background:l,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:focus-visible":dn(e),[`&:hover:not(${p}-collapse-bar-customize)`]:{background:i},[`&:active:not(${p}-collapse-bar-customize)`]:{background:s},[p+"-collapse-icon"]:{display:"flex",alignItems:"center"}},[p+"-collapse-bar-customize"]:{background:"transparent"},"&:hover, &:active, &:focus-within":{[p+"-collapse-bar-hover-only"]:{opacity:1}},[p+"-collapse-bar-hover-only"]:{"@media(hover:none)":{opacity:1}},[p+"-collapse-bar-always-hidden"]:{display:"none"},[p+"-collapse-bar-always-visible"]:{opacity:1}},[m]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",["> "+p]:{width:0,[p+"-preview"]:{height:"100%",width:o,...h,[`&${p}-preview-active`]:{display:"block",transform:`translate3d(${d("bar-preview-offset")}, 0, 0)`}},[p+"-dragger"]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:o},"&::after":{height:n,width:o}},[p+"-collapse-bar"]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:u},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",["> "+p]:{height:0,[p+"-preview"]:{height:o,width:"100%",...h,[`&${p}-preview-active`]:{display:"block",transform:`translate3d(0, ${d("bar-preview-offset")}, 0)`}},[p+"-dragger"]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:o},"&::after":{width:n,height:o}},[p+"-collapse-bar"]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:u,transform:"translateX(-50%)"},"&-end":{top:u,bottom:"auto",transform:"translateX(-50%)"}}}},[f]:{overflow:"auto",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"},"&-transition":{transition:`flex-basis ${e.motionDurationSlow} `+e.motionEaseInOut,...zc()}}}}},e=>{var t=e.splitBarSize||2,r=e.resizeSpinnerSize||20;return{splitBarSize:t,splitTriggerSize:e.splitTriggerSize||6,splitBarDraggableSize:e.splitBarDraggableSize??r,resizeSpinnerSize:r}}),o=(r,e)=>{let{prefixCls:t,className:n,classNames:o,collapsible:s,style:a,styles:l,layout:i,orientation:c,vertical:H,children:A,destroyOnHidden:D,draggerIcon:L,collapsibleIcon:F,rootClassName:W,onDraggerDoubleClick:j,onResizeStart:_,onResize:d,onResizeEnd:u,lazy:K}=r;var{getPrefixCls:p,direction:m,className:V,style:f,classNames:h,styles:g}=Fe("splitter");let v=p("splitter",t),X=p();var p=nl(v),[q,G]=SR(v,p);let[b,y]=hc(c,H,i);m="rtl"===m;let C=!y&&m,x=fR(A),[w,Y]=(0,ft.useState)();var S,k,E;let[U,N,I,M,$,Q]=bR(x,w),R=(S=x,k=N,E=C,ft.useMemo(()=>{var t=[];for(let e=0;e<S.length-1;e+=1){var r=S[e],n=S[e+1],o=k[e],a=k[e+1],{resizable:r=!0,min:l,collapsible:i}=r,{resizable:n=!0,min:s,collapsible:c}=n,d=!!i.end&&0<o,u=!!c.start&&0===a&&0<o,p=d||u,m=!!c.start&&0<a,f=!!i.end&&0===o&&0<a,h=m||f,d=hR({collapsible:d,showCollapsibleIcon:i.showCollapsibleIcon},{collapsible:u,showCollapsibleIcon:c.showCollapsibleIcon}),u=hR({collapsible:m,showCollapsibleIcon:c.showCollapsibleIcon},{collapsible:f,showCollapsibleIcon:i.showCollapsibleIcon});t[e]={resizable:r&&n&&(0!==o||!l)&&(0!==a||!s),startCollapsible:!!(E?h:p),endCollapsible:!!(E?p:h),showStartCollapsibleIcon:E?u:d,showEndCollapsibleIcon:E?d:u}}return t},[k,S,E])),[Z,J,ee,te,P]=((e,d,t,r,u,p)=>{let m=e.map(e=>[e.min,e.max]),f=r||0,n=e=>e*f;function h(e,t){return"string"==typeof e?n(gR(e)):e??t}let[g,o]=ft.useState([]),v=ft.useRef([]),[b,y]=ft.useState(null),C=()=>t.map(n);return[e=>{o(C()),y({index:e,confirmed:!1})},(t,e)=>{let r=null;if(!(b&&b.confirmed||0===e))if(0<e)r=t,y({index:t,confirmed:!0});else for(let e=t;0<=e;--e)if(0<g[e]&&d[e].resizable){r=e,y({index:e,confirmed:!0});break}var t=r??b?.index??t,n=Pe(g),o=t+1,a=h(m[t][0],0),l=h(m[o][0],0),i=h(m[t][1],f),s=h(m[o][1],f);let c=e;return n[t]+c<a&&(c=a-n[t]),n[o]-c<l&&(c=n[o]-l),n[t]+c>i&&(c=i-n[t]),n[o]-c>s&&(c=n[o]-s),n[t]+=c,n[o]-=c,u(n),n},()=>{y(null)},(e,t)=>{var r,n,o,a,l,i=C(),t=p?"start"===t?"end":"start":t,s="start"===t?e:e+1,t="start"===t?e+1:e,c=i[s],d=i[t];return 0!==c&&0!==d?(i[s]=0,i[t]+=c,v.current[e]=c):(c=c+d,d=h(m[s][0],0),r=h(m[s][1],f),n=h(m[t][0],0),o=h(m[t][1],f),l=Math.max(d,c-o),a=Math.min(r,c-n),a=n||(a-l)/2,c=c-(l=v.current[e]),l&&l<=o&&n<=l&&c<=r&&d<=c?(i[t]=l,i[s]=c):(i[s]-=a,i[t]+=a)),u(i),i},b?.index]})(x,R,I,w,Q,C),re=ht(e=>{Z(e),_?.(N)}),ne=ht((e,t,r)=>{e=J(e,t);(r?u:d)?.(e)}),oe=ht(e=>{ee(),e||u?.(N)}),ae=ht((e,t)=>{e=te(e,t),d?.(e),u?.(e),t=e.map(e=>Math.abs(e)<Number.EPSILON);r.onCollapse?.(t,e)});var le={...r,vertical:y,orientation:b},f=We(f),ie=We(a);let[z,B]=je([h,o],[g,f,l,ie],{props:le},{dragger:{_default:"default"}});h=bt(v,n,v+"-"+b,{[v+"-rtl"]:m},W,z.root,V,G,p,q);let T=Re().useRef(null);Re().useImperativeHandle(e,()=>({nativeElement:T.current}));g=v+"-mask";let O=Re().useMemo(()=>{var t=[];let r=0;var n=x.length;for(let e=0;e<n;e+=1)r+=I[e],t.push(r);return t},[I,x.length]);return Re().createElement(gr,{onResize:e=>{var{offsetWidth:e,offsetHeight:t}=e,t=y?t:e;0!==t&&Y(t)}},Re().createElement("div",{ref:T,style:B.root,className:h},x.map((e,t)=>{var r={...e,className:bt(z.panel,e.className),style:{...B.panel,...e.style}},r=Re().createElement(mR,{...r,prefixCls:v,size:U[t],supportMotion:s?.motion&&void 0===P,destroyOnHidden:e.destroyOnHidden??D});let n=null;var o,a,l,i,e=R[t];return e&&(l=Number.isFinite(O[t-1])?O[t-1]:0,i=Number.isFinite(O[t+1])?O[t+1]:1,o=l+M[t],a=i-$[t+1],l=l+$[t],i=i-M[t+1],n=Re().createElement(xR,{lazy:K,index:t,active:P===t,prefixCls:v,rootPrefixCls:X,vertical:y,resizable:e.resizable,draggerStyle:B.dragger,draggerClassName:z.dragger,draggerIcon:L,collapsibleIcon:s?.icon||F,ariaNow:100*O[t],ariaMin:100*Math.max(o,a),ariaMax:100*Math.min(l,i),startCollapsible:e.startCollapsible,endCollapsible:e.endCollapsible,showStartCollapsibleIcon:e.showStartCollapsibleIcon,showEndCollapsibleIcon:e.showEndCollapsibleIcon,onDraggerDoubleClick:j,onOffsetStart:re,onOffsetUpdate:(e,t,r,n)=>{let o=y?r:t;C&&(o=-o),ne(e,o,n)},onOffsetEnd:oe,onCollapse:ae,containerSize:w||0})),Re().createElement(Re().Fragment,{key:"split-panel-"+t},r,n)}),Ma(P)&&Re().createElement("div",{"aria-hidden":!0,className:bt(g,g+"-"+b)})))},i=Re().forwardRef(o),kR=(i.Panel=a,i),ER=r=>{var{value:r,formatter:e,precision:n,decimalSeparator:o,groupSeparator:a="",prefixCls:l,className:t,style:i}=r;let s;if(Je(e))s=e(r);else{e=String(r),r=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(r&&"-"!==e){var c=r[1];let e=r[2]||"0",t=r[4]||"";e=e.replace(/\B(?=(\d{3})+(?!\d))/g,a),t=(t=Ma(n)?t.padEnd(n,"0").slice(0,0<n?n:0):t)&&""+o+t,s=[ft.createElement("span",{key:"int",className:l+"-content-value-int"},c,e),t&&ft.createElement("span",{key:"decimal",className:l+"-content-value-decimal"},t)]}else s=e}return ft.createElement("span",{className:t,style:i},s)};var NR=Be("Statistic",e=>(e=>{var{componentCls:t,marginXXS:r,padding:n,colorTextDescription:o,titleFontSize:a,colorTextHeading:l,contentFontSize:i,fontFamily:s}=e;return{[t]:{...F(e),[t+"-header"]:{paddingBottom:r,[t+"-title"]:{color:o,fontSize:a}},[t+"-skeleton"]:{paddingTop:n},[t+"-content"]:{color:l,fontSize:i,fontFamily:s,[t+"-content-value"]:{display:"inline-block",direction:"ltr"},[t+`-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[t+"-content-prefix"]:{marginInlineEnd:r},[t+"-content-suffix"]:{marginInlineStart:r}}}}})(ze(e,{})),e=>{var{fontSizeHeading3:e,fontSize:t}=e;return{titleFontSize:t,contentFontSize:e}}),IR=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,style:a,valueStyle:l,value:i=0,title:s,valueRender:c,prefix:d,suffix:u,loading:p=!1,formatter:m,precision:f,decimalSeparator:h=".",groupSeparator:g=",",onMouseEnter:v,onMouseLeave:b,styles:y,classNames:C,...x}=e;var{getPrefixCls:w,direction:S,className:k,style:E,classNames:N,styles:I}=Fe("statistic"),w=w("statistic",r),[M,$]=NR(w),e={...e,decimalSeparator:h,groupSeparator:g,loading:p,value:i},E=We(E),R=We(a),[N,I]=je([N,C],[I,E,y,R],{props:e}),E=bt(w,{[w+"-rtl"]:"rtl"===S},k,n,o,N.root,M,$),R=bt(w+"-header",N.header),e=bt(w+"-title",N.title),S=bt(w+"-content",N.content),k=bt(w+"-content-value",N.value),M=bt(w+"-content-prefix",N.prefix),$=bt(w+"-content-suffix",N.suffix),N=ft.createElement(ER,{decimalSeparator:h,groupSeparator:g,prefixCls:w,formatter:m,precision:f,value:i,className:k,style:I.value});let P=ft.useRef(null);ft.useImperativeHandle(t,()=>({nativeElement:P.current}));k=Jt(x,{aria:!0,data:!0});return ft.createElement("div",{...k,className:E,style:I.root,ref:P,onMouseEnter:v,onMouseLeave:b},Se(s)&&ft.createElement("div",{className:R,style:I.header},ft.createElement("div",{className:e,style:I.title},s)),ft.createElement(jp,{paragraph:!1,loading:p,className:w+"-skeleton",active:!0},ft.createElement("div",{className:S,style:{...l,...I.content}},Se(d)&&ft.createElement("span",{className:M,style:I.prefix},d),Je(c)?c(N):N,Se(u)&&ft.createElement("span",{className:$,style:I.suffix},u))))});let MR=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function $R(e,n,a){var{format:n=""}=n,e=new Date(e).getTime(),l=Date.now(),a=a?Math.max(e-l,0):Math.max(l-e,0);{let o=l=a,t=(l=/\[[^\]]*]/g,((e=n).match(l)||[]).map(e=>e.slice(1,-1))),r=(e=e.replace(l,"[]"),e=MR.reduce((e,[r,n])=>{if(e.includes(r)){let t=Math.floor(o/n);return o-=t*n,e.replace(new RegExp(r+"+","g"),e=>{e=e.length;return t.toString().padStart(e,"0")})}return e},e),0);return e.replace(l,()=>{var e=t[r];return r+=1,e})}}let RR=1e3/60;var PR=e=>{let{value:n,format:r="HH:mm:ss",onChange:o,onFinish:a,type:t,...l}=e,i="countdown"===t,[s,c]=ft.useState(null),d=ht(()=>{var e=Date.now(),t=(t=n,new Date(t).getTime()),r=(c({}),i?t-e:e-t);return o?.(r),!(i&&t<e&&(a?.(),1))});ft.useEffect(()=>{let e,t=()=>{d()||window.clearInterval(e)};return e=window.setInterval(t,RR),()=>{window.clearInterval(e)}},[n,i]),ft.useEffect(()=>{c({})},[]);return ft.createElement(IR,{...l,value:n,valueRender:e=>Ss(e,{title:void 0}),formatter:(e,t)=>s?$R(e,{...t,format:r},i):"-"})},Wn=ft.memo(e=>ft.createElement(PR,{...e,type:"countdown"})),zR=(IR.Timer=PR,IR.Countdown=Wn,IR);function BR(e){var{prefixCls:e,className:t,style:r,status:n}=e,e=e+"-rail";return ft.createElement("div",{className:bt(e,e+"-"+n,t),style:r})}let TR=ft.createContext({}),OR=ft.createContext(null);function HR(){return(HR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let AR=ft.createContext({});var DR=ft.forwardRef((e,t)=>{let{className:r,style:n,children:o,...a}=e;var{prefixCls:e,classNames:l,styles:i}=ft.useContext(OR),{className:s,style:c}=ft.useContext(AR),e=e+"-item";return ft.createElement("div",HR({},Jt(a,!1),{ref:t,className:bt(e+"-icon",l.itemIcon,s,r),style:{...i.itemIcon,...c,...n}}),o)});function LR(){return(LR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function FR(e){return null!=e}function WR(e){let{prefixCls:t,classNames:r,styles:n,data:o,last:a,nextStatus:l,active:i,index:s,itemRender:c,iconRender:d,itemWrapperRender:u,onClick:p}=e;var e=t+"-item",m=ft.useContext(TR).railFollowPrevStatus,f=ft.useContext(OR).ItemComponent;let{onClick:h,title:g,subTitle:v,content:b,description:y,disabled:C,icon:x,status:w,className:S,style:k,classNames:E={},styles:N={},...I}=o;var M=b??y,$={item:{...o,content:M},index:s,active:i},R={},P=(!(!p&&!h||C)&&(R.role="button",R.tabIndex=0,R.onClick=e=>{h?.(e),p(s)},R.onKeyDown=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())}),w||"wait"),z=FR(g),B=FR(v),P=bt(e,e+"-"+P,{[e+"-custom"]:x,[e+"-active"]:i,[e+"-disabled"]:!0===C,[e+"-empty-header"]:!z&&!B},S,r.item,E.root);let T=ft.createElement(DR,null);d&&(T=d(T,{...$,components:{Icon:DR}}));z=ft.createElement("div",{className:bt(e+"-wrapper",r.itemWrapper,E.wrapper),style:{...n.itemWrapper,...N.wrapper}},ft.createElement(AR.Provider,{value:{className:E.icon,style:N.icon}},T),ft.createElement("div",{className:bt(e+"-section",r.itemSection,E.section),style:{...n.itemSection,...N.section}},ft.createElement("div",{className:bt(e+"-header",r.itemHeader,E.header),style:{...n.itemHeader,...N.header}},z&&ft.createElement("div",{className:bt(e+"-title",r.itemTitle,E.title),style:{...n.itemTitle,...N.title}},g),B&&ft.createElement("div",{title:"string"==typeof v?v:void 0,className:bt(e+"-subtitle",r.itemSubtitle,E.subtitle),style:{...n.itemSubtitle,...N.subtitle}},v),!a&&ft.createElement(BR,{prefixCls:e,className:bt(r.itemRail,E.rail),style:{...n.itemRail,...N.rail},status:m?w:l})),FR(M)&&ft.createElement("div",{className:bt(e+"-content",r.itemContent,E.content),style:{...n.itemContent,...N.content}},M)));let O=ft.createElement(f,LR({},I,R,{className:P,style:{...n.item,...N.root,...k}}),u?u(z):z);return O=c?c(O,$)||null:O}function jR(){return(jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let _R={};var KR=function(e){let{prefixCls:a="rc-steps",style:t,className:r,classNames:l=_R,styles:i=_R,rootClassName:n,orientation:o,titlePlacement:s,components:c,status:d="process",current:u=0,initial:p=0,onChange:m,items:f,iconRender:h,itemRender:g,itemWrapperRender:v,...b}=e,y=(e="vertical"===o,e=bt(a,a+"-"+(e?"vertical":"horizontal"),a+"-title-"+(e||"vertical"!==s?"horizontal":"vertical"),n,r,l.root),Re().useMemo(()=>(f||[]).filter(Boolean),[f])),C=Re().useMemo(()=>y.map(({status:e},t)=>{t=p+t;return e||(t===u?d:t<u?"finish":"wait")}),[y,d,u,p]),x=e=>{m&&u!==e&&m(e)},{root:w="div",item:S="div"}=c||{};var k=Re().useMemo(()=>({prefixCls:a,classNames:l,styles:i,ItemComponent:S}),[a,l,i,S]);return Re().createElement(w,jR({className:e,style:{...t,...i?.root}},b),Re().createElement(OR.Provider,{value:k},y.map((e,t)=>{var r=p+t,n=C[t],o=C[t+1],e={...e,status:n};return Re().createElement(WR,{key:r,prefixCls:a,classNames:l,styles:i,data:e,nextStatus:o,active:r===u,index:r,last:y.length-1===t,iconRender:h,itemRender:g,itemWrapperRender:v,onClick:m&&x})})))};let VR=ft.createContext(null);var XR=e=>{e=e.prefixCls;return ft.createElement("svg",{"aria-hidden":!0,className:e+"-panel-arrow",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},ft.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},qR=e=>{var{prefixCls:e,rootPrefixCls:t,children:r,percent:n}=e,e=e+"-item-progress-icon",o=e+"-circle",[,t]=Q(t,"cmp-steps"),t=`calc(${t("progress-radius")} * 2 * ${Math.PI*n/100}) 9999`;return ft.createElement(ft.Fragment,null,ft.createElement("svg",{className:e+"-svg",viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":n},ft.createElement("title",null,"Progress"),ft.createElement("circle",{className:bt(o,o+"-rail")}),ft.createElement("circle",{className:bt(o,o+"-ptg"),strokeDasharray:t,transform:"rotate(-90 50 50)"})),r)},GR=e=>{var{componentCls:t,antCls:r}=e,n=t+"-item",[r,o]=Q(r,"cmp-steps");return{[t+"-horizontal"]:{["> "+n]:{flex:"1 1 auto",minWidth:e.iconSize,[n+"-rail"]:{[r("horizontal-rail-margin")]:`calc(${o("icon-size-max")} / 2 - ${o("rail-size")} / 2 + ${o("item-wrapper-padding-top")})`,position:"static",marginTop:o("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:o("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},YR=e=>{let{componentCls:t,customIconFontSize:r,motionDurationSlow:n,iconSize:o,lineWidth:a,lineType:l,antCls:i}=e;var s=t+"-item",[c,d]=Q(i,"cmp-steps");return{[t]:{[c("icon-size")]:o,[c("icon-border-width")]:a,[s+"-icon"]:{width:d("icon-size"),height:d("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:d("icon-size"),textAlign:"center",borderRadius:d("icon-size"),border:d("icon-border-width")+` ${l} transparent`,transition:["background-color","border","color","inset","transform"].map(e=>e+" "+n).join(", "),zIndex:1},[s+`-custom ${s}-icon`]:{background:"none",border:0,fontSize:r}}}},UR=e=>{var{componentCls:t,inlineDotSize:r,paddingXS:n,lineWidth:o,antCls:a,calc:l}=e,l=l(n).add(o).equal(),o=t+"-item",[a,i]=Q(a,"cmp-steps");return{[t+"-inline"]:{[a("items-offset")]:"0",[a("item-wrapper-padding-top")]:l,display:"inline-flex","&:before":{content:'""',flex:i("items-offset")},[o]:{[a("title-vertical-row-gap")]:n,[a("icon-size")]:r,[a("icon-size-active")]:r,[a("title-font-size")]:e.fontSizeSM,[a("title-line-height")]:e.lineHeightSM,[a("item-title-color")]:e.colorTextSecondary,[a("subtitle-font-size")]:e.fontSizeSM,[a("subtitle-line-height")]:e.lineHeightSM,[a("item-subtitle-color")]:e.colorTextQuaternary,[a("rail-size")]:e.lineWidth,[a("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:"background-color "+e.motionDurationMid,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[o+"-icon-dot"]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};let QR=(e,t,r)=>{var n,{calc:e,componentCls:o,descriptionMaxWidth:a,antCls:l}=e,o=o+"-item",[,l]=Q(l,"cmp-steps");return{[`@container style(${n=a,(n||"--ant-not-exist").replace(/var\((.*)\)/,"$1")})`]:[{[o+"-icon"]:{marginInlineStart:e(a).sub(l("icon-size")).div(2).equal()},[o+"-rail"]:{width:"auto",insetInlineStart:e(a).add(l("icon-size")).div(2).add(t).equal(),insetInlineEnd:e(a).sub(l("icon-size")).div(2).sub(t).mul(-1).equal()}},r]}};var ZR=e=>{var{componentCls:t,descriptionMaxWidth:r,marginXS:n,fontHeightLG:o,margin:a,paddingSM:l,marginXXS:i,antCls:s,calc:c}=e,d=t+"-item",[s,u]=Q(s,"cmp-steps");return{[t]:{[s("icon-size-max")]:`max(${u("icon-size")}, ${u("icon-size-active",u("icon-size"))})`,[d+"-icon"]:{marginBlockStart:`calc((${u("heading-height")} - ${u("icon-size")}) / 2)`}},[t+"-title-horizontal"]:{[s("title-horizontal-item-margin")]:a,[s("title-horizontal-rail-margin")]:a,[s("title-horizontal-title-height")]:o,[s("heading-height")]:`max(${u("icon-size")}, ${u("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[d+":not(:first-child)"]:{marginInlineStart:u("title-horizontal-item-margin")},[d+":last-child"]:{flex:"0 1 auto"},[d+"-wrapper"]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[d+"-wrapper"]:{columnGap:e.margin},[d+"-empty-header"]:{[d+"-header"]:{minHeight:"auto"},[d+"-content"]:{marginTop:c(u("heading-height")).sub(e.fontHeight).div(2).equal()}}},[d+"-section"]:{flex:1,minWidth:0},[d+"-header"]:{minHeight:u("heading-height")},[d+"-title"]:{flex:"0 1 auto"},[d+"-content"]:{maxWidth:r},[d+"-subtitle"]:{flex:"0 9999 auto"},[`&${t}-horizontal ${d}-rail`]:{[s("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:u("title-horizontal-rail-margin")}},[t+"-title-vertical"]:{[s("title-vertical-row-gap")]:l,[s("title-horizontal-rail-gap")]:i,[s("heading-height")]:u("icon-size-max"),["> "+d]:{flex:"1 1 0%",[d+"-wrapper"]:{flexDirection:"column",rowGap:u("title-vertical-row-gap"),alignItems:"center"},[d+"-section"]:{alignSelf:"stretch"},[d+"-header"]:{flexDirection:"column",alignItems:"center"},[d+`-title, ${d}-subtitle, ${d}-content`]:{textAlign:"center",maxWidth:"100%"},[d+"-subtitle"]:{margin:0},[d+"-rail"]:{position:"absolute",top:0,width:`calc(100% - ${u("icon-size")} - ${u("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${u("icon-size")} / 2 + ${u("title-horizontal-rail-gap")})`}},...QR(e,n,{[d+":last-child"]:{flex:"none"},[d+"-icon"]:{alignSelf:"flex-start"},[d+"-section"]:{width:r}})}}},JR=e=>{var t=e.componentCls,r=t+"-item";return{[t+"-max-count"]:{[r+"-ellipsis"]:{[r+`-title, ${r}-subtitle, ${r}-content`]:{color:e.colorTextDescription}}}}},e5=e=>{var{componentCls:t,fontSizeIcon:r,navContentMaxWidth:n,navArrowColor:o,colorPrimary:a,motionDurationSlow:l,antCls:i,calc:s}=e,c=t+"-item",[i,d]=Q(i,"cmp-steps");return{[""+t+t+"-navigation"]:{[c.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[c+"-wrapper"]:{paddingBlock:e.paddingSM},[c+"-section"]:{maxWidth:n},[c+"-rail"]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:a,transition:"all "+l,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+o,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+o,content:'""'},[`&${c}-active`]:{[i("item-content-active-color")]:d("item-content-color"),[i("item-icon-active-bg-color")]:d("item-icon-bg-color"),[i("item-icon-active-border-color")]:d("item-icon-border-color"),[i("item-icon-active-text-color")]:d("item-icon-text-color")}},[`&${t}-horizontal`]:{[c]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${c}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:s(r).div(2).mul(-1).add("100%").equal(),width:r,height:r,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[c.repeat(4)]:{[c+"-content"]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${c}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:s(r).div(3).mul(2).equal(),height:s(r).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},t5=e=>{var{componentCls:e,lineWidthBold:t,borderRadius:r,borderRadiusSM:n,motionDurationMid:o,paddingXS:a,lineType:l,paddingSM:i,antCls:s,calc:c}=e,d=e+"-item",[s,u]=Q(s,"cmp-steps"),l=(0,Qe.unit)(t)+` ${l} `+u("panel-border-color");return{[""+e+e+"-panel"]:[{[d+"-rail"]:{display:"none"},[`&${e}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{[s("panel-padding")]:i,[s("item-border-radius")]:r,[d]:{[s("panel-bg-color")]:u("item-icon-bg-color"),[s("panel-border-color")]:u("item-icon-border-color"),[s("panel-active-bg-color")]:u("item-icon-active-bg-color"),[s("panel-active-border-color")]:u("item-icon-active-border-color"),[s("panel-title-height")]:`calc(${u("title-font-size")} * ${u("title-line-height")})`,[s("item-base-height")]:c(u("panel-padding")).mul(2).add(u("icon-size")).add(u("panel-title-height")).equal(),[s("item-base-width")]:`calc(${u("item-base-height")} * 0.7071)`,transition:"background-color "+o}},[d+"-icon"]:{display:"none"},[d+"-header"]:{minHeight:"auto"},[e+"-panel-arrow"]:{position:"absolute",top:c(t).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:c(t).mul(2).add("100%").equal(),width:u("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:u("panel-bg-color"),stroke:u("panel-border-color"),strokeWidth:t,vectorEffect:"non-scaling-stroke",transition:"fill "+o}},[d+`:last-child ${e}-panel-arrow`]:{display:"none"},[d]:{padding:u("panel-padding"),background:u("panel-bg-color"),position:"relative",borderBlock:l,"&:not(:first-child)":{paddingInlineStart:`calc(${u("panel-padding")} + ${u("item-base-width")})`},"&:first-child":{borderInlineStart:l,borderStartStartRadius:u("item-border-radius"),borderEndStartRadius:u("item-border-radius")},"&:last-child":{borderInlineEnd:l,borderStartEndRadius:u("item-border-radius"),borderEndEndRadius:u("item-border-radius")},"&-active":{background:u("panel-active-bg-color"),borderColor:u("panel-active-border-color"),[e+"-panel-arrow"]:{path:{fill:u("panel-active-bg-color"),stroke:u("panel-active-border-color")}},[d+`-title, ${d}-subtitle, ${d}-content`]:{color:u("item-icon-active-text-color")}}}},{[`&${e}-small`]:{[s("panel-padding")]:a,[s("item-border-radius")]:n}},{[`&${e}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[(0,Qe.unit)(t)+" 0",`calc(100% + ${u("item-base-width")}) 0`,`calc(100% + ${u("item-base-width")}) 100%`,(0,Qe.unit)(t)+" 100%",`calc(${u("item-base-width")} + ${(0,Qe.unit)(t)}) 50%`].join(",")})`}}}},{[`&${e}-outlined`]:{[e+"-panel-arrow"]:{top:c(t).div(2).mul(-1).equal(),height:c(t).add("100%").equal()}}}]}},r5=e=>{var{calc:t,antCls:r,componentCls:n,lineWidthBold:o,motionDurationSlow:a}=e,l=n+"-item",[r,i]=Q(r,"cmp-steps"),s=t(o).add(o).equal();return{[""+n+n+"-with-progress"]:{[r("item-wrapper-padding-top")]:s,[l+l+"-process"]:{[l+"-icon"]:{position:"relative"}},[l+"-progress-icon"]:{"&-svg":{[r("svg-size")]:t(s).mul(2).add(i("icon-size")).equal(),[r("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${i("svg-size")}, 1px)))`,fontSize:i("svg-size"),lineHeight:i("icon-size-ptg-unitless"),position:"absolute",inset:t(s).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:i("icon-size-ptg-unitless"),strokeWidth:t(i("icon-size-ptg-unitless")).mul(o).equal(),[r("progress-radius")]:t(i("svg-size")).sub(o).mul(i("icon-size-ptg-unitless")).div(2).equal(),r:i("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${a} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},n5=e=>{var{componentCls:t,iconSize:r,dotSize:n,dotCurrentSize:o,marginXXS:a,lineWidthBold:l,fontSizeSM:i,antCls:s}=e,c=t+"-item",[s,d]=Q(s,"cmp-steps");return{[""+t+t+"-dot"]:{[s("icon-size-active")]:o,[s("icon-size")]:n,[s("dot-icon-size")]:n,[s("dot-icon-border-width")]:l,[s("rail-size")]:l,[s("icon-border-width")]:l,[c+`-custom ${c}-icon`]:{fontSize:i},[c+"-icon"]:{position:"relative","&:after":{content:'""',width:r,height:r,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[c+`-active ${c}-icon`]:{[s("icon-size")]:d("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:QR(e,a)}}}},o5=e=>{var{componentCls:e,lineWidthBold:t,antCls:r}=e,n=e+"-item",[,r]=Q(r,"cmp-steps");return{[""+e+e+"-rtl"]:{direction:"rtl",[`&${e}-navigation${e}-horizontal`]:{[n+":after"]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${e}-panel`]:{[e+"-panel-arrow"]:{transform:"scaleX(-1)"},[`&${e}-filled`]:{[n]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${r("item-base-width")}) 0px`,`calc(100% - ${(0,Qe.unit)(t)}) 0px`,`calc(100% - ${r("item-base-width")} - ${(0,Qe.unit)(t)}) 50%`,`calc(100% - ${(0,Qe.unit)(t)}) 100%`,`calc(0px - ${r("item-base-width")}) 100%`].join(",")})`}}}}}}},a5=e=>{var{componentCls:t,iconSizeSM:r,fontSize:n,lineHeight:o,marginXS:a,fontHeight:l,marginSM:i,paddingXS:s,antCls:c}=e,[c]=Q(c,"cmp-steps");return{[""+t+t+"-small"]:{[c("icon-size")]:r,[c("title-horizontal-item-margin")]:i,[c("title-vertical-row-gap")]:s,[c("title-font-size")]:n,[c("title-line-height")]:o,[c("title-horizontal-rail-margin")]:a,[c("title-horizontal-title-height")]:l,[`&${t}-horizontal${t}-title-vertical`]:QR(e,a)}}};let l5="wait",i5="process",s5="finish",c5="error";var d5=e=>{var{componentCls:e,colorTextDisabled:t,colorTextLightSolid:r,colorPrimary:n,colorTextLabel:o,colorError:a,colorErrorHover:l,colorErrorBgFilledHover:i,colorFillTertiary:s,colorErrorBg:c,colorPrimaryBgHover:d,colorPrimaryBg:u,colorText:p,colorTextDescription:m,colorBgContainer:f,colorPrimaryHover:h,lineType:g,antCls:v}=e,b=e+"-item",[v,y]=Q(v,"cmp-steps");return{[e]:[{[b]:{[v("item-solid-line-color")]:"#000",[v("item-title-color")]:"#000",[v("item-content-color")]:"#000",[v("item-subtitle-color")]:y("item-content-color"),[v("item-icon-custom-color")]:"#000",[v("item-icon-bg-color")]:"#000",[v("item-icon-border-color")]:"#000",[v("item-icon-text-color")]:"#fff",[v("item-icon-dot-color")]:"#000",[v("item-icon-dot-bg-color")]:y("item-icon-dot-color"),[v("item-icon-dot-border-color")]:y("item-icon-dot-color"),[v("item-text-hover-color")]:"#000",[v("item-icon-bg-hover-color")]:y("item-icon-bg-color"),[v("item-icon-border-hover-color")]:y("item-icon-border-color"),[v("item-icon-text-hover-color")]:y("item-icon-text-color"),[v("item-content-active-color")]:y("item-content-color"),[v("item-icon-active-bg-color")]:y("item-icon-bg-color"),[v("item-icon-active-border-color")]:y("item-icon-border-color"),[v("item-icon-active-text-color")]:y("item-icon-text-color"),[v("item-process-rail-line-style")]:g},[b+"-rail"]:{borderColor:y("item-solid-line-color")},[b+`-custom ${b}-icon`]:{color:y("item-icon-custom-color")},[b+"-title"]:{color:y("item-title-color")},[b+"-subtitle"]:{color:y("item-subtitle-color")},[b+"-content"]:{color:y("item-content-color")},[b+`-active ${b}-icon`]:{},[b+`-active ${b}-content`]:{color:y("item-content-active-color")},[b+`[role='button']:not(${b}-active):hover`]:{[b+`-title, ${b}-content`]:{color:y("item-text-hover-color")}},[`&:not(${e}-dot)`]:{[b+`:not(${b}-custom)`]:{[b+"-icon"]:{background:y("item-icon-bg-color"),borderColor:y("item-icon-border-color"),color:y("item-icon-text-color")},[`&[role='button']:not(${b}-active):hover`]:{[b+"-icon"]:{background:y("item-icon-bg-hover-color"),borderColor:y("item-icon-border-hover-color"),color:y("item-icon-text-hover-color")}},[`&${b}-active`]:{[b+"-icon"]:{background:y("item-icon-active-bg-color"),borderColor:y("item-icon-active-border-color"),color:y("item-icon-active-text-color")}}}},[`&${e}-dot`]:{[b+"-icon"]:{background:y("item-icon-dot-bg-color"),borderColor:y("item-icon-dot-border-color"),color:y("item-icon-dot-color"),[`&${b}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[b+"-"+l5]:{[v("item-icon-custom-color")]:t,[v("item-title-color")]:m,[v("item-content-color")]:m,[v("item-content-active-color")]:p,[v("item-text-hover-color")]:h},[b+"-rail-"+l5]:{[v("item-solid-line-color")]:t},[b+"-"+i5]:{[v("item-icon-custom-color")]:n,[v("item-title-color")]:p,[v("item-content-color")]:m,[v("item-content-active-color")]:p,[v("item-text-hover-color")]:h},[b+"-rail-"+i5]:{[v("item-solid-line-color")]:n,[v("rail-line-style")]:y("item-process-rail-line-style")},[b+"-"+s5]:{[v("item-icon-custom-color")]:n,[v("item-title-color")]:p,[v("item-content-color")]:m,[v("item-content-active-color")]:p,[v("item-text-hover-color")]:h},[b+"-rail-"+s5]:{[v("item-solid-line-color")]:n},[b+"-"+c5]:{[v("item-icon-custom-color")]:a,[v("item-title-color")]:a,[v("item-content-color")]:a,[v("item-content-active-color")]:a,[v("item-text-hover-color")]:l},[b+"-rail-"+c5]:{[v("item-solid-line-color")]:a}},{[`&${e}-filled`]:{[b]:{[v("item-icon-dot-border-color")]:"transparent"},[b+"-"+l5]:{[v("item-icon-bg-color")]:s,[v("item-icon-border-color")]:"transparent",[v("item-icon-text-color")]:o,[v("item-icon-dot-bg-color")]:t,[v("item-icon-bg-hover-color")]:d,[v("item-icon-border-hover-color")]:"transparent",[v("item-icon-text-hover-color")]:n,[v("item-icon-active-bg-color")]:n,[v("item-icon-active-border-color")]:"transparent",[v("item-icon-active-text-color")]:r},[b+`-${i5}, ${b}-`+s5]:{[v("item-icon-bg-color")]:u,[v("item-icon-border-color")]:"transparent",[v("item-icon-text-color")]:n,[v("item-icon-dot-bg-color")]:n,[v("item-icon-bg-hover-color")]:d,[v("item-icon-border-hover-color")]:"transparent",[v("item-icon-text-hover-color")]:n,[v("item-icon-active-bg-color")]:n,[v("item-icon-active-border-color")]:"transparent",[v("item-icon-active-text-color")]:r},[b+"-"+c5]:{[v("item-icon-bg-color")]:c,[v("item-icon-border-color")]:"transparent",[v("item-icon-text-color")]:a,[v("item-icon-dot-bg-color")]:a,[v("item-icon-bg-hover-color")]:i,[v("item-icon-border-hover-color")]:"transparent",[v("item-icon-text-hover-color")]:a,[v("item-icon-active-bg-color")]:a,[v("item-icon-active-border-color")]:"transparent",[v("item-icon-active-text-color")]:r}}},{[`&${e}-outlined`]:{[b]:{[v("item-icon-dot-bg-color")]:"transparent"},[b+"-"+l5]:{[v("item-icon-bg-color")]:f,[v("item-icon-border-color")]:t,[v("item-icon-text-color")]:t,[v("item-icon-dot-color")]:t,[v("item-icon-bg-hover-color")]:"transparent",[v("item-icon-border-hover-color")]:h,[v("item-icon-text-hover-color")]:h,[v("item-icon-active-bg-color")]:s},[b+`-${i5}, ${b}-`+s5]:{[v("item-icon-bg-color")]:f,[v("item-icon-border-color")]:n,[v("item-icon-text-color")]:n,[v("item-icon-dot-color")]:n,[v("item-icon-bg-hover-color")]:"transparent",[v("item-icon-border-hover-color")]:h,[v("item-icon-text-hover-color")]:h,[v("item-icon-active-bg-color")]:u},[b+"-"+c5]:{[v("item-icon-bg-color")]:f,[v("item-icon-border-color")]:a,[v("item-icon-text-color")]:a,[v("item-icon-dot-color")]:a,[v("item-icon-bg-hover-color")]:"transparent",[v("item-icon-border-hover-color")]:l,[v("item-icon-text-hover-color")]:l,[v("item-icon-active-bg-color")]:c}}}]}},u5=e=>{var{componentCls:e,marginXXS:t,paddingSM:r,controlHeight:n,antCls:o,calc:a}=e,l=e+"-item",[o,i]=Q(o,"cmp-steps");return{[e+"-vertical"]:{[o("vertical-rail-margin")]:a(t).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",["> "+l]:{minHeight:a(n).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[l+"-icon"]:{marginInlineStart:`calc((${i("icon-size-max")} - ${i("icon-size")}) / 2)`},[l+"-rail"]:{[o("rail-offset")]:a(i("heading-height")).sub(i("icon-size")).div(2).equal(),borderInlineStartWidth:i("rail-size"),position:"absolute",top:a(i("icon-size")).add(i("item-wrapper-padding-top")).add(i("rail-offset")).add(i("vertical-rail-margin")).equal(),insetInlineStart:a(i("icon-size-max")).div(2).equal(),bottom:a(i("vertical-rail-margin")).sub(i("rail-offset")).equal(),marginInlineStart:`calc(${i("rail-size")} / -2)`}}}}};var p5=Be("Steps",e=>{e=ze(e,{inlineDotSize:6});return[(e=>{var{componentCls:t,antCls:r}=e,n=t+"-item",[r,o]=Q(r,"cmp-steps");return{[t]:{[r("title-font-size")]:e.fontSizeLG,[r("title-line-height")]:e.lineHeightLG,[r("subtitle-font-size")]:e.fontSize,[r("subtitle-line-height")]:e.lineHeight,[r("item-wrapper-padding-top")]:"0px",[r("rail-size")]:e.lineWidth,[r("rail-line-style")]:e.lineType,...F(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[n+"-wrapper"]:{display:"flex",flexWrap:"nowrap",paddingTop:o("item-wrapper-padding-top")},[n+"-header"]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[n+"-title"]:{color:e.colorText,fontSize:o("title-font-size"),lineHeight:o("title-line-height"),wordBreak:"break-word"},[n+"-subtitle"]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:o("subtitle-font-size"),lineHeight:o("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[n+"-content"]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[n+"-rail"]:{borderStyle:o("rail-line-style"),borderWidth:0},[n+`-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:"all "+e.motionDurationSlow},[`&${t}-ellipsis`]:{[n+`-title, ${n}-subtitle, ${n}-content`]:an},[n+"[role='button']:focus-visible"]:dn(e),[n+`[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}})(e),YR(e),u5(e),GR(e),ZR(e),a5(e),n5(e),d5(e),e5(e),t5(e),UR(e),JR(e),r5(e),o5(e)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));function m5(c,e,t,r,d){let n=void 0!==r&&3<=r&&c.length>r,u=e-t;e=ft.useMemo(()=>{if(!n)return c.map((e,t)=>({item:e,originIndex:t}));let s=((t,e,r)=>{var n,o=Math.min(Math.max(e,0),t-1),a=Math.min(r,t),l=new Set([0,o,t-1]);for(let e=1;l.size<a&&e<t;e+=1)for(n of[o-e,o+e,e,t-1-e]){if(l.size>=a)break;0<=n&&n<t&&l.add(n)}return Array.from(l).sort((e,t)=>e-t).flatMap((e,t,r)=>0<t&&1<e-r[t-1]?[null,e]:[e])})(c.length,u,r);return s.map((e,t)=>{return null===e?(r=c,n=u,o=s[t-1],t=s[t+1],a=d,l=r[o].key??o,i=r[t].key??t,r=r.slice(o+1,t).some(e=>"error"===e.status),{item:{key:`ellipsis-${l}-`+i,title:"",icon:ft.createElement(vb),status:r?"error":t-1<n?"finish":"wait",disabled:!0,className:a+"-item-ellipsis"},originIndex:-1}):(o=c[e],l=e,{item:{...o,key:o.key??l},originIndex:l});var r,n,o,a,l,i})},[n,u,c,r,d]),t=e.findIndex(e=>e.originIndex===u);return{canApplyMaxCount:n,displaySteps:e,mappedDisplayCurrent:0<=t?t:u,displayItems:e.map(e=>e.item)}}let f5={itemIcon:ac};var h5=e=>{let{size:H,className:A,rootClassName:D,style:L,variant:n="filled",type:t,classNames:F,styles:W,direction:r,orientation:o,responsive:a=!0,progressDot:l,labelPlacement:i,titlePlacement:s,ellipsis:c,maxCount:d,offset:u=0,items:p,percent:j,current:m=0,initial:f=0,onChange:h,iconRender:g,..._}=e;var v=ft.useContext(VR),b=Fe("steps"),{getPrefixCls:y,direction:K,className:C,style:x}=b;let w,S,k={},E=(v?k={root:v.rootComponent,item:v.itemComponent}:{classNames:w,styles:S}=b,y()),N=y("steps",e.prefixCls),I=N+"-item-icon";var[v,b]=p5(N),[y]=Q(E,"cmp-steps"),M=mc(H),$=ft.useMemo(()=>(p||[]).filter(Boolean),[p]);let R=Ig(a).xs,P=ft.useMemo(()=>(!t||"default"===t)&&l?"dot":t,[l,t]),z="inline"===P,B="dot"===P||"inline"===P,V=ft.useMemo(()=>"dot"===P&&Je(l)?l:void 0,[P,l]),T=ft.useMemo(()=>{var e=o||r;return"panel"!==P&&(a&&R||"vertical"===e)?"vertical":"horizontal"},[o,r,P,a,R]);var X=ft.useMemo(()=>B||"vertical"===T?"vertical"===T?"horizontal":"vertical":"navigation"!==t&&(s||i)||"horizontal",[B,i,T,s,t]);let O=z?void 0:j,{canApplyMaxCount:q,displaySteps:G,mappedDisplayCurrent:Y,displayItems:U}=m5($,m,f,d,N);var $={...e,variant:n,size:M,type:P,orientation:T,titlePlacement:X,current:m,initial:f,percent:O,responsive:a,offset:u,ellipsis:c,maxCount:d},e=We(x),x=We(L),[e,x]=je([f5,w,F],[S,e,W,x],{props:$}),$="panel"===P?e=>ft.createElement(ft.Fragment,null,e,ft.createElement(XR,{prefixCls:N})):void 0,y={[y("items-offset")]:""+u},C=bt(C,N+"-"+n,{[N+"-"+P]:"dot"!==P&&P,[N+"-rtl"]:"rtl"===K,[N+"-dot"]:B,[N+"-ellipsis"]:c,[N+"-max-count"]:q,[N+"-with-progress"]:void 0!==O,[N+"-small"]:"small"===M},A,D,v,b);return ft.createElement(KR,{..._,prefixCls:N,className:C,style:y,classNames:e,styles:x,orientation:T,titlePlacement:X,components:k,initial:0,current:Y,items:U,onChange:h?e=>{e=G[e];h&&e&&0<=e.originIndex&&h(f+e.originIndex)}:void 0,iconRender:(e,t)=>{var{item:t,index:r,active:n,components:{Icon:o}}=t,a=G[r]?.originIndex,l=void 0!==a&&0<=a?f+a:r,{status:i,icon:a}=t;let s=null;if(B||a)s=a;else switch(i){case"finish":s=ft.createElement(ig,{className:I+"-finish"});break;case"error":s=ft.createElement(Ko,{className:I+"-error"});break;default:{let e=ft.createElement("span",{className:I+"-number"},l+1);"process"===i&&void 0!==O&&(e=ft.createElement(qR,{prefixCls:N,rootPrefixCls:E,percent:O},e)),s=e}}let c=ft.createElement(o,null,s);return g?c=g(c,{index:l,active:n,item:t,components:{Icon:o}}):Je(V)&&(c=V(c,{index:l,...t})),c},itemRender:(e,t)=>{let r=e;return z&&t.item.content&&(r=ft.createElement(rv,{destroyOnHidden:!0,title:t.item.content},e)),ft.createElement(pc,{component:"Steps",disabled:t.item.disabled||!h,colorSource:"filled"===n?"color":null},r)},itemWrapperRender:$})};function g5(){return(g5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var e=ft.forwardRef(({prefixCls:e="rc-switch",className:t,checked:r,defaultChecked:n,disabled:o,loadingIcon:a,checkedChildren:l,unCheckedChildren:i,onClick:s,onChange:c,onKeyDown:d,styles:u,classNames:p,...m},f)=>{let[h,g]=vt(n??!1,r);function v(e,t){let r=h;return o||(r=e,g(r),c?.(r,t)),r}n=bt(e,t,{[e+"-checked"]:h,[e+"-disabled"]:o});return ft.createElement("button",g5({},m,{type:"button",role:"switch","aria-checked":h,disabled:o,className:n,ref:f,onKeyDown:function(e){e.which===Ce.LEFT?v(!1,e):e.which===Ce.RIGHT&&v(!0,e),d?.(e)},onClick:function(e){var t=v(!h,e);s?.(t,e)}}),a,ft.createElement("span",{className:e+"-inner"},ft.createElement("span",{className:bt(e+"-inner-checked",p?.content),style:u?.content},l),ft.createElement("span",{className:bt(e+"-inner-unchecked",p?.content),style:u?.content},i)))}),v5=(e.displayName="Switch",e);var b5=Be("Switch",e=>{e=ze(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[(e=>{var{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:{...F(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:(0,Qe.unit)(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all "+e.motionDurationMid,userSelect:"none",...zc(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...un(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}})(e),(e=>{let{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:l,switchDuration:i,calc:s}=e;var c=t+"-inner",d=(0,Qe.unit)(s(l).add(s(n).mul(2)).equal()),u=(0,Qe.unit)(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(e=>`${e} ${i} ease-in-out`).join(", "),...zc(),[c+`-checked, ${c}-unchecked`]:{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:r,transition:["margin-inline-start","margin-inline-end"].map(e=>`${e} ${i} ease-in-out`).join(", "),...zc()},[c+"-checked"]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[c+"-unchecked"]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked `+c]:{paddingInlineStart:o,paddingInlineEnd:a,[c+"-checked"]:{marginInlineStart:0,marginInlineEnd:0},[c+"-unchecked"]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) `+c]:{[c+"-unchecked"]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked `+c]:{[c+"-checked"]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}})(e),(e=>{var{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:l}=e,i=t+"-handle";return{[t]:{[i]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...zc(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:l(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...Bc()}},[`&${t}-checked `+i]:{insetInlineStart:`calc(100% - ${(0,Qe.unit)(l(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[i+"::before"]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${i}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}})(e),(e=>{var{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[t+"-loading-icon"+e.iconCls]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}})(e),(e=>{var{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:l,handleSizeSM:i,calc:s}=e,c=t+"-inner",d=(0,Qe.unit)(s(i).add(s(n).mul(2)).equal()),u=(0,Qe.unit)(s(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:(0,Qe.unit)(r),[t+"-inner"]:{paddingInlineStart:l,paddingInlineEnd:a,[c+`-checked, ${c}-unchecked`]:{minHeight:r},[c+"-checked"]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[c+"-unchecked"]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[t+"-handle"]:{width:i,height:i},[t+"-loading-icon"]:{top:s(s(i).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[t+"-inner"]:{paddingInlineStart:a,paddingInlineEnd:l,[c+"-checked"]:{marginInlineStart:0,marginInlineEnd:0},[c+"-unchecked"]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[t+"-handle"]:{insetInlineStart:`calc(100% - ${(0,Qe.unit)(s(i).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) `+c]:{[c+"-unchecked"]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked `+c]:{[c+"-checked"]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}})(e)]},e=>{var{fontSize:e,lineHeight:t,controlHeight:r,colorWhite:n}=e,e=e*t,t=r/2,r=e-4,o=t-4;return{trackHeight:e,trackHeightSM:t,trackMinWidth:2*r+8,trackMinWidthSM:2*o+4,trackPadding:2,handleBg:n,handleSize:r,handleSizeSM:o,handleShadow:"0 2px 4px 0 "+new kn("#00230b").setA(.2).toRgbString(),innerMinMargin:r/2,innerMaxMargin:2+r+4,innerMinMarginSM:o/2,innerMaxMarginSM:2+o+4}}),c=ft.forwardRef((e,t)=>{let{prefixCls:r,size:n,disabled:o,loading:a,className:l,rootClassName:i,style:s,checked:c,value:d,defaultChecked:u,defaultValue:p,onChange:m,styles:f,classNames:h,...g}=e,[v,b]=vt(u??p??!1,c??d);var{getPrefixCls:y,direction:C,className:x,style:w,classNames:S,styles:k}=Fe("switch"),E=ft.useContext($s),E=(o??E)||a,y=y("switch",r),[N,I]=b5(y),M=mc(n),e={...e,size:M,disabled:E},w=We(w),$=We(s),[S,k]=je([S,h],[k,w,f,$],{props:e}),w=ft.createElement("div",{className:bt(y+"-handle",S.indicator),style:k.indicator},a&&ft.createElement(Al,{className:y+"-loading-icon"})),$=bt(x,{[y+"-small"]:"small"===M,[y+"-loading"]:a,[y+"-rtl"]:"rtl"===C},l,i,S.root,N,I);return ft.createElement(pc,{component:"Switch",disabled:E},ft.createElement(v5,{...g,classNames:S,styles:k,checked:v,onChange:(...e)=>{b(e[0]),m?.(...e)},prefixCls:y,className:$,style:k.root,disabled:E,ref:t,loadingIcon:w}))}),y5=(c.__ANT_SWITCH=!0,c);let C5={},x5="rc-table-internal-hook";function w5(e){let o=ft.createContext(void 0);return{Context:o,Provider:({value:t,children:e})=>{let r=ft.useRef(t),[n]=(r.current=t,ft.useState(()=>({getValue:()=>r.current,listeners:new Set})));return gt(()=>{(0,yt().unstable_batchedUpdates)(()=>{n.listeners.forEach(e=>{e(t)})})},[t]),ft.createElement(o.Provider,{value:n},e)},defaultValue:e}}function S5(e,n){let t=ht("function"==typeof n?n:t=>{if(void 0===n)return t;if(!Array.isArray(n))return t[n];let r={};return n.forEach(e=>{r[e]=t[e]}),r}),r=ft.useContext(e?.Context),{listeners:o,getValue:a}=r||{},l=ft.useRef(),[,i]=(l.current=t(r?a():e?.defaultValue),ft.useState({}));return gt(()=>{if(r)return o.add(e),()=>{o.delete(e)};function e(e){e=t(e);(0,Vt.A)(l.current,e,!0)||i({})}},[r]),l.current}function k5(){return(k5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E5(){let i=ft.createContext(null);function s(){return ft.useContext(i)}return{makeImmutable:function(o,a){let l=Ie(o);var e=(e,t)=>{var t=l?{ref:t}:{},r=ft.useRef(0),n=ft.useRef(e);return null!==s()?ft.createElement(o,k5({},e,t)):(a&&!a(n.current,e)||(r.current+=1),n.current=e,ft.createElement(i.Provider,{value:r.current},ft.createElement(o,k5({},e,t))))};return l?ft.forwardRef(e):e},responseImmutable:function(r,e){let n=Ie(r);var t=(e,t)=>{t=n?{ref:t}:{};return s(),ft.createElement(r,k5({},e,t))};return ft.memo(n?ft.forwardRef(t):t,e)},useImmutableMark:s}}var{}=E5();let{makeImmutable:N5,responseImmutable:I5,useImmutableMark:M5}=E5();var $5=w5();var R5=ft.createContext({renderWithProps:!1});let P5="RC_TABLE_KEY";function z5(e){let n=[],o={};return e.forEach(e=>{var{key:e,dataIndex:t}=e||{};let r=e||(null==(e=t)?[]:Array.isArray(e)?e:[e]).join("-")||P5;for(;o[r];)r+="_next";o[r]=!0,n.push(r)}),n}function B5(e){return null!=e}function T5(o,a,l,i,s,c){let d=ft.useContext(R5);var e=M5();return(0,tt.A)(()=>{if(B5(i))return[i];var e,t=null==a||""===a?[]:Array.isArray(a)?a:[a],t=tr(o,t);let r=t,n=void 0;return s&&(t=s(t,o,l),!(e=t)||"object"!=typeof e||Array.isArray(e)||ft.isValidElement(e)?r=t:(r=t.children,n=t.props,d.renderWithProps=!0)),[r,n]},[e,o,i,a,s,l],(e,t)=>{var r,n;return c?([,r]=e,[,n]=t,c(n,r)):!!d.renderWithProps||!(0,Vt.A)(e,t,!0)})}function O5(o,a){return S5($5,e=>{var t,r,n;return t=o,r=a||1,n=e.hoverStartRow,[t<=e.hoverEndRow&&n<=t+r-1,e.onHover]})}function H5(){return(H5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let A5=({ellipsis:e,rowType:t,children:r})=>{let n;e=!0===e?{showTitle:!0}:e;return e&&(e.showTitle||"header"===t)&&("string"==typeof r||"number"==typeof r?n=r.toString():ft.isValidElement(r)&&"string"==typeof r.props?.children&&(n=r.props?.children)),n};var D5=ft.memo(e=>{let{component:t,children:r,ellipsis:n,scope:o,prefixCls:a,className:l,style:i,align:s,record:c,render:d,dataIndex:u,renderIndex:p,shouldCellUpdate:m,index:f,rowType:H,colSpan:A,rowSpan:D,fixStart:h,fixEnd:g,fixedStartShadow:v,fixedEndShadow:b,offsetFixedStartShadow:L,offsetFixedEndShadow:F,zIndex:y,zIndexReverse:C,appendNode:x,additionalProps:w={},originRowSpan:W,isSticky:j}=e;var e=a+"-cell",{allColumnsFixedLeft:S,rowHoverable:k}=S5($5,["allColumnsFixedLeft","rowHoverable"]),[E,N]=T5(c,u,p,r,d,m),I={};let M="number"==typeof h&&!S,$="number"==typeof g&&!S;var[S,R]=S5($5,({scrollInfo:e})=>{var t;return M||$?([e,t]=e,[1<=(M&&v&&e)-L,1<($&&b&&t-e)-F]):[!1,!1]}),P=(M&&(I.insetInlineStart=h,I["--z-offset"]=y,I["--z-offset-reverse"]=C),$&&(I.insetInlineEnd=g,I["--z-offset"]=y,I["--z-offset-reverse"]=C),N?.colSpan??w.colSpan??A??1),z=N?.rowSpan??w.rowSpan??D??1;let B=N?.rowSpan??W??z,[_,T]=O5(f,B);var K=ht(e=>{c&&T(f,f+B-1),w?.onMouseEnter?.(e)}),V=ht(e=>{c&&T(-1,-1),w?.onMouseLeave?.(e)});if(0===P||0===z)return null;var X=w.title??A5({rowType:H,ellipsis:n,children:E}),S=bt(e,l,{[e+"-fix"]:M||$,[e+"-fix-start"]:M,[e+"-fix-end"]:$,[e+"-fix-start-shadow"]:v,[e+"-fix-start-shadow-show"]:v&&S,[e+"-fix-end-shadow"]:b,[e+"-fix-end-shadow-show"]:b&&R,[e+"-ellipsis"]:n,[e+"-with-append"]:x,[e+"-fix-sticky"]:(M||$)&&j,[e+"-row-hover"]:!N&&_},w.className,N?.className),R={},I=(s&&(R.textAlign=s),{...N?.style,...I,...R,...w.style,...i});let O=E;return"object"!=typeof O||Array.isArray(O)||ft.isValidElement(O)||(O=null),n&&(v||b)&&(O=ft.createElement("span",{className:e+"-content"},O)),ft.createElement(t,H5({},N,w,{className:S,style:I,title:X,scope:o,onMouseEnter:k?K:void 0,onMouseLeave:k?V:void 0,colSpan:1!==P?P:null,rowSpan:1!==z?z:null}),x,O)});function L5(e){return"start"===e.fixed}function F5(e){return"end"===e.fixed}function W5(t,r,n,o){var e=n[t]||{},a=n[r]||{};let l=null,i=null,s=(L5(e)&&L5(a)?l=o.start[t]:F5(a)&&F5(e)&&(i=o.end[r]),!1),c=!1,d=0,u=0,p=(null!==l&&(s=!n[r+1]||!L5(n[r+1]),d=2*n.length-t,u=n.length+t),null!==i&&(c=!n[t-1]||!F5(n[t-1]),d=r,u=n.length-r),0),m=0;if(s)for(let e=0;e<t;e+=1)L5(n[e])||(p+=o.widths[e]||0);if(c)for(let e=n.length-1;e>r;--e)F5(n[e])||(m+=o.widths[e]||0);return{fixStart:l,fixEnd:i,fixedStartShadow:s,fixedEndShadow:c,offsetFixedStartShadow:p,offsetFixedEndShadow:m,isSticky:o.isSticky,zIndex:d,zIndexReverse:u}}var j5=ft.createContext({});function _5(){return(_5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=e=>{let{className:t,index:r,children:n,colSpan:o=1,rowSpan:a,align:l}=e;e=S5($5,["prefixCls"]).prefixCls;let{scrollColumnIndex:i,stickyOffsets:s,flattenColumns:c}=ft.useContext(j5),d=1+(r+o-1)===i?o+1:o;var u=ft.useMemo(()=>W5(r,r+d-1,c,s),[r,d,c,s]);return ft.createElement(D5,_5({className:t,index:r,component:"td",prefixCls:e,record:null,dataIndex:null,align:l,colSpan:d,rowSpan:a,render:()=>n},u))},d=e=>{e=e.children;return e},K5=(d.Row=e=>{let{children:t,...r}=e;return ft.createElement("tr",r,t)},d.Cell=s,d),V5=I5(e=>{let{children:t,stickyOffsets:r,flattenColumns:n}=e;e=S5($5,"prefixCls");let o=n.length-1,a=n[o];var l=ft.useMemo(()=>({stickyOffsets:r,flattenColumns:n,scrollColumnIndex:a?.scrollbar?o:null}),[a,n,o,r]);return ft.createElement(j5.Provider,{value:l},ft.createElement("tfoot",{className:e+"-summary"},t))}),l=K5;function X5(r,n,o,a){return ft.useMemo(()=>{if(o?.size){var t=[];for(let e=0;e<r?.length;e+=1)!function t(r,n,o,a,l,i,e){var s=i(n,e),e=(r.push({record:n,indent:o,index:e,rowKey:s}),l?.has(s));if(n&&Array.isArray(n[a])&&e)for(let e=0;e<n[a].length;e+=1)t(r,n[a][e],o+1,a,l,i,e)}(t,r[e],0,n,o,a,e);return t}return r?.map((e,t)=>({record:e,indent:0,index:t,rowKey:a(e,t)}))},[r,n,o,a])}function q5(r,e,t,n){var o=S5($5,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","forceRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]);let{flattenColumns:a,expandableType:l,expandedKeys:i,childrenColumnName:s,onTriggerExpand:c,rowExpandable:d,onRow:u,expandRowByClick:p,rowClassName:m}=o;var f="nest"===l,h="row"===l&&(!d||d(r));let g=h||f;var e=i&&i.has(e),v=s&&r&&r[s],b=ht(c),y=u?.(r,t);let C=y?.onClick;let x;"string"==typeof m?x=m:"function"==typeof m&&(x=m(r,t,n));t=z5(a);return{...o,columnsKey:t,nestExpandable:f,expanded:e,hasNestChildren:v,record:r,onTriggerExpand:b,rowSupportExpand:h,expandable:g,rowProps:{...y,className:bt(x,y?.className),onClick:(e,...t)=>{p&&g&&c(r,e),C?.(e,...t)}}}}var G5=e=>{var{prefixCls:e,children:t,component:r,cellComponent:n,className:o,expanded:a,colSpan:l,isEmpty:i,stickyOffset:s=0}=e,{scrollbarSize:c,fixHeader:d,fixColumn:u,componentWidth:p,horizonScroll:m}=S5($5,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let f=t;return(i?m&&p:u)&&(f=ft.createElement("div",{style:{width:p-s-(d&&!i?c:0),position:"sticky",left:s,overflow:"hidden"},className:e+"-expanded-row-fixed"},f)),ft.createElement(r,{className:o,style:{display:a?null:"none"}},ft.createElement(D5,{component:n,prefixCls:e,colSpan:l},f))};function Y5({prefixCls:e,record:t,onExpand:r,expanded:n,expandable:o}){var a=e+"-row-expand-icon";return o?ft.createElement("span",{className:bt(a,{[e+"-row-expanded"]:n,[e+"-row-collapsed"]:!n}),onClick:e=>{r(t,e),e.stopPropagation()}}):ft.createElement("span",{className:bt(a,e+"-row-spaced")})}function U5(e,n,o){let a=[];return function r(e){(e||[]).forEach((e,t)=>{a.push(n(e,t)),r(e[o])})}(e),a}function Q5(e,t,r,n){return"string"==typeof e?e:"function"==typeof e?e(t,r,n):""}function Z5(){return(Z5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function J5(e,t,r,n,o,a=[],l=0){var{record:e,prefixCls:i,columnsKey:s,fixedInfoList:c,expandIconColumnIndex:d,nestExpandable:u,indentSize:p,expandIcon:m,expanded:f,hasNestChildren:h,onTriggerExpand:g,expandable:v,expandedKeys:b}=e,s=s[r],c=c[r];let y;r===(d||0)&&u&&(y=ft.createElement(ft.Fragment,null,ft.createElement("span",{style:{paddingLeft:p*n+"px"},className:i+"-row-indent indent-level-"+n}),m({prefixCls:i,expanded:f,expandable:h,record:e,onExpand:g})));d={...t.onCell?.(e,o)};let C;if(l){var{rowSpan:x=1}=d;if(v&&x&&r<l){let t=C=x;for(let e=o;e<o+x;e+=1){var w=a[e];b.has(w)&&(t+=1)}d.rowSpan=t}}return{key:s,fixedInfo:c,appendCellNode:y,additionalCellProps:d,originRowSpan:C}}var e8=I5(e=>{let{className:t,style:r,classNames:c,styles:d,record:u,index:p,renderIndex:m,rowKey:n,rowKeys:f,indent:h=0,rowComponent:o,cellComponent:g,scopeCellComponent:v,expandedRowInfo:b}=e,y=q5(u,n,p,h),{prefixCls:C,flattenColumns:a,expandedRowClassName:l,expandedRowRender:i,forceRender:s,rowProps:x,expanded:w,rowSupportExpand:S}=y;var e=ft.useRef(!1),k=(e.current||=w,Q5(l,u,p,h)),E=ft.createElement(o,Z5({},x,{"data-row-key":n,className:bt(t,C+"-row",C+"-row-level-"+h,x?.className,c.row,{[k]:1<=h}),style:{...r,...x?.style,...d.row}}),a.map((e,t)=>{var{render:r,dataIndex:n,className:o}=e,{key:t,fixedInfo:a,appendCellNode:l,additionalCellProps:i,originRowSpan:s}=J5(y,e,t,h,p,f,b?.offset);return ft.createElement(D5,Z5({className:bt(o,c.cell),style:d.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?v:g,prefixCls:C,key:t,record:u,index:p,renderIndex:m,dataIndex:n,render:r,shouldCellUpdate:e.shouldCellUpdate},a,{appendNode:l,additionalProps:i,originRowSpan:s}))}));let N;return S&&(s||e.current||w)&&(e=i(u,p,h+1,w),N=ft.createElement(G5,{expanded:w,className:bt(C+"-expanded-row",C+"-expanded-row-level-"+(h+1),k),prefixCls:C,component:o,cellComponent:g,colSpan:b?b.colSpan:a.length,isEmpty:!1,stickyOffset:b?.sticky},e)),ft.createElement(ft.Fragment,null,E,N)}),t8=e=>{let{columnKey:t,onColumnResize:r,title:n}=e,o=ft.useRef(null);return gt(()=>{o.current&&r(t,o.current.offsetWidth)},[]),ft.createElement(gr,{data:t},ft.createElement("td",{ref:o,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},ft.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},n||" ")))},r8=({prefixCls:e,columnsKey:t,onColumnResize:r,columns:n})=>{let o=ft.useRef(null);var a=S5($5,["measureRowRender"]).measureRowRender,e=ft.createElement("tr",{"aria-hidden":"true",className:e+"-measure-row",style:{height:0},ref:o},ft.createElement(gr.Collection,{onBatchResize:e=>{mt(o.current)&&e.forEach(({data:e,size:t})=>{r(e,t.offsetWidth)})}},t.map(t=>{var e=n.find(e=>e.key===t)?.title;return ft.createElement(t8,{key:t,columnKey:t,onColumnResize:r,title:ft.isValidElement(e)?ft.cloneElement(e,{ref:null}):e})})));return"function"==typeof a?a(e):e},n8=I5(e=>{var{data:e,measureColumnWidth:t}=e;let{prefixCls:r,getComponent:n,onColumnResize:o,flattenColumns:a,getRowKey:l,expandedKeys:i,childrenColumnName:s,emptyNode:c,classNames:d,styles:u,expandedRowOffset:p=0,colWidths:m}=S5($5,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:f={}}=d||{},{body:h={}}=u||{},g=X5(e,s,i,l),v=ft.useMemo(()=>g.map(e=>e.rowKey),[g]);var b=ft.useRef({renderWithProps:!1});let y=ft.useMemo(()=>{var e=a.length-p;let t=0;for(let e=0;e<p;e+=1)t+=m[e]||0;return{offset:p,colSpan:e,sticky:t}},[a.length,p,m]);var C=n(["body","wrapper"],"tbody");let x=n(["body","row"],"tr"),w=n(["body","cell"],"td"),S=n(["body","cell"],"th"),k;k=e.length?g.map((e,t)=>{var{record:e,indent:r,index:n,rowKey:o}=e;return ft.createElement(e8,{classNames:f,styles:h,key:o,rowKey:o,rowKeys:v,record:e,index:t,renderIndex:n,rowComponent:x,cellComponent:w,scopeCellComponent:S,indent:r,expandedRowInfo:y})}):ft.createElement(G5,{expanded:!0,className:r+"-placeholder",prefixCls:r,component:x,cellComponent:w,colSpan:a.length,isEmpty:!0},c);e=z5(a);return ft.createElement(R5.Provider,{value:b.current},ft.createElement(C,{style:h.wrapper,className:bt(r+"-tbody",f.wrapper)},t&&ft.createElement(r8,{prefixCls:r,columnsKey:e,onColumnResize:o,columns:a}),k))});let o8="RC_TABLE_INTERNAL_COL_DEFINE";function a8(){return(a8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l8=e=>{var{colWidths:t,columns:a,columCount:e}=e,l=S5($5,["tableLayout"]).tableLayout,i=[];let s=!1;for(let o=(e||a.length)-1;0<=o;--o){var c=t[o],d=a&&a[o];let r,n;if(d&&(r=d[o8],"auto"===l)&&(n=d.minWidth),c||n||r||s){let{columnType:e,...t}=r||{};i.unshift(ft.createElement("col",a8({key:o,style:{width:c,minWidth:n}},t))),s=!0}}return 0<i.length?ft.createElement("colgroup",null,i):null};var n=ft.forwardRef((e,t)=>{let{className:r,style:n,noData:o,columns:a,flattenColumns:l,colWidths:i,colGroup:s,columCount:c,stickyOffsets:d,direction:u,fixHeader:p,stickyTopOffset:m,stickyBottomOffset:f,stickyClassName:h,scrollX:g,tableLayout:v="fixed",onScroll:b,maxContentScroll:H,children:y,...C}=e,{prefixCls:x,scrollbarSize:w,isSticky:S,getComponent:k}=S5($5,["prefixCls","scrollbarSize","isSticky","getComponent"]);e=k(["header","table"],"table");let E=S&&!p?0:w,N=ft.useRef(null);var I=ft.useCallback(e=>{Ee(t,e),Ee(N,e)},[]),M=(ft.useEffect(()=>{function e(t){var{currentTarget:r,deltaX:n}=t;if(n){var{scrollLeft:o,scrollWidth:a,clientWidth:l}=r,a=a-l;let e=o+n;e="rtl"===u?(e=Math.max(-a,e),Math.min(0,e)):(e=Math.min(a,e),Math.max(0,e)),b({currentTarget:r,scrollLeft:e}),t.preventDefault()}}let t=N.current;return t?.addEventListener("wheel",e,{passive:!1}),()=>{t?.removeEventListener("wheel",e)}},[]),l[l.length-1]);let $={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:x+"-cell-scrollbar"})};var R,P,M=(0,ft.useMemo)(()=>E?[...a,$]:a,[E,a]),z=(0,ft.useMemo)(()=>E?[...l,$]:l,[E,l]),B=(0,ft.useMemo)(()=>{var{start:e,end:t}=d;return{...d,start:e,end:[...t.map(e=>e+E),0],isSticky:S}},[E,d,S]);R=i,P=c;let T=(0,ft.useMemo)(()=>{var t=[];for(let e=0;e<P;e+=1){var r=R[e];if(void 0===r)return null;t[e]=r}return t},[R.join("_"),P]);var O=(0,ft.useMemo)(()=>{var e=!T||!T.length||T.every(e=>!e);return o||e},[o,T]);return ft.createElement("div",{style:{overflow:"hidden",...S?{top:m,bottom:f}:{},...n},ref:I,className:bt(r,{[h]:!!h})},ft.createElement(e,{style:{tableLayout:v,minWidth:"100%",width:g}},O?s:ft.createElement(l8,{colWidths:[...T,E],columCount:c+1,columns:z}),y({...C,stickyOffsets:B,columns:M,flattenColumns:z})))}),i8=ft.memo(n);function s8(){return(s8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c8=e=>{let{cells:t,stickyOffsets:l,flattenColumns:i,rowComponent:r,cellComponent:s,onHeaderRow:n,index:o,classNames:a,styles:c}=e,d=S5($5,["prefixCls"]).prefixCls,u,p=(n&&(u=n(t.map(e=>e.column),o)),z5(t.map(e=>e.column)));return ft.createElement(r,s8({},u,{className:a.row,style:c.row}),t.map((e,t)=>{var{column:r,colStart:n,colEnd:o,colSpan:a}=e,n=W5(n,o,i,l),o=r?.onHeaderCell?.(r)||{};return ft.createElement(D5,s8({},e,{scope:r.title?1<a?"colgroup":"col":null,ellipsis:r.ellipsis,align:r.align,component:s,prefixCls:d,key:p[t]},n,{additionalProps:o,rowType:"header"}))}))};function d8(e,i,s){let c=[];!function o(e,t,a=0){c[a]=c[a]||[];let l=t;return e.filter(Boolean).map(e=>{var t={key:e.key,className:bt(e.className,i.cell)||"",style:s.cell,children:e.title,column:e,colStart:l};let r=1;var n=e.children;return n&&0<n.length&&(r=o(n,l,a+1).reduce((e,t)=>e+t,0),t.hasSubColumns=!0),"colSpan"in e&&({colSpan:r}=e),"rowSpan"in e&&(t.rowSpan=e.rowSpan),t.colSpan=r,t.colEnd=t.colStart+r-1,c[a].push(t),l+=r,r})}(e,0);let r=c.length;for(let t=0;t<r;t+=1)c[t].forEach(e=>{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=r-t)});return c}var u8=I5(e=>{let{stickyOffsets:r,columns:t,flattenColumns:n,onHeaderRow:o}=e;var{prefixCls:e,getComponent:a,classNames:l,styles:i}=S5($5,["prefixCls","getComponent","classNames","styles"]);let{header:s={}}=l||{},{header:c={}}=i||{};l=ft.useMemo(()=>d8(t,s,c),[t,s,c]),i=a(["header","wrapper"],"thead");let d=a(["header","row"],"tr"),u=a(["header","cell"],"th");return ft.createElement(i,{className:bt(e+"-thead",s.wrapper),style:c.wrapper},l.map((e,t)=>ft.createElement(c8,{classNames:s,styles:c,key:t,flattenColumns:n,cells:e,stickyOffsets:r,rowComponent:d,cellComponent:u,onHeaderRow:o,index:t})))});function p8(e,t=""){return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}function m8(e){return ke(e).filter(e=>ft.isValidElement(e)).map(e=>{var{key:e,props:t}=e;let{children:r,...n}=t;t={key:e,...n};return r&&(t.children=m8(r)),t})}var f8=function({prefixCls:a,columns:e,children:t,expandable:r,expandedKeys:l,columnTitle:i,getRowKey:s,onTriggerExpand:c,expandIcon:d,rowExpandable:u,expandIconColumnIndex:p,expandedRowOffset:m=0,direction:n,expandRowByClick:f,columnWidth:h,fixed:g,scrollWidth:o,clientWidth:v},b){let y=ft.useMemo(()=>function r(e){return e.filter(e=>e&&"object"==typeof e&&!e.hidden).map(e=>{var t=e.children;return t&&0<t.length?{...e,children:r(t)}:e})}((e||m8(t)||[]).slice()),[e,t]),C=ft.useMemo(()=>{if(r){let e=y.slice();e.includes(C5)||0<=(o=0!==(o=p||0)||"right"!==g&&"end"!==g?o:y.length)&&e.splice(o,0,C5);let r=e.indexOf(C5);e=e.filter((e,t)=>e!==C5||t===r);var o=y[r];let t,n=(t=g||(o?o.fixed:null),{[o8]:{className:a+"-expand-icon-col",columnType:"EXPAND_COLUMN"},title:i,fixed:t,className:a+"-row-expand-icon-cell",width:h,render:(e,t,r)=>{var r=s(t,r),r=l.has(r),n=!u||u(t),r=d({prefixCls:a,expanded:r,expandable:n,record:t,onExpand:c});return f?ft.createElement("span",{onClick:e=>e.stopPropagation()},r):r}});return e.map((e,t)=>{e=e===C5?n:e;return t<m?{...e,fixed:e.fixed||"start"}:e})}return y.filter(e=>e!==C5)},[r,y,s,l,d,n,m]),x=ft.useMemo(()=>{let e=C;return e=(e=b?b(e):e).length?e:[{render:()=>null}]},[b,C,n]);var w,S,k,n=ft.useMemo(()=>function a(e,l="key"){return e.filter(e=>e&&"object"==typeof e).reduce((e,t,r)=>{var n=t.fixed;let o=!0===n||"left"===n?"start":"right"===n?"end":n;return n=l+"-"+r,(r=t.children)&&0<r.length?[...e,...a(r,n).map(e=>({...e,fixed:e.fixed??o}))]:[...e,{key:n,...t,fixed:o}]},[])}(x),[x,n,o]),[n,o]=(w=n,S=o,k=v,ft.useMemo(()=>{if(S&&0<S){let t=0,r=0;w.forEach(e=>{e=p8(S,e.width);e?t+=e:r+=1});var e=Math.max(S,k);let o=Math.max(e-t,r),n=r,a=o/r,l=0,i=w.map(e=>{var e={...e},t=p8(S,e.width);return t?e.width=t:(t=Math.floor(a),e.width=1===n?o:t,o-=t,--n),l+=e.width,e});if(l<e){let n=e/l;o=e,i.forEach((e,t)=>{var r=Math.floor(e.width*n);e.width=t===i.length-1?o:r,o-=r})}return[i,Math.max(l,e)]}return[w,S]},[w,S,k]));return[x,n,o]};function h8(e,o,a){var t=(e=>{let{expandable:t,...r}=e,n;return!1===(n="expandable"in e?{...r,...t}:r).showExpandColumn&&(n.expandIconColumnIndex=-1),n})(e);let{expandIcon:r,expandedRowKeys:n,defaultExpandedRowKeys:l,defaultExpandAllRows:i,expandedRowRender:s,onExpand:c,onExpandedRowsChange:d,childrenColumnName:u}=t;var p=r||Y5;let m=u||"children";var f=ft.useMemo(()=>s?"row":!!(e.expandable&&e.internalHooks===x5&&e.expandable.__PARENT_RENDER_ICON__||o.some(e=>e&&"object"==typeof e&&e[m]))&&"nest",[!!s,o]);let[h,g]=ft.useState(()=>l||(i?U5(o,a,m):[])),v=ft.useMemo(()=>new Set(n||h||[]),[n,h]);var b=ft.useCallback(e=>{var t=a(e,o.indexOf(e));let r;var n=v.has(t);r=n?(v.delete(t),[...v]):[...v,t],g(r),c&&c(!n,e),d&&d(r)},[a,v,o,c,d]);return[t,f,v,p,m,b]}function g8(e){let n=(0,ft.useRef)(e),[,o]=(0,ft.useState)({}),a=(0,ft.useRef)(null),l=(0,ft.useRef)([]);return(0,ft.useEffect)(()=>()=>{a.current=null},[]),[n.current,function(e){l.current.push(e);let r=Promise.resolve();(a.current=r).then(()=>{var e,t;a.current===r&&(e=l.current,t=n.current,l.current=[],e.forEach(e=>{n.current=e(n.current)}),a.current=null,t!==n.current)&&o({})})}]}function v8(e){let t=(0,ft.useRef)(e||null),r=(0,ft.useRef)(null);function n(){clearTimeout(r.current)}return(0,ft.useEffect)(()=>n,[]),[function(e){t.current=e,n(),r.current=setTimeout(()=>{t.current=null,r.current=void 0},100)},function(){return t.current}]}let b8=(0,Ke.A)()?window:null;var y8=function(l,i){return(0,ft.useMemo)(()=>{var e=i.length,t=(t,r,n)=>{var o=[];let a=0;for(let e=t;e!==r;e+=n)o.push(a),i[e].fixed&&(a+=l[e]||0);return o};return{start:t(0,e,1),end:t(e-1,-1,-1).reverse(),widths:l}},[l,i])},C8=e=>{var{children:e,className:t,style:r}=e;return ft.createElement("div",{className:t,style:r},e)};function x8(e){var e=xt(e).getBoundingClientRect(),t=document.documentElement;return{left:e.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}let w8="mouseup",S8="mousemove",k8="scroll",E8="resize";var N8=ft.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:o,offsetScroll:a,container:l,direction:i}=e;e=S5($5,"prefixCls");let s=n.current?.scrollWidth||0,c=n.current?.clientWidth||0,d=s&&c*(c/s);var r=ft.useRef(null);let[u,p]=g8({scrollLeft:0,isHiddenScrollBar:!0}),m=ft.useRef({delta:0,x:0}),[f,h]=ft.useState(!1),g=ft.useRef(null),v=(ft.useEffect(()=>()=>{$e.cancel(g.current)},[]),()=>{h(!1)});let b=e=>{var t,r=(e||window?.event).buttons;f&&0!==r?(r=m.current.x+e.pageX-m.current.x-m.current.delta,t="rtl"===i,r=Math.max(t?d-c:0,Math.min(t?0:c-d,r)),(!t||Math.abs(r)+Math.abs(d)<c)&&(o({scrollLeft:r/c*(s+2)}),m.current.x=e.pageX)):f&&h(!1)},y=()=>{$e.cancel(g.current),g.current=$e(()=>{var e,t,r;n.current&&(t=(e=x8(n.current).top)+n.current.offsetHeight,r=l===window?document.documentElement.scrollTop+window.innerHeight:x8(l).top+l.clientHeight,t-_t()<=r||e>=r-a?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1})))})};return ft.useImperativeHandle(t,()=>({setScrollLeft:t=>{p(e=>({...e,scrollLeft:t/s*c||0}))},checkScrollBarVisible:y})),ft.useEffect(()=>(document.body.addEventListener(w8,v,!1),document.body.addEventListener(S8,b,!1),y(),()=>{document.body.removeEventListener(w8,v),document.body.removeEventListener(S8,b)}),[d,f]),ft.useEffect(()=>{if(n.current){let e=[],t=xt(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(k8,y,!1)}),window.addEventListener(E8,y,!1),window.addEventListener(k8,y,!1),l.addEventListener(k8,y,!1),()=>{e.forEach(e=>{e.removeEventListener(k8,y)}),window.removeEventListener(E8,y),window.removeEventListener(k8,y),l.removeEventListener(k8,y)}}},[l]),ft.useEffect(()=>{u.isHiddenScrollBar||p(e=>{var t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[u.isHiddenScrollBar]),s<=c||!d||u.isHiddenScrollBar?null:ft.createElement("div",{style:{height:_t(),width:c,bottom:a},className:e+"-sticky-scroll"},ft.createElement("div",{onMouseDown:e=>{e.persist(),m.current.delta=e.pageX-u.scrollLeft,m.current.x=0,h(!0),e.preventDefault()},ref:r,className:bt(e+"-sticky-scroll-bar",{[e+"-sticky-scroll-bar-active"]:f}),style:{width:d+"px",transform:`translate3d(${u.scrollLeft}px, 0, 0)`}}))});function I8(e){return null}function M8(e){return null}function $8(){return($8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let R8="rc-table",P8=[],z8={};function B8(){return"No Data"}let T8=ft.forwardRef((t,r)=>{t={rowKey:"key",prefixCls:R8,emptyText:B8,...t};let{prefixCls:n,className:H,rowClassName:A,style:D,classNames:e,styles:o,data:L,rowKey:a,scroll:l,tableLayout:F,direction:i,title:W,footer:j,summary:_,caption:K,id:V,showHeader:X,components:q,emptyText:s,onRow:G,onHeaderRow:Y,measureRowRender:U,onScroll:Q,internalHooks:Z,transformColumns:J,internalRefs:ee,tailor:te,getContainerWidth:re,sticky:ne,rowHoverable:oe=!0}=t,c=L||P8,ae=!!c.length,d=Z===x5,u=ft.useCallback((e,t)=>tr(q,e)||t,[q]),p=ft.useMemo(()=>"function"==typeof a?a:e=>e&&e[a],[a]);var m=u(["body"]);let[le,ie,se]=(()=>{let[e,r]=ft.useState(-1),[t,n]=ft.useState(-1);return[e,t,ft.useCallback((e,t)=>{r(e),n(t)},[])]})(),[f,ce,de,ue,pe,me]=h8(t,c,p);var h=l?.x;let[g,fe]=ft.useState(0),[v,b,he]=f8({...t,...f,expandable:!!f.expandedRowRender,columnTitle:f.columnTitle,expandedKeys:de,getRowKey:p,onTriggerExpand:me,expandIcon:ue,expandIconColumnIndex:f.expandIconColumnIndex,direction:i,scrollWidth:d&&te&&"number"==typeof h?h:null,clientWidth:g},d?J:null),y=he??h;h=ft.useMemo(()=>({columns:v,flattenColumns:b}),[v,b]);let C=ft.useRef(null),ge=ft.useRef(null),x=ft.useRef(null),ve=ft.useRef(null),be=(ft.useImperativeHandle(r,()=>({nativeElement:C.current,scrollTo:e=>{var t,r,n,o,a,l;x.current instanceof HTMLElement?({index:a,top:t,key:o,offset:r,align:n="nearest"}=e,"number"!=typeof(l=t)||Number.isNaN(l)?(l=o??p(c[a]),(o=x.current.querySelector(`[data-row-key="${l}"]`))&&(o.scrollIntoView({block:n}),r)&&(a=x.current).scrollTo({top:a.scrollTop+r})):x.current?.scrollTo({top:t})):x.current?.scrollTo&&x.current.scrollTo(e)}})),ft.useRef(null)),[ye,Ce]=ft.useState(!1),[xe,we]=ft.useState(!1),[Se,ke]=ft.useState(new Map),Ee=z5(b).map(e=>Se.get(e)),w=ft.useMemo(()=>Ee,[Ee.join("_")]);r=y8(w,b);let S=l&&B5(l.y),k=l&&B5(y)||Boolean(f.fixed),E=k&&b.some(({fixed:e})=>e),Ne=ft.useRef(null),{isSticky:N,offsetHeader:Ie,offsetSummary:Me,offsetScroll:$e,stickyClassName:Re,container:Pe}=((e,t)=>{let{offsetHeader:r=0,offsetSummary:n=0,offsetScroll:o=0,getContainer:a=()=>b8}="object"==typeof e?e:{},l=a()||b8,i=!!e;return ft.useMemo(()=>({isSticky:i,stickyClassName:i?t+"-sticky-holder":"",offsetHeader:r,offsetSummary:n,offsetScroll:o,container:l}),[i,o,r,n,t,l])})(ne,n),I=ft.useMemo(()=>_?.(c),[_,c]),M=(S||N)&&ft.isValidElement(I)&&I.type===K5&&I.props.fixed,ze,$,Be,Te=(S&&($={overflowY:ae?"scroll":"auto",maxHeight:l.y}),k&&(ze={overflowX:"auto"},S||($={overflowY:"hidden"}),Be={width:!0===y?"auto":y,minWidth:"100%"}),ft.useCallback((r,n)=>{ke(e=>{var t;return e.get(r)!==n?((t=new Map(e)).set(r,n),t):e})},[])),[Oe,He]=v8(null),[Ae]=ft.useState(()=>new WeakMap);function R(e,t){var r;t&&("function"==typeof t?t(e):((r=Ae.get(t))&&clearTimeout(r),t.scrollLeft!==e&&(t.scrollLeft=e,r=setTimeout(()=>{t.scrollLeft!==e&&(t.scrollLeft=e)},0),Ae.set(t,r))))}let[De,Le]=ft.useState([0,0]),P=ht(({currentTarget:e,scrollLeft:t})=>{var t="number"==typeof t?t:e.scrollLeft,a=e||z8,a=(He()&&He()!==a||(Oe(a),R(t,ge.current),R(t,x.current),R(t,be.current),R(t,Ne.current?.setScrollLeft)),e||ge.current);if(a){let r=d&&te&&"number"==typeof y?y:a.scrollWidth,n=a.clientWidth,o=Math.abs(t);Le(e=>{var t=[o,r-n];return(0,Vt.A)(e,t)?e:t}),r===n?(Ce(!1),we(!1)):(Ce(0<o),we(o<r-n-1))}});var z=ht(e=>{P(e),Q?.(e)});let Fe=()=>{k&&x.current?P({currentTarget:xt(x.current),scrollLeft:x.current?.scrollLeft}):(Ce(!1),we(!1))},We=e=>{Ne.current?.checkScrollBarVisible();let t=e??C.current?.offsetWidth??0;(t=d&&re&&C.current?re(C.current,t)||t:t)!==g&&(Fe(),fe(t))},je=(gt(()=>{k&&We()},[k]),ft.useRef(!1)),[B,_e]=(ft.useEffect(()=>{je.current&&Fe()},[k,L,v.length]),ft.useEffect(()=>{je.current=!0},[]),ft.useState(0));gt(()=>{te&&d||(x.current instanceof Element?_e(Kt(x.current).width):_e(Kt(ve.current).width))},[]),ft.useEffect(()=>{d&&ee&&(ee.body.current=x.current)});var Ke=ft.useCallback(e=>ft.createElement(ft.Fragment,null,ft.createElement(u8,e),"top"===M&&ft.createElement(V5,e,I)),[M,I]),Ve=ft.useCallback(e=>ft.createElement(V5,e,I),[I]),Xe=u(["table"],"table");let T=ft.useMemo(()=>F||(E?"max-content"===y?"auto":"fixed":S||N||b.some(({ellipsis:e})=>e)?"fixed":"auto"),[S,E,b,F,N]),qe;var Ge={colWidths:w,columCount:b.length,stickyOffsets:r,onHeaderRow:Y,fixHeader:S,scroll:l};let Ye=ft.useMemo(()=>ae?null:"function"==typeof s?s():s,[ae,s]);var Ue=ft.createElement(n8,{data:c,measureColumnWidth:S||k||N}),O=ft.createElement(l8,{colWidths:b.map(({width:e})=>e),columns:b}),Qe=null!=K?ft.createElement("caption",{className:n+"-caption"},K):void 0,Ze=Jt(t,{data:!0}),t=Jt(t,{aria:!0});if(S||N){let e;"function"==typeof m?(e=m(c,{scrollbarSize:B,ref:x,onScroll:P}),Ge.colWidths=b.map(({width:e},t)=>{t=t===b.length-1?e-B:e;return"number"!=typeof t||Number.isNaN(t)?0:t})):e=ft.createElement("div",{style:{...ze,...$},onScroll:z,ref:x,className:n+"-body"},ft.createElement(Xe,$8({style:{...Be,tableLayout:T}},t),Qe,O,Ue,!M&&I&&ft.createElement(V5,{stickyOffsets:r,flattenColumns:b},I)));m={noData:!c.length,maxContentScroll:k&&"max-content"===y,...Ge,...h,direction:i,stickyClassName:Re,scrollX:y,tableLayout:T,onScroll:P};qe=ft.createElement(ft.Fragment,null,!1!==X&&ft.createElement(i8,$8({},m,{stickyTopOffset:Ie,className:n+"-header",ref:ge,colGroup:O}),Ke),e,M&&"top"!==M&&ft.createElement(i8,$8({},m,{stickyBottomOffset:Me,className:n+"-summary",ref:be,colGroup:O}),Ve),N&&x.current&&x.current instanceof Element&&ft.createElement(N8,{ref:Ne,offsetScroll:$e,scrollBodyRef:x,onScroll:P,container:Pe,direction:i}))}else qe=ft.createElement("div",{style:{...ze,...$,...o?.content},className:bt(n+"-content",e?.content),onScroll:P,ref:x},ft.createElement(Xe,$8({style:{...Be,tableLayout:T}},t),Qe,O,!1!==X&&ft.createElement(u8,$8({},Ge,h)),Ue,I&&ft.createElement(V5,{stickyOffsets:r,flattenColumns:b},I)));z={...D};N&&(z["--columns-count"]=b.length);let Je=ft.createElement("div",$8({className:bt(n,H,{[n+"-rtl"]:"rtl"===i,[n+"-fix-start-shadow"]:k,[n+"-fix-end-shadow"]:k,[n+"-fix-start-shadow-show"]:k&&ye,[n+"-fix-end-shadow-show"]:k&&xe,[n+"-layout-fixed"]:"fixed"===F,[n+"-fixed-header"]:S,[n+"-fixed-column"]:E,[n+"-scroll-horizontal"]:k,[n+"-has-fix-start"]:b[0]?.fixed,[n+"-has-fix-end"]:"end"===b[b.length-1]?.fixed}),style:z,id:V,ref:C},Ze),W&&ft.createElement(C8,{className:bt(n+"-title",e?.title),style:o?.title},W(c)),ft.createElement("div",{ref:ve,className:bt(n+"-container",e?.section),style:o?.section},qe),j&&ft.createElement(C8,{className:bt(n+"-footer",e?.footer),style:o?.footer},j(c))),et=(k&&(Je=ft.createElement(gr,{onResize:({offsetWidth:e})=>We(e)},Je)),((r,n)=>{let e=ft.useMemo(()=>r.map((e,t)=>W5(t,t,r,n)),[r,n]);return(0,tt.A)(()=>e,[e],(e,t)=>!(0,Vt.A)(e,t))})(b,r));Ke=ft.useMemo(()=>({scrollX:y,scrollInfo:De,classNames:e,styles:o,prefixCls:n,getComponent:u,scrollbarSize:B,direction:i,fixedInfoList:et,isSticky:N,componentWidth:g,fixHeader:S,fixColumn:E,horizonScroll:k,tableLayout:T,rowClassName:A,expandedRowClassName:f.expandedRowClassName,expandIcon:ue,expandableType:ce,expandRowByClick:f.expandRowByClick,expandedRowRender:f.expandedRowRender,forceRender:f.forceRender??!1,expandedRowOffset:f.expandedRowOffset,onTriggerExpand:me,expandIconColumnIndex:f.expandIconColumnIndex,indentSize:f.indentSize,allColumnsFixedLeft:b.every(e=>"start"===e.fixed),emptyNode:Ye,columns:v,flattenColumns:b,onColumnResize:Te,colWidths:w,hoverStartRow:le,hoverEndRow:ie,onHover:se,rowExpandable:f.rowExpandable,onRow:G,getRowKey:p,expandedKeys:de,childrenColumnName:pe,rowHoverable:oe,measureRowRender:U}),[y,De,e,o,n,u,B,i,et,N,g,S,E,k,T,A,f.expandedRowClassName,ue,ce,f.expandRowByClick,f.expandedRowRender,f.forceRender,f.expandedRowOffset,me,f.expandIconColumnIndex,f.indentSize,Ye,v,b,Te,w,le,ie,se,f.rowExpandable,G,p,de,pe,oe,U]);return ft.createElement($5.Provider,{value:Ke},Je)});var Dn=e=>N5(T8,e),o=Dn(),O8=(o.EXPAND_COLUMN=C5,o.INTERNAL_HOOKS=x5,o.Column=I8,o.ColumnGroup=M8,o.Summary=l,o);let H8=w5(null),A8=w5(null);function D8(){return(D8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var L8=e=>{let{rowInfo:t,column:r,colIndex:n,indent:o,index:a,component:l,renderIndex:i,record:s,style:c,className:d,inverse:u,getHeight:p}=e;var{render:e,dataIndex:m,className:f,width:h}=r,g=S5(A8,["columnsOffset"]).columnsOffset,{key:v,fixedInfo:b,appendCellNode:y,additionalCellProps:C,originRowSpan:x}=J5(t,r,n,o,a);let{style:w,colSpan:S=1,rowSpan:k=1}=C;var E=n-1,N=(N=S,g[E+(N||1)]-(g[E]||0)),g=1<S?h-N:0,E={...w,...c,flex:`0 0 ${N}px`,width:N+"px",marginRight:g,pointerEvents:"auto"},h=ft.useMemo(()=>u?k<=1:0===S||0===k||1<k,[k,S,u]),N=(h?E.visibility="hidden":u&&(E.height=p?.(k)),h?()=>null:e),g={};return 0!==k&&0!==S||(g.rowSpan=1,g.colSpan=1),ft.createElement(D5,D8({className:bt(f,d),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:l,prefixCls:t.prefixCls,key:v,record:s,index:a,renderIndex:i,dataIndex:m,render:N,shouldCellUpdate:r.shouldCellUpdate},b,{appendNode:y,originRowSpan:x,additionalProps:{...C,style:E,...g}}))};function F8(){return(F8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var W8=I5(ft.forwardRef((e,t)=>{let{data:r,index:n,className:o,rowKey:a,style:l,extra:i,getHeight:s,...c}=e,{record:d,indent:u,index:p}=r,{scrollX:m,flattenColumns:f,prefixCls:h,fixColumn:g,componentWidth:v,classNames:b,styles:y}=S5($5,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX","classNames","styles"]);e=S5(H8,["getComponent"]).getComponent;let C=q5(d,a,n,u);var x=e(["body","row"],"div");let w=e(["body","cell"],"div");var{rowSupportExpand:e,expanded:S,rowProps:k,expandedRowRender:E,expandedRowClassName:N,forceRender:I}=C,N=Q5(N,d,n,u);let M;if(!i&&e&&(I||S)){I=E(d,n,u+1,S);let e={};g&&(e={style:{"--virtual-width":v+"px"}});E=h+"-expanded-row-cell";M=ft.createElement(x,{className:bt(h+"-expanded-row",h+"-expanded-row-level-"+(u+1),N),style:{display:S?void 0:"none"}},ft.createElement(D5,{component:w,prefixCls:h,className:bt(E,{[E+"-fixed"]:g}),additionalProps:e},I))}S={...l,width:m},i&&(S.position="absolute",S.pointerEvents="none"),E=ft.createElement(x,F8({},k,c,{"data-row-key":a,ref:e?null:t,className:bt(o,h+"-row",k?.className,b?.body?.row,{[N]:1<=u,[h+"-row-extra"]:i}),style:{...S,...k?.style,...y?.body?.row}}),f.map((e,t)=>ft.createElement(L8,{key:t,className:b?.body?.cell,style:y?.body?.cell,component:w,rowInfo:C,column:e,colIndex:t,indent:u,index:n,renderIndex:p,record:d,inverse:i,getHeight:s})));return e?ft.createElement("div",{ref:t},E,M):E}));let j8={start:"top",end:"bottom",nearest:"auto"};var _8=I5(ft.forwardRef((e,t)=>{let{data:r,onScroll:n}=e,{flattenColumns:u,onColumnResize:o,getRowKey:p,expandedKeys:a,prefixCls:l,childrenColumnName:i,scrollX:s,direction:c}=S5($5,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]);var{sticky:e,scrollY:d,listItemHeight:m,getComponent:f,onScroll:h}=S5(H8);let g=ft.useRef(null),v=X5(r,i,a,p),b=ft.useMemo(()=>{let n=0;return u.map(({width:e,minWidth:t,key:r})=>{e=Math.max(e||0,t||0);return[r,e,n+=e]})},[u]),y=ft.useMemo(()=>b.map(e=>e[2]),[b]),C=(ft.useEffect(()=>{b.forEach(([e,t])=>{o(e,t)})},[b]),ft.useImperativeHandle(t,()=>{var e={scrollTo:e=>{let{align:t,offset:r,...n}=e;e=j8[t]??(r?"top":"auto");g.current?.scrollTo({...n,offset:r,align:e})},nativeElement:g.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>g.current?.getScrollInfo().x||0,set:e=>{g.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>g.current?.getScrollInfo().y||0,set:e=>{g.current?.scrollTo({top:e})}}),e}),(e,t)=>{var r=v[t]?.record,e=e.onCell;return e?e(r,t)?.rowSpan??1:1});var t=ft.useMemo(()=>({columnsOffset:y}),[y]),x=l+"-tbody",f=f(["body","wrapper"]),w={};return e&&(w.position="sticky",w.bottom=0,"object"==typeof e)&&e.offsetScroll&&(w.bottom=e.offsetScroll),ft.createElement(A8.Provider,{value:t},ft.createElement(fh,{fullHeight:!1,ref:g,prefixCls:x+"-virtual",styles:{horizontalScrollBar:w},className:x,height:d,itemHeight:m||24,data:v,itemKey:e=>p(e.record),component:f,scrollWidth:s,direction:c,onVirtualScroll:({x:e})=>{n({currentTarget:g.current?.nativeElement,scrollLeft:e})},onScroll:h,extraRender:e=>{let{start:r,end:n,getSize:s,offsetY:o}=e;if(n<0)return null;let a=u.filter(e=>0===C(e,r)),l=r;for(let t=r;0<=t;--t)if(!(a=a.filter(e=>0===C(e,t))).length){l=t;break}let i=u.filter(e=>1!==C(e,n)),c=n;for(let t=n;t<v.length;t+=1)if(!(i=i.filter(e=>1!==C(e,t))).length){c=Math.max(t-1,n);break}var d=[];for(let t=l;t<=c;t+=1)v[t]&&u.some(e=>1<C(e,t))&&d.push(t);return d.map(l=>{var e=v[l];let i=p(e.record,l);var t=s(i);return ft.createElement(W8,{key:l,data:e,rowKey:i,index:l,style:{top:-o+t.top},extra:!0,getHeight:r=>{var r=l+r-1,e=v[r];if(!e||!e.record){var n=Math.min(r,v.length-1),o=v[n];let e=p(o.record,n),t=s(i,e);return t.bottom-t.top}let t=p(e.record,r),a=s(i,t);return a.bottom-a.top}})})}},(e,t,r)=>{var n=p(e.record,t);return ft.createElement(W8,{data:e,rowKey:n,index:t,style:r.style})}))}));function K8(){return(K8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let V8=(e,t)=>{var{ref:t,onScroll:r}=t;return ft.createElement(_8,{ref:t,data:e,onScroll:r})},X8=ft.forwardRef((e,t)=>{let{data:r,columns:n,scroll:o,sticky:a,prefixCls:l=R8,className:i,listItemHeight:s,components:c,onScroll:d}=e,{x:u,y:p}=o||{},m=("number"!=typeof u&&(u=1),"number"!=typeof p&&(p=500),ht((e,t)=>tr(c,e)||t)),f=ht(d);var h=ft.useMemo(()=>({sticky:a,scrollY:p,listItemHeight:s,getComponent:m,onScroll:f}),[a,p,s,m,f]);return ft.createElement(H8.Provider,{value:h},ft.createElement(O8,K8({},e,{className:bt(i,l+"-virtual"),scroll:{...o,x:u},components:{...c,body:r?.length?V8:void 0},columns:n,internalHooks:x5,tailor:!0,ref:t})))});a=e=>N5(X8,e),a(),i=e=>null,Wn=e=>null;let q8=i=>{let[s,c]=(0,ft.useState)(null);return[(0,ft.useCallback)((e,t,r)=>{var n=s??e,o=Math.min(n||0,e),n=Math.max(n||0,e),e=t.slice(o,n+1).map(i);let a=e.some(e=>!r.has(e)),l=[];return e.forEach(e=>{a?(r.has(e)||l.push(e),r.add(e)):(r.delete(e),l.push(e))}),c(a?n:null),l},[s]),c]},G8={},Y8="SELECT_ALL",U8="SELECT_INVERT",Q8="SELECT_NONE",Z8=[],J8=(t,e,r=[])=>((e||[]).forEach(e=>{r.push(e),Ze(e)&&t in e&&J8(t,e[t],r)}),r);var eP=(e,h)=>{let{preserveSelectedRowKeys:o,selectedRowKeys:t,defaultSelectedRowKeys:D,getCheckboxProps:n,getTitleCheckboxProps:L,onChange:a,onSelect:l,onSelectAll:F,onSelectInvert:i,onSelectNone:W,onSelectMultiple:g,columnWidth:v,type:b,selections:y,fixed:j,renderCell:C,hideSelectAll:x,checkStrictly:w=!0}=h||{},{prefixCls:S,data:r,pageData:s,getRecordByKey:k,getRowKey:E,expandType:N,childrenColumnName:c,locale:d,getPopupContainer:I}=e,_=fl("Table"),[K,M]=q8(e=>e),[V,u]=vt(D||Z8,t),p=V??Z8,m=ft.useRef(new Map),f=(0,ft.useCallback)(e=>{if(o){let r=new Map;e.forEach(e=>{let t=k(e);!t&&m.current.has(e)&&(t=m.current.get(e)),r.set(e,t)}),m.current=r}},[k,o]),$=(ft.useEffect(()=>{f(p)},[p,f]),(0,ft.useMemo)(()=>J8(c,s),[c,s])),R=(0,ft.useMemo)(()=>{if(w)return{keyEntities:null};let e=r;if(o){let n=new Set($.map(E));var t=Array.from(m.current).reduce((e,[t,r])=>n.has(t)?e:e.concat(r),[]);e=[].concat(Pe(e),Pe(t))}return dS(e,{externalGetKey:E,childrenPropName:c})},[r,E,w,c,o,$]).keyEntities,P=(0,ft.useMemo)(()=>{let r=new Map;return $.forEach((e,t)=>{t=E(e,t),e=(n?n(e):null)||{};r.set(t,e)}),r},[$,E,n]),z=(0,ft.useCallback)(e=>{var t=E(e);let r;return!!(r=P.has(t)?P.get(E(e)):n?n(e):void 0)?.disabled},[P,E]),[B,X]=(0,ft.useMemo)(()=>{var e,t;return w?[p,[]]:({checkedKeys:e,halfCheckedKeys:t}=FS(p,!0,R,z),[e||[],t])},[p,w,R,z]),T=(0,ft.useMemo)(()=>{var e="radio"===b?B.slice(0,1):B;return new Set(e)},[B,b]),q=(0,ft.useMemo)(()=>"radio"===b?new Set:new Set(X),[X,b]),O=(ft.useEffect(()=>{h||u(Z8)},[!!h]),(0,ft.useCallback)((e,t)=>{let r,n;f(e),o?(r=e,n=e.map(e=>m.current.get(e))):(r=[],n=[],e.forEach(e=>{var t=k(e);void 0!==t&&(r.push(e),n.push(t))})),u(r),a?.(r,n,{type:t})},[u,k,a,o])),H=(0,ft.useCallback)((e,t,r,n)=>{var o;l&&(o=r.map(k),l(k(e),t,o,n)),O(r,"single")},[l,k,O]),A=(0,ft.useMemo)(()=>!y||x?null:(!0===y?[Y8,U8,Q8]:y).map(e=>{let t;return{...t=e===Y8?{key:"all",text:d.selectionAll,onSelect(){O(r.reduce((e,t,r)=>{r=E(t,r);return z(t)&&!T.has(r)||e.push(r),e},[]),"all")}}:e===U8?{key:"invert",text:d.selectInvert,onSelect(){let r=new Set(T);s.forEach((e,t)=>{e=E(e,t);P.get(e)?.disabled||(r.has(e)?r.delete(e):r.add(e))});var e=Array.from(r);i&&(_.deprecated(!1,"onSelectInvert","onChange"),i(e)),O(e,"invert")}}:e===Q8?{key:"none",text:d.selectNone,onSelect(){W?.(),O(Array.from(T).filter(e=>P.get(e)?.disabled),"none")}}:e,onSelect:e=>{t.onSelect?.(e),M(null)}}}),[y,x,d.selectionAll,d.selectInvert,d.selectNone,P,z,T,r,s,E,i,O]);return[(0,ft.useCallback)(n=>{if(!h)return n.filter(e=>e!==G8);let e=Pe(n),s=new Set(T),c=$.reduce((e,t,r)=>{t=E(t,r);return P.get(t).disabled||e.push(t),e},[]),o=c.every(e=>s.has(e));n=c.some(e=>s.has(e));let a,l;if("radio"!==b){let e;A&&(i={getPopupContainer:I,items:A.map((e,t)=>{let{key:r,text:n,onSelect:o}=e;return{key:r??t,onClick:()=>{o?.(c)},label:n}})},e=ft.createElement("div",{className:S+"-selection-extra"},ft.createElement(WI,{menu:i,getPopupContainer:I},ft.createElement("span",null,ft.createElement(cg,null)))));var i=$.reduce((e,t,r)=>{t=E(t,r),r=P.get(t)||{},t={checked:s.has(t),...r};return t.disabled&&e.push(t),e},[]),d=!!i.length&&i.length===$.length,u=d&&i.every(({checked:e})=>e),i=d&&i.some(({checked:e})=>e),p=L?.()||{};let{onChange:t,disabled:r}=p;l=ft.createElement(Nk,{"aria-label":e?"Custom selection":"Select all",...p,checked:d?u:!!$.length&&o,indeterminate:d?!u&&i:!o&&n,onChange:e=>{(()=>{let t=[];o?c.forEach(e=>{s.delete(e),t.push(e)}):c.forEach(e=>{s.has(e)||(s.add(e),t.push(e))});var e=Array.from(s);F?.(!o,e.map(k),t.map(k)),O(e,"all"),M(null)})(),t?.(e)},disabled:r??(0===$.length||d),skipGroup:!0}),a=!x&&ft.createElement("div",{className:S+"-selection"},l,e)}let m;m="radio"===b?(e,t,r)=>{let n=E(t,r);t=s.has(n);let o=P.get(n);return{node:ft.createElement(j6,{"aria-label":"Select row "+(r+1),...o,checked:t,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{s.has(n)||H(n,!0,[n],e.nativeEvent),o?.onChange?.(e)}}),checked:t}}:(e,t,r)=>{let a=E(t,r),l=s.has(a);t=q.has(a);let i=P.get(a),n;n="nest"===N?t:i?.indeterminate??t;t=l?`Row ${r+1} selected`:"Select row "+(r+1);return{node:ft.createElement(Nk,{"aria-label":t,...i,indeterminate:n,checked:l,skipGroup:!0,onClick:e=>{e.stopPropagation(),i?.onClick?.(e)},onChange:e=>{var t=e.nativeEvent,r=t.shiftKey,n=c.indexOf(a),o=0<T.size&&c.some(e=>T.has(e));if(r&&w&&o){r=K(n,c,s),o=Array.from(s);g?.(!l,o.map(k),r.map(k)),O(o,"multiple")}else{r=B;if(w){o=(l?RS:PS)(r,a);H(a,!l,o,t)}else{var{checkedKeys:o,halfCheckedKeys:r}=FS([].concat(Pe(r),[a]),!0,R,z);let e=o;l&&((o=new Set(o)).delete(a),e=FS(Array.from(o),{checked:!1,halfCheckedKeys:r},R,z).checkedKeys),H(a,!l,e,t)}}l?M(null):M(n),i?.onChange?.(e)}}),checked:l}};let r=(e=e.includes(G8)?e:0===e.findIndex(e=>"EXPAND_COLUMN"===e[o8]?.columnType)?([p,...u]=e,[p,G8].concat(Pe(u))):[G8].concat(Pe(e))).indexOf(G8);i=(e=e.filter((e,t)=>e!==G8||t===r))[r-1],n=e[r+1];let t=j;void 0===t&&(void 0!==n?.fixed?t=n.fixed:void 0!==i?.fixed&&(t=i.fixed)),t&&i&&"EXPAND_COLUMN"===i[o8]?.columnType&&void 0===i.fixed&&(i.fixed=t);d=bt(S+"-selection-col",{[S+"-selection-col-with-dropdown"]:y&&"checkbox"===b});let f={fixed:t,width:v,className:S+"-selection-column",title:h?.columnTitle?Je(h.columnTitle)?h.columnTitle(l):h.columnTitle:a,render:(e,t,r)=>{var{node:e,checked:n}=m(e,t,r);return C?C(n,t,r,e):e},onCell:h.onCell,align:h.align,[o8]:{className:d}};return e.map(e=>e===G8?f:e)},[E,$,h,B,T,q,v,A,N,P,g,H,z]),T]};let tP=(r,n)=>(r._antProxy=r._antProxy||{},Object.keys(n).forEach(e=>{var t;e in r._antProxy||(t=r[e],r._antProxy[e]=t,r[e]=n[e])}),r),rP=(e,t)=>(0,ft.useImperativeHandle)(e,()=>{let r=t();var e=r.nativeElement;return"undefined"!=typeof Proxy?new Proxy(e,{get(e,t){return r[t]||Reflect.get(e,t)}}):tP(e,r)});var nP=function(l){return e=>{let{prefixCls:t,onExpand:r,record:n,expanded:o,expandable:a}=e;e=t+"-row-expand-icon";return ft.createElement("button",{type:"button",onClick:e=>{r(n,e),e.stopPropagation()},className:bt(e,{[e+"-spaced"]:!a,[e+"-expanded"]:a&&o,[e+"-collapsed"]:a&&!o}),"aria-label":o?l.collapse:l.expand,"aria-expanded":o})}};let oP=e=>{var t,r,n={};for([t,r]of Object.entries(e))Ia(r)&&(n[t]=r);return n};var aP=(e,t)=>Re().useMemo(()=>({...e,filters:oP(t)}),[e,t]);var lP=(e,n)=>ft.useMemo(()=>{if(!n)return e;let r=e=>e.map(e=>{var t;return e===G8||e===C5?e:"children"in e&&Array.isArray(e.children)?{...er(n,e),children:r(e.children)}:(t=at(n,["children"]),er(t,e))});return r(e)},[e,n]);let iP=(e,t)=>"key"in e&&Ia(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function sP(e,t){return t?t+"-"+e:""+e}let cP=(e,t)=>Je(e)?e(t):e,dP=(e,t)=>{e=cP(e,t);return Ze(e)||Array.isArray(e)?"":e},uP=e=>{e=e.toLowerCase();return e.includes("center")?"center":e.includes("left")||e.includes("start")?"start":"end"},pP=(e,t)=>e||("small"===t||"medium"===t?"small":void 0);function mP(){return(mP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var fP=ft.forwardRef((e,t)=>ft.createElement(u,mP({},e,{ref:t,icon:L().A})));let hP=e=>{let t=ft.useRef(e),[,r]=Ng();return[()=>t.current,e=>{t.current=e,r()}]};function gP(){return(gP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vP=ft.forwardRef((e,t)=>ft.createElement(u,gP({},e,{ref:t,icon:A().A})));function bP(){return(bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var yP=ft.forwardRef((e,t)=>ft.createElement(u,bP({},e,{ref:t,icon:W().A})));function CP(){return(CP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var xP=ft.forwardRef((e,t)=>ft.createElement(u,CP({},e,{ref:t,icon:j().A})));function wP(){return(wP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var SP=ft.forwardRef((e,t)=>ft.createElement(u,wP({},e,{ref:t,icon:_().A})));let kP=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:r,directoryNodeSelectedColor:n,motionDurationMid:o,borderRadius:a,controlItemBgHover:l})=>({[""+e+e+"-directory "+t]:{[e+"-node-content-wrapper"]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:"background-color "+o,content:'""',borderRadius:a},"&:hover:before":{background:l}},[e+`-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:a,[e+`-switcher, ${e}-draggable-icon`]:{color:n},[e+"-node-content-wrapper"]:{color:n,background:"transparent","&, &:hover":{color:n},"&:before, &:hover:before":{background:r}}}}}),EP=new Qe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),NP=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform "+t.motionDurationSlow}}}),IP=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:(0,Qe.unit)(t.lineWidthBold)+" solid "+t.colorPrimary,borderRadius:"50%",content:'""'}}}),MP=(e,t)=>{var{treeCls:r,treeNodeCls:n,treeNodePadding:o,titleHeight:a,indentSize:l,switcherSize:i,motionDurationMid:s,nodeSelectedBg:c,nodeHoverBg:d,colorTextQuaternary:u,controlItemBgActiveDisabled:p}=t;return{[r]:{...F(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:"background-color "+t.motionDurationSlow,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[r+"-list"]:{"&:focus-visible":{outline:"none",[n+`-active ${r}-node-content-wrapper`]:{...dn(t)}}},[r+"-list-scrollbar"]:{cursor:"pointer","&:hover":{backgroundColor:t.colorFillQuaternary}},[r+"-list-holder-inner"]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[r+"-list-holder-inner"]:{alignItems:"stretch",[r+"-node-content-wrapper"]:{flex:"auto"},[n+".dragging:after"]:{position:"absolute",inset:0,border:`${(0,Qe.unit)(t.lineWidth)} ${t.lineType} `+t.colorPrimary,opacity:0,animationName:EP,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[n]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:(0,Qe.unit)(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[r+`-checkbox-disabled + ${r}-node-selected,&${n}-disabled${n}-selected ${r}-node-content-wrapper`]:{backgroundColor:p},[r+"-checkbox-disabled"]:{pointerEvents:"unset"},[`&:not(${n}-disabled)`]:{[r+"-node-content-wrapper"]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[r+"-draggable-icon"]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:u},[`&${n}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[r+"-indent"]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[r+"-draggable-icon"]:{visibility:"hidden"},[r+`-switcher, ${r}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[r+"-checkbox"]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[r+"-switcher"]:{...NP(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:"all "+t.motionDurationSlow,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:"all "+t.motionDurationSlow},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEnd:`${(0,Qe.unit)(t.lineWidth)} ${t.lineType} `+t.colorBorder,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`${(0,Qe.unit)(t.lineWidth)} ${t.lineType} `+t.colorBorder,content:'""'}}},[r+"-node-content-wrapper"]:{position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:["all "+s,"border 0s","line-height 0s","box-shadow 0s"].join(", "),...IP(e,t),"&:hover":{backgroundColor:d},[`&${r}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[r+"-iconEle"]:{display:"inline-block",width:i,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[r+`-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[n+".drop-container > [draggable]"]:{boxShadow:"0 0 0 2px "+t.colorPrimary},"&-show-line":{[r+"-indent-unit"]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`${(0,Qe.unit)(t.lineWidth)} ${t.lineType} `+t.colorBorder,content:'""'},"&-end:before":{display:"none"}},[r+"-switcher"]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[n+`-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:(0,Qe.unit)(t.calc(a).div(2).equal())+" !important"}}}},$P=(e,t,r=!0)=>{var n="."+e,o=n+"-treenode",a=t.calc(t.paddingXS).div(2).equal(),t=ze(t,{treeCls:n,treeNodeCls:o,treeNodePadding:a});return[MP(e,t),r&&kP(t)].filter(Boolean)},RP=e=>{var{controlHeightSM:t,controlItemBgHover:r,controlItemBgActive:n}=e;return{titleHeight:t,switcherSize:t,indentSize:t,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:n,nodeSelectedColor:e.colorText}};var PP=Be("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:hk(t+"-checkbox",e)},$P(t,e),md(e)],e=>{var{colorTextLightSolid:t,colorPrimary:r}=e;return{...RP(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:r}});let zP=4;var BP=e=>{var{dropPosition:e,dropLevelOffset:t,prefixCls:r,indent:n,direction:o="ltr"}=e,a="ltr"===o?"left":"right",o="ltr"===o?"right":"left",l={[a]:-t*n+zP,[o]:0};switch(e){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=n+zP}return Re().createElement("div",{style:l,className:r+"-drop-indicator"})};function TP(){return(TP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var OP=ft.forwardRef((e,t)=>ft.createElement(u,TP({},e,{ref:t,icon:h().A})));function HP(){return(HP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var AP=ft.forwardRef((e,t)=>ft.createElement(u,HP({},e,{ref:t,icon:G().A})));function DP(){return(DP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var LP=ft.forwardRef((e,t)=>ft.createElement(u,DP({},e,{ref:t,icon:J().A}))),FP=e=>{var{prefixCls:e,switcherIcon:t,treeNodeProps:r,showLine:n,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:l,loading:i}=r;if(i)return ft.isValidElement(o)?o:ft.createElement(Al,{className:e+"-switcher-loading-icon"});let s;return Ze(n)&&(s=n.showLeafIcon),a?n?"boolean"!=typeof s&&s?(i=Je(s)?s(r):s,ft.isValidElement(i)?Ss(i,{className:bt(i.props?.className,e+"-switcher-line-custom-icon")}):i):s?ft.createElement(vP,{className:e+"-switcher-line-icon"}):ft.createElement("span",{className:e+"-switcher-leaf-line"}):null:(o=e+"-switcher-icon",a=Je(t)?t(r):t,ft.isValidElement(a)?Ss(a,{className:bt(a.props?.className,n?e+"-switcher-line-icon":o)}):void 0!==a?a:n?l?ft.createElement(AP,{className:e+"-switcher-line-icon"}):ft.createElement(LP,{className:e+"-switcher-line-icon"}):ft.createElement(OP,{className:o}))},WP=Re().forwardRef((e,t)=>{var{getPrefixCls:r,direction:n,className:o,style:a,classNames:l,styles:i}=Fe("tree"),s=Re().useContext(Ue).virtual;let{prefixCls:c,className:d,showIcon:u=!1,showLine:p,switcherIcon:m,switcherLoadingIcon:f,blockNode:h=!1,children:g,checkable:v=!1,selectable:b=!0,draggable:y,disabled:C,motion:x,style:w,rootClassName:S,rootStyle:k,classNames:E,styles:N,icon:I}=e;var M=Re().useContext($s),M=C??M;let $=r("tree",c);var r=r(),r=x??{...rc(r),motionAppear:!1},e={...e,showIcon:u,blockNode:h,checkable:v,selectable:b,disabled:M,motion:r},r=We(k),[l,i]=je([l,E],[i,r,N],{props:e}),r={...e,showLine:Boolean(p),icon:I,dropIndicatorRender:BP},[e,R]=PP($),[,P]=so(),P=P.paddingXS/2+(P.Tree?.titleHeight||P.controlHeightSM),z=Re().useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e={...y}}return!1!==e.icon&&(e.icon=e.icon||Re().createElement(SP,null)),e},[y]);return Re().createElement(_S,{itemHeight:P,ref:t,virtual:s,...r,prefixCls:$,className:bt({[$+"-icon-hide"]:!u,[$+"-block-node"]:h,[$+"-unselectable"]:!b,[$+"-rtl"]:"rtl"===n,[$+"-disabled"]:M},o,d,e,R),style:{...a,...w},rootClassName:bt(l.root,S),rootStyle:i.root,classNames:l,styles:i,direction:n,checkable:v&&Re().createElement("span",{className:$+"-checkbox-inner"}),selectable:b,switcherIcon:e=>Re().createElement(FP,{prefixCls:$,switcherIcon:m,switcherLoadingIcon:f,treeNodeProps:e,showLine:p}),draggable:z},g)});let jP=0,_P=1,KP=2;function VP(e,n,o){let{key:a,children:l}=o;e.forEach(function(e){var t=e[a],r=e[l];!1!==n(t,e)&&VP(r||[],n,o)})}function XP({treeData:e,expandedKeys:r,startKey:n,endKey:o,fieldNames:t}){let a=[],l=jP;return Ia(n)&&Ia(o)?n===o?[n]:(VP(e,e=>{if(l===KP)return!1;if((t=e)===n||t===o){if(a.push(e),l===jP)l=_P;else if(l===_P)return l=KP,!1}else l===_P&&a.push(e);var t;return r.includes(e)},lS(t)),a):[]}function qP(e,t,r){let n=Pe(t),o=[];return VP(e,(e,t)=>{e=n.indexOf(e);return-1!==e&&(o.push(t),n.splice(e,1)),!!n.length},lS(r)),o}function GP(e){var{isLeaf:e,expanded:t}=e;return e?ft.createElement(vP,null):t?ft.createElement(yP,null):ft.createElement(xP,null)}function YP({treeData:e,children:t}){return e||iS(t)}var e=ft.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:o=!0,defaultExpandedKeys:a,...c}=e,d=ft.useRef(null),u=ft.useRef(null);let[r,p]=vt(c.defaultSelectedKeys||[],c.selectedKeys),[m,l]=vt(()=>{var e=dS(YP(c),{fieldNames:c.fieldNames}).keyEntities;let t;var r=c.expandedKeys||a||[];return t=n?Object.keys(e):o?AS(r,e):r},c.expandedKeys);var{getPrefixCls:e,direction:i}=ft.useContext(Ue);let{prefixCls:s,className:f,showIcon:h=!0,expandAction:g="click",...v}=c;e=e("tree",s),i=bt(e+"-directory",{[e+"-directory-rtl"]:"rtl"===i},f);return ft.createElement(WP,{icon:GP,ref:t,blockNode:!0,...v,showIcon:h,expandAction:g,prefixCls:e,className:i,defaultExpandParent:o,expandedKeys:m,selectedKeys:r,onSelect:(e,t)=>{var{multiple:r,fieldNames:n}=c,{node:o,nativeEvent:a}=t,{key:o=""}=o,l=YP(c),t={...t,selected:!0},i=a?.ctrlKey||a?.metaKey,a=a?.shiftKey;let s;r&&i?(s=e,d.current=o,u.current=s):r&&a?s=Array.from(new Set([].concat(Pe(u.current||[]),Pe(XP({treeData:l,expandedKeys:m,startKey:o,endKey:d.current,fieldNames:n}))))):(s=[o],d.current=o,u.current=s),t.selectedNodes=qP(l,s,n),c.onSelect?.(s,t),p(s)},onExpand:(e,t)=>(l(e),c.onExpand?.(e,t))})}),c=WP,UP=(c.DirectoryTree=e,c.TreeNode=bS,c.useTree=function(t,e){let r=e.fieldNames,n=ft.useMemo(()=>{var e=dS(t,{fieldNames:r}).keyEntities;return e},[t,r]);return{getPath:ht(e=>{var t=[];let r=n[e];for(;r;)t.unshift(r),r=r.parent;return t})}},c),QP=e=>{var{value:e,filterSearch:t,tablePrefixCls:r,locale:n,onChange:o}=e;return t?ft.createElement("div",{className:r+"-filter-dropdown-search"},ft.createElement(S2,{prefix:ft.createElement(ug,null),placeholder:n.filterSearchPlaceholder,onChange:o,value:e,htmlSize:1,className:r+"-filter-dropdown-search-input"})):null};let ZP=e=>{var t=e.keyCode;t===Ce.ENTER&&e.stopPropagation()};var JP=ft.forwardRef((e,t)=>ft.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:ZP,ref:t,role:"presentation"},e.children));function ez(e){let r=[];return(e||[]).forEach(({value:e,children:t})=>{r.push(e),t&&(r=[].concat(Pe(r),Pe(ez(t))))}),r}let tz=(e,t)=>!("string"!=typeof t&&!Ma(t))&&t.toString().toLowerCase().includes(e),rz=e=>{let{filters:t,prefixCls:o,filteredKeys:a,filterMultiple:l,searchValue:i,normalizedSearchValue:s,filterSearch:c}=e;return t.map((e,t)=>{var r,n=String(e.value);return e.children?{key:n||t,label:e.text,popupClassName:o+"-dropdown-submenu",children:rz({filters:e.children,prefixCls:o,filteredKeys:a,filterMultiple:l,searchValue:i,normalizedSearchValue:s,filterSearch:c})}:(r=l?Nk:j6,t={key:void 0!==e.value?n:t,label:ft.createElement(ft.Fragment,null,ft.createElement(r,{checked:a.includes(n)}),ft.createElement("span",null,e.text))},s?Je(c)?c(s,e)?t:null:tz(s,e.text)?t:null:t)})};function nz(e){return e||[]}var oz=e=>{let{tablePrefixCls:t,prefixCls:r,column:n,dropdownPrefixCls:o,columnKey:a,filterOnClose:l,filterMultiple:i,filterMode:H="menu",filterSearch:s=!1,filterState:c,triggerFilter:A,locale:d,children:u,getPopupContainer:p,rootClassName:D}=e,{filterResetToDefaultFilteredValue:m,defaultFilteredValue:f,filterDropdownProps:h={},filterDropdownOpen:L,onFilterDropdownOpenChange:F}=n,[W,j]=ft.useState(!1);e=ft.useContext(Vg);let g=!(!c||!c.filteredKeys?.length&&!c.forceFiltered),v=e=>{j(e),h.onOpenChange?.(e),F?.(e)},b=h.open??L??W,y=c?.filteredKeys,[C,x]=hP(nz(y)),w=({selectedKeys:e})=>{x(e)},_=(e,{node:t,checked:r})=>{i?w({selectedKeys:e}):w({selectedKeys:r&&t.key?[t.key]:[]})},[K,V]=(ft.useEffect(()=>{b&&w({selectedKeys:nz(y)})},[y,b]),ft.useState([])),X=e=>{V(e)},[S,k]=ft.useState(""),E=ft.useMemo(()=>S.trim().toLowerCase(),[S]),N=e=>{e=e.target.value;k(e)},I=(ft.useEffect(()=>{b||k("")},[b]),e=>{e=e?.length?e:null;return!(null!==e||c&&c.filteredKeys)||(0,Vt.A)(e,c?.filteredKeys,!0)?null:void A({column:n,key:a,filteredKeys:e})}),M=()=>{v(!1),I(C())},$=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&I([]),t&&v(!1),k(""),m?x((f||[]).map(String)):x([])};var R;let q=bt({[o+"-menu-without-submenu"]:!(n.filters||[]).some(({children:e})=>e)}),G=e=>{e.target.checked?(e=ez(n?.filters).map(String),x(e)):x([])},P=({filters:e})=>(e||[]).map((e,t)=>{var r=String(e.value),r={title:e.text,key:void 0!==e.value?r:String(t)};return e.children&&(r.children=P({filters:e.children})),r}),z=e=>({...e,text:e.title,value:e.key,children:e.children?.map(z)||[]}),B,{direction:Y,renderEmpty:U}=ft.useContext(Ue);if(Je(n.filterDropdown))B=n.filterDropdown({prefixCls:o+"-custom",setSelectedKeys:e=>w({selectedKeys:e}),selectedKeys:C(),confirm:({closeDropdown:e}={closeDropdown:!0})=>{e&&v(!1),I(C())},clearFilters:$,filters:n.filters,visible:b,close:()=>{v(!1)}});else if(n.filterDropdown)B=n.filterDropdown;else{let e=C()||[];B=ft.createElement(ft.Fragment,null,(T=U?.("Table.filter")??ft.createElement(zh,{image:zh.PRESENTED_IMAGE_SIMPLE,description:d.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}}),0===(n.filters||[]).length?T:"tree"===H?ft.createElement(ft.Fragment,null,ft.createElement(QP,{filterSearch:s,value:S,onChange:N,tablePrefixCls:t,locale:d}),ft.createElement("div",{className:t+"-filter-dropdown-tree"},i?ft.createElement(Nk,{checked:e.length===ez(n.filters).length,indeterminate:0<e.length&&e.length<ez(n.filters).length,className:t+"-filter-dropdown-checkall",onChange:G},d?.filterCheckall??d?.filterCheckAll):null,ft.createElement(UP,{checkable:!0,selectable:!1,blockNode:!0,multiple:i,checkStrictly:!i,className:o+"-menu",onCheck:_,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:P({filters:n.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:E?e=>Je(s)?s(S,z(e)):tz(E,e.title):void 0}))):(O=(R=rz({filters:n.filters||[],filterSearch:s,prefixCls:r,filteredKeys:C(),filterMultiple:i,searchValue:S,normalizedSearchValue:E})).every(e=>null===e),ft.createElement(ft.Fragment,null,ft.createElement(QP,{filterSearch:s,value:S,onChange:N,tablePrefixCls:t,locale:d}),O?T:ft.createElement(Hb,{selectable:!0,multiple:i,prefixCls:o+"-menu",className:q,onSelect:w,onDeselect:w,selectedKeys:e,getPopupContainer:p,openKeys:K,onOpenChange:X,items:R})))),ft.createElement("div",{className:r+"-dropdown-btns"},ft.createElement(Bd,{type:"link",size:"small",disabled:m?(0,Vt.A)((f||[]).map(String),e,!0):0===e.length,onClick:()=>$()},d.filterReset),ft.createElement(Bd,{type:"primary",size:"small",onClick:M},d.filterConfirm)))}n.filterDropdown&&(B=ft.createElement(Cb,{selectable:void 0},B)),B=ft.createElement(JP,{className:r+"-dropdown"},B);var T,O=(()=>{let e;return e=Je(n.filterIcon)?n.filterIcon(g):n.filterIcon||ft.createElement(fP,null),ft.createElement("span",{role:"button",tabIndex:-1,className:bt(r+"-trigger",{active:g}),onClick:e=>{e.stopPropagation()}},e)})();return e?ft.createElement("div",{className:r+"-column"},ft.createElement("span",{className:t+"-column-title"},u),O):(T=er({trigger:["click"],placement:"rtl"===Y?"bottomLeft":"bottomRight",children:O,getPopupContainer:p},{...h,rootClassName:bt(D,h.rootClassName),open:b,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==y&&x(nz(y)),e||n.filterDropdown||!l?v(e):M())},popupRender:()=>Je(h?.dropdownRender)?h.dropdownRender(B):B}),ft.createElement("div",{className:r+"-column"},ft.createElement("span",{className:t+"-column-title"},u),ft.createElement(WI,{...T})))};let az=(e,o,a)=>{let l=[];return(e||[]).forEach((t,r)=>{var r=sP(r,a),n=void 0!==t.filterDropdown;if(t.filters||n||"onFilter"in t)if("filteredValue"in t){let e=t.filteredValue;n||(e=e?.map(String)??e),l.push({column:t,key:iP(t,r),filteredKeys:e,forceFiltered:t.filtered})}else l.push({column:t,key:iP(t,r),filteredKeys:o&&t.defaultFilteredValue?t.defaultFilteredValue:void 0,forceFiltered:t.filtered});"children"in t&&(l=[].concat(Pe(l),Pe(az(t.children,o,r))))}),l};let lz=e=>{let o={};return e.forEach(({key:e,filteredKeys:t,column:r})=>{var{filters:r,filterDropdown:n}=r;n?o[e]=t||null:Array.isArray(t)?(n=ez(r),o[e]=n.filter(e=>t.includes(String(e)))):o[e]=null}),o},iz=(e,i,s)=>i.reduce((e,t)=>{let{column:{onFilter:o,filters:a},filteredKeys:l}=t;if(o&&l&&l.length){t=ez(a);let r=new Map,n=(t.forEach(e=>{var t=String(e);r.has(t)||r.set(t,e)}),l.map(e=>{var t=String(e);return r.get(t)??e}));return e.reduce((e,t)=>{let r={...t};return r[s]&&(r[s]=iz(r[s],i,s)),n.some(e=>o(e,r))&&e.push(r),e},[])}return e},e),sz=e=>e.flatMap(e=>"children"in e?[e].concat(Pe(sz(e.children||[]))):[e]);var cz=e=>{let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:o,getPopupContainer:a,locale:l,rootClassName:i}=e;fl("Table");let s=ft.useMemo(()=>sz(n||[]),[n]),[c,d]=ft.useState(()=>az(s,!0)),u=ft.useMemo(()=>{var e=az(s,!1);if(0!==e.length){let t=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e&&(t=!1)}),t){let n=(s||[]).map((e,t)=>iP(e,sP(t)));return c.reduce((e,t)=>{var r=n.indexOf(t.key);return-1!==r&&(r=s[r],e.push({...t,column:{...t.column,...r},forceFiltered:r.filtered})),e},[])}}return e},[s,c]);e=ft.useMemo(()=>lz(u),[u]);let p=t=>{var e=u.filter(({key:e})=>e!==t.key);e.push(t),d(e),o(lz(e),e)};return[e=>function t(c,d,e,u,p,m,f,r,h){return e.map((n,e)=>{e=sP(e,r);let{filterOnClose:o=!0,filterMultiple:a=!0,filterMode:l,filterSearch:i}=n,s=n;if(s.filters||s.filterDropdown){let t=iP(s,e),r=u.find(({key:e})=>t===e);s={...s,title:e=>ft.createElement(oz,{tablePrefixCls:c,prefixCls:c+"-filter",dropdownPrefixCls:d,column:s,columnKey:t,filterState:r,filterOnClose:o,filterMultiple:a,filterMode:l,filterSearch:i,triggerFilter:m,locale:p,getPopupContainer:f,rootClassName:h},cP(n.title,e))}}return s="children"in s?{...s,children:t(c,d,s.children,u,p,m,f,e,h)}:s})}(t,r,e,u,l,p,a,void 0,i),u,e]},dz=(t,o,a)=>{let r=ft.useRef({});return[function(e){if(!r.current||r.current.data!==t||r.current.childrenColumnName!==o||r.current.getRowKey!==a){let n=new Map;!function r(e){e.forEach((e,t)=>{t=a(e,t),n.set(t,e),Ze(e)&&o in e&&r(e[o]||[])})}(t),r.current={data:t,childrenColumnName:o,kvMap:n,getRowKey:a}}return r.current.kvMap?.get(e)}]};let uz=10;var pz=function(e,r,n){let{total:t=0,...o}=Ze(n)?n:{},[a,l]=(0,ft.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:uz})),i=er(a,o,{total:0<t?t:e}),s=(e=Math.ceil((t||e)/i.pageSize),i.current>e&&(i.current=e||1),(e,t)=>{l({current:e??1,pageSize:t||i.pageSize})});return!1===n?[{},()=>{}]:[{...i,onChange:(e,t)=>{n&&n.onChange?.(e,t),s(e,t),r(e,t||i?.pageSize)}},s]};function mz(){return(mz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var fz=ft.forwardRef((e,t)=>ft.createElement(u,mz({},e,{ref:t,icon:g().A})));function hz(){return(hz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var gz=ft.forwardRef((e,t)=>ft.createElement(u,hz({},e,{ref:t,icon:v().A})));let vz="ascend",bz="descend",yz=e=>!(!Ze(e.sorter)||!Ma(e.sorter.multiple))&&e.sorter.multiple,Cz=e=>Je(e)?e:!(!Ze(e)||!e.compare)&&e.compare,xz=(e,t)=>t?e[e.indexOf(t)+1]:e[0],wz=(e,r,n)=>{let o=[],a=(e,t)=>{o.push({column:e,key:iP(e,t),multiplePriority:yz(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,t)=>{t=sP(t,n);e.children?("sortOrder"in e&&a(e,t),o=[].concat(Pe(o),Pe(wz(e.children,r,t)))):e.sorter&&("sortOrder"in e?a(e,t):r&&e.defaultSortOrder&&o.push({column:e,key:iP(e,t),multiplePriority:yz(e),sortOrder:e.defaultSortOrder}))}),o},Sz=(m,e,f,h,g,v,b,n,y)=>(e||[]).map((c,t)=>{t=sP(t,n);let r=c;if(r.sorter){var d=r.sortDirections||g;let n=void 0===r.showSorterTooltip?b:r.showSorterTooltip,a=iP(r,t);var u=f.find(({key:e})=>e===a);let l=u?u.sortOrder:null,i=xz(d,l),o;o=c.sortIcon?c.sortIcon({sortOrder:l}):(u=d.includes(vz)&&ft.createElement(gz,{className:bt(m+"-column-sorter-up",{active:l===vz})}),d=d.includes(bz)&&ft.createElement(fz,{className:bt(m+"-column-sorter-down",{active:l===bz})}),ft.createElement("span",{className:bt(m+"-column-sorter",{[m+"-column-sorter-full"]:!(!u||!d)})},ft.createElement("span",{className:m+"-column-sorter-inner","aria-hidden":"true"},u,d)));var{cancelSort:u,triggerAsc:d,triggerDesc:p}=v||{};let e=u,s=(i===bz?e=p:i===vz&&(e=d),Ze(n)?{title:e,...n}:{title:e});r={...r,className:bt(r.className,{[m+"-column-sort"]:l}),title:e=>{var t=m+"-column-sorters",e=ft.createElement("span",{className:m+"-column-title"},cP(c.title,e)),r=ft.createElement("div",{className:t},e,o);return n?"boolean"!=typeof n&&"sorter-icon"===n?.target?ft.createElement("div",{className:bt(t,t+"-tooltip-target-sorter")},e,ft.createElement(rv,{...s},o)):ft.createElement(rv,{...s},r):r},onHeaderCell:e=>{e=c.onHeaderCell?.(e)||{};let t=e.onClick,r=e.onKeyDown;e.onClick=e=>{h({column:c,key:a,sortOrder:i,multiplePriority:yz(c)}),t?.(e)},e.onKeyDown=e=>{e.keyCode===Ce.ENTER&&h({column:c,key:a,sortOrder:i,multiplePriority:yz(c)}),r?.(e)};var n=dP(c.title,{}),o=n?.toString();return l&&(e["aria-sort"]="ascend"===l?"ascending":"descending"),e["aria-description"]=y?.sortable,e["aria-label"]=o||"",e.className=bt(e.className,m+"-column-has-sorters"),e.tabIndex=0,c.ellipsis&&(e.title=(n??"").toString()),e}}}return r="children"in r?{...r,children:Sz(m,r.children,f,h,g,v,b,t,y)}:r}),kz=e=>{var{column:e,sortOrder:t}=e;return{column:e,order:t,field:e.dataIndex,columnKey:e.key}},Ez=e=>{var t,r=e.reduce((e,t)=>(t.sortOrder&&e.push(kz(t)),e),[]);return 0===r.length&&e.length?(t=e.length-1,{...kz(e[t]),column:void 0,order:void 0,field:void 0,columnKey:void 0}):r.length<=1?r[0]||{}:r},Nz=(e,r,n)=>{var t=r.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),e=e.slice();let a=t.filter(({column:{sorter:e},sortOrder:t})=>Cz(e)&&t);return a.length?e.sort((t,r)=>{for(let e=0;e<a.length;e+=1){var{column:{sorter:n},sortOrder:o}=a[e],n=Cz(n);if(n&&o){n=n(t,r,o);if(0!==n)return o===vz?n:-n}}return 0}).map(e=>{var t=e[n];return t?{...e,[n]:Nz(t,r,n)}:e}):e};var Iz=e=>{let{prefixCls:t,mergedColumns:r,baseColumns:n,sortDirections:o,tableLocale:a,showSorterTooltip:l,onSorterChange:i,globalLocale:s}=e,c=n??r,[d,u]=ft.useState(()=>wz(c,!0)),p=(e,r)=>{let n=[];return e.forEach((e,t)=>{t=sP(t,r);n.push(iP(e,t)),Array.isArray(e.children)&&(e=p(e.children,t),n.push.apply(n,Pe(e)))}),n},m=ft.useMemo(()=>{let t=!0;var e=wz(c,!1);if(!e.length){let t=p(c);return d.filter(({key:e})=>t.includes(e))}let r=[];function n(e){t?r.push(e):r.push({...e,sortOrder:null})}let o=null;return e.forEach(e=>{null===o?(n(e),e.sortOrder&&(!1===e.multiplePriority?t=!1:o=!0)):(o&&!1!==e.multiplePriority||(t=!1),n(e))}),r},[c,d]);e=ft.useMemo(()=>{var e=m.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[m]);let f=t=>{let e;e=!1!==t.multiplePriority&&m.length&&!1!==m[0].multiplePriority?[].concat(Pe(m.filter(({key:e})=>e!==t.key)),[t]):[t],u(e),i(Ez(e),e)};return[e=>Sz(t,e,m,f,o,a,l,void 0,s),m,e,()=>Ez(m)]},Mz=e=>Re().useMemo(()=>"boolean"==typeof e?{spinning:e}:Ze(e)?{spinning:!0,...e}:{},[e]);let $z=(e,r)=>e.map(e=>{var t={...e};return t.title=cP(e.title,r),"children"in t&&(t.children=$z(t.children,r)),t});var Rz=t=>[ft.useCallback(e=>$z(e,t),[t])],Pz=Dn((e,t)=>{e=e._renderTimes,t=t._renderTimes;return e!==t}),zz=a((e,t)=>{e=e._renderTimes,t=t._renderTimes;return e!==t}),Bz=e=>{let{antCls:t,componentCls:n,lineWidth:o,lineType:r,tableBorderColor:a,tableHeaderBg:l,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e;var d=(0,Qe.unit)(o)+` ${r} `+a,[u,p]=Q(t,"table"),m=(e,t,r)=>({[`&${n}-`+e]:{[`> ${n}-container`]:{[`> ${n}-content, > ${n}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:(0,Qe.unit)(c(t).mul(-1).equal())+`
`+(0,Qe.unit)(c(c(r).add(o)).mul(-1).equal())}}}}}});return{[n+"-wrapper"]:{[u("nested-border-top")]:d,[""+n+n+"-bordered"]:{[`> ${n}-title`]:{border:d,borderBottom:0},[`> ${n}-container`]:{borderInlineStart:d,borderTop:d,"&:first-child":{borderTop:p("nested-border-top",d)},[`> ${n}-header${n}-sticky-holder`]:{marginTop:c(o).mul(-1).equal(),borderTop:d},[`> ${n}-content, > ${n}-header, > ${n}-body, > ${n}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${n}-cell-fix-right-first:not(${n}-cell-fix-right-last)::after`]:{borderInlineEnd:d}},"> tbody > tr > th, > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:(0,Qe.unit)(c(i).mul(-1).equal())+" "+(0,Qe.unit)(c(c(s).add(o)).mul(-1).equal()),"&::after":{position:"absolute",top:0,insetInlineEnd:o,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${n}-scroll-horizontal`]:{[`> ${n}-container > ${n}-body`]:{"> table > tbody":{[`
> tr${n}-expanded-row,
> tr${n}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}},...m("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...m("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${n}-footer`]:{border:d,borderTop:0}},[n+"-cell"]:{[`
> ${n}-wrapper:only-child,
> ${n}-expanded-row-fixed > ${n}-wrapper:only-child
`]:{[u("nested-border-top")]:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Qe.unit)(o)} 0 ${(0,Qe.unit)(o)} `+l}},[`${n}-bordered ${n}-cell-scrollbar`]:{borderInlineEnd:d}}}},Tz=e=>{e=e.componentCls;return{[e+"-wrapper"]:{[e+"-cell-ellipsis"]:{...an,wordBreak:"keep-all",[`
&${e}-cell-fix-start-shadow,
&${e}-cell-fix-end-shadow
`]:{overflow:"visible",[e+"-cell-content"]:{...an,display:"block"}},[e+"-column-title"]:{...an,wordBreak:"keep-all"}}}}},Oz=e=>{var t=e.componentCls;return{[t+"-wrapper"]:{[t+`-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},Hz=e=>{var{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:o,paddingXS:a,lineType:l,tableBorderColor:i,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:u,tablePaddingHorizontal:p,tableExpandedRowBg:m,paddingXXS:f,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,l=(0,Qe.unit)(o)+` ${l} `+i,i=y(f).sub(o).equal();return{[t+"-wrapper"]:{[t+"-expand-icon-col"]:{width:c},[t+"-row-expand-icon-cell"]:{textAlign:"center",[t+"-row-expand-icon"]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[t+"-row-indent"]:{height:1,float:"left"},[t+"-row-expand-icon"]:{...mn(e),position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:(0,Qe.unit)(g),background:s,border:l,borderRadius:d,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:i,insetInlineStart:i,height:o},"&::after":{top:i,bottom:i,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[t+`-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[r+"-descriptions-view"]:{display:"flex",table:{flex:"auto",width:"100%"}}},[t+"-expanded-row-fixed"]:{position:"relative",margin:(0,Qe.unit)(y(u).mul(-1).equal())+" "+(0,Qe.unit)(y(p).mul(-1).equal()),padding:(0,Qe.unit)(u)+" "+(0,Qe.unit)(p)}}}},Az=e=>{var{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:l,paddingXS:i,colorText:s,lineWidth:c,lineType:d,tableBorderColor:u,headerIconColor:p,fontSizeSM:m,tablePaddingHorizontal:f,borderRadius:h,motionDurationSlow:g,colorIcon:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:w,controlItemBgHover:S,controlItemBgActive:k,boxShadowSecondary:E,filterDropdownMenuBg:N,calc:I}=e,M=r+"-dropdown",$=t+"-filter-dropdown",R=r+"-tree",d=(0,Qe.unit)(c)+` ${d} `+u;return[{[t+"-wrapper"]:{[t+"-filter-column"]:{display:"flex",justifyContent:"space-between"},[t+"-filter-trigger"]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(l).mul(-1).equal(),marginInline:(0,Qe.unit)(l)+" "+(0,Qe.unit)(I(f).div(2).mul(-1).equal()),padding:"0 "+(0,Qe.unit)(l),color:p,fontSize:m,borderRadius:h,cursor:"pointer",transition:"all "+g,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[r+"-dropdown"]:{[$]:{...F(e),minWidth:o,backgroundColor:x,borderRadius:h,boxShadow:E,overflow:"hidden",[M+"-menu"]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:N,"&:empty::after":{display:"block",padding:(0,Qe.unit)(i)+" 0",color:C,fontSize:m,textAlign:"center",content:'"Not Found"'}},[$+"-tree"]:{paddingBlock:(0,Qe.unit)(i)+" 0",paddingInline:i,[R]:{padding:0},[R+`-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:S},[R+`-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[$+"-search"]:{padding:i,borderBottom:d,"&-input":{input:{minWidth:a},[n]:{color:C}}},[$+"-checkall"]:{width:"100%",marginBottom:l,marginInlineStart:l},[$+"-btns"]:{display:"flex",justifyContent:"space-between",padding:(0,Qe.unit)(I(i).sub(c).equal())+" "+(0,Qe.unit)(i),overflow:"hidden",borderTop:d}}}},{[r+`-dropdown ${$}, ${$}-submenu`]:{[r+"-checkbox-wrapper + span"]:{paddingInlineStart:i,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function Dz({colorSplit:e}){return[{boxShadow:"inset 10px 0 8px -8px "+e},{boxShadow:"inset -10px 0 8px -8px "+e}]}var Lz=e=>{var{componentCls:t,lineWidth:r,motionDurationSlow:n,zIndexTableFixed:o,tableBg:a,calc:l}=e,i=t+"-cell",s=i+"-fix",l={position:"absolute",top:0,bottom:l(r).mul(-1).equal(),width:30,transition:"box-shadow "+n,content:'""',pointerEvents:"none"},[r,n]=Dz(e);return{[t+"-wrapper"]:{[i+s]:{position:"sticky"},[s]:{zIndex:`calc(var(--z-offset-reverse) + ${o})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[t+"-container"]:{position:"relative","&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${o} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[t+`-has-fix-start ${t}-container:before`]:{display:"none"},[t+`-has-fix-end ${t}-container:after`]:{display:"none"},[t+`-fix-start-shadow-show ${t}-container:before`]:r,[t+`-fix-end-shadow-show ${t}-container:after`]:n}}},Fz=e=>{var{componentCls:t,antCls:r,margin:n}=e;return{[t+"-wrapper"]:{[t+`-pagination${r}-pagination`]:{margin:(0,Qe.unit)(n)+" 0"},[t+"-pagination"]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},Wz=e=>{var{componentCls:e,tableRadius:t}=e;return{[e+"-wrapper"]:{[e]:{[e+`-title, ${e}-header`]:{borderRadius:`${(0,Qe.unit)(t)} ${(0,Qe.unit)(t)} 0 0`},[e+`-title + ${e}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[e+"-header, table"]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},[`&${e}-bordered${e}-no-header`]:{[`> ${e}-container`]:{[`> ${e}-content, > ${e}-body`]:{"> table > tbody > tr:first-child":{"> *:first-child":{borderStartStartRadius:t},"> *:last-child":{borderStartEndRadius:t}}}}},"&-container":{borderStartStartRadius:t,borderStartEndRadius:t,"&::before":{borderStartStartRadius:t},"&::after":{borderStartEndRadius:t},[`> ${e}-content`]:{borderStartStartRadius:t,borderStartEndRadius:t},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:t},"> *:last-child":{borderStartEndRadius:t}}},"&-footer":{borderRadius:`0 0 ${(0,Qe.unit)(t)} `+(0,Qe.unit)(t)}}}}},jz=e=>{var t=e.componentCls,[e,r]=Dz(e);return{[t+"-wrapper-rtl"]:{direction:"rtl",table:{direction:"rtl"},[t+"-row-expand-icon"]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[t+"-cell-fix"]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":e},[t+"-container"]:{[t+"-row-indent"]:{float:"right"}},[t+`-fix-start-shadow-show ${t}-container:before`]:r,[t+`-fix-end-shadow-show ${t}-container:after`]:e}}},_z=e=>{var{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:o,padding:a,paddingXS:l,headerIconColor:i,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:u,tableRowHoverBg:p,tablePaddingHorizontal:m,calc:f}=e;return{[t+"-wrapper"]:{[t+"-selection-col"]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(a).div(4)).equal()}},[t+`-bordered ${t}-selection-col`]:{width:f(c).add(f(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(a).div(4)).add(f(l).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[r+"-radio-wrapper"]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[t+"-selection"]:{position:"relative",display:"inline-flex",flexDirection:"column"},[t+"-selection-extra"]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:"all "+e.motionDurationSlow,marginInlineStart:"100%",paddingInlineStart:(0,Qe.unit)(f(m).div(4).equal()),[n]:{color:i,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[t+"-tbody"]:{[t+"-row"]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},Kz=e=>{let{componentCls:o,tableExpandColumnWidth:a,calc:l}=e;var t=(e,t,r,n)=>({[""+o+o+"-"+e]:{fontSize:n,[`
${o}-title,
${o}-footer,
${o}-cell,
${o}-thead > tr > th,
${o}-tbody > tr > th,
${o}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:(0,Qe.unit)(t)+" "+(0,Qe.unit)(r)},[o+"-filter-trigger"]:{marginInlineEnd:(0,Qe.unit)(l(r).div(2).mul(-1).equal())},[o+"-expanded-row-fixed"]:{margin:(0,Qe.unit)(l(t).mul(-1).equal())+" "+(0,Qe.unit)(l(r).mul(-1).equal())},[o+"-tbody"]:{[o+"-wrapper:only-child "+o]:{marginBlock:(0,Qe.unit)(l(t).mul(-1).equal()),marginInline:(0,Qe.unit)(l(a).sub(r).equal())+" "+(0,Qe.unit)(l(r).mul(-1).equal())}},[o+"-selection-extra"]:{paddingInlineStart:(0,Qe.unit)(l(r).div(4).equal())}}});return{[o+"-wrapper"]:{...t("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...t("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},Vz=e=>{var{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:o,headerIconHoverColor:a}=e;return{[t+"-wrapper"]:{[t+`-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[t+`-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[t+"-column-title"]:{position:"relative",zIndex:1,flex:1,minWidth:0},[t+"-column-sorters"]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[t+"-column-sorters-tooltip-target-sorter"]:{"&::after":{content:"none"}},[t+"-column-sorter"]:{marginInlineStart:r,color:o,fontSize:0,transition:"color "+e.motionDurationSlow,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[t+`-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[t+`-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Xz=e=>{var{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:l,stickyScrollBarBorderRadius:i,lineWidth:s,lineType:c,tableBorderColor:d,zIndexTableFixed:u}=e,s=(0,Qe.unit)(s)+` ${c} `+d;return{[t+"-wrapper"]:{[t+"-sticky"]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${u} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:(0,Qe.unit)(a)+" !important",zIndex:`calc(var(--columns-count) * 2 + ${u} + 1)`,display:"flex",alignItems:"center",background:l,borderTop:s,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:n,borderRadius:i,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},qz=e=>{var{componentCls:t,lineWidth:r,tableBorderColor:n,calc:o}=e,a=`${(0,Qe.unit)(r)} ${e.lineType} `+n;return{[t+"-wrapper"]:{[t+"-summary"]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,Qe.unit)(o(r).mul(-1).equal())} 0 `+n}}}},Gz=e=>{var{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:o,tableBorderColor:a,calc:l}=e,o=(0,Qe.unit)(n)+` ${o} `+a,a=t+"-expanded-row-cell";return{[t+"-wrapper"]:{[t+"-tbody-virtual"]:{[t+"-tbody-virtual-scrollbar"]:{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},[t+"-tbody-virtual-holder-inner"]:{[`
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[t+"-cell"]:{borderBottom:o,transition:"background-color "+r},[t+"-expanded-row"]:{[a+a+"-fixed"]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Qe.unit)(n)})`,borderInlineEnd:"none"}}},[t+"-bordered"]:{[t+"-tbody-virtual"]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:o,position:"absolute"},[t+"-cell"]:{borderInlineEnd:o,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(n).mul(-1).equal(),borderInlineStart:o}}},[`&${t}-virtual`]:{[t+`-placeholder ${t}-cell`]:{borderInlineEnd:o,borderBottom:o}}}}}};var Yz=Be("Table",e=>{var{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:o,headerBg:a,headerColor:l,headerSortActiveBg:i,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:d,rowSelectedBg:u,rowSelectedHoverBg:p,rowExpandedBg:m,cellPaddingBlock:f,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:C,footerBg:x,footerColor:w,headerBorderRadius:S,cellFontSize:k,cellFontSizeMD:E,cellFontSizeSM:N,headerSplitColor:I,fixedHeaderSortActiveBg:M,headerFilterHoverBg:$,filterDropdownBg:R,expandIconBg:P,selectionColumnWidth:z,stickyScrollBarBg:B,calc:T}=e,k=ze(e,{tableFontSize:k,tableBg:n,tableRadius:S,tablePaddingVertical:f,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:l,tableHeaderBg:a,tableFooterTextColor:w,tableFooterBg:x,tableHeaderCellSplitColor:I,tableHeaderSortBg:i,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:$,tableFilterDropdownBg:R,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:2,tableFontSizeMiddle:E,tableFontSizeSmall:N,tableSelectionColumnWidth:z,tableExpandIconBg:P,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:B,tableScrollThumbBgHover:t,tableScrollBg:r});return[(e=>{let{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:l,lineType:i,tableBorderColor:s,tableFontSize:c,tableBg:d,tableRadius:u,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:f,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:v,calc:b}=e;var y=(0,Qe.unit)(l)+` ${i} `+s;return{[t+"-wrapper"]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...cn(),[t]:{...F(e),fontSize:c,background:d,borderRadius:`${(0,Qe.unit)(u)} ${(0,Qe.unit)(u)} 0 0`,scrollbarColor:e.tableScrollThumbBg+" "+e.tableScrollBg},table:{width:"100%",textAlign:"start",borderRadius:`${(0,Qe.unit)(u)} ${(0,Qe.unit)(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:(0,Qe.unit)(n)+" "+(0,Qe.unit)(o),overflowWrap:"break-word"},[t+"-title"]:{padding:(0,Qe.unit)(n)+" "+(0,Qe.unit)(o)},[t+"-thead"]:{"> tr > th, > tr > td":{position:"relative",color:p,fontWeight:r,textAlign:"start",background:f,borderBottom:y,transition:`background-color ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:"background-color "+m,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[t+"-tbody"]:{"> tr":{"> th, > td":{borderBottom:y,transition:["background-color","border-color"].map(e=>e+" "+m).join(", "),[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:(0,Qe.unit)(b(n).mul(-1).equal()),marginInline:(0,Qe.unit)(b(a).sub(o).equal())+`
`+(0,Qe.unit)(b(o).mul(-1).equal()),[t+"-tbody > tr:last-child > td"]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:r,textAlign:"start",background:f,borderBottom:y,transition:`background-color ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[t+"-measure-cell-content"]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[t+"-footer"]:{padding:(0,Qe.unit)(n)+" "+(0,Qe.unit)(o),color:g,background:v}}}})(k),Fz(k),qz(k),Vz(k),Az(k),Bz(k),Wz(k),Hz(k),qz(k),Oz(k),_z(k),Lz(k),Xz(k),Tz(k),Kz(k),jz(k),Gz(k)]},e=>{var{colorFillAlter:e,colorBgContainer:t,colorTextHeading:r,colorFillSecondary:n,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:l,padding:i,paddingSM:s,paddingXS:c,colorBorderSecondary:d,borderRadiusLG:u,controlHeight:p,colorTextPlaceholder:m,fontSize:f,fontSizeSM:h,lineHeight:g,lineWidth:v,colorIcon:b,colorIconHover:y,opacityLoading:C,controlInteractiveSize:x}=e,n=new kn(n).onBackground(t).toHexString(),w=new kn(o).onBackground(t).toHexString(),S=new kn(e).onBackground(t).toHexString(),b=new kn(b),y=new kn(y),k=x/2-v,E=2*k+3*v;return{headerBg:S,headerColor:r,headerSortActiveBg:n,headerSortHoverBg:w,bodySortBg:S,rowHoverBg:S,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:e,cellPaddingBlock:i,cellPaddingInline:i,cellPaddingBlockMD:s,cellPaddingInlineMD:c,cellPaddingBlockSM:c,cellPaddingInlineSM:c,borderColor:d,headerBorderRadius:u,footerBg:S,footerColor:r,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:d,fixedHeaderSortActiveBg:n,headerFilterHoverBg:o,filterDropdownMenuBg:t,filterDropdownBg:t,expandIconBg:t,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*g-3*v)/2-Math.ceil((1.4*h-3*v)/2),headerIconColor:b.clone().setA(b.a*C).toRgbString(),headerIconHoverColor:y.clone().setA(y.a*C).toRgbString(),expandIconHalfInner:k,expandIconSize:E,expandIconScale:x/E}},{resetFont:!1,unitless:{expandIconScale:!0}});let Uz=[],Qz=ft.createContext({}),Zz=e=>{var{ariaProps:t,component:r="table"}=ft.useContext(Qz);return ft.createElement(r,{...t,...e})};var Jz=ft.forwardRef((e,t)=>{let{prefixCls:H,className:A,rootClassName:D,style:L,classNames:F,styles:W,size:j,bordered:_,dropdownPrefixCls:K,dataSource:V,pagination:n,rowSelection:r,rowKey:X,rowClassName:o,column:q,columns:G,children:Y,childrenColumnName:U,onChange:Q,getPopupContainer:Z,loading:J,expandIcon:ee,expandable:a,expandedRowRender:te,expandIconColumnIndex:re,indentSize:ne,scroll:l,sortDirections:oe,locale:i,showSorterTooltip:ae={target:"full-header"},virtual:le,title:ie,showHeader:se}=e;fl("Table");var s=ft.useMemo(()=>G||m8(Y),[G,Y]);let c=lP(s,q);s=ft.useMemo(()=>c.some(e=>e.responsive),[c]);let d=Ig(s);var s=ft.useMemo(()=>{let t=new Set(Object.keys(d).filter(e=>d[e]));return c.filter(e=>!e.responsive||e.responsive.some(e=>t.has(e)))},[c,d]),u=at(e,["className","style","column","columns"]);let p=u.components,m=Jt(u,{aria:!0}),ce=0<Object.keys(m).length;var de=ft.useMemo(()=>({ariaProps:m,component:p?.header?.table}),[m,p?.header?.table]),ue=ft.useMemo(()=>ce?{...p,header:{...p?.header,table:Zz}}:p,[p,ce]),{locale:f=Ei.default,table:h}=ft.useContext(Ue);let{getPrefixCls:pe,direction:me,renderEmpty:fe,getPopupContainer:he,className:ge,style:ve,classNames:be,styles:ye}=Fe("table"),g=mc(e=>"middle"===j?"medium":j??e);var e={...e,size:g,bordered:_},v=We(ve),b=We(L);let[y,C]=je([be,F],[ye,v,W,b],{props:e},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}});var v={...f.Table,...i},[b]=nc("global",Ei.default.global);let x=V||Uz,w=pe("table",H);e=pe("dropdown",K);let[,S]=so();var f=ft.useMemo(()=>Ze(r)?{columnWidth:S.Table?.selectionColumnWidth,...r}:r,[r,S.Table?.selectionColumnWidth]),k=nl(w),[Ce,xe]=Yz(w,k),E={childrenColumnName:U,expandIconColumnIndex:re,...a,expandIcon:a?.expandIcon??h?.expandable?.expandIcon};let{childrenColumnName:N="children"}=E;var I=ft.useMemo(()=>x.some(e=>e?.[N])?"nest":te||a?.expandedRowRender?"row":null,[N,x]);let M={body:ft.useRef(null)};we=w;var we,Se=(e,t)=>{var r,e=e.querySelector(`.${we}-container`);let n=t;return e&&(e=getComputedStyle(e),r=Number.parseInt(e.borderLeftWidth,10),e=Number.parseInt(e.borderRightWidth,10),n=t-r-e),n};let ke=ft.useRef(null),Ee=ft.useRef(null),$=(rP(t,()=>({...Ee.current,nativeElement:ke.current})),X||h?.rowKey||"key");t=l??h?.scroll;let R=ft.useMemo(()=>Je($)?$:e=>e?.[$],[$]);var[h]=dz(x,N,R);let P={},z=(e,t,r=!1)=>{e={...P,...e};r&&(P.resetPagination?.(),e.pagination?.current&&(e.pagination.current=1),n)&&n.onChange?.(1,e.pagination?.pageSize),l&&!1!==l.scrollToFirstRowOnChange&&M.body.current&&rl(0,{getContainer:()=>M.body.current}),Q?.(e.pagination,e.filters,e.sorter,{currentDataSource:iz(Nz(x,e.sorterStates,N),e.filterStates,N),action:t})};let[Ne,Ie,Me,$e]=Iz({prefixCls:w,mergedColumns:s,baseColumns:c,onSorterChange:(e,t)=>{z({sorter:e,sorterStates:t},"sort",!1)},sortDirections:oe||["ascend","descend"],tableLocale:v,showSorterTooltip:ae,globalLocale:b});b=ft.useMemo(()=>Nz(x,Ie,N),[N,x,Ie]);P.sorter=$e(),P.sorterStates=Ie;let[Re,Pe,ze]=cz({prefixCls:w,locale:v,dropdownPrefixCls:e,mergedColumns:s,onFilterChange:(e,t)=>{z({filters:e,filterStates:t},"filter",!0)},getPopupContainer:Z||he,rootClassName:bt(D,k)}),B=iz(b,Pe,N);P.filters=ze,P.filterStates=Pe;e=aP(Me,ze);let[Be]=Rz(e);let[T,Te]=pz(B.length,(e,t)=>{z({pagination:{...P.pagination,current:e,pageSize:t}},"paginate")},n);P.pagination=!1===n?{}:((r,e)=>{let n={current:r.current,pageSize:r.pageSize};return e=Ze(e)?e:{},Object.keys(e).forEach(e=>{var t=r[e];Je(t)||(n[e]=t)}),n})(T,n),P.resetPagination=Te;b=ft.useMemo(()=>{var e,t,r;return!1!==n&&T.pageSize&&({current:e=1,total:t,pageSize:r=10}=T,!(B.length<t)||B.length>r)?B.slice((e-1)*r,e*r):B},[!!n,B,T?.current,T?.pageSize,T?.total]);let[Oe,He]=eP({prefixCls:w,data:B,pageData:b,getRowKey:R,getRecordByKey:h,expandType:I,childrenColumnName:N,locale:v,getPopupContainer:Z||he},f);E.__PARENT_RENDER_ICON__=E.expandIcon,E.expandIcon=E.expandIcon||ee||nP(v),"nest"===I&&void 0===E.expandIconColumnIndex?E.expandIconColumnIndex=f?1:0:0<E.expandIconColumnIndex&&f&&--E.expandIconColumnIndex,Ma(E.indentSize)||(E.indentSize=Ma(ne)?ne:15);e=ft.useCallback(e=>Be(Oe(Re(Ne(e)))),[Ne,Re,Oe]);let Ae,O;if(!1!==n&&T?.total){let t=pP(T.size,g);var h=(e="end")=>ft.createElement(g3,{...T,classNames:y.pagination,styles:C.pagination,className:bt(w+"-pagination",w+"-pagination-"+e,T.className),size:t}),{placement:v,position:I}=T;let e=v??I;Array.isArray(e)?([f,v]=["top","bottom"].map(t=>e.find(e=>e.includes(t))),I=e.every(e=>""+e=="none"),f||v||I||(O=h()),f&&(Ae=h(uP(f))),v&&(O=h(uP(v)))):O=h()}let De=Mz(J);var I=bt(xe,k,w+"-wrapper",ge,{[w+"-wrapper-rtl"]:"rtl"===me},A,D,y.root,Ce),f=ft.useMemo(()=>De?.spinning&&x===Uz?null:void 0!==i?.emptyText?i.emptyText:fe?.("Table")||ft.createElement(Bh,{componentName:"Table"}),[De?.spinning,x,i?.emptyText,fe]),v=le?zz:Pz,h={},Le=ft.useMemo(()=>{var{fontSize:e,lineHeight:t,lineWidth:r,padding:n,paddingXS:o,paddingSM:a}=S,l=Math.floor(e*t);switch(g){case"medium":return 2*a+l+r;case"small":return 2*o+l+r;default:return 2*n+l+r}},[S,g]);return le&&(h.listItemHeight=Le),ft.createElement("div",{ref:ke,className:I,style:C.root},ft.createElement(z3,{spinning:!1,...De},Ae,ft.createElement(Qz.Provider,{value:de},ft.createElement(v,{...h,...u,components:ue,scroll:t,classNames:y,styles:C,ref:Ee,columns:s,direction:me,expandable:E,prefixCls:w,className:bt({[w+"-medium"]:"medium"===g,[w+"-small"]:"small"===g,[w+"-bordered"]:_,[w+"-empty"]:0===x.length,[w+"-no-header"]:!ie&&!1===se},xe,k,Ce),data:b,rowKey:R,rowClassName:(e,t,r)=>bt({[w+"-row-selected"]:He.has(R(e,t))},Je(o)?o(e,t,r):o),emptyText:f,internalHooks:x5,internalRefs:M,transformColumns:e,getContainerWidth:Se,measureRowRender:e=>ft.createElement(Vg.Provider,{value:!0},ft.createElement(qs,{getPopupContainer:e=>e},e))})),O))}),s=ft.forwardRef((e,t)=>{var r=ft.useRef(0);return r.current+=1,ft.createElement(Jz,{...e,ref:t,_renderTimes:r.current})});s.SELECTION_COLUMN=G8,s.EXPAND_COLUMN=C5,s.SELECTION_ALL=Y8,s.SELECTION_INVERT=U8,s.SELECTION_NONE=Q8,s.Column=i,s.ColumnGroup=Wn,s.Summary=l;var eB=s;let tB=e=>{var{lineWidth:t,fontSizeIcon:r,calc:n}=e,o=e.fontSizeSM;return ze(e,{tagFontSize:o,tagLineHeight:(0,Qe.unit)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})};var d=e=>{var t=wd(new td(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new kn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},rB=Be("Tag",e=>(e=>{var{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o,calc:a}=e,n=a(n).sub(r).equal(),a=a(t).sub(r).equal();return{[o]:{...F(e),display:"inline-block",height:"auto",paddingInline:n,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderRadius:e.borderRadiusSM,opacity:1,transition:"all "+e.motionDurationMid,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[o+"-close-icon"]:{marginInlineStart:a,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:"all "+e.motionDurationMid,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},"> svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},[`> ${e.iconCls} + span, > span + ${e.iconCls}, > svg + span, > span + svg`]:{marginInlineStart:n}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[o+"-filled"]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[o+"-close-icon"]:{color:e.colorTextDisabled}},[o+"-close-icon"]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(tB(e)),d),nB=ft.forwardRef((e,t)=>{let{prefixCls:r,style:n,className:o,checked:a,children:l,icon:i,onChange:s,onClick:c,onKeyDown:d,disabled:u,...p}=e;var{getPrefixCls:e,tag:m}=ft.useContext(Ue),f=ft.useContext($s);let h=u??f;var f=e("tag",r),[e,g]=rB(f),f=bt(f,f+"-checkable",{[f+"-checkable-checked"]:a,[f+"-checkable-disabled"]:h},m?.className,o,e,g);return ft.createElement("span",{...p,ref:t,role:"checkbox","aria-checked":a,"aria-disabled":h||void 0,tabIndex:h?-1:0,style:{...m?.style,...n},className:f,onClick:e=>{h||(s?.(!a),c?.(e))},onKeyDown:e=>{d?.(e),e.defaultPrevented||h||" "===e.key&&(e.preventDefault(),s?.(!a))}},i,ft.createElement("span",null,l))}),n=Re().forwardRef((e,t)=>{let{id:r,prefixCls:n,rootClassName:o,className:a,style:l,classNames:i,styles:s,disabled:c,options:d,value:u,defaultValue:p,onChange:m,multiple:f,...h}=e;var{getPrefixCls:g,direction:v,className:b,style:y,classNames:C,styles:x}=Fe("tag"),g=g("tag",n);let w=g+"-checkable-group";var S=nl(g),[g,S]=rB(g,S),y=We(y),k=We(l);let[E,N]=je([C,i],[x,y,s,k],{props:e});C=(0,ft.useMemo)(()=>Array.isArray(d)?d.map(e=>Ze(e)?e:{value:e,label:e}):[],[d]);let[I,M]=vt(p,u),$=Re().useRef(null);(0,ft.useImperativeHandle)(t,()=>({nativeElement:$.current}));x=Jt(h,{aria:!0,data:!0});return Re().createElement("div",{...x,className:bt(w,b,o,{[w+"-disabled"]:c,[w+"-rtl"]:"rtl"===v},g,S,a,E.root),style:N.root,id:r,ref:$},C.map(t=>Re().createElement(nB,{key:t.value,className:bt(w+"-item",E.item,t.className),style:{...N.item,...t.style},checked:f?(I||[]).includes(t.value):I===t.value,onChange:e=>((e,t)=>{let r=null;var n;r=f?(n=I||[],e?[].concat(Pe(n),[t.value]):n.filter(e=>e!==t.value)):e?t.value:null,M(r),m?.(r)})(e,t),disabled:c},t.label)))});function oB(e,l){let{color:i,variant:s,bordered:c}=e;return ft.useMemo(()=>{var e=i?.endsWith("-inverse");let t,r=(t=s||(e?"solid":!1!==c&&l||"filled"),e?i?.replace("-inverse",""):i);var n,e=ev(r=void 0===r&&"solid"===t?"default":r),o=(o=r,Jg.includes(o)),a={};return e||o||!r||("solid"===t?a.backgroundColor=i:((n=new kn(r).toHsl()).l=.95,a.backgroundColor=new kn(n).toHexString(),a.color=i,"outlined"===t&&(a.borderColor=i))),[t,r,e,o,a]},[i,s,c,l])}var aB=uo(["Tag","preset"],e=>{var a,e=tB(e);return qg(a=e,(e,{textColor:t,lightBorderColor:r,lightColor:n,darkColor:o})=>({[""+a.componentCls+a.componentCls+`-${e}:not(${a.componentCls}-disabled)`]:{[`&${a.componentCls}-outlined`]:{backgroundColor:n,borderColor:r,color:t},[`&${a.componentCls}-solid`]:{backgroundColor:o,borderColor:o,color:a.colorTextLightSolid},[`&${a.componentCls}-filled`]:{backgroundColor:n,color:t}}}))},d);let lB=(e,t,r)=>{var n="string"!=typeof(n=r)?n:n.charAt(0).toUpperCase()+n.slice(1);return{[""+e.componentCls+e.componentCls+`-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${n}Bg`],borderColor:e[`color${n}Border`],color:e["color"+r]},[`&${e.componentCls}-solid`]:{backgroundColor:e["color"+r],borderColor:e["color"+r]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${n}Bg`],color:e["color"+r]}}}};var iB=uo(["Tag","status"],e=>{e=tB(e);return[lB(e,"success","Success"),lB(e,"processing","Info"),lB(e,"error","Error"),lB(e,"warning","Warning")]},d),o=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,style:a,children:l,icon:i,color:H,variant:A,onClose:s,bordered:D,disabled:c,href:d,target:u,styles:p,classNames:L,...m}=e;var{getPrefixCls:f,direction:h,className:g,variant:v,style:b,classNames:y,styles:C}=Fe("tag");let[x,w,S,k,E]=oB(e,v);var v=S||k,N=ft.useContext($s);let I=c??N;N=ft.useContext(Ue).tag;let[F,W]=ft.useState(!0);var M=at(m,["closeIcon","closable"]),$={...e,color:w,variant:x,disabled:I},b=We(b),R=We(a);let[P,z]=je([y,L],[C,b,p,R],{props:$});y=ft.useMemo(()=>{let e=z.root;return e=I?e:{...E,...e}},[z.root,E,I]);let B=f("tag",r);var[C,b]=rB(B),R=bt(B,g,P.root,B+"-"+x,{[B+"-"+w]:v,[B+"-hidden"]:!F,[B+"-rtl"]:"rtl"===h,[B+"-disabled"]:I},n,o,C,b);let T=e=>{I||(e.stopPropagation(),s?.(e),e.defaultPrevented)||(d&&e.preventDefault(),W(!1))},O=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())};var[,$]=hp(cp(e),cp(N),{closable:!1,closeIconRender:e=>{var t=ft.createElement("span",{role:"button",tabIndex:I?-1:0,"aria-disabled":I||void 0,className:bt(B+"-close-icon",P.close),onClick:T,onKeyDown:O,style:z.close},e);return ws(e,t,t=>({onClick:e=>{t?.onClick?.(e),T(e)},onKeyDown:e=>{t?.onKeyDown?.(e),e.defaultPrevented||O(e)},role:"button",tabIndex:I?-1:0,"aria-disabled":I||void 0,className:bt(t?.className,B+"-close-icon",P.close),style:{...z.close,...t?.style}}))}}),f=Je(m.onClick)||l&&"a"===l.type,g=Ss(i,{className:bt(ft.isValidElement(i)?i.props?.className:void 0,P.icon),style:z.icon}),v=g?ft.createElement(ft.Fragment,null,g,Se(l)&&ft.createElement("span",{className:P.content,style:z.content},l)):l,h=d?"a":"span",C=ft.createElement(h,{...M,ref:t,className:R,style:y,href:I?void 0:d,target:u,onClick:I?void 0:M.onClick,...d&&I?{"aria-disabled":!0}:{}},v,$,S&&ft.createElement(aB,{key:"preset",prefixCls:B}),k&&ft.createElement(iB,{key:"status",prefixCls:B}));return f?ft.createElement(pc,{component:"Tag"},C):C}),sB=(o.CheckableTag=nB,o.CheckableTagGroup=n,o);let cB=(e,t)=>new kn(e).setA(t).toRgbString(),dB=(e,t)=>new kn(e).lighten(t).toHexString(),uB=e=>{e=Hn(e,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},pB=(e,t,r)=>{e=e||"#000",t=t||"#fff";return{colorBgBase:e,colorTextBase:t,colorShadow:r||"rgba(255, 255, 255, 0.2)",colorText:cB(t,.85),colorTextSecondary:cB(t,.65),colorTextTertiary:cB(t,.45),colorTextQuaternary:cB(t,.25),colorFill:cB(t,.18),colorFillSecondary:cB(t,.12),colorFillTertiary:cB(t,.08),colorFillQuaternary:cB(t,.04),colorBgSolid:cB(t,.95),colorBgSolidHover:cB(t,1),colorBgSolidActive:cB(t,.9),colorBgElevated:dB(e,12),colorBgContainer:dB(e,8),colorBgLayout:dB(e,0),colorBgSpotlight:dB(e,26),colorBgBlur:cB(t,.04),colorBorder:dB(e,26),colorBorderDisabled:dB(e,26),colorBorderSecondary:dB(e,19)}};var mB={defaultSeed:vn.token,useToken:function(){var[e,t,r,n]=so();return{theme:e,token:t,hashId:r,cssVar:n}},defaultAlgorithm:Jn,darkAlgorithm:(a,e)=>{var t=Object.keys(hn).map(n=>{let o=Hn(a[n],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,t,r)=>(e[n+"-"+(r+1)]=o[r],e[""+n+(r+1)]=o[r],e),{})}).reduce((e,t)=>e={...e,...t},{}),e=e??Jn(a),r=Kn(a,{generateColorPalettes:uB,generateNeutralColorPalettes:pB}),n=_n.reduce((e,t)=>{var r=a[t];return r&&(r=uB(r),e[t+"Hover"]=r[7],e[t+"Active"]=r[5]),e},{});return{...e,...t,...r,...n,colorPrimaryBg:r.colorPrimaryBorder,colorPrimaryBgHover:r.colorPrimaryBorderHover}},compactAlgorithm:(e,t)=>{var r=t??Jn(e),n=r.fontSizeSM,o=r.controlHeight-4;return{...r,...(e=>{var{sizeUnit:e,sizeStep:t}=e;return{sizeXXL:e*(10+(t=t-2)),sizeXL:e*(6+t),sizeLG:e*(2+t),sizeMD:e*(2+t),sizeMS:e*(1+t),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}})(t??e),...Gn(n),controlHeight:o,...Xn({...r,controlHeight:o})}},getDesignToken:e=>{var t=e?.algorithm?(0,Qe.createTheme)(e.algorithm):eo,r={...gn,...e?.token};return(0,Qe.getComputedToken)(r,{override:e?.token},t,no)},defaultConfig:vn,_internalContext:bn};let{TimePicker:fB,RangePicker:hB}=oI;var e=ft.forwardRef((e,t)=>ft.createElement(hB,{...e,picker:"time",mode:void 0,ref:t})),c=ft.forwardRef((e,t)=>{let{addon:r,renderExtraFooter:n,variant:o,bordered:a,classNames:l,styles:i,popupClassName:s,popupStyle:c,...d}=e;var[u]=Th("timePicker",o,a),p=ft.useMemo(()=>n||r||void 0,[r,n]),e={...e,variant:u},[e,m]=IN("timePicker",l,i,s,c,e);return ft.createElement(fB,{...d,mode:void 0,ref:t,renderExtraFooter:p,variant:u,classNames:e,styles:m})}),Dn=Fn(c,"popupAlign",void 0,"picker"),gB=(c._InternalPanelDoNotUseOrYouWillBeFired=Dn,c.RangePicker=e,c._InternalPanelDoNotUseOrYouWillBeFired=Dn,c),vB=e=>{var{componentCls:e,fontHeight:t,antCls:r,paddingXS:n}=e,[o,a]=Q(r,"cmp-steps"),[r,l]=Q(r,"timeline"),i=e+"-item";return{[e+"-horizontal"]:{[o("title-vertical-row-gap")]:n,[r("content-height")]:(0,Qe.unit)(t),alignItems:"stretch",[`&${e}-layout-alternate`]:{[i]:{[i+"-wrapper"]:{[r("alternate-content-offset")]:`calc(${l("content-height")} + ${a("title-vertical-row-gap")} * 2 + ${a("icon-size-max")})`,height:`calc(${l("content-height")} * 2 + ${a("title-vertical-row-gap")} * 2 + ${a("icon-size-max")})`},[i+"-icon"]:{position:"absolute"},[i+`-icon, ${i}-rail`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",margin:0},[i+`-title, ${i}-subtitle, ${i}-content`]:{whiteSpace:"nowrap",maxWidth:"unset"},[i+"-title"]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},[i+"-content"]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-placement-start":{[i+"-title"]:{bottom:l("alternate-content-offset")},[i+"-content"]:{top:l("alternate-content-offset")}},"&-placement-end":{[i+"-title"]:{top:l("alternate-content-offset")},[i+"-content"]:{bottom:l("alternate-content-offset")}}}},[`&:not(${e}-layout-alternate)`]:{[i+"-placement-end"]:{display:"flex",alignItems:"flex-end",[i+"-wrapper"]:{flex:"auto",flexDirection:"column-reverse"},[i+"-rail"]:{top:"auto",bottom:a("horizontal-rail-margin"),transform:"translateY(50%)"}}}}}};var bB=Be("Timeline",e=>{e=ze(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[(e=>{var{componentCls:t,tailColor:r,fontHeight:n,dotSize:o,dotBg:a,dotBorderWidth:l,fontSize:i,lineHeight:s,colorText:c,tailWidth:d,colorPrimary:u,colorError:p,colorSuccess:m,colorTextDisabled:f,antCls:h}=e,g=t+"-item",[h,v]=Q(h,"cmp-steps");return{[t]:[{...F(e),[g]:{[h("title-horizontal-title-height")]:n,[h("vertical-rail-margin")]:"0px",[h("title-horizontal-rail-gap")]:"0px",[h("icon-dot-size-origin")]:v("icon-size-active"),[h("icon-dot-size-custom")]:o,[h("item-icon-dot-bg-color-origin")]:v("item-icon-dot-bg-color"),[h("item-icon-dot-bg-color-custom")]:a,[h("icon-size")]:v("icon-dot-size-custom",v("icon-dot-size-origin")),[g+"-icon"]:{[h("dot-icon-border-width")]:l,[h("dot-icon-size")]:v("icon-size"),[h("item-icon-dot-bg-color")]:v("item-icon-dot-bg-color-custom",v("item-icon-dot-bg-color-origin"))},[g+"-title"]:{fontSize:i,lineHeight:s},[g+"-content"]:{color:c},[g+"-rail"]:{[h("item-solid-line-color")]:r,[h("rail-size")]:d}}},{[g]:{[h("item-process-rail-line-style")]:"dotted"},[g+g+g+"-color"]:{"&-blue":{[h("item-icon-dot-color")]:u},"&-red":{[h("item-icon-dot-color")]:p},"&-green":{[h("item-icon-dot-color")]:m},"&-gray":{[h("item-icon-dot-color")]:f}}}]}})(e),(e=>{var{calc:e,componentCls:t,itemPaddingBottom:r,margin:n,antCls:o}=e,a=t+"-item",[,l]=Q(o,"cmp-steps"),[o,i]=Q(o,"timeline");return{[t+`:not(${t}-horizontal)`]:{[o("head-span")]:"12",[o("head-span-ptg")]:`calc(${i("head-span")} / 24 * 100%)`,[`&${t}-layout-alternate`]:{[a]:{[o("alternate-gap")]:e(n).mul(2).add(l("dot-icon-size")).equal(),minHeight:"auto",paddingBottom:r,[a+`-icon, ${a}-rail`]:{position:"absolute",insetInlineStart:i("head-span-ptg")},[a+"-icon"]:{marginInlineStart:`calc(${l("icon-size")} / -2)`},[a+"-section"]:{display:"flex",flexWrap:"nowrap",gap:i("alternate-gap")},[a+"-header"]:{textAlign:"end",flexDirection:"column",alignItems:"stretch",flex:`1 1 calc(${i("head-span-ptg")} - ${i("alternate-gap")} / 2)`},[a+"-content"]:{textAlign:"start",flex:`1 1 calc(100% - ${i("head-span-ptg")} - ${i("alternate-gap")} / 2)`},"&-placement-end":{[a+"-header"]:{textAlign:"start",order:1},[a+"-content"]:{textAlign:"end"},[a+`-icon, ${a}-rail`]:{insetInlineStart:`calc(100% - ${i("head-span-ptg")})`}}}},[`&:not(${t}-layout-alternate)`]:{[a+"-placement-end"]:{textAlign:"end",[a+"-icon"]:{order:1},[a+"-rail"]:{insetInlineStart:"auto",insetInlineEnd:`calc(${l("icon-size")} / 2)`,marginInlineEnd:`calc(${l("rail-size")} / -2)`}}}}}})(e),vB(e)]},e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.lineWidthBold,dotBg:void 0,dotSize:void 0,itemPaddingBottom:1.25*e.padding})),yB=(e,t,b,r,n,o,a)=>{let y=t+"-item",[C]=Q(e,"cmp-steps"),l=ft.useMemo(()=>Array.isArray(r)?r:ke(n).map(e=>({...e.props})),[r,n]);return ft.useMemo(()=>{var e=l.map((e,t)=>{let{label:r,children:n,title:o,content:a,color:l,className:i,style:s,icon:c,dot:d,placement:u,position:p,loading:m,...f}=e,h=s,g=i;l&&(["blue","red","green","gray"].includes(l)?g=bt(i,y+"-color-"+l):h={[C("item-icon-dot-color")]:l,...s});e=u??p??("alternate"===b?t%2==0?"start":"end":b);g=bt(g,y+"-placement-"+e);let v=c??d;return!v&&m&&(v=ft.createElement(Al,null)),{...f,title:o??r,content:a??n,style:h,className:g,icon:v,status:m?"process":"finish"}});return o&&e.push({icon:a??ft.createElement(Al,null),content:o,status:"process"}),e},[l,o,b,y,C,a])};let CB={rootComponent:"ol",itemComponent:"li"};a=e=>{var{getPrefixCls:t,direction:r,className:n,style:o,classNames:a,styles:l}=Fe("timeline");let{prefixCls:i,className:s,style:c,classNames:d,styles:u,variant:p="outlined",mode:m,orientation:f="vertical",titleSpan:h,items:g,children:v,reverse:b,pending:y,pendingDot:C,...x}=e;var w=t();let S=t("timeline",i);var[t,k]=bB(S),[E]=Q(w,"timeline"),N=ft.useMemo(()=>({item:S+"-item",itemTitle:S+"-item-title",itemIcon:S+"-item-icon",itemContent:S+"-item-content",itemRail:S+"-item-rail",itemWrapper:S+"-item-wrapper",itemSection:S+"-item-section",itemHeader:S+"-item-header"}),[S]);let I=ft.useMemo(()=>"left"===m?"start":"right"===m?"end":["alternate","start","end"].includes(m)?m:"start",[m]),M=yB(w,S,I,g,v,y,C),$=ft.useMemo(()=>b?Pe(M).reverse():M,[b,M]);var w={...e,variant:p,mode:I,orientation:f,items:$},e=We(o),o=We(c),[N,a]=je([N,a,d],[l,e,u,o],{props:w}),l=ft.useMemo(()=>({railFollowPrevStatus:b}),[b]),e=ft.useMemo(()=>"alternate"===I||"vertical"===f&&$.some(e=>e.title),[$,I,f]),o={};return Ia(h)&&"alternate"!==I&&(Ma(h)?o[E("head-span")]=h:o[E("head-span-ptg")]=h),ft.createElement(VR.Provider,{value:CB},ft.createElement(TR.Provider,{value:l},ft.createElement(h5,{...x,className:bt(S,n,s,t,k,{[S+"-"+f]:"horizontal"===f,[S+"-layout-alternate"]:e,[S+"-rtl"]:"rtl"===r}),style:o,classNames:N,styles:a,variant:p,orientation:f,type:"dot",items:$,current:$.length-1})))};a.Item=()=>{};var xB=a;function wB(e){return null!==e&&"object"==typeof e}function SB(e,t,r){var n;return!1!==e&&(!1!==t||wB(e)&&e.closeIcon)?(n="boolean"!=typeof t?t:void 0,wB(e)?{...e,closeIcon:e.closeIcon??n}:r||e||t?{closeIcon:n}:"empty"):null}function kB(t,a,n,l,i,s){let[c,r]=(0,ft.useState)(void 0),[o,d]=(gt(()=>{var e="function"==typeof t?t():t;r(e||null)}),(0,ft.useState)(null)),e=ht(()=>{if(c){i||(e=>{var t=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,{top:e,right:n,bottom:o,left:a}=e.getBoundingClientRect();return 0<=e&&0<=a&&n<=t&&o<=r})(c)||!a||c.scrollIntoView(l);var{left:e,top:r,width:n,height:o}=c.getBoundingClientRect();let t={left:e,top:r,width:n,height:o,radius:0};i&&(e=s.current?.parentElement?.getBoundingClientRect())&&(t.left-=e.left,t.top-=e.top),d(e=>JSON.stringify(e)!==JSON.stringify(t)?t:e)}else d(null)}),u=e=>(Array.isArray(n?.offset)?n?.offset[e]:n?.offset)??6;return gt(()=>(e(),window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}),[c,a,e]),[(0,ft.useMemo)(()=>{var e,t,r;return o&&(e=u(0),t=u(1),r="number"!=typeof(r=n?.radius)||Number.isNaN(r)?2:n?.radius,{left:o.left-e,top:o.top-t,width:o.width+2*e,height:o.height+2*t,radius:r})},[o,n]),c]}function EB(){return(EB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let NB={fill:"transparent",pointerEvents:"auto"};var IB=e=>{var{prefixCls:e,rootClassName:t,pos:r,showMask:n,style:o={},fill:a="rgba(0,0,0,0.5)",open:l,animated:i,zIndex:s,disabledInteraction:c,styles:d,classNames:u,getPopupContainer:p,onEsc:m}=e,f=e+"-mask-"+kt(),i="object"==typeof i?i?.placeholder:i,h="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"},g=!1===p;return Re().createElement(Vi,{open:l,autoLock:!g,getContainer:p,onEsc:m},Re().createElement("div",{className:bt(e+"-mask",t,u?.mask),style:{position:g?"absolute":"fixed",left:0,right:0,top:0,bottom:0,zIndex:s,pointerEvents:r&&!c?"none":"auto",...o,...d?.mask}},n?Re().createElement("svg",{style:{width:"100%",height:"100%"}},Re().createElement("defs",null,Re().createElement("mask",{id:f},Re().createElement("rect",EB({x:"0",y:"0"},h,{fill:"white"})),r&&Re().createElement("rect",{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:"black",className:i?e+"-placeholder-animated":""}))),Re().createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:a,mask:`url(#${f})`}),r&&Re().createElement(Re().Fragment,null,Re().createElement("rect",EB({},NB,{x:"0",y:"0",width:"100%",height:Math.max(r.top,0)})),Re().createElement("rect",EB({},NB,{x:"0",y:"0",width:Math.max(r.left,0),height:"100%"})),Re().createElement("rect",EB({},NB,{x:"0",y:r.top+r.height,width:"100%",height:`calc(100% - ${r.top+r.height}px)`})),Re().createElement("rect",EB({},NB,{x:r.left+r.width,y:"0",width:`calc(100% - ${r.left+r.width}px)`,height:"100%"})))):null))};let MB=[0,0],$B={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function RB(t=!1){let r={};return Object.keys($B).forEach(e=>{r[e]={...$B[e],autoArrow:t,targetOffset:MB}}),r}RB();function PB(){return(PB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zB(e){let{prefixCls:t,current:r,total:n,title:o,description:a,onClose:l,onPrev:i,onNext:s,onFinish:c,className:d,closable:u,classNames:p,styles:m}=e;var e=Jt(u||{},!0),f=u?.closeIcon??ft.createElement("span",{className:t+"-close-x"},"×"),h=!!u;return ft.createElement("div",{className:bt(t+"-panel",d)},ft.createElement("div",{className:bt(t+"-section",p?.section),style:m?.section},h&&ft.createElement("button",PB({type:"button",onClick:l,"aria-label":"Close"},e,{className:bt(t+"-close",p?.close),style:m?.close}),f),ft.createElement("div",{className:bt(t+"-header",p?.header),style:m?.header},ft.createElement("div",{className:bt(t+"-title",p?.title),style:m?.title},o)),ft.createElement("div",{className:bt(t+"-description",p?.description),style:m?.description},a),ft.createElement("div",{className:bt(t+"-footer",p?.footer),style:m?.footer},ft.createElement("div",{className:t+"-sliders"},1<n?[...Array.from({length:n}).keys()].map((e,t)=>ft.createElement("span",{key:e,className:t===r?"active":""})):null),ft.createElement("div",{className:bt(t+"-actions",p?.actions),style:m?.actions},0!==r?ft.createElement("button",{className:t+"-prev-btn",onClick:i},"Prev"):null,r===n-1?ft.createElement("button",{className:t+"-finish-btn",onClick:c},"Finish"):ft.createElement("button",{className:t+"-next-btn",onClick:s},"Next")))))}var BB=e=>{var{current:t,renderPanel:r}=e;return ft.createElement(ft.Fragment,null,"function"==typeof r?r(e,t):ft.createElement(zB,e))},TB=ft.forwardRef((e,t)=>{let{open:r,autoLock:n,getContainer:o,domRef:a,className:l,style:i,fallbackDOM:s}=e;return ft.useImperativeHandle(t,()=>a.current||s()),ft.createElement(Vi,{open:r,autoLock:n,getContainer:o},ft.createElement("div",{ref:a,className:l,style:i}))});function OB(){return(OB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let HB={left:"50%",top:"50%",width:1,height:1},AB={block:"center",inline:"center"};var DB=e=>{let{prefixCls:t="rc-tour",steps:r=[],defaultCurrent:n,current:o,keyboard:a=!0,onChange:H,onClose:A,onFinish:D,open:l,defaultOpen:L,mask:F=!0,arrow:W=!0,rootClassName:i,placement:j,renderPanel:_,gap:K,animated:V,scrollIntoViewOptions:X=AB,zIndex:s=1001,closeIcon:q,closable:G,builtinPlacements:c,disabledInteraction:Y,styles:d,classNames:u,className:U,style:Q,getPopupContainer:p,...Z}=e,m=ft.useRef(),[f,h]=vt(n||0,o),[J,ee]=vt(L,l),g=!(f<0||f>=r.length)&&(J??!0),[te,re]=ft.useState(g),v=ft.useRef(g);gt(()=>{g&&(v.current||h(0),re(!0)),v.current=g},[g,h]);var b,y,C,x,{target:e,placement:w,style:ne,arrow:S,className:oe,mask:k,scrollIntoViewOptions:E=AB,closeIcon:N,closable:I}=r[f]||{};b=I,y=N,C=G,x=q;let M=ft.useMemo(()=>{var e=SB(b,y,!1),t=SB(C,x,!0);return"empty"!==e?e:t},[C,x,b,y]);I=g&&(k??F),N=E??X,k=ft.useRef(null),E=!1===p;let[$,R]=kB(e,l,K,N,E,k);e=R,N=j;w=w??N??(null===e?"center":"bottom");let P=!!R&&(void 0===S?W:S),z="object"==typeof P&&P.pointAtCenter,B=(gt(()=>{m.current?.forceAlign()},[z,f]),e=>{h(e),H?.(e)});N=(0,ft.useMemo)(()=>c?"function"==typeof c?c({arrowPointAtCenter:z}):c:RB(z),[c,z]);let T=()=>{ee(!1),A?.(f)};e=ht(({event:e})=>{a&&null!==M&&(e.preventDefault(),T())});let O=ht(e=>{Ce.isEditableTarget(e)||(a&&"ArrowLeft"===e.key?0<f&&(e.preventDefault(),B(f-1)):a&&"ArrowRight"===e.key&&f<r.length-1&&(e.preventDefault(),B(f+1)))});return gt(()=>{if(g)return window.addEventListener("keydown",O),()=>{window.removeEventListener("keydown",O)}},[g,O]),void 0!==R&&te?ft.createElement(ft.Fragment,null,ft.createElement(IB,{getPopupContainer:p,styles:d,classNames:u,zIndex:s,prefixCls:t,pos:$,showMask:"boolean"==typeof I?I:!!I,style:(S="boolean"==typeof I?void 0:I)?.style,fill:S?.color,open:g,animated:V,rootClassName:i,disabledInteraction:Y,onEsc:e}),ft.createElement(Cs,OB({},Z,{getPopupContainer:p,builtinPlacements:N,ref:m,popupStyle:ne,popupPlacement:w,popupVisible:g,popupClassName:bt(i,oe),prefixCls:t,popup:()=>ft.createElement(BB,OB({styles:d,classNames:u,arrow:P,key:"content",prefixCls:t,total:r.length,renderPanel:_,onPrev:()=>{B(f-1)},onNext:()=>{B(f+1)},onClose:T,current:f,onFinish:()=>{T(),D?.()}},r[f],{closable:M})),forceRender:!1,autoDestroy:!0,zIndex:s,arrow:!!P}),ft.createElement(TB,{open:g,autoLock:!E,getContainer:p,domRef:k,fallbackDOM:()=>R||document.body,className:bt(U,i,t+"-target-placeholder"),style:{...$||HB,position:E?"absolute":"fixed",pointerEvents:"none",...Q}}))):null},LB=e=>{let{stepProps:t,current:r,type:n,indicatorsRender:o,actionsRender:a}=e,{prefixCls:l,total:i=1,title:s,onClose:c,onPrev:d,onNext:u,onFinish:p,cover:m,description:f,nextButtonProps:h,prevButtonProps:g,type:v,closable:b,classNames:y={},styles:C={}}=t;var e=v??n,x=Jt(b??{},!0),[w]=nc("global",Ei.default.global),[S]=nc("Tour",Ei.default.Tour),w=Re().createElement("button",{type:"button",onClick:c,className:bt(l+"-close",y.close),style:C.close,"aria-label":w?.close,...x},b?.closeIcon||Re().createElement(Ko,{className:l+"-close-icon"}));let k=r===i-1;var x=Se(s)?Re().createElement("div",{className:bt(l+"-header",y.header),style:C.header},Re().createElement("div",{className:bt(l+"-title",y.title),style:C.title},s)):null,E=Se(f)?Re().createElement("div",{className:bt(l+"-description",y.description),style:C.description},f):null,N=Se(m)?Re().createElement("div",{className:bt(l+"-cover",y.cover),style:C.cover},m):null;let I;I=o?o(r,i):Pe(Array.from({length:i}).keys()).map((e,t)=>Re().createElement("span",{key:e,className:bt(t===r&&l+"-indicator-active",l+"-indicator",y.indicator),style:C.indicator}));var M="primary"===e?"default":"primary",e={type:"default",ghost:"primary"===e},e=Re().createElement(Re().Fragment,null,0!==r?Re().createElement(Bd,{size:"small",...e,...g,onClick:()=>{d?.(),g?.onClick?.()},className:bt(l+"-prev-btn",g?.className)},g?.children??S?.Previous):null,Re().createElement(Bd,{size:"small",type:M,...h,onClick:()=>{(k?p:u)?.(),h?.onClick?.()},className:bt(l+"-next-btn",h?.className)},h?.children??(k?S?.Finish:S?.Next)));return Re().createElement("div",{className:l+"-panel"},Re().createElement("div",{className:bt(l+"-section",y.section),style:C.section},b&&w,N,x,E,Re().createElement("div",{className:bt(l+"-footer",y.footer),style:C.footer},1<i&&Re().createElement("div",{className:bt(l+"-indicators",y.indicators),style:C.indicators},I),Re().createElement("div",{className:bt(l+"-actions",y.actions),style:C.actions},a?a(e,{current:r,total:i}):e))))};var FB=Be("Tour",e=>{var t=e.borderRadiusLG;return(e=>{let{componentCls:t,padding:r,paddingXS:n,borderRadius:o,borderRadiusXS:a,colorPrimary:l,colorFill:i,indicatorHeight:s,indicatorWidth:c,boxShadowTertiary:d,zIndexPopup:u,colorBgElevated:p,fontWeightStrong:m,marginXS:f,colorTextLightSolid:h,tourBorderRadius:g,colorWhite:v,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:C,antCls:x,primaryPrevBtnBg:w,motionDurationMid:S}=e;var[k,E]=Q(x,"tooltip");return[{[t]:{...F(e),position:"absolute",zIndex:u,maxWidth:"fit-content",visibility:"visible",width:520,[k("arrow-background-color")]:p,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[t+"-panel"]:{position:"relative"},[t+"-section"]:{textAlign:"start",textDecoration:"none",borderRadius:g,boxShadow:d,position:"relative",backgroundColor:p,border:"none",backgroundClip:"padding-box",[t+"-close"]:{position:"absolute",top:r,insetInlineEnd:r,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(e=>e+" "+S).join(", "),display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...un(e)},[t+"-cover"]:{textAlign:"center",padding:`${(0,Qe.unit)(e.calc(r).add(y).add(n).equal())} ${(0,Qe.unit)(r)} 0`,img:{width:"100%"}},[t+"-header"]:{padding:`${(0,Qe.unit)(r)} ${(0,Qe.unit)(r)} `+(0,Qe.unit)(n),width:`calc(100% - ${(0,Qe.unit)(y)})`,wordBreak:"break-word",[t+"-title"]:{fontWeight:m}},[t+"-description"]:{padding:"0 "+(0,Qe.unit)(r),wordWrap:"break-word"},[t+"-footer"]:{padding:`${(0,Qe.unit)(n)} ${(0,Qe.unit)(r)} `+(0,Qe.unit)(r),textAlign:"end",borderRadius:`0 0 ${(0,Qe.unit)(a)} `+(0,Qe.unit)(a),display:"flex",[t+"-indicators"]:{display:"inline-block",[t+"-indicator"]:{width:c,height:s,display:"inline-block",borderRadius:"50%",background:i,"&:not(:last-child)":{marginInlineEnd:s},"&-active":{background:l}}},[t+"-actions"]:{marginInlineStart:"auto",[x+"-btn"]:{marginInlineStart:f}}}},[t+`-primary, &${t}-primary`]:{[k("arrow-background-color")]:l,[t+"-section"]:{color:h,textAlign:"start",textDecoration:"none",backgroundColor:l,borderRadius:o,boxShadow:d,[t+"-close"]:{color:h},[t+"-indicators"]:{[t+"-indicator"]:{background:w,"&-active":{background:h}}},[t+"-prev-btn"]:{color:h,borderColor:w,backgroundColor:l,"&:hover":{color:h,backgroundColor:w,borderColor:"transparent"}},[t+"-next-btn"]:{color:l,borderColor:"transparent",background:v,"&:hover":{background:b}}}}},[t+"-mask"]:{[t+"-placeholder-animated"]:{transition:"all "+C}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[t+"-section"]:{borderRadius:e.min(g,8)}}},Fg(e,E("arrow-background-color"))]})(ze(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t}))},e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new kn(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new kn(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...Lg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Hg(e)})),i=Xm(e=>{let{prefixCls:t,current:r=0,total:n=6,className:o,style:a,type:l,closable:i,closeIcon:s,...c}=e;e=ft.useContext(Ue).getPrefixCls;let d=e("tour",t);var[e,u]=FB(d),[p,m]=hp({closable:i,closeIcon:s},null,{closable:!0,closeIconRender:e=>ft.isValidElement(e)?Ss(e,{className:bt(e.props?.className,d+"-close-icon")}):e});return ft.createElement(lv,{prefixCls:d,hashId:e,className:bt(o,d+"-pure",l&&d+"-"+l,u),style:a},ft.createElement(LB,{stepProps:{...c,prefixCls:d,total:n,closable:p?{closeIcon:m}:void 0},current:r,type:l}))}),Wn=e=>{let{prefixCls:t,type:r,rootClassName:n,indicatorsRender:o,actionsRender:a,steps:l,closeIcon:i,keyboard:s=!0,classNames:c,styles:d,className:u,style:p,...m}=e;var{getPrefixCls:f,direction:h,closeIcon:g,className:v,style:b,classNames:y,styles:C}=Fe("tour");let x=f("tour",t);var[f,w]=FB(x);let[,S]=so();var k=Re().useMemo(()=>l?.map(e=>({...e,className:bt(e.className,{[x+"-primary"]:"primary"===(e.type??r)})})),[x,l,r]),e={...e,steps:k},E=Fa(C,{props:e}),E=We(E?.root,"mask"),b=We(b,"mask"),N=Fa(d,{props:e}),N=We(N?.root,"mask"),I=We(p,"mask");let[M,$]=je([y,c],[E,C,b,N,d,I],{props:e});var y=bt({[x+"-rtl"]:"rtl"===h},f,w,n,v,M.root,u),[E,C]=Cp("Tour",m.zIndex);return Re().createElement(gp.Provider,{value:C},Re().createElement(DB,{...m,styles:$,classNames:M,closeIcon:i??g,keyboard:s,zIndex:E,rootClassName:y,prefixCls:x,animated:!0,renderPanel:(e,t)=>Re().createElement(LB,{styles:$,classNames:M,type:r,stepProps:e,current:t,indicatorsRender:o,actionsRender:a}),builtinPlacements:e=>Kg({arrowPointAtCenter:e?.arrowPointAtCenter??!0,autoAdjustOverflow:!0,offset:S.marginXXS,arrowWidth:S.sizePopupArrow,borderRadius:S.borderRadius}),steps:k}))},WB=(Wn._InternalPanelDoNotUseOrYouWillBeFired=i,Wn);let jB=e=>{let r=new Map;return e.forEach((e,t)=>{r.set(e,t)}),r},_B=e=>{let n=new Map;return e.forEach(({disabled:e,key:t},r)=>{e&&n.set(t,r)}),n};let KB=({type:e,actions:n,moveToLeft:t,moveToRight:o,leftActive:r,rightActive:a,direction:l,disabled:i})=>{var s="right"===e,n=s?n[0]:n[1];let c=s?o:t;o=s?a:r,t="right"===(t=e),s="rtl"!==l?t?Re().createElement(nd,null):Re().createElement(Gv,null):t?Re().createElement(Gv,null):Re().createElement(nd,null);if(Re().isValidElement(n)){let t=n,r=t.props.disabled||i||!o;return Re().cloneElement(t,{disabled:r,onClick:e=>{r?e.preventDefault():(t?.props?.onClick?.(e),c?.(e))}})}return Re().createElement(Bd,{type:"primary",size:"small",disabled:i||!o,onClick:e=>c?.(e),icon:s},n)};var VB=e=>{let{className:t,style:r,oneWay:n,actions:o,...a}=e;return Re().createElement("div",{className:t,style:r},Re().createElement(KB,{type:"right",actions:o,...a}),!n&&Re().createElement(KB,{type:"left",actions:o,...a}),o.slice(n?1:2))},XB=(e,t,a)=>{let l=ft.useMemo(()=>(e||[]).map(e=>t?{...e,key:t(e)}:e),[e,t]);var[r,n]=ft.useMemo(()=>{let r=[],n=Array.from({length:a?.length??0}),o=jB(a||[]);return l.forEach(e=>{var t;o.has(e.key)?(t=o.get(e.key),n[t]=e):r.push(e)}),[r,n]},[l,a]);return[l,r.filter(Boolean),n.filter(Boolean)]};let qB=[];function GB(e,t){var r=e.filter(e=>t.has(e));return e.length===r.length?e:r}function YB(e){return Array.from(e).join(";")}var UB=function(e,t,r){let[n,o]=ft.useMemo(()=>[new Set(e.map(e=>e?.key)),new Set(t.map(e=>e?.key))],[e,t]),[a,l]=vt(qB,r),i=ft.useMemo(()=>GB(a,n),[a,n]),s=ft.useMemo(()=>GB(a,o),[a,o]);ft.useEffect(()=>{l([].concat(Pe(GB(a,n)),Pe(GB(a,o))))},[YB(n),YB(o)]);var r=ht(e=>{l([].concat(Pe(e),Pe(s)))}),c=ht(e=>{l([].concat(Pe(i),Pe(e)))});return[i,s,r,c]},QB=e=>{let{placeholder:t="",value:r,prefixCls:n,disabled:o,onChange:a,handleClear:l}=e;e=ft.useCallback(e=>{"click"===e.type?l?.():a?.(e)},[a,l]);return ft.createElement(S2,{placeholder:t,className:n,value:r,onChange:e,disabled:o,allowClear:!0,prefix:ft.createElement(ug,null)})};function ZB(){return(ZB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var JB=ft.forwardRef((e,t)=>ft.createElement(u,ZB({},e,{ref:t,icon:E().A}))),eT=ft.memo(e=>{let{prefixCls:t,classNames:r,styles:n,renderedText:o,renderedEl:a,item:l,checked:i,disabled:s,onClick:c,onRemove:d,showRemove:u,removeLabel:p}=e;var e=s||l?.disabled,m=bt(t+"-content-item",r.item,{[t+"-content-item-disabled"]:e,[t+"-content-item-checked"]:i&&!e});let f;"string"!=typeof o&&!Ma(o)||(f=String(o));var[h]=nc("Transfer",Ei.default.Transfer),m={className:m,style:n.item,title:f},g=ft.createElement("span",{className:bt(t+"-content-item-text",r.itemContent),style:n.itemContent},a);return u?ft.createElement("li",{...m},g,ft.createElement("button",{type:"button",disabled:e,className:t+"-content-item-remove","aria-label":p??h?.remove,onClick:()=>d?.(l)},ft.createElement(JB,null))):(m.onClick=e?void 0:e=>c(l,e),ft.createElement("li",{...m},ft.createElement(Nk,{className:bt(t+"-checkbox",r.itemIcon),style:n.itemIcon,checked:i,disabled:e}),g))});let tT=["handleFilter","handleClear","checkedKeys"],rT=e=>({simple:!0,showSizeChanger:!1,showLessItems:!1,...e});var nT=ft.forwardRef((e,t)=>{let{prefixCls:n,classNames:o,styles:a,filteredRenderItems:r,selectedKeys:l,disabled:i,showRemove:s,pagination:c,onScroll:d,onItemSelect:u,onItemRemove:p,remove:m}=e,[f,h]=ft.useState(1),g=ft.useMemo(()=>{var e;return c?(e=Ze(c)?c:{},rT(e)):null},[c]),[v,b]=vt(10,g?.pageSize),y=(ft.useEffect(()=>{var e;g&&(e=Math.ceil(r.length/v),h(Math.max(1,Math.min(f,e))))},[r,g,v]),(e,t)=>{u(e.key,!l.includes(e.key),t)}),C=e=>{p?.([e.key])};let x=ft.useMemo(()=>g?r.slice((f-1)*v,f*v):r,[f,r,g,v]);ft.useImperativeHandle(t,()=>({items:x}));e=g?ft.createElement(g3,{size:"small",disabled:i,simple:g.simple,pageSize:v,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:n+"-pagination",total:r.length,current:f,onChange:e=>{h(e)},onShowSizeChange:(e,t)=>{h(e),b(t)}}):null;return ft.createElement(ft.Fragment,null,ft.createElement("ul",{className:bt(n+"-content",o.list,{[n+"-content-show-remove"]:s}),style:a.list,onScroll:d},(x||[]).map(({renderedEl:e,renderedText:t,item:r})=>ft.createElement(eT,{key:r.key,prefixCls:n,classNames:o,styles:a,item:r,renderedText:t,renderedEl:e,showRemove:s,onClick:y,onRemove:C,removeLabel:m,checked:l.includes(r.key),disabled:i}))),e)});let oT=()=>null;function aT(e){return e.reduce((e,t)=>(t.disabled||e.push(t.key),e),[])}let lT=e=>void 0!==e,iT=e=>Ze(e)?{...e,defaultValue:e.defaultValue||""}:{defaultValue:"",placeholder:""};var sT=o=>{let{prefixCls:e,style:t,classNames:a,styles:l,dataSource:r=[],titleText:n="",checkedKeys:i,disabled:s,showSearch:c=!1,searchPlaceholder:d,notFoundContent:u,selectAll:p,deselectAll:m,selectCurrent:H,selectInvert:A,removeAll:D,removeCurrent:L,showSelectAll:F=!0,showRemove:f,pagination:h,direction:g,itemsUnit:W,itemUnit:j,selectAllLabel:v,selectionsIcon:b,footer:y,renderList:C,onItemSelectAll:x,onItemRemove:w,handleFilter:_,handleClear:K,filterOption:S,render:V=oT}=o;var k=e+"-section";let E=e+"-list",N=iT(c),[I,M]=(0,ft.useState)(N.defaultValue??""),$=(0,ft.useRef)({}),X=e=>{M(e.target.value),_(e)},q=()=>{M(""),K()},G=e=>{var t=V(e),r=(r=t,Ia(r)&&Ze(r)&&!Re().isValidElement(r));return{item:e,renderedEl:r?t.label:t,renderedText:r?t.value:((e,t)=>{for(var r of[e,t.title,t.key]){if($a(r))return r;if(Ma(r))return String(r)}return""})(t,e)}},Y=(0,ft.useMemo)(()=>Array.isArray(u)?u["left"===g?0:1]:u,[u,g]),[R,U]=(0,ft.useMemo)(()=>{let o=[],a=[];return r.forEach(e=>{var t,r,n=G(e);I&&(t=n.renderedText,r=e,Je(S)?!S(I,r,g):!t.includes(I))||(o.push(e),a.push(n))}),[o,a]},[r,I,S,g]),P=(0,ft.useMemo)(()=>R.filter(e=>i.includes(e.key)&&!e.disabled),[i,R]),z=(0,ft.useMemo)(()=>{if(0===P.length)return"none";let t=jB(i);return R.every(e=>t.has(e.key)||!!e.disabled)?"all":"part"},[P.length,i,R]);var B=Re().createElement(Nk,{disabled:!R.some(e=>!e.disabled)||s,checked:"all"===z,indeterminate:"part"===z,className:E+"-checkbox",onChange:()=>{x?.(aT(R),"all"!==z)}}),T=y&&(y.length<2?y(o):y(o,{direction:g})),Q=T?Re().createElement("div",{className:bt(E+"-footer",a.footer),style:l.footer},T):null,B=!f&&!h&&B;let O;O=f?[h?{key:"removeCurrent",label:L,onClick(){var e=aT(($.current?.items||[]).map(e=>e.item));w?.(e)}}:null,{key:"removeAll",label:D,onClick(){w?.(aT(R))}}].filter(Boolean):[{key:"selectAll",label:"all"===z?m:p,onClick(){var e=aT(R);x?.(e,"all"!==z)}},h?{key:"selectCurrent",label:H,onClick(){var e=$.current?.items||[];x?.(aT(e.map(e=>e.item)),!0)}}:null,{key:"selectInvert",label:A,onClick(){var e=aT(($.current?.items||[]).map(e=>e.item));let t=new Set(i),r=new Set(t);e.forEach(e=>{t.has(e)?r.delete(e):r.add(e)}),x?.(Pe(r),"replace")}}];var Z=Re().createElement(WI,{className:E+"-header-dropdown",menu:{items:O},disabled:s},lT(b)?b:Re().createElement(cg,null));return Re().createElement("div",{className:bt(k,a.section,{[k+"-with-pagination"]:!!h,[k+"-with-footer"]:!!T}),style:{...t,...l.section}},Re().createElement("div",{className:bt(E+"-header",a.header),style:l.header},F?Re().createElement(Re().Fragment,null,B,Z):null,Re().createElement("span",{className:E+"-header-selected"},(k=P.length,T=R.length,v?Je(v)?v({selectedCount:k,totalCount:T}):v:(B=1<T?W:j,Re().createElement(Re().Fragment,null,(0<k?k+"/":"")+T," ",B)))),Re().createElement("span",{className:bt(E+"-header-title",a.title),style:l.title},n)),(()=>{var e=c?Re().createElement("div",{className:E+"-body-search-wrapper"},Re().createElement(QB,{prefixCls:E+"-search",onChange:X,handleClear:q,placeholder:N.placeholder||d,value:I,disabled:s})):null,{customize:t,bodyContent:r}=(r=>{let e=C?C({...r,onItemSelect:(e,t)=>r.onItemSelect(e,t)}):null;var t=!!e;return{customize:t,bodyContent:e=t?e:Re().createElement(nT,{ref:$,...r,prefixCls:E})}})({...at(o,tT),filteredItems:R,filteredRenderItems:U,selectedKeys:i,classNames:a,styles:l});let n;return n=t?Re().createElement("div",{className:E+"-body-customize-wrapper"},r):R.length?r:Re().createElement("div",{className:E+"-body-not-found"},Y),Re().createElement("div",{className:bt(E+"-body",{[E+"-body-with-search"]:c},a.body),style:l.body},e,n)})(),Q)};let cT=(e,t)=>{var{componentCls:e,colorBorder:r}=e;return{[e+"-section"]:{borderColor:t,[e+"-list-search:not([disabled])"]:{borderColor:r}}}},dT=e=>{var{componentCls:t,colorBorder:r,colorSplit:n,lineWidth:o,itemHeight:a,headerHeight:l,transferHeaderVerticalPadding:i,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:d,colorTextSecondary:u,listHeight:p,listWidth:m,listWidthLG:f,fontSizeIcon:h,marginXS:g,paddingSM:v,lineType:b,antCls:y,iconCls:C,motionDurationSlow:x,controlItemBgHover:w,borderRadiusLG:S,colorBgContainer:k,colorText:E,controlItemBgActiveHover:N}=e,I=(0,Qe.unit)(e.calc(S).sub(o).equal());return{display:"flex",flexDirection:"column",width:m,height:p,border:(0,Qe.unit)(o)+` ${b} `+r,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:f,height:"auto"},[t+"-list"]:{"&-search":{[C+"-search"]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:l,padding:`${(0,Qe.unit)(e.calc(i).sub(o).equal())} ${(0,Qe.unit)(v)} `+(0,Qe.unit)(i),color:E,background:k,borderBottom:(0,Qe.unit)(o)+` ${b} `+n,borderRadius:`${(0,Qe.unit)(S)} ${(0,Qe.unit)(S)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...an,flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"},"&-dropdown":{...ln(),fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${I} `+I,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:(0,Qe.unit)(s)+" "+(0,Qe.unit)(v),transition:"all "+x,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":{...an,flex:"auto"},"&-remove":{...mn(e),color:r,"&:hover, &:focus":{color:u},"&:disabled":{color:d,cursor:"not-allowed"}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:N}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:(0,Qe.unit)(o)+` ${b} `+n,[y+"-pagination-options"]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:(0,Qe.unit)(o)+` ${b} `+n},"&-checkbox":{lineHeight:1}}}};var uT=Be("Transfer",e=>{var t,r,e=ze(e);return[(e=>{var{antCls:t,iconCls:r,componentCls:n,marginXS:o,marginXXS:a,fontSizeIcon:l,colorBgContainerDisabled:i}=e;return{[n]:{...F(e),position:"relative",display:"flex",alignItems:"stretch",[n+"-disabled"]:{[n+"-section"]:{background:i}},[n+"-section"]:dT(e),[n+"-actions"]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:"0 "+(0,Qe.unit)(o),verticalAlign:"middle",gap:a,[t+"-btn "+r]:{fontSize:l}}}}})(e),(e=>{var{antCls:t,componentCls:r,listHeight:n,controlHeightLG:o}=e,a=t+"-table";return{[r+"-customize-list"]:{[r+"-section"]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:n,minWidth:0},[a+"-wrapper"]:{[a+"-small"]:{border:0,borderRadius:0,[a+"-selection-column"]:{width:o,minWidth:o}},[a+`-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[t+"-input"+"[disabled]"]:{backgroundColor:"transparent"}}}})(e),{[(r=(t=e).componentCls)+"-status-error"]:{...cT(t,t.colorError)},[r+"-status-warning"]:{...cT(t,t.colorWarning)}},(e=>{e=e.componentCls;return{[e+"-rtl"]:{direction:"rtl"}}})(e)]},e=>{var{fontSize:e,lineHeight:t,controlHeight:r,controlHeightLG:n,lineWidth:o}=e,e=Math.round(e*t);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:n,itemHeight:r,itemPaddingBlock:(r-e)/2,transferHeaderVerticalPadding:Math.ceil((n-o-e)/2)}}),l=(s,H)=>{let{prefixCls:A,className:D,rootClassName:L,classNames:F,styles:W,style:j,listStyle:t,operationStyle:_,operations:K,actions:V,dataSource:X,targetKeys:l=[],selectedKeys:q,selectAllLabels:e=[],locale:G={},titles:Y,disabled:U,showSearch:r=!1,showSelectAll:n,oneWay:o,pagination:Q,status:Z,selectionsIcon:J,filterOption:a,render:i,footer:c,children:d,rowKey:ee,onScroll:u,onChange:p,onSearch:m,onSelectChange:f,...te}=s,{getPrefixCls:re,renderEmpty:ne,direction:h,className:oe,style:ae,classNames:le,styles:ie,selectionsIcon:se}=Fe("transfer");var g=(0,ft.useContext)($s),g=U??g,v={...s,disabled:g},b=re("transfer",A),[y,C]=uT(b),ce=V||K||[],x="rtl"===h;let[de,w,S]=XB(X,ee,l),[k,E,ue,pe]=UB(w,S,q),[me,fe]=q8(e=>e.key),[he,ge]=q8(e=>e.key),N=(0,ft.useCallback)((e,t)=>{"left"===e?ue(Je(t)?t(k||[]):t):pe(Je(t)?t(E||[]):t)},[k,E]),I=(e,t)=>{("left"===e?fe:ge)(t)},M=(0,ft.useCallback)((e,t)=>{"left"===e?f?.(t,E):f?.(k,t)},[k,E]);let $=e=>{var t="right"===e?k:E;let r=_B(de);t=t.filter(e=>!r.has(e));let n=jB(t);var o="right"===e?t.concat(l):l.filter(e=>!n.has(e)),a="right"===e?"left":"right";N(a,[]),M(a,[]),p?.(o,e,t)};let R=(t,n,o)=>{N(t,e=>{let r=[];if("replace"===o)r=n;else if(o)r=Array.from(new Set([].concat(Pe(e),Pe(n))));else{let t=jB(n);r=e.filter(e=>!t.has(e))}return M(t,r),r}),I(t,null)};let ve=(e,t,r,n,o)=>{t.has(r)&&(t.delete(r),I(e,null)),n&&(t.add(r),I(e,o))},be=(e,t,r,n)=>{("left"===e?me:he)(n,t,r)},P=(e,t,r,n)=>{var o="left"===e,a=o?k:E,l=new Set(a),o=(o?w:S).filter(e=>!e.disabled),i=o.findIndex(e=>e.key===t),n=(n&&0<a.length?be(e,o,l,i):ve(e,l,t,r,i),Array.from(l));M(e,n),s.selectedKeys||N(e,n)};var ye=e=>Je(t)?t({direction:e}):t||{},{hasFeedback:Ce,status:z}=(0,ft.useContext)(ap),z=Ih(z,Z),xe=!d&&Q,we=S.some(e=>Ia(e.key)&&E.includes(e.key)&&!e.disabled),Se=w.some(e=>Ia(e.key)&&k.includes(e.key)&&!e.disabled),ke=We(ae),B=We(j);let[T,O]=je([le,F],[ie,ke,W,B],{props:v},{source:{},target:{}});var ke=bt(b,{[b+"-disabled"]:g,[b+"-customize-list"]:!!d,[b+"-rtl"]:x},Nh(b,z,Ce),oe,D,L,y,C,T.root),[B]=nc("Transfer",Ei.default.Transfer),v={...B,notFoundContent:ne?.("Transfer")||Re().createElement(Bh,{componentName:"Transfer"}),...G},[Ce,y]=(z=v,Y??z.titles??[]),C=J??se;let Ee=["section","header","title","body","list","item","itemIcon","itemContent","footer"];var B=e=>{let t={...T},r=T[e];return Ee.forEach(e=>{t[e]=bt(T[e],r?.[e])}),t},z=e=>{let t={...O},r=O[e];return Ee.forEach(e=>{t[e]={...O[e],...r?.[e]}}),t},Ne=B("source"),B=B("target"),Ie=z("source"),z=z("target"),Me=Jt(te,{aria:!0,data:!0});let $e=Re().useRef(null);return Re().useImperativeHandle(H,()=>({nativeElement:$e.current})),Re().createElement("div",{ref:$e,...Me,className:ke,style:O.root},Re().createElement(sT,{prefixCls:b,style:ye("left"),classNames:Ne,styles:Ie,titleText:Ce,dataSource:w,filterOption:a,checkedKeys:k,handleFilter:e=>m?.("left",e.target.value),handleClear:()=>m?.("left",""),onItemSelect:(e,t,r)=>{P("left",e,t,r?.shiftKey)},onItemSelectAll:(e,t)=>R("left",e,t),render:i,showSearch:r,renderList:d,footer:c,onScroll:e=>{u?.("left",e)},disabled:g,direction:x?"right":"left",showSelectAll:n,selectAllLabel:e[0],pagination:xe,selectionsIcon:C,...v}),Re().createElement(VB,{className:bt(b+"-actions",T.actions),rightActive:Se,moveToRight:()=>{$("right"),I("right",null)},leftActive:we,actions:ce,moveToLeft:()=>{$("left"),I("left",null)},style:{..._,...O.actions},disabled:g,direction:h,oneWay:o}),Re().createElement(sT,{prefixCls:b,style:ye("right"),classNames:B,styles:z,titleText:y,dataSource:S,filterOption:a,checkedKeys:E,handleFilter:e=>m?.("right",e.target.value),handleClear:()=>m?.("right",""),onItemSelect:(e,t,r)=>{P("right",e,t,r?.shiftKey)},onItemSelectAll:(e,t)=>R("right",e,t),onItemRemove:t=>{N("right",[]),p?.(l.filter(e=>!t.includes(e)),"left",Pe(t))},render:i,showSearch:r,renderList:d,footer:c,onScroll:e=>{u?.("right",e)},disabled:g,direction:x?"left":"right",showSelectAll:n,selectAllLabel:e[1],showRemove:o,pagination:xe,selectionsIcon:C,...v}))},s=Re().forwardRef(l),pT=(s.List=sT,s.Search=QB,s.Operation=VB,s),mT=(a,l,i,s)=>ft.useMemo(()=>{var e=e=>e.map(({value:e})=>e),t=e(a),e=e(l),r=t.filter(e=>!s[e]);let n=t,o=e;return i&&(e=FS(t,!0,s),n=e.checkedKeys,o=e.halfCheckedKeys),[Array.from(new Set([...r,...n])),o]},[a,l,i,s]),fT=()=>null;function hT(e){if(!e)return e;let t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return(0,Te.Ay)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function gT(e,s,c,t,r,d){let u=null,p=null;function n(){p||(p=[],function a(e,l="0",i=!1){return e.map((e,t)=>{var t=l+"-"+t,r=e[d.value],n=c.includes(r),o=a(e[d.children]||[],t,n),e=ft.createElement(fT,e,o.map(e=>e.node));return s===r&&(u=e),n?(r={pos:t,node:e,children:o},i||p.push(r),r):null}).filter(e=>e)}(t),p.sort(({node:{props:{value:e}}},{node:{props:{value:t}}})=>c.indexOf(e)-c.indexOf(t)))}Object.defineProperty(e,"triggerNode",{get(){return(0,Te.Ay)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),n(),u}}),Object.defineProperty(e,"allCheckedNodes",{get(){return(0,Te.Ay)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),n(),r?p:p.map(({node:e})=>e)}})}var vT=(e,i,t)=>{let{fieldNames:r,treeNodeFilterProp:n,filterTreeNode:o}=t,s=r.children;return ft.useMemo(()=>{if(!i||!1===o)return e;let a="function"==typeof o?o:(e,t)=>String(t[n]).toUpperCase().includes(i.toUpperCase()),l=(e,o=!1)=>e.reduce((e,t)=>{var r=t[s],n=o||a(i,hT(t)),r=l(r||[],n);return(n||r.length)&&e.push({...t,isLeaf:void 0,[s]:r}),e},[]);return l(e)},[e,i,s,n,o])};function bT(e){let t=ft.useRef(e);return t.current=e,ft.useCallback((...e)=>t.current(...e),[])}function yT(i,r,n){return ft.useMemo(()=>{if(i){if(n){var e={id:"id",pId:"pId",rootPId:null,..."object"==typeof n?n:{}};{var t=i;let{id:r,pId:n,rootPId:o}=e,a=new Map,l=[];return t.forEach(e=>{var t=e[r],e={...e,key:e.key||t};a.set(t,e)}),a.forEach(e=>{var t=e[n],r=a.get(t);r?(r.children=r.children||[],r.children.push(e)):t!==o&&null!==o||l.push(e)}),l;return}}return i}return function l(e){return ke(e).map(e=>{if(!ft.isValidElement(e)||!e.type)return null;let{key:t,props:{children:r,value:n,...o}}=e;var e={key:t,value:n,...o},a=l(r);return a.length&&(e.children=a),e}).filter(e=>e)}(r)},[r,n,i])}var CT=ft.createContext(null),xT=ft.createContext(null);let wT=e=>!e||e.disabled||e.disableCheckbox||!1===e.checkable,ST=(e,r)=>{let n=[],o=e=>{e.forEach(e=>{var t=e[r.children];t&&(n.push(e[r.value]),o(t))})};return o(e),n},kT=e=>null==e;function ET(){return(ET=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let NT={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0};var IT=ft.forwardRef((H,e)=>{let{prefixCls:t,multiple:r,searchValue:n,toggleOpen:l,open:o,notFoundContent:a}=Gm(),{virtual:i,listHeight:s,listItemHeight:c,listItemScrollOffset:A,treeData:d,fieldNames:u,onSelect:D,popupMatchSelectWidth:L,treeExpandAction:F,treeTitleRender:W,onPopupScroll:j,leftMaxCount:p,leafCountOnly:_,valueEntities:K,classNames:V,styles:X}=ft.useContext(xT),{checkable:m,checkedKeys:f,halfCheckedKeys:h,treeExpandedKeys:g,treeDefaultExpandAll:q,treeDefaultExpandedKeys:G,onTreeExpand:v,treeIcon:Y,showTreeIcon:U,switcherIcon:Q,treeLine:Z,treeNodeFilterProp:J,loadData:ee,treeLoadedKeys:b,treeMotion:te,onTreeLoad:re,keyEntities:ne}=ft.useContext(CT),y=ft.useRef(null),C=(0,tt.A)(()=>d,[o,d],(e,t)=>t[0]&&e[1]!==t[1]);var oe=ft.useMemo(()=>m?{checked:f,halfChecked:h}:null,[m,f,h]),x=(ft.useEffect(()=>{o&&!r&&f.length&&y.current?.scrollTo({key:f[0]})},[o]),e=>{e.preventDefault()});let w=(e,t)=>{t=t.node;m&&wT(t)||(D(t.key,{selected:!f.includes(t.key)}),r)||l(!1)},[S,ae]=ft.useState(G),[k,E]=ft.useState(null);var N=ft.useMemo(()=>g?[...g]:n?k:S,[S,k,g,n]);let I=String(n).toLowerCase(),M=e=>!!I&&String(e[J]).toLowerCase().includes(I),[$,le]=(ft.useEffect(()=>{n&&E(ST(d,u))},[n]),ft.useState(()=>new Map));ft.useEffect(()=>{p&&le(new Map)},[p]);let R=ht(e=>{var t=e[u.value];return!f.includes(t)&&null!==p&&(p<=0||!(!_||!p)&&(t=(t=e)[u.value],$.has(t)||(0===((e=K.get(t)).children||[]).length?$.set(t,!1):(e=e.children.filter(e=>!e.node.disabled&&!e.node.disableCheckbox&&!f.includes(e.node[u.value])).length,$.set(t,e>p))),$.get(t)))}),P=e=>{for(var t of e)if(!t.disabled&&!1!==t.selectable){if(!n)return t;if(M(t))return t;if(t[u.children]){t=P(t[u.children]);if(t)return t}}return null},[z,B]=ft.useState(null),T=ne[z];ft.useEffect(()=>{var e;o&&(e=r||!f.length||n?(e=P(C))?e[u.value]:null:f[0],B(e))},[o,n]),ft.useImperativeHandle(e,()=>({scrollTo:y.current?.scrollTo,onKeyDown:e=>{var t,r,n,o,a=e.which;switch(a){case Ce.UP:case Ce.DOWN:case Ce.LEFT:case Ce.RIGHT:y.current?.onKeyDown(e);break;case Ce.ENTER:T&&(t=R(T.node),{selectable:r,value:n,disabled:o}=T?.node||{},!1===r||o||t||w(0,{node:{key:z},selected:!f.includes(n)}));break;case Ce.ESC:l(!1)}},onKeyUp:()=>{}}));var O,e=(0,tt.A)(()=>!n,[n,g||S],([e],[t,r])=>e!==t&&!(!t&&!r))?ee:null;return 0===C.length?ft.createElement("div",{role:"listbox",className:t+"-empty",onMouseDown:x},a):(O={fieldNames:u},b&&(O.loadedKeys=b),N&&(O.expandedKeys=N),ft.createElement("div",{onMouseDown:x},T&&o&&ft.createElement("span",{style:NT,"aria-live":"assertive"},T.node.value),ft.createElement(rS.Provider,{value:{nodeDisabled:R}},ft.createElement(_S,ET({classNames:V?.popup,styles:X?.popup,ref:y,focusable:!1,prefixCls:t+"-tree",treeData:C,height:s,itemHeight:c,itemScrollOffset:A,virtual:!1!==i&&!1!==L,multiple:r,icon:Y,showIcon:U,switcherIcon:Q,showLine:Z,loadData:e,motion:te,activeKey:z,checkable:m,checkStrictly:!0,checkedKeys:oe,selectedKeys:m?[]:f,defaultExpandAll:q,titleRender:W},O,{onActiveChange:B,onSelect:w,onCheck:w,onExpand:e=>{ae(e),E(e),v&&v(e)},onLoad:re,filterTreeNode:M,expandAction:F,onScroll:j})))))});let MT="SHOW_ALL",$T="SHOW_PARENT",RT="SHOW_CHILD";function PT(e,t,r,n){let o=new Set(e);return t===RT?e.filter(e=>{e=r[e];return!(e&&e.children&&e.children.some(({node:e})=>o.has(e[n.value]))&&e.children.every(({node:e})=>wT(e)||o.has(e[n.value])))}):t===$T?e.filter(e=>{var e=r[e],t=e?e.parent:null;return!t||wT(e.node)||wT(t.node)||!o.has(t.key)}):e}function zT(){return(zT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}d=ft.forwardRef((e,H)=>{let{id:A,prefixCls:D="rc-tree-select",value:L,defaultValue:F,onChange:c,onSelect:l,onDeselect:i,showSearch:W,searchValue:j,inputValue:_,onSearch:K,autoClearSearchValue:V,filterTreeNode:X,treeNodeFilterProp:q,showCheckedStrategy:t,treeNodeLabelProp:o,multiple:G,treeCheckable:r,treeCheckStrictly:d,labelInValue:n,maxCount:a,fieldNames:Y,treeDataSimpleMode:U,treeData:Q,children:Z,loadData:J,treeLoadedKeys:ee,onTreeLoad:te,treeDefaultExpandAll:re,treeExpandedKeys:ne,treeDefaultExpandedKeys:oe,onTreeExpand:ae,treeExpandAction:le,virtual:ie,listHeight:se=200,listItemHeight:ce=20,listItemScrollOffset:de=0,onPopupVisibleChange:s,popupMatchSelectWidth:u=!0,treeLine:ue,treeIcon:pe,showTreeIcon:me,switcherIcon:fe,treeMotion:he,treeTitleRender:p,onPopupScroll:ge,classNames:m,styles:f,...ve}=e;e=kt(A);let h=r&&!d,g=r||d,be=d||n,v=g||G;var[ye,b]=((r,e)=>{let{searchValue:n,inputValue:o,onSearch:a,autoClearSearchValue:l,filterTreeNode:i,treeNodeFilterProp:s}=e;return ft.useMemo(()=>{var e="object"==typeof r,t={searchValue:n??o,onSearch:a,autoClearSearchValue:l,filterTreeNode:i,treeNodeFilterProp:s,...e?r:{}};return[e||r,t]},[r,n,o,a,l,i,s])})(W,{searchValue:j,inputValue:_,onSearch:K,autoClearSearchValue:V,filterTreeNode:X,treeNodeFilterProp:q});let{searchValue:Ce,onSearch:xe,autoClearSearchValue:we=!0,filterTreeNode:Se,treeNodeFilterProp:y="value"}=b,[C,ke]=vt(F,L),x=ft.useMemo(()=>r?t||RT:MT,[t,r]),w=ft.useMemo(()=>(e=>{var{label:e,value:t,children:r}=e||{};return{_title:e?[e]:["title","label"],value:t||"value",key:t||"value",children:r||"children"}})(Y),[JSON.stringify(Y)]),[Ee,Ne]=vt("",Ce);var S,k,b=Ee||"";let E=yT(Q,Z,U),{keyEntities:N,valueEntities:I}=(S=E,k=w,ft.useMemo(()=>dS(S,{fieldNames:k,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,t)=>{var r=e.node[k.value];t.valueEntities.set(r,e)}}),[S,k])),Ie=ft.useCallback(e=>{let t=[],r=[];return e.forEach(e=>{(I.has(e)?r:t).push(e)}),{missingRawValues:t,existRawValues:r}},[I]),Me=vT(E,b,{fieldNames:w,treeNodeFilterProp:y,filterTreeNode:Se}),$e=ft.useCallback(t=>{if(t){if(o)return t[o];var r=w._title;for(let e=0;e<r.length;e+=1){var n=t[r[e]];if(void 0!==n)return n}}},[w,o]),M=ft.useCallback(e=>(e=e,(Array.isArray(e)?e:void 0!==e?[e]:[]).map(e=>{var t;return(t=e)&&"object"==typeof t?e:{value:e}})),[]),$=ft.useCallback(e=>M(e).map(e=>{let t=e.label,{value:r,halfChecked:n}=e,o;var e=I.get(r);return e?(t=p?p(e.node):t??$e(e.node),o=e.node.disabled):void 0===t&&(e=M(C).find(e=>e.value===r),t=e.label),{label:t,value:r,halfChecked:n,disabled:o}}),[I,$e,M,C]),Re=ft.useMemo(()=>M(null===C?[]:C),[M,C]),[R,Pe]=ft.useMemo(()=>{let t=[],r=[];return Re.forEach(e=>{(e.halfChecked?r:t).push(e)}),[t,r]},[Re]),ze=ft.useMemo(()=>R.map(e=>e.value),[R]),[P,z]=mT(R,Pe,h,N),[B]=(t=>{let r=ft.useRef({valueLabels:new Map});return ft.useMemo(()=>{let n=r.current.valueLabels,o=new Map;var e=t.map(e=>{var{value:t,label:r}=e,r=r??n.get(t);return o.set(t,r),{...e,label:r}});return r.current.valueLabels=o,[e]},[t])})(ft.useMemo(()=>{var e=PT(P,x,N,w).map(e=>N[e]?.node?.[w.value]??e).map(t=>{var e=R.find(e=>e.value===t),e=n?e?.label:p?.(e);return{value:t,label:e}}),e=$(e),t=e[0];return!v&&t&&kT(t.value)&&kT(t.label)?[]:e.map(e=>({...e,label:e.label??e.value}))},[w,v,P,R,$,x,N])),Be=ft.useMemo(()=>!v||"SHOW_CHILD"!==x&&!d&&r?null:a,[a,v,d,x,r]),T=bT((n,o,a)=>{var l=PT(n,x,N,w);if(!(Be&&l.length>Be)){var i=$(n);if(ke(i),we&&Ne(""),c){let t=n;var{triggerValue:i,selected:o}=o||{triggerValue:void 0,selected:void 0};let e=t=h?l.map(e=>{var t=I.get(e);return t?t.node[w.value]:e}):t;d&&(l=Pe.filter(e=>!t.includes(e.value)),e=[...e,...l]);var l=$(e),s={preValue:R,triggerValue:i};let r=!0;(d||"selection"===a&&!o)&&(r=!1),gT(s,i,n,E,r,w),g?s.checked=o:s.selected=o;a=be?l:l.map(e=>e.value);c(v?a:a[0],be?null:l.map(e=>e.label),s)}}}),O=ft.useCallback((r,{selected:n,source:e})=>{var t=N[r]?.node;let o=t?.[w.value]??r;if(v){let t=n?[...ze,o]:P.filter(e=>e!==o);if(h){var{missingRawValues:r,existRawValues:a}=Ie(t),a=a.map(e=>I.get(e).key);let e;({checkedKeys:e}=FS(a,!!n||{checked:!1,halfCheckedKeys:z},N)),t=[...r,...e.map(e=>N[e].node[w.value])]}T(t,{selected:n,triggerValue:o},e||"option")}else T([o],{selected:!0,triggerValue:o},"option");(n||!v?l:i)?.(o,hT(t))},[Ie,I,N,w,v,ze,T,h,l,i,P,z,a]);var Te=ft.useCallback(e=>{s&&s(e)},[s]),Oe=bT((e,t)=>{e=e.map(e=>e.value);"clear"===t.type?T(e,{},"selection"):t.values.length&&O(t.values[0].value,{selected:!1,source:"selection"})}),He=ft.useMemo(()=>({virtual:ie,popupMatchSelectWidth:u,listHeight:se,listItemHeight:ce,listItemScrollOffset:de,treeData:Me,fieldNames:w,onSelect:O,treeExpandAction:le,treeTitleRender:p,onPopupScroll:ge,leftMaxCount:void 0===a?null:a-B.length,leafCountOnly:"SHOW_CHILD"===x&&!d&&!!r,valueEntities:I,classNames:m,styles:f}),[ie,u,se,ce,de,Me,w,O,le,p,ge,a,B.length,x,d,r,I,m,f]),Ae=ft.useMemo(()=>({checkable:g,loadData:J,treeLoadedKeys:ee,onTreeLoad:te,checkedKeys:P,halfCheckedKeys:z,treeDefaultExpandAll:re,treeExpandedKeys:ne,treeDefaultExpandedKeys:oe,onTreeExpand:ae,treeIcon:pe,treeMotion:he,showTreeIcon:me,switcherIcon:fe,treeLine:ue,treeNodeFilterProp:y,keyEntities:N}),[g,J,ee,te,P,z,re,ne,oe,ae,pe,he,me,fe,ue,y,N]);return ft.createElement(xT.Provider,{value:He},ft.createElement(CT.Provider,{value:Ae},ft.createElement(_f,zT({ref:H},ve,{classNames:m,styles:f,id:e,prefixCls:D,mode:v?"multiple":void 0,displayValues:B,onDisplayValuesChange:Oe,autoClearSearchValue:we,showSearch:ye,searchValue:b,onSearch:e=>{Ne(e),xe?.(e)},OptionList:IT,emptyOptions:!E.length,onPopupVisibleChange:Te,popupMatchSelectWidth:u}))))});d.TreeNode=fT,d.SHOW_ALL=MT,d.SHOW_PARENT=$T,d.SHOW_CHILD=RT;var BT=d;let TT=e=>{var{componentCls:t,treePrefixCls:r,colorBgElevated:n}=e,o="."+r;return[{[t+"-dropdown"]:[{padding:(0,Qe.unit)(e.paddingXS)+" "+(0,Qe.unit)(e.calc(e.paddingXS).div(2).equal())},$P(r,ze(e,{colorBgContainer:n}),!1),{[o]:{borderRadius:0,[o+"-list-holder-inner"]:{alignItems:"stretch",[o+"-treenode"]:{[o+"-node-content-wrapper"]:{flex:"auto"}}}}},hk(r+"-checkbox",e),{"&-rtl":{direction:"rtl",[o+`-switcher${o}-switcher_close`]:{[o+"-switcher-icon svg"]:{transform:"rotate(90deg)"}}}}]}]};var n=ft.forwardRef((e,H)=>{let{prefixCls:t,size:A,disabled:D,bordered:L=!0,style:F,className:W,rootClassName:r,treeCheckable:n,multiple:j,listHeight:_=256,listItemHeight:K,placement:o,notFoundContent:a,switcherIcon:V,treeLine:l,getPopupContainer:X,popupClassName:q,dropdownClassName:G,treeIcon:Y=!1,transitionName:U,choiceTransitionName:Q="",status:Z,treeExpandAction:J,builtinPlacements:ee,dropdownMatchSelectWidth:te,popupMatchSelectWidth:re,allowClear:i,variant:ne,dropdownStyle:oe,dropdownRender:ae,popupRender:le,onDropdownVisibleChange:ie,onOpenChange:se,tagRender:ce,maxCount:s,showCheckedStrategy:c,treeCheckStrictly:d,styles:de,classNames:ue,...u}=e,{getPrefixCls:p,getPopupContainer:pe,direction:m,styles:me,classNames:fe,switcherIcon:he}=Fe("treeSelect");var{renderEmpty:f,virtual:ge,popupMatchSelectWidth:h,popupOverflow:ve}=ft.useContext(Ue),[,g]=so(),g=K??g?.controlHeightSM+g?.paddingXXS,v=p(),b=p("select",t);let y=p("select-tree",t);var C=p("tree-select",t);let{compactSize:be,compactItemClassnames:ye}=bc(b,m);var x,w=nl(b),S=nl(C),[k,E]=ag(b,w),[N,I]=(N=C,x=y,I=S,Be("TreeSelect",e=>{e=ze(e,{treePrefixCls:x});return TT(e)},RP,{resetFont:!1})(N,I),Th("treeSelect",ne,L)),M=mc(e=>A??be??e),$=ft.useContext($s),$=D??$,{status:R,hasFeedback:P,isFormItemInput:Ce,feedbackIcon:z}=ft.useContext(ap),R=Ih(R,Z),B={...e,size:M,disabled:$,status:R,variant:N},[B,T]=je([fe,ue],[me,de],{props:B},{popup:{_default:"root"}}),xe=bt(q||G,C+"-dropdown",{[C+"-dropdown-rtl"]:"rtl"===m},r,B.root,B.popup?.root,E,w,S,k),we=mg(le||ae),Se=se||ie,O=!(!n&&!j),ke=ft.useMemo(()=>{if(!s||("SHOW_ALL"!==c||d)&&"SHOW_PARENT"!==c)return s},[s,c,d]),e=fg(e.suffixIcon,e.showArrow),h=re??te??h,{suffixIcon:e,removeIcon:z,clearIcon:Ee}=pg({...u,multiple:O,showSuffixIcon:e,hasFeedback:P,feedbackIcon:z,prefixCls:b,componentName:"TreeSelect"}),Ee=!0===i?{clearIcon:Ee}:i;let Ne;Ne=void 0!==a?a:f?.("Select")||ft.createElement(Bh,{componentName:"Select"});var f=at(u,["suffixIcon","removeIcon","clearIcon"]),Ie=ft.useMemo(()=>void 0!==o?o:"rtl"===m?"bottomRight":"bottomLeft",[o,m]),C=bt(!t&&C,{[b+"-lg"]:"large"===M,[b+"-sm"]:"small"===M,[b+"-rtl"]:"rtl"===m,[b+"-"+N]:I,[b+"-in-form-item"]:Ce},Nh(b,R,P),ye,W,r,B?.root,E,w,S,k);let Me=V??he;var[M]=Cp("SelectLike",T.popup?.root?.zIndex);return ft.createElement(BT,{classNames:B,styles:T,virtual:ge,disabled:$,...f,popupMatchSelectWidth:h,builtinPlacements:Hh(ee,ve),ref:H,prefixCls:b,className:C,style:{...T?.root,...F},listHeight:_,listItemHeight:g,treeCheckable:n&&ft.createElement("span",{className:b+"-tree-checkbox-inner"}),treeLine:!!l,suffixIcon:e,multiple:O,placement:Ie,removeIcon:z,allowClear:Ee,switcherIcon:e=>ft.createElement(FP,{prefixCls:y,switcherIcon:Me,treeNodeProps:e,showLine:l}),showTreeIcon:Y,notFoundContent:Ne,getPopupContainer:X||pe,treeMotion:null,popupClassName:xe,popupStyle:{...T.root,...T.popup?.root,zIndex:M},popupRender:we,onPopupVisibleChange:Se,choiceTransitionName:tc(v,"",Q),transitionName:tc(v,"slide-up",U),treeExpandAction:J,tagRender:O?ce:void 0,maxCount:ke,showCheckedStrategy:c,treeCheckStrictly:d})}),o=Fn(n,"popupAlign",e=>at(e,["visible"])),OT=(n.TreeNode=fT,n.SHOW_ALL=MT,n.SHOW_PARENT=$T,n.SHOW_CHILD=RT,n._InternalPanelDoNotUseOrYouWillBeFired=o,n);function HT(){return(HT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var AT=ft.forwardRef((e,t)=>ft.createElement(u,HT({},e,{ref:t,icon:P().A})));function DT(){return(DT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var LT=ft.forwardRef((e,t)=>ft.createElement(u,DT({},e,{ref:t,icon:B().A})));let FT=(e,t,r,n)=>{var{titleMarginBottom:n,fontWeightStrong:o}=n;return{marginBottom:n,color:r,fontWeight:o,fontSize:e,lineHeight:t}},WT=t=>{let r={};return[1,2,3,4,5].forEach(e=>{r[`
h${e}&,
div&-h${e},
div&-h${e} > textarea,
h${e}
`]=FT(t["fontSizeHeading"+e],t["lineHeightHeading"+e],t.colorTextHeading,t)}),r},jT=e=>{var t=e.componentCls;return{["&"+(t+"-link")]:{...mn(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[t+"-actions"]:{pointerEvents:"auto"}}}}}},_T=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ln[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:(0,Qe.unit)(e.padding),overflowWrap:"break-word",borderBottom:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),KT=e=>{var{componentCls:t,paddingSM:r}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[t+"-edit-content-confirm"]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},[`&${t}-edit-content textarea`]:{margin:"0!important",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",fontWeight:"inherit",MozTransition:"none",height:"1em"}}}},VT=e=>({[e.componentCls+"-copy-success"]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[e.componentCls+"-copy-icon-only"]:{marginInlineStart:0}}),XT=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...an,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var qT=Be("Typography",e=>{var{componentCls:t,titleMarginTop:r}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...WT(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5`+t]:{marginTop:r},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:r}},..._T(e),...jT(e),[t+"-actions"]:{display:"inline"},[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:{...mn(e),marginInlineStart:e.marginXXS},[t+"-actions-start"]:{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy:not(${t}-copy-icon-only)
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...KT(e),...VT(e),...XT(),"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),GT=e=>{let{prefixCls:t,"aria-label":r,className:n,style:o,classNames:a,styles:l,direction:i,maxLength:s,autoSize:c=!0,value:d,onSave:u,onCancel:p,onEnd:m,component:f,enterIcon:h=ft.createElement(LT,null)}=e,g=ft.useRef(null),v=ft.useRef(!1),b=ft.useRef(null),[y,C]=ft.useState(d);ft.useEffect(()=>{C(d)},[d]),ft.useEffect(()=>{var e,t;g.current?.resizableTextArea&&(e=g.current.resizableTextArea.textArea,t=(e.focus(),e.value).length,e.setSelectionRange(t,t))},[]);let x=()=>{u(y.trim())};var[e,w]=qT(t),e=bt(t,t+"-edit-content",{[t+"-rtl"]:"rtl"===i,[t+"-"+f]:!!f},n,a.root,e,w);return ft.createElement("div",{className:e,style:{...l.root,...o}},ft.createElement(WM,{ref:g,maxLength:s,value:y,onChange:({target:e})=>{C(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{v.current||(b.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:r,metaKey:n,shiftKey:o})=>{b.current!==e||v.current||t||r||n||o||(e===Ce.ENTER?(x(),m?.()):e===Ce.ESC&&p())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{x()},"aria-label":r,rows:1,autoSize:c,className:a.textarea,style:l.textarea}),null!==h?Ss(h,{className:t+"-edit-content-confirm"}):null)};let YT=(t,r)=>{let n=!1;var e=e=>{e.stopPropagation(),e.preventDefault(),e.clipboardData?.clearData(),e.clipboardData?.setData("text/plain",t),r&&e.clipboardData?.setData("text/html",t),n=!0};try{return document.addEventListener("copy",e,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",e,{capture:!0})}},UT=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};var QT=async function(e,t){return"string"==typeof e&&(t="text/html"===t?.format,!!await UT(e,t)||!!YT(e,t))},ZT=({copyConfig:r,children:n})=>{let[e,o]=lt(!1),[t,a]=ft.useState(!1),l={};return r.format&&(l.format=r.format),{copied:e,copyLoading:t,onClick:ht(async e=>{e?.preventDefault(),e?.stopPropagation(),a(!0);try{var t=Je(r.text)?await r.text():r.text;await QT(t||u$(n,{skipEmpty:!0}).join("")||"",l),a(!1),o(!0,!0),o(!1,{ms:3e3}),r.onCopy?.(e)}catch(e){throw a(!1),e}})}},JT=(t,r)=>{let n=Boolean(t);return ft.useMemo(()=>{var e={...r,...n&&Ze(t)?t:null};return[n,e]},[n,t,r])},eO=e=>{let t=(0,ft.useRef)(void 0);return(0,ft.useEffect)(()=>{t.current=e}),t.current},tO=(e,t,r)=>(0,ft.useMemo)(()=>!0===e?{title:t??r}:!(0,ft.isValidElement)(e)&&Ze(e)?{title:t??r,...e}:{title:e},[e,t,r]);let rO=(e,t,r,n,o)=>{let{getPrefixCls:a,direction:l,className:i,style:s,classNames:c,styles:d}=Fe("typography");var n=n??l,e=a("typography",e),o={...o,prefixCls:e,direction:n},u=(0,ft.useMemo)(()=>({root:i}),[i]),p=We(s),[u,t]=je([u,c,t],[d,p,r],{props:o});return[u,t,e,n]},nO=ft.forwardRef((e,t)=>{let{component:r="article",className:n,rootClassName:o,children:a,direction:l,style:i,classNames:s,styles:c,prefixCls:d,...u}=e;var[e,p]=qT(d),e=bt(d,{[d+"-rtl"]:"rtl"===l},n,o,e,p,s?.root),p={...c?.root,...i};return ft.createElement(r,{...u,className:e,style:p,ref:t},a)});function oO(){return(oO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var aO=ft.forwardRef((e,t)=>ft.createElement(u,oO({},e,{ref:t,icon:k().A})));let lO=e=>!1===e?[!1,!1]:u$(e);function iO(e,t,r){return!0===e||void 0===e?t:e||r&&t}let sO=e=>["string","number"].includes(typeof e);var cO=e=>{var{prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:a,tabIndex:l,onCopy:i,loading:s,className:c,style:d}=e,o=lO(o),a=lO(a),{copied:r,copy:u}=r??{},r=t?r:u,u=iO(o[t?1:0],r),o="string"==typeof u?u:r;return ft.createElement(rv,{title:u},ft.createElement("button",{type:"button",className:bt(e+"-copy",c,{[e+"-copy-success"]:t,[e+"-copy-icon-only"]:n}),style:d,onClick:i,"aria-label":o,tabIndex:l},t?iO(a[1],ft.createElement(ig,null),!0):iO(a[0],s?ft.createElement(Al,null):ft.createElement(aO,null),!0)))};let dO=ft.forwardRef(({style:e,children:t},r)=>{let n=ft.useRef(null);return ft.useImperativeHandle(r,()=>({isExceed:()=>{var e=n.current;return e.scrollHeight>e.clientHeight},getHeight:()=>n.current.clientHeight})),ft.createElement("span",{"aria-hidden":!0,ref:n,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),uO=e=>e.reduce((e,t)=>e+(sO(t)?String(t).length:1),0);function pO(t,r){let n=0;var o=[];for(let e=0;e<t.length;e+=1){if(n===r)return o;var a,l=t[e],i=sO(l)?String(l).length:1,i=n+i;if(r<i)return a=r-n,o.push(String(l).slice(0,a)),o;o.push(l),n=i}return t}let mO=0,fO=1,hO=2,gO=3,vO=4,bO={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function yO(e){let{enableMeasure:t,width:r,text:n,children:o,rows:a,expanded:l,measureDeps:i,miscDeps:s,onEllipsis:c}=e,d=ft.useMemo(()=>ke(n),[n]),u=ft.useMemo(()=>uO(d),[n]);e=ft.useMemo(()=>o(d,!1),[n].concat(Pe(i)));let[p,m]=ft.useState(null),f=ft.useRef(null),h=ft.useRef(null),g=ft.useRef(null),v=ft.useRef(null),b=ft.useRef(null),[y,C]=ft.useState(!1),[x,w]=ft.useState(mO),[S,k]=ft.useState(0),[E,N]=ft.useState(null),I=(gt(()=>{t&&r&&u?w(fO):w(mO)},[r,n,a,t,d].concat(Pe(i))),gt(()=>{var e,t,r,n;x===fO?(w(hO),e=h.current&&getComputedStyle(h.current).whiteSpace,N(e)):x===hO&&(e=!!g.current?.isExceed(),w(e?gO:vO),m(e?[0,u]:null),C(e),n=g.current?.getHeight()||0,t=1!==a&&v.current?.getHeight()||0,r=b.current?.getHeight()||0,n=Math.max(n,t+r),k(n+1),c(e))},[x]),p?Math.ceil((p[0]+p[1])/2):0);gt(()=>{var[t,r]=p||[0,0];if(t!==r){var n=(f.current?.getHeight()||0)>S;let e=I;r-t==1&&(e=n?t:r),m(n?[t,e]:[e,r])}},[p,I]);var M=ft.useMemo(()=>{var e;return t?x===gO&&p&&p[0]===p[1]?o(l?d:pO(d,p[0]),y):(e=o(d,!1),[vO,mO].includes(x)?e:ft.createElement("span",{style:{...bO,WebkitLineClamp:a}},e)):o(d,!1)},[l,x,p,d].concat(Pe(s))),$={width:r,margin:0,padding:0,whiteSpace:"nowrap"===E?"normal":"inherit"};return ft.createElement(ft.Fragment,null,M,x===hO&&ft.createElement(ft.Fragment,null,ft.createElement(dO,{style:{...$,...bO,WebkitLineClamp:a},ref:g},e),ft.createElement(dO,{style:{...$,...bO,WebkitLineClamp:a-1},ref:v},e),ft.createElement(dO,{style:{...$,...bO,WebkitLineClamp:1},ref:b},o([],!0))),x===gO&&p&&p[0]!==p[1]&&ft.createElement(dO,{style:{...$,top:400},ref:f},o(pO(d,I),!0)),x===fO&&ft.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}var CO=({enableEllipsis:e,isEllipsis:t,disabled:r,children:n,tooltipProps:o})=>o?.title&&e?ft.createElement(rv,{...o,disabled:!t||r},n):n;let xO=["delete","mark","code","underline","strong","keyboard","italic"];var wO=ft.forwardRef((d,H)=>{let{prefixCls:A,className:t,style:r,classNames:D,styles:L,direction:F,type:n,disabled:W,children:o,ellipsis:j,editable:_,copyable:K,actions:V,component:a,title:l,onMouseEnter:X,onMouseLeave:q,...G}=d,[i]=nc("Text"),s=ft.useRef(null),c=ft.useRef(null),[u,p,m,f]=rO(A,D,L,F,d),Y=at(G,xO),[h,g]=JT(_),[e,U]=vt(!1,g.editing),{triggerType:v=["icon"]}=g,b=e=>{e&&g.onStart?.(),U(e)},Q=eO(e),y=(gt(()=>{!e&&Q&&c.current?.focus()},[e]),e=>{e?.preventDefault(),b(!0)});let[C,x]=JT(K),{placement:w="end"}=V??{},{copied:S,copyLoading:Z,onClick:J}=ZT({copyConfig:x,children:o}),[ee,te]=ft.useState(!1),[re,ne]=ft.useState(!1),[oe,ae]=ft.useState(!1),[le,ie]=ft.useState(!1),[se,ce]=ft.useState(!0),[k,E]=JT(j,{expandable:!1,symbol:e=>e?i?.collapse:i?.expand}),[N,de]=vt(E.defaultExpanded||!1,E.expanded),I=k&&(!N||"collapsible"===E.expandable),{rows:M=1}=E,$=ft.useMemo(()=>I&&(void 0!==E.suffix||E.onEllipsis||E.expandable||h||C),[I,E,h,C]),[R,ue]=(gt(()=>{k&&!$&&(te(Ft("webkitLineClamp")),ne(Ft("textOverflow")))},[$,k]),ft.useState(I)),pe=ft.useMemo(()=>!$&&(1===M?re:ee),[$,M,ee,re]),P=(gt(()=>{ue(pe&&I)},[pe,I]),tO(E.tooltip,g.text,o)),z=R&&!!P.title,me=I&&(R?z&&le:oe),fe=I&&1===M&&R,B=I&&1<M&&R,he=(e,t)=>{de(t.expanded),E.onExpand?.(e,t)},[ge,ve]=ft.useState(0),[be,ye]=lt(!1),T=ft.useRef(!1);let Ce=e=>{ae(e),oe!==e&&E.onEllipsis?.(e)},O=ft.useCallback(()=>{var e,r,n,o=s.current;if(k&&z&&o){o=o,e=document.createElement("em"),o.appendChild(e),r=o.getBoundingClientRect(),n=e.getBoundingClientRect(),o.removeChild(e);let t=r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom;ie(e=>e===t?e:t)}},[k,z]),xe=(ft.useEffect(()=>{T.current&&O()},[O,o,B,se,ge]),ft.useEffect(()=>{let t=s.current;if("undefined"!=typeof IntersectionObserver&&t&&z&&I){let e=new IntersectionObserver(()=>{ce(!!t.offsetParent)});return e.observe(t),()=>{e.disconnect()}}},[z,I]),ft.useMemo(()=>{if(k&&!R)return[g.text,o,l,P.title].find(sO)},[k,R,l,P.title,me,g.text]));if(e)return ft.createElement(GT,{value:g.text??("string"==typeof o?o:""),onSave:e=>{g.onChange?.(e),b(!1)},onCancel:()=>{g.onCancel?.(),b(!1)},onEnd:g.onEnd,prefixCls:m,className:t,style:r,direction:f,component:a,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon,classNames:u,styles:p});let we=e=>{var e=e&&(()=>{var{expandable:e,symbol:t}=E;return e?ft.createElement("button",{type:"button",key:"expand",className:bt(m+"-"+(N?"collapse":"expand"),u.action),style:p.action,onClick:e=>he(e,{expanded:!N}),"aria-label":N?i.collapse:i?.expand},Je(t)?t(N):t):null})(),t=(()=>{var e,t,r,n,o;if(h)return{icon:e,tooltip:t,tabIndex:r}=g,o="string"==typeof(n=ke(t)[0]||i?.edit)?n:"",v.includes("icon")?ft.createElement(rv,{key:"edit",title:!1===t?"":n},ft.createElement("button",{type:"button",ref:c,className:bt(m+"-edit",u.action),style:p.action,onClick:y,"aria-label":o,tabIndex:r},e||ft.createElement(AT,{role:"button"}))):null})(),r=C?ft.createElement(cO,{key:"copy",...x,prefixCls:m,copied:S,locale:i,onCopy:J,loading:Z,iconOnly:!Se(o),className:u.action,style:p.action}):null;return e||t||r?ft.createElement("span",{key:"operations",className:bt(m+"-actions",u.actions,{[m+"-actions-start"]:"start"===w}),style:p.actions,onMouseEnter:()=>ye(!0,!0),onMouseLeave:()=>ye(!1,{ms:500})},e,t,r):null};return ft.createElement(gr,{onResize:({offsetWidth:e})=>{ve(e)},disabled:!I},e=>ft.createElement(CO,{tooltipProps:P,enableEllipsis:I,isEllipsis:me,disabled:be},ft.createElement(nO,{onMouseEnter:e=>{T.current=!0,O(),X?.(e)},onMouseLeave:e=>{T.current=!1,q?.(e)},className:bt({[m+"-"+n]:n,[m+"-disabled"]:W,[m+"-ellipsis"]:k,[m+"-ellipsis-single-line"]:fe,[m+"-ellipsis-multiple-line"]:B,[m+"-link"]:"a"===a},t),classNames:u,styles:p,prefixCls:m,style:{...r,WebkitLineClamp:B?M:void 0},component:a,ref:Ne(e,s,H),direction:f,onClick:v.includes("text")?y:void 0,"aria-label":xe?.toString(),title:l,...Y},ft.createElement(yO,{enableMeasure:I&&!R,text:o,rows:M,width:ge,onEllipsis:Ce,expanded:N,measureDeps:[w],miscDeps:[S,N,Z,h,C,w,i].concat(Pe(xO.map(e=>d[e])))},(e,t)=>{{var[{mark:e,code:t,underline:n,delete:o,strong:a,keyboard:l,italic:i},s]=[d,ft.createElement(ft.Fragment,null,"start"===w?we(t):null,0<e.length&&t&&!N&&xe?ft.createElement("span",{key:"show-content","aria-hidden":!0},e):e,[(e=t)&&!N&&ft.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),E.suffix],"start"===w?null:we(t))];let r=s;function c(e,t){t&&(r=ft.createElement(e,{},r))}return c("strong",a),c("u",n),c("del",o),c("code",t),c("mark",e),c("kbd",l),c("i",i),r}}))))}),e=ft.forwardRef((e,t)=>{let{ellipsis:r,rel:n,children:o,navigate:a,...l}=e;e={...l,rel:void 0===n&&"_blank"===l.target?"noopener noreferrer":n};return ft.createElement(wO,{...e,ref:t,ellipsis:!!r,component:"a"},o)}),Dn=ft.forwardRef((e,t)=>{let{children:r,...n}=e;return ft.createElement(wO,{ref:t,...n,component:"div"},r)}),c=ft.forwardRef((e,t)=>{let{ellipsis:r,children:n,...o}=e;e=ft.useMemo(()=>Ze(r)?at(r,["expandable","rows"]):r,[r]);return ft.createElement(wO,{ref:t,...o,ellipsis:e,component:"span"},n)});let SO=[1,2,3,4,5];var a=ft.forwardRef((e,t)=>{let{level:r=1,children:n,...o}=e;e=SO.includes(r)?"h"+r:"h1";return ft.createElement(wO,{ref:t,...o,component:e},n)}),i=ft.forwardRef((e,t)=>{let{prefixCls:r,className:n,rootClassName:o,direction:a,classNames:l,styles:i,...s}=e;var[e,c,d,u]=rO(r,l,i,a,e);return ft.createElement(nO,{ref:t,className:bt(n,o),direction:u,classNames:e,styles:c,prefixCls:d,...s})}),kO=(i.Text=c,i.Link=e,i.Title=a,i.Paragraph=Dn,i);function EO(t){t=t.responseText||t.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function NO(n){let o=new XMLHttpRequest,r=(n.onProgress&&o.upload&&(o.upload.onprogress=function(e){0<e.total&&(e.percent=e.loaded/e.total*100),n.onProgress(e)}),new FormData),t=(n.data&&Object.keys(n.data).forEach(t=>{var e=n.data[t];Array.isArray(e)?e.forEach(e=>{r.append(t+"[]",e)}):r.append(t,e)}),n.file instanceof Blob?r.append(n.filename,n.file,n.file.name):r.append(n.filename,n.file),o.onerror=function(e){n.onError(e)},o.onload=function(){var e,t,r;return o.status<200||300<=o.status?n.onError((e=n,t=o,r=`cannot ${e.method} ${e.action} ${t.status}'`,(r=new Error(r)).status=t.status,r.method=e.method,r.url=e.action,r),EO(o)):n.onSuccess(EO(o),o)},o.open(n.method,n.action,!0),n.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0),n.headers||{});return null!==t["X-Requested-With"]&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(t).forEach(e=>{null!==t[e]&&o.setRequestHeader(e,t[e])}),o.send(r),{abort(){o.abort()}}}var IO=async(e,n)=>{let o=[],a=[];e.forEach(e=>a.push(e.webkitGetAsEntry()));var t=async(e,t)=>{var r;e&&(e.path=t||"",e.isFile?(r=e,(t=await new Promise(t=>{r.file(e=>{n(e)?(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t(e)):t(null)})}))&&o.push(t)):e.isDirectory&&(t=await(async e=>{let t=e.createReader();for(var r=[];;){var n=await new Promise(e=>{t.readEntries(e,()=>e([]))}),o=n.length;if(!o)break;for(let e=0;e<o;e++)r.push(n[e])}return r})(e),a.push(...t)))};let r=0;for(;r<a.length;)await t(a[r]),r++;return o};let MO=+new Date,$O=0;function RO(){return`rc-upload-${MO}-`+ ++$O}function PO(){return(PO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class zO extends ft.Component{state={uid:RO()};reqs={};fileInput;_isMounted;filterFile=(e,t=!1)=>{var r,{accept:n,directory:o}=this.props;let a,l;return"string"==typeof n?l=n:({filter:n,format:r}=n||{},l=r,a="native"===n?()=>!0:n),(a||(o||t?e=>((r,n)=>{if(r&&n){n=Array.isArray(n)?n:n.split(",");let o=r.name||"",e=r.type||"",t=e.replace(/\/.*$/,"");return n.some(r=>{var n=r.trim();if(/^\*(\/\*)?$/.test(r))return!0;if("."!==n.charAt(0))return/\/\*$/.test(n)?t===n.replace(/\/.*$/,""):e===n||!!/^\w+$/.test(n)&&((0,Te.Ay)(!1,`Upload takes an invalidate 'accept' type '${n}'.Skip for check.`),!0);{let t=o.toLowerCase();r=n.toLowerCase();let e=".jpg"!==r&&".jpeg"!==r?[r]:[".jpg",".jpeg"];return e.some(e=>t.endsWith(e))}})}return!0})(e,l):()=>!0))(e)};onChange=e=>{e=e.target.files,e=[...e].filter(e=>this.filterFile(e));this.uploadFiles(e),this.reset()};onClick=e=>{var t,r,n=this.fileInput;n&&(t=e.target,r=this.props.onClick,t&&"BUTTON"===t.tagName&&(n.parentNode.focus(),t.blur()),n.click(),r)&&r(e)};onKeyDown=e=>{"Enter"===e.key&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{var{multiple:r,directory:n}=this.props,o=[...e.items||[]];let a=[...e.files||[]];if((0<a.length||o.some(e=>"file"===e.kind))&&t?.(),n)a=await IO(Array.prototype.slice.call(o),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));!1===r&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{var t=this.props.pastable;return t&&"paste"===e.type?(t=e.clipboardData,this.onDataTransferFiles(t,()=>{e.preventDefault()})):void 0};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),"drop"===e.type)return e=e.dataTransfer,this.onDataTransferFiles(e)};componentDidMount(){this._isMounted=!0;var e=this.props.pastable;e&&document.addEventListener("paste",this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}componentDidUpdate(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}uploadFiles=e=>{let t=[...e];e=t.map(e=>(e.uid=RO(),this.processFile(e,t)));Promise.all(e).then(e=>{var t=this.props.onBatchStart;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>null!==e.parsedFile).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{var r=this.props.beforeUpload;let n=e;if(r){try{n=await r(e,t)}catch(e){n=!1}if(!1===n)return{origin:e,parsedFile:null,action:null,data:null}}r=this.props.action;let o;o="function"==typeof r?await r(e):r;t=this.props.data;let a;a="function"==typeof t?await t(e):t;r="object"!=typeof n&&"string"!=typeof n||!n?e:n;let l;t=l=r instanceof File?r:new File([r],e.name,{type:e.type});return t.uid=e.uid,{origin:e,data:a,parsedFile:t,action:o}};post({data:e,origin:t,action:r,parsedFile:o}){if(this._isMounted){var{onStart:a,customRequest:l,name:i,headers:s,withCredentials:c,method:d}=this.props;let n=t.uid;l=l||NO,r={action:r,filename:i,data:e,file:o,headers:s,withCredentials:c,method:d||"post",onProgress:e=>{var t=this.props.onProgress;t?.(e,o)},onSuccess:(e,t)=>{var r=this.props.onSuccess;r?.(e,o,t),delete this.reqs[n]},onError:(e,t)=>{var r=this.props.onError;r?.(e,t,o),delete this.reqs[n]}};a(t),this.reqs[n]=l(r,{defaultRequest:NO})}}reset(){this.setState({uid:RO()})}abort(e){let t=this.reqs;e?(e=e.uid||e,t[e]&&t[e].abort&&t[e].abort(),delete t[e]):Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:r,classNames:n={},disabled:o,id:a,name:l,style:i,styles:s={},multiple:c,accept:d,capture:u,children:p,directory:m,openFileDialogOnClick:f,onMouseEnter:h,onMouseLeave:g,hasControlInside:v,...b}=this.props;var y="string"==typeof d?d:d?.format,C=bt(t,{[t+"-disabled"]:o,[r]:r}),x=m?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},w=o?{}:{onClick:f?this.onClick:()=>{},onKeyDown:f?this.onKeyDown:()=>{},onMouseEnter:h,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:v?void 0:"0"};return Re().createElement(e,PO({},w,{className:C,role:v?void 0:"button",style:i}),Re().createElement("input",PO({},Jt(b,{aria:!0,data:!0}),{id:a,name:l,disabled:o,type:"file",ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:"none",...s.input},className:n.input,accept:y},x,{multiple:c,onChange:this.onChange},null!=u?{capture:u}:{})),p)}}var BO=zO;function TO(){return(TO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function OO(){}class HO extends ft.Component{static defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:OO,onError:OO,onSuccess:OO,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1};uploader;abort(e){this.uploader.abort(e)}saveUploader=e=>{this.uploader=e};render(){return Re().createElement(BO,TO({},this.props,{ref:this.saveUploader}))}}var AO=HO,DO=e=>{var{componentCls:t,iconCls:r}=e;return{[t+"-wrapper"]:{[t+"-drag"]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:(0,Qe.unit)(e.lineWidth)+" dashed "+e.colorBorder,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color "+e.motionDurationSlow,[t]:{padding:e.padding},[t+"-btn"]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:(0,Qe.unit)(e.lineWidthFocus)+" solid "+e.colorPrimaryBorder}},[t+"-drag-container"]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:"0 0 "+(0,Qe.unit)(e.marginXXS),color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},LO=e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,motionDurationSlow:a,calc:l}=e;var i=t+"-list-item",s=i+"-actions",c=i+"-action";return{[t+"-wrapper"]:{[t+"-list"]:{...cn(),lineHeight:e.lineHeight,[i]:{position:"relative",height:l(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:"background-color "+a,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[i+"-name"]:{...an,padding:"0 "+(0,Qe.unit)(e.paddingXS),lineHeight:o,flex:"auto",transition:"all "+a},[s]:{whiteSpace:"nowrap",[c]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[c]:{opacity:1}},[r]:{color:e.actionsColor,transition:"all "+a},[`
${c}:focus-visible,
&.picture ${c}
`]:{opacity:1}},[t+"-icon "+r]:{color:e.colorIcon,fontSize:n},[i+"-progress"]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:l(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[i+":hover "+c]:{opacity:1},[i+"-error"]:{color:e.colorError,[i+`-name, ${t}-icon `+r]:{color:e.colorError},[s]:{[r+`, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[t+"-list-item-container"]:{transition:["opacity","height"].map(e=>e+" "+a).join(", "),"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},FO=e=>{var t=e.componentCls,r=new Qe.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new Qe.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=t+"-animate-inline";return[{[t+"-wrapper"]:{[o+`-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[o+`-appear, ${o}-enter`]:{animationName:r},[o+"-leave"]:{animationName:n}}},{[t+"-wrapper"]:lm(e)},r,n]};var WO=e=>{e=e.componentCls;return{[e+"-rtl"]:{direction:"rtl"}}};var jO=Be("Upload",e=>{var{fontSizeHeading3:t,marginXS:r,lineWidth:n,pictureCardSize:o,calc:a}=e,e=ze(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(n).equal(),uploadPicCardSize:o});return[(e=>{var{componentCls:t,colorTextDisabled:r}=e;return{[t+"-wrapper"]:{...F(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[t+"-select"]:{display:"inline-block"},[t+"-hidden"]:{display:"none"},[t+"-disabled"]:{color:r,cursor:"not-allowed"}}}})(e),DO(e),(e=>{var{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:a}=e,l=t+"-list",i=l+"-item";return{[t+"-wrapper"]:{[`
${l}${l}-picture,
${l}${l}-picture-card,
${l}${l}-picture-circle
`]:{[i]:{position:"relative",height:a(n).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,Qe.unit)(e.lineWidth)} ${e.lineType} `+e.colorBorder,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[i+"-thumbnail"]:{...an,width:n,height:n,lineHeight:(0,Qe.unit)(a(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}},[i+"-progress"]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(o).equal(),width:`calc(100% - ${(0,Qe.unit)(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(n).add(e.paddingXS).equal()}},[i+"-error"]:{borderColor:e.colorError,[i+`-thumbnail${i}-file `+r]:{color:e.colorError}},[i+"-uploading"]:{borderStyle:"dashed",[i+"-name"]:{marginBottom:o}}},[l+l+"-picture-circle "+i]:{[`&, &::before, ${i}-thumbnail`]:{borderRadius:"50%"}}}}})(e),(e=>{var{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:a}=e,l=t+"-list",i=l+"-item",s=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:{...cn(),display:"block",[""+t+t+"-select"]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:(0,Qe.unit)(e.lineWidth)+" dashed "+e.colorBorder,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color "+e.motionDurationSlow,["> "+t]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[l+l+`-picture-card, ${l}${l}-picture-circle`]:{display:"flex",flexWrap:"wrap","&:not(:empty)":{minHeight:s},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[l+"-item-container"]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Qe.unit)(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Qe.unit)(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:"all "+e.motionDurationSlow,content:'" "'}},[i+":hover"]:{[`&::before, ${i}-actions`]:{opacity:1}},[i+"-actions"]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all "+e.motionDurationSlow,[`
${r}-eye,
${r}-download,
${r}-delete
`]:{zIndex:10,width:n,margin:"0 "+(0,Qe.unit)(e.marginXXS),fontSize:n,cursor:"pointer",transition:"all "+e.motionDurationSlow,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[i+`-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[i+"-name"]:{display:"none",textAlign:"center"},[i+`-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,Qe.unit)(a(e.paddingXS).mul(2).equal())})`},[i+"-uploading"]:{["&"+i]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[i+"-progress"]:{bottom:e.marginXL,width:`calc(100% - ${(0,Qe.unit)(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[t+`-wrapper${t}-picture-circle-wrapper`]:{[""+t+t+"-select"]:{borderRadius:"50%"}}}})(e),LO(e),FO(e),WO(e),md(e)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG}));function _O(){return(_O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var KO=ft.forwardRef((e,t)=>ft.createElement(u,_O({},e,{ref:t,icon:Y().A})));function VO(){return(VO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var XO=ft.forwardRef((e,t)=>ft.createElement(u,VO({},e,{ref:t,icon:U().A})));function qO(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function GO(t,e){var e=Pe(e),r=e.findIndex(({uid:e})=>e===t.uid);return-1===r?e.push(t):e[r]=t,e}function YO(t,e){let r=void 0!==t.uid?"uid":"name";return e.filter(e=>e[r]===t[r])[0]}let UO=(e="")=>{e=e.split("/"),e=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]},QO=e=>0===e.indexOf("image/"),ZO=[".avif",".bmp",".dpg",".gif",".heic",".heif",".ico",".jfif",".jpg",".jpeg",".png",".svg",".tif",".tiff",".webp"],JO=e=>{var t;return e.type&&!e.thumbUrl?QO(e.type):(t=e.thumbUrl||e.url||"",e=UO(t||e.name),!(!/^data:image\//.test(t)&&!ZO.includes(e?.toLowerCase()||""))||!/^data:/.test(t)&&!e)},eH=200;function tH(){return(tH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var rH=ft.forwardRef((e,t)=>ft.createElement(u,tH({},e,{ref:t,icon:R().A}))),nH=ft.forwardRef(({prefixCls:r,className:e,style:t,classNames:n,styles:o,locale:a,listType:l,file:i,items:s,progress:c,iconRender:d,actionIconRender:u,itemRender:p,isImgUrl:m,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:g,previewIcon:v,removeIcon:b,downloadIcon:y,extra:C,onPreview:x,onDownload:w,onClose:S},k)=>{let E=i.status,[N,I]=ft.useState(E),[M,$]=(ft.useEffect(()=>{"removed"!==E&&I(E)},[E]),lt(!1));ft.useEffect(()=>{$(!0,{ms:300})},[]);var d=d(i);let R=ft.createElement("div",{className:r+"-icon"},d);"picture"!==l&&"picture-card"!==l&&"picture-circle"!==l||(R="uploading"===N||!i.thumbUrl&&!i.url?(P=bt(r+"-list-item-thumbnail",{[r+"-list-item-file"]:"uploading"!==N}),ft.createElement("div",{className:P},d)):(P=m?.(i)?ft.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:r+"-list-item-image",crossOrigin:i.crossOrigin}):d,d=bt(r+"-list-item-thumbnail",{[r+"-list-item-file"]:m&&!m(i)}),ft.createElement("a",{className:d,onClick:e=>x(i,e),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},P)));var m=bt(r+"-list-item",r+"-list-item-"+N,n?.item),d="string"==typeof i.linkProps?JSON.parse(i.linkProps):i.linkProps,P=(Je(h)?h(i):h)?u((Je(b)?b(i):b)||ft.createElement(JB,null),()=>S(i),r,a.removeFile,!0):null,n=(Je(g)?g(i):g)&&"done"===N?u((Je(y)?y(i):y)||ft.createElement(rH,null),()=>w(i),r,a.downloadFile):null,h="picture-card"!==l&&"picture-circle"!==l&&ft.createElement("span",{key:"download-delete",className:bt(r+"-list-item-actions",{picture:"picture"===l})},n,P),b=Je(C)?C(i):C,g=b&&ft.createElement("span",{className:r+"-list-item-extra"},b),u=bt(r+"-list-item-name"),y=i.url?ft.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:u,title:i.name,...d,href:i.url,onClick:e=>x(i,e)},i.name,g):ft.createElement("span",{key:"view",role:"button",tabIndex:0,className:u,onClick:e=>x(i,e),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),x(i,e))},title:i.name},i.name,g),C=(Je(f)?f(i):f)&&(i.url||i.thumbUrl)?ft.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>x(i,e),title:a.previewFile,"aria-label":a.previewFile||void 0},Je(v)?v(i):v||ft.createElement(HM,null)):null,b=("picture-card"===l||"picture-circle"===l)&&"uploading"!==N&&ft.createElement("span",{className:r+"-list-item-actions"},C,"done"===N&&n,P),d=ft.useContext(Ue).getPrefixCls,u=d(),g=ft.createElement("div",{className:m,style:o?.item},R,y,h,b,M&&ft.createElement(Na,{motionName:u+"-fade",visible:"uploading"===N,motionDeadline:2e3},({className:e})=>{var t="percent"in i?ft.createElement(g6,{type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],...c}):null;return ft.createElement("div",{className:bt(r+"-list-item-progress",e)},t)})),f=i.response&&"string"==typeof i.response?i.response:i.error?.statusText||i.error?.message||a.uploadError,v="error"===N?ft.createElement(rv,{title:f,getPopupContainer:e=>e.parentNode},g):g;return ft.createElement("div",{className:bt(r+"-list-item-container",e),style:t,ref:k},p?p(v,i,s,{download:w.bind(null,i),preview:x.bind(null,i),remove:S.bind(null,i)}):v)}),oH=ft.forwardRef((e,t)=>{let{listType:o="text",previewFile:r=function(t){return new Promise(c=>{if(t.type&&QO(t.type))if(t.type.startsWith("image/gif")){let e=new FileReader;e.onload=()=>{e.result&&c(e.result)},void e.readAsDataURL(t)}else{let l=document.createElement("canvas"),i=(l.width=eH,l.height=eH,l.style.cssText=`position: fixed; left: 0; top: 0; width: ${eH}px; height: ${eH}px; z-index: 9999; display: none;`,document.body.appendChild(l),l.getContext("2d")),s=new Image;if(s.onload=()=>{var{width:e,height:t}=s;let r=eH,n=eH,o=0,a=0;t<e?(n=t*(eH/e),a=-(n-r)/2):(r=e*(eH/t),o=-(r-n)/2),i.drawImage(s,o,a,r,n);e=l.toDataURL();document.body.removeChild(l),window.URL.revokeObjectURL(s.src),c(e)},s.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){let e=new FileReader;e.onload=()=>{e.result&&"string"==typeof e.result&&(s.src=e.result)},e.readAsDataURL(t)}else s.src=window.URL.createObjectURL(t)}else c("")})},onPreview:n,onDownload:a,onRemove:l,locale:i,iconRender:s,isImageUrl:c=JO,prefixCls:d,items:u=[],showPreviewIcon:p=!0,showRemoveIcon:m=!0,showDownloadIcon:f=!1,removeIcon:h,previewIcon:g,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:x=!0,itemRender:w,disabled:S,classNames:k,styles:E}=e,[,N]=Ng(),[I,M]=ft.useState(!1);e=["picture-card","picture-circle"].includes(o);ft.useEffect(()=>{o.startsWith("picture")&&(u||[]).forEach(t=>{(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",r?.(t.originFileObj).then(e=>{t.thumbUrl=e||"",N()}))})},[o,u,r]),ft.useEffect(()=>{M(!0)},[]);let $=(e,t)=>{if(n)return t?.preventDefault(),n(e)},R=e=>{Je(a)?a(e):e.url&&window.open(e.url,"_blank","noopener")},P=e=>{l?.(e)},z=e=>{var t,r;return s?s(e,o):(t="uploading"===e.status,o.startsWith("picture")?(r="picture"===o?ft.createElement(Al,null):i.uploading,e=c?.(e)?ft.createElement(XO,null):ft.createElement(vP,null),t?r:e):t?ft.createElement(Al,null):ft.createElement(KO,null))},H=(t,r,e,n,o)=>{n={type:"text",size:"small",title:n,"aria-label":n||void 0,onClick:e=>{r(),ft.isValidElement(t)&&t.props.onClick?.(e)},className:e+"-list-item-action",disabled:!!o&&S};return ft.isValidElement(t)?ft.createElement(Bd,{...n,icon:Ss(t,{...t.props,onClick:()=>{}})}):ft.createElement(Bd,{...n},ft.createElement("span",null,t))};ft.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:R}));t=ft.useContext(Ue).getPrefixCls;let B=t("upload",d),T=t();var t=bt(B+"-list",B+"-list-"+o,k?.list),O=ft.useMemo(()=>at(rc(T),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[T]),O={...e?{}:O,motionDeadline:2e3,motionName:B+"-"+(e?"animate-inline":"animate"),keys:Pe(u.map(e=>({key:e.uid,file:e}))),motionAppear:I};return ft.createElement("div",{className:t,style:E?.list},ft.createElement(Ea,{...O,component:!1},({key:e,file:t,className:r,style:n})=>ft.createElement(nH,{key:e,locale:i,prefixCls:B,className:r,style:n,classNames:k,styles:E,file:t,items:u,progress:y,listType:o,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:f,removeIcon:h,previewIcon:g,downloadIcon:v,extra:b,iconRender:z,actionIconRender:H,itemRender:w,onPreview:$,onDownload:R,onClose:P})),C&&ft.createElement(Na,{...O,visible:x,forceRender:!0},({className:t,style:r})=>Ss(C,e=>({className:bt(e.className,t),style:{...r,pointerEvents:t?"none":void 0,...e.style}}))))});let aH=`__LIST_IGNORE_${Date.now()}__`;var lH=ft.forwardRef((o,e)=>{var t=Fe("upload");let{fileList:n,defaultFileList:r,onRemove:a,showUploadList:l=!0,listType:i="text",onPreview:H,onDownload:A,onChange:D,onDrop:L,previewFile:F,disabled:W,locale:j,iconRender:_,isImageUrl:K,progress:s,prefixCls:V,className:X,type:c="select",children:d,style:q,itemRender:G,maxCount:u,data:Y={},multiple:p=!1,hasControlInside:m=!0,action:U="",accept:Q,supportServerRender:f=!0,rootClassName:Z,styles:J,classNames:ee}=o;var h=ft.useContext($s);let g=W??h;h=o.customRequest||t.customRequest;let te=t.progress||s?{...t.progress,...s}:void 0;t=Gs(Q,t.accept,"");let[re,ne]=vt(r,n),v=re||[],oe=ht(()=>v),[ae,le]=ft.useState("drop"),b=ft.useRef(null),y=ft.useRef(null),C=(ft.useMemo(()=>{let r=Date.now();(n||[]).forEach((e,t)=>{e.uid||Object.isFrozen(e)||(e.uid=`__AUTO__${r}_${t}__`)})},[n]),(t,e,r)=>{let n=Pe(e),o=!1,a=(1===u?n=n.slice(-1):u&&(o=n.length>u,n=n.slice(0,u)),(0,yt().flushSync)(()=>{ne(n)}),{file:t,fileList:n});r&&(a.event=r),o&&"removed"!==t.status&&!n.some(e=>e.uid===t.uid)||(0,yt().flushSync)(()=>{D?.(a)})});let x=e=>{let a=e.filter(e=>!e.file[aH]);if(a.length){e=a.map(e=>qO(e.file));let o=Pe(v);e.forEach(e=>{o=GO(e,o)}),e.forEach((t,r)=>{let n=t;if(a[r].parsedFile)t.status="uploading";else{r=t.originFileObj;let e;try{e=new File([r],r.name,{type:r.type})}catch{(e=new Blob([r],{type:r.type})).name=r.name,e.lastModifiedDate=new Date,e.lastModified=(new Date).getTime()}e.uid=t.uid,n=e}C(n,o)})}},w=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch{}YO(t,v)&&((t=qO(t)).status="done",t.percent=100,t.response=e,t.xhr=r,e=GO(t,v),C(t,e))},S=(e,t)=>{var r;YO(t,v)&&((t=qO(t)).status="uploading",t.percent=e.percent,r=GO(t,v),C(t,r,e))},k=(e,t,r)=>{YO(r,v)&&((r=qO(r)).error=e,r.response=t,r.status="error",e=GO(r,v),C(r,e))},ie=r=>{let n;Promise.resolve(Je(a)?a(r):a).then(e=>{var t;!1!==e&&(e=oe(),t=((t,e)=>{let r=void 0!==t.uid?"uid":"name";var n=e.filter(e=>e[r]!==t[r]);return n.length===e.length?null:n})(r,e))&&(n={...r,status:"removed"},e.forEach(e=>{var t=void 0!==n.uid?"uid":"name";e[t]!==n[t]||Object.isFrozen(e)||(e.status="removed")}),b.current?.abort(n),C(n,t))})};var E=e=>{le(e.type),"drop"===e.type&&L?.(e)},{getPrefixCls:e,direction:N,className:I,style:M,classNames:$,styles:R}=(ft.useImperativeHandle(e,()=>({onBatchStart:x,onSuccess:w,onProgress:S,onError:k,fileList:v,upload:b.current,nativeElement:y.current})),Fe("upload"));let P=e("upload",V);var e={...o,listType:i,showUploadList:l,type:c,multiple:p,hasControlInside:m,supportServerRender:f,disabled:g},M=We(M,"trigger"),z=We(q,"trigger");let[B,T]=je([$,ee],[R,M,J,z],{props:e});var $={onBatchStart:x,onError:k,onProgress:S,onSuccess:w,...o,customRequest:h,data:Y,multiple:p,action:U,accept:t,supportServerRender:f,prefixCls:P,disabled:g,beforeUpload:async(e,t)=>{var r=o.beforeUpload;let n=e;if(r){r=await r(e,t);if(!1===r)return!1;if(delete e[aH],r===aH)return Object.defineProperty(e,aH,{value:!0,configurable:!0}),!1;Ze(r)&&(n=r)}return n},onChange:void 0,hasControlInside:m},R=(delete $.className,delete $.style,d&&!g||delete $.id,P+"-wrapper"),[M,z]=jO(P,R);let[se]=nc("Upload",Ei.default.Upload),{showRemoveIcon:O,showPreviewIcon:ce,showDownloadIcon:de,removeIcon:ue,previewIcon:pe,downloadIcon:me,extra:fe}="boolean"==typeof l?{}:l,he=void 0===O?!g:O;e=(e,t)=>l?ft.createElement(oH,{classNames:B,styles:T,prefixCls:P,listType:i,items:v,previewFile:F,onPreview:H,onDownload:A,onRemove:ie,showRemoveIcon:he,showPreviewIcon:ce,showDownloadIcon:de,removeIcon:ue,previewIcon:pe,downloadIcon:me,iconRender:_,extra:fe,locale:{...se,...j},isImageUrl:K,progress:te,appendAction:e,appendActionVisible:t,itemRender:G,disabled:g}):e,h=bt(R,X,Z,M,z,I,B.root,{[P+"-rtl"]:"rtl"===N,[P+"-picture-card-wrapper"]:"picture-card"===i,[P+"-picture-circle-wrapper"]:"picture-circle"===i}),t={...T.root};return"drag"===c?(R=bt(M,P,P+"-drag",{[P+"-drag-uploading"]:v.some(e=>"uploading"===e.status),[P+"-drag-hover"]:"dragover"===ae,[P+"-disabled"]:g,[P+"-rtl"]:"rtl"===N},B.trigger),ft.createElement("span",{className:h,ref:y,style:t},ft.createElement("div",{className:R,style:T.trigger,onDrop:E,onDragOver:E,onDragLeave:E},ft.createElement(AO,{...$,ref:b,className:P+"-btn"},ft.createElement("div",{className:P+"-drag-container"},d))),e())):(z=bt(P,P+"-select",{[P+"-disabled"]:g,[P+"-hidden"]:!d},B.trigger),I=ft.createElement("div",{className:z,style:T.trigger},ft.createElement(AO,{...$,ref:b})),"picture-card"===i||"picture-circle"===i?ft.createElement("span",{className:h,ref:y,style:t},e(I,!!d)):ft.createElement("span",{className:h,ref:y,style:t},I,e()))}),Wn=ft.forwardRef((e,t)=>{let{style:r,height:n,hasControlInside:o=!1,children:a,...l}=e;e={...r,height:n};return ft.createElement(lH,{ref:t,hasControlInside:o,...l,style:e,type:"drag"},a)}),l=lH,iH=(l.Dragger=Wn,l.LIST_IGNORE=aH,l);let sH={subtree:!0,childList:!0,attributeFilter:["style","class"]};var cH=(r,n,o=sH)=>{Re().useEffect(()=>{if((0,Ke.A)()&&r){let t;var e=Array.isArray(r)?r:[r];return"MutationObserver"in window&&(t=new MutationObserver(n),e.forEach(e=>{t.observe(e,o)})),()=>{t?.takeRecords(),t?.disconnect()}}},[o,r])};let dH=e=>Ze(e),uH=(e,t=1)=>Number(e.fontSize)*t,pH=(e,t=1,r)=>{r=void 0===r?"":`/${r}px`;return`${e.fontStyle} normal ${e.fontWeight} ${uH(e,t)}px${r} `+e.fontFamily},mH=3,fH=(e,t,r=1)=>{var n=document.createElement("canvas"),o=n.getContext("2d"),e=e*r,t=t*r;return n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),o.save(),[o,n,e,t]},hH=(e,t,r)=>[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)];var gH=()=>Re().useCallback((e,t,n,r,o,a,l)=>{let[i,s,c,d]=fH(r,o,n);if(e instanceof HTMLImageElement)i.drawImage(e,0,0,c,d);else{i.textBaseline="top";let r=0;e.forEach(({text:e,font:t})=>{i.font=pH(t,n,o),i.fillStyle=t.color,i.textAlign=t.textAlign,i.fillText(e,c/2,r),r+=uH(t,n)+mH*n})}let u=Math.PI/180*Number(t);e=Math.max(r,o);let[p,m,f]=fH(e,e,n),h=(p.translate(f/2,f/2),p.rotate(u),0<c&&0<d&&p.drawImage(s,-c/2,-d/2),0),g=0,v=0,b=0;t=c/2,r=d/2;[[0-t,0-r],[0+t,0-r],[0+t,0+r],[0-t,0+r]].forEach(([e,t])=>{var[e,t]=hH(e,t,u);h=Math.min(h,e),g=Math.max(g,e),v=Math.min(v,t),b=Math.max(b,t)});let y=h+f/2,C=v+f/2,x=g-h,w=b-v;e=a*n,t=l*n,r=2*(x+e),a=w+t;let[S,k]=fH(r,a);l=(e=0,t=0)=>{x<=0||w<=0||S.drawImage(m,y,C,x,w,e,t,x,w)};return l(),l(x+e,-w/2-t/2),l(x+e,w/2+t/2),[k.toDataURL(),r/n,a/n]},[]);var vH=()=>{let r=ft.useRef([null,null]);return(e,t)=>{e=e.map(e=>Ta(e)||Number.isNaN(e)?"":e);return(0,Vt.A)(r.current[0],e)||(r.current=[e,t()]),r.current[1]}};let bH=()=>{},yH={visibility:"visible !important"};var CH=(l,i)=>{let s=ft.useRef(new Map),c=ht(i??bH);return[(e,t,r)=>{var n,o,a;return r&&((n=s.current.get(r))||(o=document.createElement("div"),s.current.set(r,o)),(o=s.current.get(r)).setAttribute("style",(a={...l,backgroundImage:`url('${e}')`,backgroundSize:Math.floor(t)+"px",...yH},Object.keys(a).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${a[e]};`).join(" "))),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==r)&&(n&&i&&c(),r.append(o)),s.current.get(r)},e=>{var t=s.current.get(e);t&&e&&e.removeChild(t),s.current.delete(e)},e=>Array.from(s.current.values()).includes(e)]};function xH(e,t){return e.size===t.size?e:t}let wH={position:"relative",overflow:"hidden"};var SH=Re().forwardRef((e,t)=>{let{zIndex:r,rotate:l=-22,width:i,height:s,image:c,content:n,font:o={},style:a,className:H,rootClassName:A,gap:D=[100,100],offset:d,children:u,inherit:L=!0,onRemove:F}=e;var{className:e,style:p}=Fe("watermark");let m={...wH,...p,...a};var[,p]=so();let f=r??p.zIndexPopupBase-1,{color:h=p.colorFill,fontSize:g=p.fontSizeLG,fontWeight:v="normal",fontStyle:b="normal",fontFamily:y="sans-serif",textAlign:C="center"}=o,x=Re().useMemo(()=>({color:h,fontSize:g,fontWeight:v,fontStyle:b,fontFamily:y,textAlign:C}),[h,g,v,b,y,C]),w=Re().useMemo(()=>{return e=n,t=x,u$(e,{skipEmpty:!0}).map(e=>dH(e)?{text:e.text??"",font:er(t,e.font??{})}:{text:e??"",font:t});var e,t},[n,x]),[S=100,k=100]=D,E=S/2,N=k/2,I=d?.[0]??E,M=d?.[1]??N;p=Re().useMemo(()=>{var e={zIndex:f,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=I-E,r=M-N;return 0<t&&(e.left=t+"px",e.width=`calc(100% - ${t}px)`,t=0),0<r&&(e.top=r+"px",e.height=`calc(100% - ${r}px)`,r=0),e.backgroundPosition=`${t}px ${r}px`,e},[f,I,E,M,N]);let[$,W]=Re().useState(),R=Re().useRef(null);Re().useImperativeHandle(t,()=>({nativeElement:R.current}));t=wt(R,W);let[P,z]=Re().useState(()=>new Set),B=Re().useMemo(()=>{var e=$?[$]:[];return[].concat(e,Pe(Array.from(P)))},[$,P]),j=gH(),_=vH(),[T,K]=Re().useState(null);let O=(e=>{let t=Re().useRef(!1),r=Re().useRef(null),n=ht(e);return()=>{t.current||(t.current=!0,n(),r.current=$e(()=>{t.current=!1}))}})(()=>{var e=document.createElement("canvas").getContext("2d");if(e){let n=window.devicePixelRatio||1,[o,a]=(r=>{let e=120,t=64;var n;return!c&&r.measureText&&(t=w.length?(n=w.map(({text:e,font:t})=>{r.font=pH(t);t=r.measureText(e);return[t.width,t.fontBoundingBoxAscent+t.fontBoundingBoxDescent]}),e=Math.ceil(Math.max.apply(Math,Pe(n.map(e=>e[0])))),Math.ceil(n.reduce((e,t)=>e+t[1],0))+3*(w.length-1)):e=0),[i??e,s??t]})(e),t=e=>{let t=[e||[],l,n,o,a,S,k];var[e,r]=_(t,()=>j.apply(void 0,t));K([e,r])};if(c){let e=new Image;e.onload=()=>{t(e)},e.onerror=()=>{t(w)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=c}else t(w)}}),[V,X,q]=CH(p,F);(0,ft.useEffect)(()=>{T&&B.forEach(e=>{V(T[0],T[1],e)})},[T,B]);p=ht(e=>{e.forEach(e=>{if(((e,t)=>{let r=!1;return e.removedNodes.length&&(r=Array.from(e.removedNodes).some(t)),r="attributes"===e.type&&t(e.target)?!0:r})(e,q))O();else if(e.target===$&&"style"===e.attributeName){var t=Object.keys(wH);for(let e=0;e<t.length;e+=1){var r=t[e],n=m[r],o=$.style[r];n&&n!==o&&($.style[r]=n)}}})}),cH(B,p),(0,ft.useEffect)(O,[l,f,i,s,c,w,S,k,I,M]),p=Re().useMemo(()=>({add:r=>{z(e=>{var t=new Set(e);return t.add(r),xH(e,t)})},remove:r=>{X(r),z(e=>{var t=new Set(e);return t.delete(r),xH(e,t)})}}),[]),p=L?Re().createElement(Xp.Provider,{value:p},u):u;return Re().createElement("div",{ref:t,className:bt(H,e,A),style:m},p)});let kH=()=>{}},4533:function(e,t,r){var n=r(5059),o=r(3188),a=r(6554),r=r(4334),l="${label} is not a valid ${type}",n={locale:"en",Pagination:n.A,DatePicker:a.A,TimePicker:r.A,Calendar:o.A,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Carousel:{prevSlide:"Previous slide",nextSlide:"Next slide"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};t.default=n},4334:function(e,t){t.A={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},7375:function(e){e.exports=(()=>function(e,t){var t=t.prototype,a=t.format;t.format=function(e){var t,r,n=this,o=this.$locale();return this.isValid()?(t=this.$utils(),r=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((n.$M+1)/3);case"Do":return o.ordinal(n.$D);case"gggg":return n.weekYear();case"GGGG":return n.isoWeekYear();case"wo":return o.ordinal(n.week(),"W");case"w":case"ww":return t.s(n.week(),"w"===e?1:2,"0");case"W":case"WW":return t.s(n.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return t.s(String(0===n.$H?24:n.$H),"k"===e?1:2,"0");case"X":return Math.floor(n.$d.getTime()/1e3);case"x":return n.$d.getTime();case"z":return"["+n.offsetName()+"]";case"zzz":return"["+n.offsetName("long")+"]";default:return e}}),a.bind(this)(r)):a.bind(this)(e)}})()},445:function(e){e.exports=(()=>{function e(t){return function(e){this[t]=+e}}function r(e){return(e=f[e])&&(e.indexOf?e:e.s.concat(e.f))}function t(e,t){var r,n=f.meridiem;if(n){for(var o=1;o<=24;o+=1)if(-1<e.indexOf(n(o,0,t))){r=12<o;break}}else r=e===(t?"pm":"PM");return r}var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,f={},c=function(e){return(e=+e)+(68<e?1900:2e3)},d=[/[+-]\d\d:?(\d\d)?|Z/,function(e){var t;(this.zone||(this.zone={})).offset=!e||"Z"===e||0===(t=60*(e=e.match(/([+-]|\d\d)/g))[1]+(+e[2]||0))?0:"+"===e[0]?-t:t}],p={A:[l,function(e){this.afternoon=t(e,!1)}],a:[l,function(e){this.afternoon=t(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,e("seconds")],ss:[a,e("seconds")],m:[a,e("minutes")],mm:[a,e("minutes")],H:[a,e("hours")],h:[a,e("hours")],HH:[a,e("hours")],hh:[a,e("hours")],D:[a,e("day")],DD:[o,e("day")],Do:[l,function(e){var t=f.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[a,e("week")],ww:[o,e("week")],M:[a,e("month")],MM:[o,e("month")],MMM:[l,function(e){var t=r("months"),t=(r("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],MMMM:[l,function(e){e=r("months").indexOf(e)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,e("year")],YY:[o,function(e){this.year=c(e)}],YYYY:[/\d{4}/,e("year")],Z:d,ZZ:d};function S(e){for(var t=e,o=f&&f.formats,d=(e=t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,t,r){var n=r&&r.toUpperCase();return t||o[r]||i[r]||o[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})).match(s),u=d.length,r=0;r<u;r+=1){var n=d[r],a=p[n],l=a&&a[0],a=a&&a[1];d[r]=a?{regex:l,parser:a}:n.replace(/^\[|\]$/g,"")}return function(e){for(var t,r,n,o={},a=0,l=0;a<u;a+=1){var i,s,c=d[a];"string"==typeof c?l+=c.length:(s=c.regex,c=c.parser,i=e.slice(l),s=s.exec(i)[0],c.call(o,s),e=e.replace(s,""))}return void 0!==(n=(t=o).afternoon)&&(r=t.hours,n?r<12&&(t.hours+=12):12===r&&(t.hours=0),delete t.afternoon),o}}return function(e,t,p){p.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(c=e.parseTwoDigitYear);var e=t.prototype,m=e.parse;e.parse=function(e){var t=e.date,r=e.utc,n=e.args,o=(this.$u=r,n[1]);if("string"==typeof o){var a=!0===n[2],l=!0===n[3],i=a||l,s=n[2];l&&(s=n[2]),f=this.$locale(),!a&&s&&(f=p.Ls[s]),this.$d=((e,t,r,n)=>{try{if(-1<["x","X"].indexOf(t))return new Date(("X"===t?1e3:1)*e);var o=S(t)(e),a=o.year,l=o.month,i=o.day,s=o.hours,c=o.minutes,d=o.seconds,u=o.milliseconds,p=o.zone,m=o.week,f=new Date,h=i||(a||l?1:f.getDate()),g=a||f.getFullYear(),v=0;a&&!l||(v=0<l?l-1:f.getMonth());var b,y=s||0,C=c||0,x=d||0,w=u||0;return p?new Date(Date.UTC(g,v,h,y,C,x,w+60*p.offset*1e3)):r?new Date(Date.UTC(g,v,h,y,C,x,w)):(b=new Date(g,v,h,y,C,x,w),b=m?n(b).week(m).toDate():b)}catch(e){return new Date("")}})(t,o,r,p),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),i&&t!=this.format(o)&&(this.$d=new Date("")),f={}}else if(o instanceof Array)for(var c=o.length,d=1;d<=c;d+=1){n[1]=o[d-1];var u=p.apply(this,n);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}d===c&&(this.$d=new Date(""))}else m.call(this,e)}}})()},1840:function(e){e.exports=function(e,t,r){function n(e,t,r,n,o){var a,e=e.name?e:e.$locale(),t=i(e[t]),r=i(e[r]),l=t||r.map(function(e){return e.slice(0,n)});return o?(a=e.weekStart,l.map(function(e,t){return l[(t+(a||0))%7]})):l}function o(){return r.Ls[r.locale()]}function a(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})}var t=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)};t.localeData=function(){return function(){var t=this;return{months:function(e){return e?e.format("MMMM"):n(t,"months")},monthsShort:function(e){return e?e.format("MMM"):n(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):n(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):n(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):n(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}}.bind(this)()},r.localeData=function(){var t=o();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(e){return a(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},r.months=function(){return n(o(),"months")},r.monthsShort=function(){return n(o(),"monthsShort","months",3)},r.weekdays=function(e){return n(o(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return n(o(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return n(o(),"weekdaysMin","weekdays",2,e)}}},8134:function(e){e.exports=(()=>function(e,t,n){t=t.prototype;t.week=function(e){if(null!==(e=void 0===e?null:e))return this.add(7*(e-this.week()),"day");e=this.$locale().yearStart||1;if(11===this.month()&&25<this.date()){var t=n(this).startOf("year").add(1,"year").date(e),r=n(this).endOf("week");if(t.isBefore(r))return 1}t=n(this).startOf("year").date(e).startOf("week").subtract(1,"millisecond"),r=this.diff(t,"week",!0);return r<0?n(this).startOf("week").week():Math.ceil(r)},t.weeks=function(e){return this.week(e=void 0===e?null:e)}})()},8623:function(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),r=this.year();return 1===t&&11===e?r+1:0===e&&52<=t?r-1:r}}},6986:function(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,r=(r<t?r+7:r)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},1441:function(e,t,r){function o(n){var o="",a=Object.keys(n);return a.forEach(function(e,t){var r=n[e];e=l(e),i(e)&&"number"==typeof r&&(r+="px"),o+=!0===r?e:!1===r?"not "+e:"("+e+": "+r+")",t<a.length-1&&(o+=" and ")}),o}var l=r(8028),i=function(e){return/[height|width]$/.test(e)};e.exports=function(r){var n="";return"string"==typeof r?r:r instanceof Array?(r.forEach(function(e,t){n+=o(e),t<r.length-1&&(n+=", ")}),n):o(r)}},8028:function(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},5442:function(e){e.exports=t},6003:function(e){e.exports=r},2598:function(e){e.exports=n}},l={},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.cw=function(t){var r;return function(){var e;return t&&(e=t,t=0,r={exports:{}},e.call(r.exports,r,r.exports)),r.exports}},a.d=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;){var n=t[r++],o=t[r++],o=0===o?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:o};a.o(e,n)||Object.defineProperty(e,n,o)}else for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(154);function a(e){var t=l[e];return void 0!==t||(t=l[e]={exports:{}},o[e].call(t.exports,t,t.exports,a)),t.exports}var o,l});
//# sourceMappingURL=antd.min.js.map