diff --git a/.gitignore b/.gitignore index fbffdff..2789aba 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,9 @@ go.work.sum # env file .env +# Build output +server/static/ + +# IDE +.idea/ + diff --git a/server/static/assets/index-B7zDPCSd.js b/server/static/assets/index-B7zDPCSd.js deleted file mode 100644 index fb7e9c0..0000000 --- a/server/static/assets/index-B7zDPCSd.js +++ /dev/null @@ -1,335 +0,0 @@ -var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var ee=V(null),te=V(null),W=V(null),ne=V(null);function re(e,t){switch(U(W,t),U(te,e),U(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Yd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(ee),U(ee,e)}function ie(){H(ee),H(te),H(W)}function ae(e){e.memoizedState!==null&&U(ne,e);var t=ee.current,n=Yd(t,e.type);t!==n&&(U(te,e),U(ee,n))}function oe(e){te.current===e&&(H(ee),H(te)),ne.current===e&&(H(ne),ap._currentValue=R)}var se,ce;function le(e){if(se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);se=t&&t[1]||``,ce=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ue=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?le(n):``}function fe(e,t){switch(e.tag){case 26:case 27:case 5:return le(e.type);case 16:return le(`Lazy`);case 13:return e.child!==t&&t!==null?le(`Suspense Fallback`):le(`Suspense`);case 19:return le(`SuspenseList`);case 0:case 15:return de(e.type,!1);case 11:return de(e.type.render,!1);case 1:return de(e.type,!0);case 31:return le(`Activity`);default:return``}}function pe(e){try{var t=``,n=null;do t+=fe(e,n),n=e,e=e.return;while(e);return t}catch(e){return` -Error generating stack: `+e.message+` -`+e.stack}}var me=Object.prototype.hasOwnProperty,he=t.unstable_scheduleCallback,ge=t.unstable_cancelCallback,_e=t.unstable_shouldYield,ve=t.unstable_requestPaint,ye=t.unstable_now,be=t.unstable_getCurrentPriorityLevel,xe=t.unstable_ImmediatePriority,Se=t.unstable_UserBlockingPriority,Ce=t.unstable_NormalPriority,we=t.unstable_LowPriority,Te=t.unstable_IdlePriority,Ee=t.log,De=t.unstable_setDisableYieldValue,Oe=null,ke=null;function Ae(e){if(typeof Ee==`function`&&De(e),ke&&typeof ke.setStrictMode==`function`)try{ke.setStrictMode(Oe,e)}catch{}}var je=Math.clz32?Math.clz32:Pe,Me=Math.log,Ne=Math.LN2;function Pe(e){return e>>>=0,e===0?32:31-(Me(e)/Ne|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function G(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function He(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ue(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,`passive`,{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function Jn(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=sn(),on=an=rn=null,Kn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=gr(n)}}function vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=kt(e.document)}return t}function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var xr=en&&`documentMode`in document&&11>=document.documentMode,Sr=null,Cr=null,wr=null,Tr=!1;function Er(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||Sr==null||Sr!==kt(r)||(r=Sr,`selectionStart`in r&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wr&&hr(wr,r)||(wr=r,r=Md(Cr,`onSelect`),0>=o,i-=o,vi=1<<32-je(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Di&&bi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Di&&bi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Di&&bi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Di&&bi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ai(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ii(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ci(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=xa(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===C)return b(e,r,Yi(e,o),c);ka(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===ha||t===_a)throw t;var a=ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zr(e),Xr(e,null,n),t}return qr(e,r,t,n),Zr(e)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ba=!1;function Va(){if(Ba){var e=oa;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Vl&f)===f:(r&f)===f){f!==0&&f===aa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Yl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=I.T,s={};I.T=s,js(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?As(e,t,la(c,r),_u(e)):As(e,t,r,_u(e))}catch(n){As(e,t,{then:function(){},status:`rejected`,reason:n},_u())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function bs(){}function xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ss(e).queue;ys(e,a,t,R,n===null?bs:function(){return Cs(e),n(r)})}function Ss(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cs(e){var t=Ss(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},_u())}function ws(){return Ji(ap)}function Ts(){return Do().memoizedState}function Es(){return Do().memoizedState}function Ds(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_u();e=Ia(n);var r=La(t,e,n);r!==null&&(yu(r,t,n),Ra(r,t,n)),t={cache:ta()},e.payload=t;return}t=t.return}}function Os(e,t,n){var r=_u();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Ns(t,n):(n=Jr(e,t,n,r),n!==null&&(yu(n,e,r),Ps(n,t,r)))}function ks(e,t,n){As(e,t,n,_u())}function As(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ns(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,mr(s,o))return qr(e,t,i,0),zl===null&&Kr(),!1}catch{}if(n=Jr(e,t,i,r),n!==null)return yu(n,e,r),Ps(n,t,r),!0}return!1}function js(e,t,n,r){if(r={lane:2,revertLane:gd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(i(479))}else t=Jr(e,n,r,2),t!==null&&yu(t,e,2)}function Ms(e){var t=e.alternate;return e===oo||t!==null&&t===oo}function Ns(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Fs={readContext:Ji,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Fs.useEffectEvent=_o;var Is={readContext:Ji,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Ji,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Ae(!0);try{n(t)}finally{Ae(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Os.bind(null,oo,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=ks.bind(null,oo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=ys.bind(null,oo,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=oo,a=Eo();if(Di){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),zl===null)throw Error(i(349));Vl&127||Lo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(zo.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=zl.identifierPrefix;if(Di){var n=yi,r=vi;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Vd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ac(t)}}return Fc(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=W.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ti,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Rd(e.nodeValue,n)),e||ji(t,!0)}else e=qd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Fc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[$e]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(i(558))}return Fc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[$e]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),a=!1}else a=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(no(t),t):(no(t),null)}return no(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nc(t,t.updateQueue),Fc(t),null);case 4:return ie(),e===null&&Od(t.stateNode.containerInfo),Fc(t),null;case 10:return Hi(t.type),Fc(t),null;case 19:if(H(ro),r=t.memoizedState,r===null)return Fc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Pc(r,!1);else{if(Jl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(e),o!==null){for(t.flags|=128,Pc(r,!1),e=o.updateQueue,t.updateQueue=e,Nc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ri(n,e),n=n.sibling;return U(ro,ro.current&1|2),Di&&bi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ye()>au&&(t.flags|=128,a=!0,Pc(r,!1),t.lanes=4194304)}else{if(!a)if(e=io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Nc(t,e),Pc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Di)return Fc(t),null}else 2*ye()-r.renderingStartTime>au&&n!==536870912&&(t.flags|=128,a=!0,Pc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Fc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ye(),e.sibling=null,n=ro.current,U(ro,a?n&1|2:n&1),Di&&bi(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fc(t),t.subtreeFlags&6&&(t.flags|=8192)):Fc(t),n=t.updateQueue,n!==null&&Nc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&H(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi(ea),Fc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Lc(e,t){switch(Ci(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(ea),ie(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oe(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(ro),null;case 4:return ie(),null;case 10:return Hi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&H(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(ea),null;case 25:return null;default:return null}}function Rc(e,t){switch(Ci(t),t.tag){case 3:Hi(ea),ie();break;case 26:case 27:case 5:oe(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:H(ro);break;case 10:Hi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&H(da);break;case 24:Hi(ea)}}function zc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Bc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Vc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wa(t,n)}catch(t){Yu(e,e.return,t)}}}function Hc(e,t,n){n.props=Us(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function Uc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Hd(r,e.type,n,t),r[et]=t}catch(t){Yu(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&af(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&af(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Vd(t,r,n),t[$e]=e,t[et]=n}catch(t){Yu(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Gd=mp,e=yr(e),br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Kd={focusedElem:e,selectionRange:n},mp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Vd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Jf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=_r(s,h),v=_r(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,I.T=null,n=pu,pu=null;var o=lu,s=du;if(cu=0,uu=lu=null,du=0,Rl&6)throw Error(i(331));var c=Rl;if(Rl|=4,Nl(o.current),Tl(o,o.current,s,n),Rl=c,ld(0,!1),ke&&typeof ke.onPostCommitFiberRoot==`function`)try{ke.onPostCommitFiberRoot(Oe,o)}catch{}return!0}finally{L.p=a,I.T=r,Gu(e,t)}}function Ju(e,t,n){t=ui(n,t),t=Ys(e.stateNode,t,2),e=La(e,t,2),e!==null&&(Ue(e,2),cd(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(su===null||!su.has(r))){e=ui(n,e),n=Xs(2),r=La(t,n,2),r!==null&&(Zs(n,r,t,e),Ue(r,2),cd(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Kl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(Vl&n)===n&&(Jl===4||Jl===3&&(Vl&62914560)===Vl&&300>ye()-ru?!(Rl&2)&&Eu(e,0):Zl|=n,$l===Vl&&($l=0)),cd(e)}function Qu(e,t){t===0&&(t=Ve()),e=Yr(e,t),e!==null&&(Ue(e,t),cd(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return he(e,t)}var nd=null,rd=null,id=!1,ad=!1,od=!1,sd=0;function cd(e){e!==rd&&e.next===null&&(rd===null?nd=rd=e:rd=rd.next=e),ad=!0,id||(id=!0,hd())}function ld(e,t){if(!od&&ad){od=!0;do for(var n=!1,r=nd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,md(r,a))}else a=Vl,a=G(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ze(r,a)||(n=!0,md(r,a));r=r.next}while(n);od=!1}}function ud(){dd()}function dd(){ad=id=!1;var e=0;sd!==0&&Qd()&&(e=sd);for(var t=ye(),n=null,r=nd;r!==null;){var i=r.next,a=fd(r,t);a===0?(r.next=null,n===null?nd=i:n.next=i,i===null&&(rd=n)):(n=r,(e!==0||a&3)&&(ad=!0)),r=i}cu!==0&&cu!==5||ld(e,!1),sd!==0&&(sd=0)}function fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Ud(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Of(e,t,n){var r=Df;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sf.has(i)||(Sf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Vd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function kf(e){wf.D(e),Of(`dns-prefetch`,e,null)}function Af(e,t){wf.C(e,t),Of(`preconnect`,e,t)}function jf(e,t,n){wf.L(e,t,n);var r=Df;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Lf(e);break;case`script`:a=Vf(e)}xf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rf(a))||t===`script`&&r.querySelector(Hf(a))||(t=r.createElement(`link`),Vd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Mf(e,t){wf.m(e,t);var n=Df;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vf(e)}if(!xf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),xf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hf(a)))return}r=n.createElement(`link`),Vd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Nf(e,t,n){wf.S(e,t,n);var r=Df;if(r&&e){var i=dt(r).hoistableStyles,a=Lf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xf.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);ft(c),Vd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pf(e,t){wf.X(e,t);var n=Df;if(n&&e){var r=dt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=m({src:e,async:!0},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),ft(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t){wf.M(e,t);var n=Df;if(n&&e){var r=dt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),ft(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t,n,r){var a=(a=W.current)?Cf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Lf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),xf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xf.set(e,n),o||Bf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Vf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lf(e){return`href="`+jt(e)+`"`}function Rf(e){return`link[rel="stylesheet"][`+e+`]`}function zf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Bf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Vd(t,`link`,n),ft(t),e.head.appendChild(t))}function Vf(e){return`[src="`+jt(e)+`"]`}function Hf(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Vd(r,`style`,a),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lf(n.href);var o=e.querySelector(Rf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=zf(n),(a=xf.get(a))&&Gf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Vd(o,`link`,r),t.state.loading|=4,Wf(o,n.precedence,e),t.instance=o;case`script`:return o=Vf(n.src),(a=e.querySelector(Hf(o)))?(t.instance=a,ft(a),a):(r=n,(a=xf.get(o))&&(r=m({},n),Kf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Vd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lf(r.href),a=t.querySelector(Rf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=zf(r),(i=xf.get(i))&&Gf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Vd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=l(d()),y=_(),b=e=>{let t=v.useRef(e);return t.current=e,v.useCallback((...e)=>t.current?.(...e),[])};function x(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var S=x()?v.useLayoutEffect:v.useEffect,C=(e,t)=>{let n=v.useRef(!0);S(()=>e(n.current),t),S(()=>(n.current=!1,()=>{n.current=!0}),[])},w=(e,t)=>{C(t=>{if(!t)return e()},t)},T=e=>{let t=v.useRef(!1),[n,r]=v.useState(e);v.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function E(e,t){let[n,r]=(0,v.useState)(e),i=t===void 0?n:t;return C(e=>{e||r(t)},[t]),[i,r]}var D=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),O=o(((e,t)=>{t.exports=D()}));function k(e,t,n){let r=v.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var A=Symbol.for(`react.element`),j=Symbol.for(`react.transitional.element`),M=Symbol.for(`react.fragment`);function N(e){return e&&typeof e==`object`&&(e.$$typeof===A||e.$$typeof===j)&&e.type===M}var P=O(),F=Number(v.version.split(`.`)[0]),I=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},L=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{I(e,t)})}},R=(...e)=>k(()=>L(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),z=e=>{if(!e)return!1;if(B(e)&&F>=19)return!0;let t=(0,P.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==P.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==P.ForwardRef)};function B(e){return(0,v.isValidElement)(e)&&!N(e)}var V=e=>B(e)&&z(e),H=e=>{if(e&&B(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function U(e,t){let n=e;for(let e=0;e`u`?Object.keys:Reflect.ownKeys;function ie(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=ne(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=U(e,n),c=Array.isArray(s);if(c||W(s)){if(!o.has(s)){o.add(s);let e=U(i,n);c?i=te(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=te(i,n,ne(s))),re(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=te(i,n,s)}t([])}),i}function ae(...e){return ie(e)}var oe={},se=[],ce=e=>{se.push(e)};function le(e,t){}function ue(e,t){}function de(){oe={}}function fe(e,t,n){!t&&!oe[n]&&(e(!1,n),oe[n]=!0)}function pe(e,t){fe(le,e,t)}function me(e,t){fe(ue,e,t)}pe.preMessage=ce,pe.resetWarned=de,pe.noteOnce=me;function he(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function ge(e,t={}){let n=[];return v.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(ge(e)):N(e)&&e.props?n=n.concat(ge(e.props.children,t)):n.push(e))}),n}function _e(){}var{resetWarned:ve}=pe,ye=v.createContext({}),be=()=>{let e=()=>{};return e.deprecated=_e,e};function xe(e){return e instanceof HTMLElement||e instanceof SVGElement}function Se(e){return e&&typeof e==`object`&&xe(e.nativeElement)?e.nativeElement:xe(e)?e:null}var Ce=v.createContext(null);function we({children:e,onBatchResize:t}){let n=v.useRef(0),r=v.useRef([]),i=v.useContext(Ce),a=v.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return v.createElement(Ce.Provider,{value:a},e)}var Te=new Map;function Ee(e){e.forEach(e=>{let{target:t}=e;Te.get(t)?.forEach(e=>e(t))})}var De;function Oe(){return De||=new ResizeObserver(Ee),De}function ke(e,t){Te.has(e)||(Te.set(e,new Set),Oe().observe(e)),Te.get(e).add(t)}function Ae(e,t){Te.has(e)&&(Te.get(e).delete(t),Te.get(e).size||(Oe().unobserve(e),Te.delete(e)))}function je(e,t,n,r){let i=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=b(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=v.useRef(0);v.useEffect(()=>{let n=o?t():t;return n&&e?ke(n,a):e&&o&&(s.current+=1),()=>{n&&Ae(n,a)}},[e,o?s.current:t])}function Me(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=v.useRef(null),s=v.useContext(Ce),c=typeof n==`function`,l=c?n(o):n,u=!c&&v.isValidElement(l)&&z(l),d=R(u?H(l):null,o),f=()=>Se(o.current);return v.useImperativeHandle(t,()=>f()),je(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?v.cloneElement(l,{ref:d}):l}var Ne=v.forwardRef(Me);function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let i=n?.key||`${Fe}-${r}`;return v.createElement(Ne,Pe({},e,{key:i,ref:r===0?t:void 0}),n)})}var Le=v.forwardRef(Ie);Le.Collection=we;function Re(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n+setTimeout(e,16),Ke=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Ge=e=>window.requestAnimationFrame(e),Ke=e=>window.cancelAnimationFrame(e));var qe=0,Je=new Map;function Ye(e){Je.delete(e)}var Xe=(e,t=1)=>{qe+=1;let n=qe;function r(t){if(t===0)Ye(n),e();else{let e=Ge(()=>{r(t-1)});Je.set(n,e)}}return r(t),n};Xe.cancel=e=>{let t=Je.get(e);return Ye(e),Ke(t)};var Ze=`anticon`,Qe=[`outlined`,`borderless`,`filled`,`underlined`],$e=v.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:Ze}),{Consumer:et}=$e,tt={};function nt(e){let t=v.useContext($e),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:tt,styles:tt,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function rt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function it(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}var at=`data-rc-order`,ot=`data-rc-priority`,st=`rc-util-key`,ct=new Map;function lt({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:st}function ut(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function dt(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function ft(e){return Array.from((ct.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function pt(e,t={}){if(!x())return null;let{csp:n,prepend:r,priority:i=0}=t,a=dt(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(at,a),o&&i&&s.setAttribute(ot,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=ut(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||ft(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(at))?i>=Number(e.getAttribute(ot)||0):!1);if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function mt(e,t={}){let{styles:n}=t;return n||=ft(ut(t)),n.find(n=>n.getAttribute(lt(t))===e)}function ht(e,t={}){let n=mt(e,t);n&&ut(t).removeChild(n)}function gt(e,t){let n=ct.get(e);if(!n||!it(document,n)){let n=pt(``,t),{parentNode:r}=n;ct.set(e,r),e.removeChild(n)}}function _t(e,t,n={}){let r=ut(n),i=ft(r),a={...n,styles:i};gt(r,a);let o=mt(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=pt(e,a);return s.setAttribute(lt(a),t),s}function vt(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(pe(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ni(e[n],t[n],s)):!1}return!1}return i(e,t)}var yt=`%`;function bt(e){return e.join(yt)}var xt=0,St=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(bt(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(bt(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,xt),xt+=1)}},Ct=`data-token-hash`,wt=`data-css-hash`,Tt=`__cssinjs_instance__`;function Et(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Tt]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${wt}]`)).forEach(t=>{let n=t.getAttribute(wt);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new St(e)}var Dt=v.createContext({hashPriority:`low`,cache:Et(),defaultCache:!0,autoPrefix:!1});function Ot(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Ot(t,e)),this.deleteByPath(this.cache,e)}},At=0,jt=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=At,e.length===0&&e.length,At+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},Mt=new kt;function Nt(e){let t=Array.isArray(e)?e:[e];return Mt.has(t)||Mt.set(t,new jt(t)),Mt.get(t)}var Pt=new WeakMap,Ft={};function It(e,t){let n=Pt;for(let e=0;e{let r=e[n];t+=n,r instanceof jt?t+=r.id:r&&typeof r==`object`?t+=Rt(r):t+=r}),t=rt(t),Lt.set(e,t)),t}function zt(e,t){return rt(`${t}_${Rt(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var Bt=x();function K(e){return typeof e==`number`?`${e}px`:e}function Vt(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var Ht=e=>e!=null;function Ut(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var Wt=(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(),Gt=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${Vt({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},Kt=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c?.[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!s?.[e]){let n=Wt(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,Gt(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},qt=new Map;function Jt(e,t,n,r,i){let{cache:a}=v.useContext(Dt),o=bt([e,...t]),s=e=>{a.opUpdate(o,t=>{let[r=0,i]=t||[void 0,void 0],a=[r,i||n()];return e?e(a):a})};v.useMemo(()=>{s()},[o]);let c=a.opGet(o)[1];return(0,v.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),qt.has(o)||(i?.(c),qt.set(o,!0),Promise.resolve().then(()=>{qt.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),qt.delete(o),null):[t-1,n]})}),[o]),c}var Yt={},Xt=`css`,Zt=new Map;function Qt(e){Zt.set(e,(Zt.get(e)||0)+1)}function $t(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Ct}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var en=-1;function tn(e,t){Zt.set(e,(Zt.get(e)||0)-1);let n=new Set;Zt.forEach((e,t)=>{e<=0&&n.add(t)}),Zt.size-n.size>en&&n.forEach(e=>{$t(e,t),Zt.delete(e)})}var nn=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},rn=`token`;function an(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,v.useContext)(Dt),{salt:o=``,override:s=Yt,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=It(()=>Object.assign({},...t),t),p=Rt(f),m=Rt(s),h=Rt(u);return Jt(rn,[o,e.id,p,m,h],()=>{let t=l?l(f,s,e):nn(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=rt(r),d=`${Xt}-${i}`;n._tokenKey=zt(n,r);let[p,m]=Kt(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,Qt(u.key),[p,d,n,m,u.key]},([,,,,e])=>{tn(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:wt,prepend:`queue`,attachTo:i,priority:-999};n=Ut(n,d);let a=_t(e,rt(`css-var-${t}`),n);a[Tt]=r,a.setAttribute(Ct,t)})}var on={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},sn=`-ms-`,cn=`-moz-`,ln=`-webkit-`,un=`comm`,dn=`rule`,fn=`decl`,pn=`@import`,mn=`@namespace`,hn=`@keyframes`,gn=`@layer`,_n=Math.abs,vn=String.fromCharCode,yn=Object.assign;function bn(e,t){return Tn(e,0)^45?(((t<<2^Tn(e,0))<<2^Tn(e,1))<<2^Tn(e,2))<<2^Tn(e,3):0}function xn(e){return e.trim()}function Sn(e,t){return(e=t.exec(e))?e[0]:e}function Cn(e,t,n){return e.replace(t,n)}function wn(e,t){return e.indexOf(t)}function Tn(e,t){return e.charCodeAt(t)|0}function En(e,t,n){return e.slice(t,n)}function Dn(e){return e.length}function On(e){return e.length}function kn(e,t){return t.push(e),e}function An(e,t){return e.map(t).join(``)}function jn(e,t){return e.filter(function(e){return!Sn(e,t)})}var Mn=1,Nn=1,Pn=0,Fn=0,In=0,Ln=``;function Rn(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Mn,column:Nn,length:o,return:``,siblings:s}}function zn(e,t){return yn(Rn(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function Bn(e){for(;e.root;)e=zn(e.root,{children:[e]});kn(e,e.siblings)}function Vn(){return In}function Hn(){return In=Fn>0?Tn(Ln,--Fn):0,Nn--,In===10&&(Nn=1,Mn--),In}function Un(){return In=Fn2||qn(In)>3?``:` `}function Qn(e,t){for(;--t&&Un()&&!(In<48||In>102||In>57&&In<65||In>70&&In<97););return Kn(e,Gn()+(t<6&&Wn()==32&&Un()==32))}function $n(e){for(;Un();)switch(In){case e:return Fn;case 34:case 39:e!==34&&e!==39&&$n(In);break;case 40:e===41&&$n(e);break;case 92:Un();break}return Fn}function er(e,t){for(;Un()&&e+In!==57&&!(e+In===84&&Wn()===47););return`/*`+Kn(t,Fn-1)+`*`+vn(e===47?e:Un())}function tr(e){for(;!qn(Wn());)Un();return Kn(e,Fn)}function nr(e){return Yn(rr(``,null,null,null,[``],e=Jn(e),0,[0],e))}function rr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Un()){case 40:m!=108&&Tn(w,d-1)==58?(v++,w+=`(`):w+=Xn(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Xn(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=vn(y);break}w+=Zn(m);break;case 92:w+=Qn(Gn()-1,7);continue;case 47:switch(Wn()){case 42:case 47:kn(ar(er(Un(),Gn()),t,n,c),c),(qn(m||1)==5||qn(Wn()||1)==5)&&Dn(w)&&En(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Dn(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=vn(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Cn(w,/\f/g,``)),p>0&&(Dn(w)-d||h===0)&&kn(p>32?or(w+`;`,r,n,d-1,c):or(Cn(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(kn(C=ir(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)rr(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Tn(w,3)===110)break;case 108:if(Tn(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?rr(e,C,C,r&&kn(ir(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):rr(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Dn(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Hn()==125)continue}switch(w+=vn(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Dn(w)-1)*_,_=1;break;case 64:Wn()===45&&(w+=Xn(Un())),f=Wn(),u=d=Dn(b=w+=tr(Gn())),y++;break;case 45:m===45&&Dn(w)==2&&(h=0)}}return a}function ir(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=On(p),h=0,g=0,_=0;h0?p[v]+` `+y:Cn(y,/&\f/g,p[v])))&&(c[_++]=b);return Rn(e,t,n,i===0?dn:s,c,l,u,d)}function ar(e,t,n,r){return Rn(e,t,n,un,vn(Vn()),En(e,2,-2),0,r)}function or(e,t,n,r,i){return Rn(e,t,n,fn,En(e,0,r),En(e,r+1,-1),r,i)}function sr(e,t,n){switch(bn(e,t)){case 5103:return ln+`print-`+e+e;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 ln+e+e;case 4855:return ln+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return cn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+cn+e+sn+e+e;case 5936:switch(Tn(e,t+11)){case 114:return ln+e+sn+Cn(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ln+e+sn+Cn(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ln+e+sn+Cn(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return ln+e+sn+e+e;case 6165:return ln+e+sn+`flex-`+e+e;case 5187:return ln+e+Cn(e,/(\w+).+(:[^]+)/,ln+`box-$1$2`+sn+`flex-$1$2`)+e;case 5443:return ln+e+sn+`flex-item-`+Cn(e,/flex-|-self/g,``)+(Sn(e,/flex-|baseline/)?``:sn+`grid-row-`+Cn(e,/flex-|-self/g,``))+e;case 4675:return ln+e+sn+`flex-line-pack`+Cn(e,/align-content|flex-|-self/g,``)+e;case 5548:return ln+e+sn+Cn(e,`shrink`,`negative`)+e;case 5292:return ln+e+sn+Cn(e,`basis`,`preferred-size`)+e;case 6060:return ln+`box-`+Cn(e,`-grow`,``)+ln+e+sn+Cn(e,`grow`,`positive`)+e;case 4554:return ln+Cn(e,/([^-])(transform)/g,`$1`+ln+`$2`)+e;case 6187:return Cn(Cn(Cn(e,/(zoom-|grab)/,ln+`$1`),/(image-set)/,ln+`$1`),e,``)+e;case 5495:case 3959:return Cn(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return Cn(Cn(e,/(.+:)(flex-)?(.*)/,ln+`box-pack:$3`+sn+`flex-pack:$3`),/space-between/,`justify`)+ln+e+e;case 4200:if(!Sn(e,/flex-|baseline/))return sn+`grid-column-align`+En(e,t)+e;break;case 2592:case 3360:return sn+Cn(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Sn(e.props,/grid-\w+-end/)})?~wn(e+(n=n[t].value),`span`)?e:sn+Cn(e,`-start`,``)+e+sn+`grid-row-span:`+(~wn(n,`span`)?Sn(n,/\d+/):Sn(n,/\d+/)-+Sn(e,/\d+/))+`;`:sn+Cn(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Sn(e.props,/grid-\w+-start/)})?e:sn+Cn(Cn(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Cn(e,/(.+)-inline(.+)/,ln+`$1$2`)+e;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(Dn(e)-1-t>6)switch(Tn(e,t+1)){case 109:if(Tn(e,t+4)!==45)break;case 102:return Cn(e,/(.+:)(.+)-([^]+)/,`$1`+ln+`$2-$3$1`+cn+(Tn(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~wn(e,`stretch`)?sr(Cn(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Cn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return sn+n+`:`+r+s+(i?sn+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Tn(e,t+6)===121)return Cn(e,`:`,`:`+ln)+e;break;case 6444:switch(Tn(e,Tn(e,14)===45?18:11)){case 120:return Cn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+ln+(Tn(e,14)===45?`inline-`:``)+`box$3$1`+ln+`$2$3$1`+sn+`$2box$3`)+e;case 100:return Cn(e,`:`,`:`+sn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Cn(e,`scroll-`,`scroll-snap-`)+e}return e}function cr(e,t){for(var n=``,r=0;r-1&&!e.return)switch(e.type){case fn:e.return=sr(e.value,e.length,n);return;case hn:return cr([zn(e,{value:Cn(e.value,`@`,`@`+ln)})],r);case dn:if(e.length)return An(n=e.props,function(t){switch(Sn(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:Bn(zn(e,{props:[Cn(t,/:(read-\w+)/,`:`+cn+`$1`)]})),Bn(zn(e,{props:[t]})),yn(e,{props:jn(n,r)});break;case`::placeholder`:Bn(zn(e,{props:[Cn(t,/:(plac\w+)/,`:`+ln+`input-$1`)]})),Bn(zn(e,{props:[Cn(t,/:(plac\w+)/,`:`+cn+`$1`)]})),Bn(zn(e,{props:[Cn(t,/:(plac\w+)/,sn+`input-$1`)]})),Bn(zn(e,{props:[t]})),yn(e,{props:jn(n,r)});break}return``})}}var fr=`data-ant-cssinjs-cache-path`,pr=`_FILE_STYLE__`,mr,hr=!0;function gr(){if(!mr&&(mr={},x())){let e=document.createElement(`div`);e.className=fr,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);mr[t]=n});let n=document.querySelector(`style[${fr}]`);n&&(hr=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function _r(e){return gr(),!!mr[e]}function vr(e){let t=mr[e],n=null;if(t&&x())if(hr)n=pr;else{let t=document.querySelector(`style[${wt}="${mr[e]}"]`);t?n=t.innerHTML:delete mr[e]}return[n,t]}var yr=`_skip_check_`,br=`_multi_value_`;function xr(e,t){return(t?cr(nr(e),ur([dr,lr])):cr(nr(e),lr)).replace(/\{%%%\:[^;];}/g,`;`)}function Sr(e){return typeof e==`object`&&e&&(yr in e||br in e)}function Cr(e,t,n=`high`){if(!t)return e;let r=Vt({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,i=n.match(/^\w+/)?.[0]||``;return n=`${i}${r}${n.slice(i.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var wr=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=wr(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>t?.visit?.(e)||e,o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!Sr(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Cr(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=wr(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f={...f,...m},d+=`${l}${p}`}else{function e(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!on[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let t=s?.value??s;typeof s==`object`&&s?.[br]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):Ht(t)&&e(o,t)}})}}),n?o&&(d&&=`@layer ${o.name} {${d}}`,o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(` -`))):d=`{${d}}`,[d,f]};function Tr(e,t){return rt(`${e.join(`%`)}${t}`)}var Er=`style`;function Dr(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:h}=v.useContext(Dt),g=[r||``];m&&g.push(`layer`),g.push(...n);let _=Bt;Jt(Er,g,()=>{let e=g.join(`|`);if(_r(e)){let[t,n]=vr(e);if(t)return[t,n,{},o,s]}let[a,c]=wr(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=xr(a,h||!1);return[u,Tr(g,u),c,o,s]},(e,t)=>{let[,n]=e;t&&Bt&&ht(n,{mark:wt,attachTo:u})},e=>{let[t,n,r,,i]=e;if(_&&t!==`_FILE_STYLE__`){let e={mark:wt,prepend:m?!1:`queue`,attachTo:u,priority:i};e=Ut(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{_t(xr(r[t],h||!1),`_layer-${t}`,{...e,prepend:!0})});let c=_t(t,n,e);c[Tt]=p.instanceId,s.forEach(t=>{_t(xr(r[t],h||!1),`_effect-${t}`,e)})}})}var Or=`cssVar`,kr=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,v.useContext)(Dt),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,h=[...e.path,n,m,p];return Jt(Or,h,()=>{let[e,o]=Kt(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Tr(h,o),n]},([,,e])=>{Bt&&ht(e,{mark:wt,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:wt,prepend:`queue`,attachTo:d,priority:-999};r=Ut(r,l);let i=_t(e,t,r);i[Tt]=u,i.setAttribute(Ct,n)})},Ar=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function jr(e){return e.notSplit=!0,e}jr([`borderTop`,`borderBottom`]),jr([`borderTop`]),jr([`borderBottom`]),jr([`borderLeft`,`borderRight`]),jr([`borderLeft`]),jr([`borderRight`]);function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mr(e)}function Nr(e){if(Array.isArray(e))return e}function Pr(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Fr(){throw TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ir(e,t){return Nr(e)||Pr(e,t)||He(e,t)||Fr()}function Lr(e,t){if(Mr(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mr(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rr(e){var t=Lr(e,`string`);return Mr(t)==`symbol`?t:t+``}function zr(e,t,n){return(t=Rr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>hi&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function _i(e,t){return v.useMemo(function(){var n=gi.get(t);if(n)return n;var r=e();return gi.set(t,r),r},t)}var vi=function(){return{}};function yi(e){var t=e.useCSP,n=t===void 0?vi:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=Vr(Vr({},typeof s==`function`?s(e):{}),{},zr({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=Vr(Vr({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(We(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return kr({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=pi(e,d,t),r=oi(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Ir(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,y=u.cssVar,b=u.zeroRuntime;if((0,v.useMemo)(function(){return b},[]))return g;var x=i(),S=x.rootPrefixCls,C=x.iconPrefixCls,w=n(),T=`css`,E=_i(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(Wt(t,y.prefix)),e.add(Wt(t,ai(d,y.prefix)))}),ii(T,e)},[T,d,y?.prefix]),D=mi(T),O=D.max,k=D.min,A={theme:m,token:_,hashId:g,nonce:function(){return w.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&Dr(Vr(Vr({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(_,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),Dr(Vr(Vr({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=fi(_),r=n.token,i=n.flush,a=pi(d,h,c),u=`.${e}`,f=oi(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&Mr(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${Wt(e,ai(d,y.prefix))})`});var p=li(r,{componentCls:u,prefixCls:e,iconCls:`.${C}`,antCls:`.${S}`,calc:E,max:O,min:k},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:S,iconPrefixCls:C});i(d,f);var v=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:v,m]}),g}}function d(e,t,n){var r=u(e,t,n,Vr({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var bi=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function xi(e){return(e+8)/e}function Si(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:xi(e)}))}var Ci=`6.3.7`,wi={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`},Ti={...wi,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},Ei={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`},Di=Math.round;function Oi(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var ki=(e,t,n)=>n===0?e:e/100;function Ai(e,t){let n=t||255;return e>n?n:e<0?0:e}var ji=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=Ei[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=Ai(t.r),this.g=Ai(t.g),this.b=Ai(t.b),this.a=typeof t.a==`number`?Ai(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}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){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Di(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:Di(i(`r`)),g:Di(i(`g`)),b:Di(i(`b`)),a:Di(i(`a`)*100)/100};return this._c(a)}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),n=this.a+t.a*(1-this.a),r=e=>Di((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}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=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=Di(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=Di(this.getHSLSaturation()*100),n=Di(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}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 this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=Ai(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=Di(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=Di((a+d)*255),this.g=Di((o+d)*255),this.b=Di((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=Di(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=Di(n*(1-t)*255),u=Di(n*(1-t*c)*255),d=Di(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=Oi(e,ki);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=Oi(e,ki);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=Oi(e,(e,t)=>t.includes(`%`)?Di(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},Mi=2,Ni=.16,Pi=.05,Fi=.05,Ii=.15,Li=5,Ri=4,zi=[{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 Bi(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Mi*t:Math.round(e.h)+Mi*t:n?Math.round(e.h)+Mi*t:Math.round(e.h)-Mi*t,r<0?r+=360:r>=360&&(r-=360),r}function Vi(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-Ni*t:t===Ri?e.s+Ni:e.s+Pi*t,r>1&&(r=1),n&&t===Li&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Hi(e,t,n){let r;return r=n?e.v+Fi*t:e.v-Ii*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ui(e,t={}){let n=[],r=new ji(e),i=r.toHsv();for(let e=Li;e>0;--e){let t=new ji({h:Bi(i,e,!0),s:Vi(i,e,!0),v:Hi(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=Ri;e+=1){let t=new ji({h:Bi(i,e),s:Vi(i,e),v:Hi(i,e)});n.push(t)}return t.theme===`dark`?zi.map(({index:e,amount:r})=>new ji(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var Wi={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`},Gi=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];Gi.primary=Gi[5];var Ki=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Ki.primary=Ki[5];var qi=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];qi.primary=qi[5];var Ji=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];Ji.primary=Ji[5];var Yi=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Yi.primary=Yi[5];var Xi=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];Xi.primary=Xi[5];var Zi=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Zi.primary=Zi[5];var Qi=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Qi.primary=Qi[5];var $i=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];$i.primary=$i[5];var ea=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];ea.primary=ea[5];var ta=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];ta.primary=ta[5];var na=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];na.primary=na[5];var ra=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];ra.primary=ra[5];var ia={red:Gi,volcano:Ki,orange:qi,gold:Ji,yellow:Yi,lime:Xi,green:Zi,cyan:Qi,blue:$i,geekblue:ea,purple:ta,magenta:na,grey:ra},aa=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];aa.primary=aa[5];var oa=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];oa.primary=oa[5];var sa=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];sa.primary=sa[5];var ca=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];ca.primary=ca[5];var la=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];la.primary=la[5];var ua=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];ua.primary=ua[5];var da=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];da.primary=da[5];var fa=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];fa.primary=fa[5];var pa=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];pa.primary=pa[5];var ma=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];ma.primary=ma[5];var ha=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];ha.primary=ha[5];var ga=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];ga.primary=ga[5];var _a=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];_a.primary=_a[5];function va(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new ji(p[1]).mix(new ji(p[3]),50).toHexString(),v={};return bi.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new ji(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var ya=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function ba(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...ya(r)}}var xa=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Sa=e=>{let t=Si(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ca(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var wa=(e,t)=>new ji(e).setA(t).toRgbString(),Ta=(e,t)=>new ji(e).darken(t).toHexString(),Ea=e=>{let t=Ui(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Da=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:wa(i,.88),colorTextSecondary:wa(i,.65),colorTextTertiary:wa(i,.45),colorTextQuaternary:wa(i,.25),colorFill:wa(i,.15),colorFillSecondary:wa(i,.06),colorFillTertiary:wa(i,.04),colorFillQuaternary:wa(i,.02),colorBgSolid:wa(i,1),colorBgSolidHover:wa(i,.75),colorBgSolidActive:wa(i,.95),colorBgLayout:Ta(r,4),colorBgContainer:Ta(r,0),colorBgElevated:Ta(r,0),colorBgSpotlight:wa(i,.85),colorBgBlur:`transparent`,colorBorder:Ta(r,15),colorBorderDisabled:Ta(r,15),colorBorderSecondary:Ta(r,6)}};function Oa(e){Wi.pink=Wi.magenta,ia.pink=ia.magenta;let t=Object.keys(wi).map(t=>{let n=e[t]===Wi[t]?ia[t]:Ui(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...va(e,{generateColorPalettes:Ea,generateNeutralColorPalettes:Da}),...Sa(e.fontSize),...Ca(e),...xa(e),...ba(e)}}var ka=Nt(Oa),Aa={token:Ti,override:{override:Ti},hashed:!0},ja=v.createContext(Aa);function Ma(e){return e>=0&&e<=255}function Na(e,t){let{r:n,g:r,b:i,a}=new ji(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new ji(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(Ma(t)&&Ma(a)&&Ma(l))return new ji({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new ji({r:n,g:r,b:i,a:1}).toRgbString()}function Pa(e){let{override:t,...n}=e,r={...t};Object.keys(Ti).forEach(e=>{delete r[e]});let i={...n,...r},a=new ji(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Na(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Na(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Na(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Na(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` - 0 6px 16px 0 ${s(.08)}, - 0 3px 6px -4px ${s(.12)}, - 0 9px 28px 8px ${s(.05)} - `,boxShadowSecondary:` - 0 6px 16px 0 ${s(.08)}, - 0 3px 6px -4px ${s(.12)}, - 0 9px 28px 8px ${s(.05)} - `,boxShadowTertiary:` - 0 1px 2px 0 ${s(.03)}, - 0 1px 6px -1px ${s(.02)}, - 0 2px 4px 0 ${s(.02)} - `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,boxShadowCard:` - 0 1px 2px -2px ${s(.16)}, - 0 3px 6px 0 ${s(.12)}, - 0 5px 12px 4px ${s(.09)} - `,boxShadowDrawerRight:` - -6px 0 16px 0 ${s(.08)}, - -3px 0 6px -4px ${s(.12)}, - -9px 0 28px 8px ${s(.05)} - `,boxShadowDrawerLeft:` - 6px 0 16px 0 ${s(.08)}, - 3px 0 6px -4px ${s(.12)}, - 9px 0 28px 8px ${s(.05)} - `,boxShadowDrawerUp:` - 0 6px 16px 0 ${s(.08)}, - 0 3px 6px -4px ${s(.12)}, - 0 9px 28px 8px ${s(.05)} - `,boxShadowDrawerDown:` - 0 -6px 16px 0 ${s(.08)}, - 0 -3px 6px -4px ${s(.12)}, - 0 -9px 28px 8px ${s(.05)} - `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var Fa={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},Ia={motionBase:!0,motionUnit:!0},La={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},Ra=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=Pa(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=Ra({...o,...r},{override:r},n)),o[e]=i}),o};function za(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=v.useContext(ja),{csp:o}=v.useContext($e),s={prefix:i?.prefix??`ant`,key:i?.key??`css-var-root`},c=`${Ci}-${t||``}`,l=n||ka,[u,d,f]=an(l,[Ti,e],{salt:c,override:r,getComputedToken:Ra,cssVar:{...s,unitless:Fa,ignore:Ia,preserve:La},nonce:o?.nonce});return[l,f,t?d:``,u,s,!!a]}var Ba={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},Va=(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}),Ha=()=>({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`}}),Ua=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),Wa=(e,t)=>({outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),Ga=(e,t)=>({"&:focus-visible":Wa(e,t)}),Ka=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...Ga(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),qa=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},Ja=e=>({[`.${e}`]:{...Ha(),[`.${e} .${e}-icon`]:{display:`block`}}}),Ya=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...Ga(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Xa,genComponentStyleHook:Za,genSubStyleComponent:Qa}=yi({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,v.useContext)($e);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=za();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,v.useContext)($e);return e??{}},getResetStyles:(e,t)=>{let n=Ka(e);return[n,{"&":n},Ja(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:qa,getCompUnitless:()=>Fa}),$a=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function eo(e,t){return bi.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var to=(e,t)=>{let[n,r]=za();return Dr({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>Ja(e))},no=(0,v.createContext)({});function ro(e){return e?.getRootNode?.()}function io(e){return ro(e)instanceof ShadowRoot}function ao(e){return io(e)?ro(e):null}function oo(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function so(e,t){pe(e,`[@ant-design/icons] ${t}`)}function co(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function lo(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[oo(n)]=r}return t},{})}function uo(e,t,n){return n?v.createElement(e.tag,{key:t,...lo(e.attrs),...n},(e.children||[]).map((n,r)=>uo(n,`${t}-${e.tag}-${r}`))):v.createElement(e.tag,{key:t,...lo(e.attrs)},(e.children||[]).map((n,r)=>uo(n,`${t}-${e.tag}-${r}`)))}function fo(e){return Ui(e)[0]}function po(e){return e?Array.isArray(e)?e:[e]:[]}var mo=` -.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=e=>{let{csp:t,prefixCls:n,layer:r}=(0,v.useContext)(no),i=mo;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {\n${i}\n}`),(0,v.useEffect)(()=>{let n=e.current,a=ao(n);_t(i,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:a})},[])},go={primaryColor:`#333`,secondaryColor:`#E6E6E6`,calculated:!1};function _o({primaryColor:e,secondaryColor:t}){go.primaryColor=e,go.secondaryColor=t||fo(e),go.calculated=!!t}function vo(){return{...go}}var yo=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o,...s}=e,c=v.useRef(null),l=go;if(a&&(l={primaryColor:a,secondaryColor:o||fo(a)}),ho(c),so(co(t),`icon should be icon definiton, but got ${t}`),!co(t))return null;let u=t;return u&&typeof u.icon==`function`&&(u={...u,icon:u.icon(l.primaryColor,l.secondaryColor)}),uo(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:i,"data-icon":u.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,...s,ref:c})};yo.displayName=`IconReact`,yo.getTwoToneColors=vo,yo.setTwoToneColors=_o;function bo(e){let[t,n]=po(e);return yo.setTwoToneColors({primaryColor:t,secondaryColor:n})}function xo(){let e=yo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c,...l}=e,{prefixCls:u=`anticon`,rootClassName:d}=v.useContext(no),f=G(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let m=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[h,g]=po(c);return v.createElement(`span`,So({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),v.createElement(yo,{icon:r,primaryColor:h,secondaryColor:g,style:m}))});Co.getTwoToneColor=xo,Co.setTwoToneColor=bo;var wo={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`};function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,To({},e,{ref:t,icon:wo}))),Do={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`};function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Oo({},e,{ref:t,icon:Do}))),Ao=v.createContext({}),jo=e=>{let{children:t,...n}=e,r=v.useMemo(()=>({motion:n.motion}),[n.motion]);return v.createElement(Ao.Provider,{value:r},t)};function Mo(e){let[,t]=v.useReducer(e=>e+1,0),n=v.useRef(e);return[b(()=>n.current),b(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var No=`none`,Po=`appear`,Fo=`enter`,Io=`leave`,Lo=`none`,Ro=`prepare`,zo=`start`,Bo=`active`,Vo=`prepared`;function Ho(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Uo(e,t){let n={animationend:Ho(`Animation`,`AnimationEnd`),transitionend:Ho(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var Wo=Uo(x(),typeof window<`u`?window:{}),Go={};x()&&({style:Go}=document.createElement(`div`));var Ko={};function qo(e){if(Ko[e])return Ko[e];let t=Wo[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;ie[1].toUpperCase())]:`${e}-${t}`:null}var es=(e=>{let t=(0,v.useRef)();function n(t){t&&(t.removeEventListener(Qo,e),t.removeEventListener(Zo,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Qo,e),r.addEventListener(Zo,e),t.current=r)}return v.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),ts=x()?v.useLayoutEffect:v.useEffect,ns=(()=>{let e=v.useRef(null);function t(){Xe.cancel(e.current)}function n(r,i=2){t();let a=Xe(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return v.useEffect(()=>()=>{t()},[]),[n,t]}),rs=[Ro,zo,Bo,`end`],is=[Ro,Vo];function as(e){return e===`active`||e===`end`}var os=((e,t,n)=>{let[r,i]=T(Lo),[a,o]=ns();function s(){i(Ro,!0)}let c=t?is:rs;return ts(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),v.useEffect(()=>()=>{o()},[]),[s,r]});function ss(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:y,onLeaveEnd:x,onVisibleChanged:S}){let[C,w]=v.useState(),[T,E]=Mo(No),[D,O]=v.useState([null,null]),k=T(),A=(0,v.useRef)(!1),j=(0,v.useRef)(null);function M(){return n()}let N=(0,v.useRef)(!1);function P(){E(No),O([null,null])}let F=b(e=>{let t=T();if(t===`none`)return;let n=M();if(e&&!e.deadline&&e.target!==n)return;let r=N.current,i;t===`appear`&&r?i=_?.(n,e):t===`enter`&&r?i=y?.(n,e):t===`leave`&&r&&(i=x?.(n,e)),r&&i!==!1&&P()}),[I]=es(F),L=e=>{switch(e){case Po:return{[Ro]:c,[zo]:d,[Bo]:m};case Fo:return{[Ro]:l,[zo]:f,[Bo]:h};case Io:return{[Ro]:u,[zo]:p,[Bo]:g};default:return{}}},R=v.useMemo(()=>L(k),[k]),[z,B]=os(k,!e,e=>{if(e===`prepare`){let e=R[Ro];return e?e(M()):!1}return e in R&&O([R[e]?.(M(),null)||null,e]),e===`active`&&k!==`none`&&(I(M()),o>0&&(clearTimeout(j.current),j.current=setTimeout(()=>{F({deadline:!0})},o))),e===`prepared`&&P(),!0});N.current=as(B);let V=(0,v.useRef)(null);ts(()=>{if(A.current&&V.current===t)return;w(t);let n=A.current;A.current=!0;let o;!n&&t&&i&&(o=Po),n&&t&&r&&(o=Fo),(n&&!t&&a||!n&&s&&!t&&a)&&(o=Io);let c=L(o);o&&(e||c.prepare)?(E(o),z()):E(No),V.current=t},[t]),(0,v.useEffect)(()=>{(k===`appear`&&!i||k===`enter`&&!r||k===`leave`&&!a)&&E(No)},[i,r,a]),(0,v.useEffect)(()=>()=>{A.current=!1,clearTimeout(j.current)},[]);let H=v.useRef(!1);(0,v.useEffect)(()=>{C&&(H.current=!0),C!==void 0&&k===`none`&&((H.current||C)&&S?.(C),H.current=!0)},[C,k]);let U=D[0];R.prepare&&B===`start`&&(U={transition:`none`,...U});let ee=D[1];return[T,B,U,C??t,!A.current&&k===`none`&&e&&i?`NONE`:B===`start`||B===`active`?ee===B:!0]}function cs(e){return e?.length<2}function ls(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=v.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=v.useContext(Ao),d=n(e,u),f=(0,v.useRef)();function p(){return Se(f.current)}let[m,h,g,_,y]=ss(d,r,p,e),b=m(),x=v.useRef(_);_&&(x.current=!0);let S=v.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==No},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);v.useImperativeHandle(t,()=>S,[]);let C=v.useRef(0);y&&(C.current+=1);let w=v.useMemo(()=>{if(y===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(b===`none`)e=_?o({...t},f):!i&&x.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;h===`prepare`?n=`prepare`:as(h)?n=`active`:h===`start`&&(n=`start`);let r=$o(s,`${b}-${n}`);e=o({...t,className:G($o(s,b),{[r]:r&&n,[s]:typeof s==`string`}),style:g},f)}return e},[C.current]);if(cs(o)&&V(w)){let e=H(w);if(e!==f)return v.cloneElement(w,{ref:L(e,f)})}return w});return r.displayName=`CSSMotion`,r}var us=ls(Xo),ds=`keep`,fs=`remove`,ps=`removed`;function ms(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function hs(e=[]){return e.map(ms)}function gs(e=[],t=[]){let n=[],r=0,i=t.length,a=hs(e),o=hs(t);a.forEach(e=>{let t=!1;for(let a=r;a({...e,status:`add`}))),r=a),n.push({...i,status:ds}),r+=1,t=!0;break}}t||n.push({...e,status:fs})}),r({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=ds)})}),n}function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:ps}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||v.Fragment,c={};return vs.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,v.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return v.createElement(t,_s({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),cs(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return n}ys(Xo);var bs=us,xs=`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 onError`.split(/[\s\n]+/),Ss=`aria-`,Cs=`data-`;function ws(e,t){return e.indexOf(t)===0}function Ts(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||ws(t,Ss))||n.data&&ws(t,Cs)||n.attr&&xs.includes(t))&&(r[t]=e[t])}),r}var Es={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`},Ds={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0};function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Os(e)}function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function As(e){for(var t=1;tBs.reduce((e,t)=>({...e,...t}),zs.Modal);function Hs(e){if(e){let t={...e};return Bs.push(t),Vs(),()=>{Bs=Bs.filter(e=>e!==t),Vs()}}({...zs.Modal})}var Us=(0,v.createContext)(void 0),Ws=(e,t)=>{let n=v.useContext(Us);return[v.useMemo(()=>{let r=t||zs[e],i=n?.[e]??{};return{...typeof r==`function`?r():r,...i||{}}},[e,t,n]),v.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?zs.locale:e},[n])]},Gs=`internalMark`,Ks=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;v.useEffect(()=>Hs(t?.Modal),[t]);let i=v.useMemo(()=>({...t,exist:!0}),[t]);return v.createElement(Us.Provider,{value:i},n)};function qs(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])})}),t}var Js=e=>e!=null,Ys=e=>typeof e==`number`&&!Number.isNaN(e),Xs=e=>typeof e==`string`,Zs=e=>typeof e==`object`&&!!e,Qs=e=>typeof e==`function`,$s=e=>typeof e!=`object`&&!Qs(e)||e===null,ec=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},tc={},nc=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!=`boolean`&&t!==null?t:void 0};return Zs(e)&&(n={...n,...e}),n},rc=(e,t,n)=>e===!1?!1:e?qs(n,t,e):t===!1?!1:t?qs(n,t):n.closable?n:!1,ic=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=Ts(a,!0);return Js(o)&&(r&&(o=r(o)),o=v.isValidElement(o)?v.cloneElement(o,{"aria-label":n,...o.props,...s}):v.createElement(`span`,{"aria-label":n,...s},o)),[o,s]},ac=(e,t,n=tc,r=`Close`)=>{let i=nc(e?.closable,e?.closeIcon),a=nc(t?.closable,t?.closeIcon),o={closeIcon:v.createElement(ko,null),...n},s=rc(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=ic(s,o,r);return[!0,l,c,u]},oc=(e,t,n=tc)=>{let[r]=Ws(`global`,zs.global);return v.useMemo(()=>ac(e,t,{closeIcon:v.createElement(ko,null),...n},r.close),[e,t,n,r.close])},sc=()=>v.useReducer(e=>e+1,0),cc=(e,...t)=>{let n=e||{};return t.filter(Boolean).reduce((e,t)=>(Object.keys(t||{}).forEach(r=>{let i=n[r],a=t[r];if(Zs(i))if(Zs(a))e[r]=cc(i,e[r],a);else{let{_default:t}=i;t&&(e[r]=e[r]||{},e[r][t]=G(e[r][t],a))}else e[r]=G(e[r],a)}),e),{})},lc=(e,...t)=>v.useMemo(()=>cc.apply(void 0,[e].concat(t)),[e].concat(t)),uc=(...e)=>e.filter(Boolean).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),dc=(...e)=>v.useMemo(()=>uc.apply(void 0,e),[].concat(e)),fc=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{if(e!==`_default`){let r=t[e],i=n[e]||{};n[e]=r?fc(i,r):i}}),n},pc=(e,t)=>typeof e==`function`?e(t):e,mc=(e,t,n,r)=>{let i=e.map(e=>e?pc(e,n):void 0),a=t.map(e=>e?pc(e,n):void 0),o=lc.apply(void 0,[r].concat(We(i))),s=dc.apply(void 0,We(a));return v.useMemo(()=>r?[fc(o,r),fc(s,r)]:[o,s],[o,s,r])},hc=e=>{let[t,n]=(0,v.useState)(null);return[(0,v.useCallback)((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},gc=e=>e===`horizontal`||e===`vertical`,_c=(e,t,n)=>(0,v.useMemo)(()=>{let r=gc(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:gc(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),vc=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),yc=(e,t)=>(0,v.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):vc(n,e)}),bc=e=>{let t=v.useRef(e),[,n]=sc();return[()=>t.current,e=>{t.current=e,n()}]},xc=v.createContext(void 0),Sc=100;Sc*10+Sc;var Cc={Modal:Sc,Drawer:Sc,Popover:Sc,Popconfirm:Sc,Tooltip:Sc,Tour:Sc,FloatButton:Sc},wc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Tc=e=>e in Cc,Ec=(e,t)=>{let[,n]=za(),r=v.useContext(xc),i=Tc(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+Cc[e]:o+=wc[e],a=[r===void 0?t:o,o]}return a},Dc=e=>Js(e)&&e===e.window,Oc=e=>{if(typeof window>`u`)return 0;let t=0;return Dc(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Dc(e)&&typeof t!=`number`&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function kc(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function Ac(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Oc(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=kc(t>i?i:t,o,e,i);Dc(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t{Xe.cancel(c)}}var jc=e=>`${e}-css-var`,Mc=(0,v.createContext)(void 0),Nc=v.createContext(null),Pc=!1;function Fc(e){return typeof e==`boolean`&&(Pc=e),Pc}var Ic=[];function Lc(e,t){let[n]=v.useState(()=>x()?document.createElement(`div`):null),r=v.useRef(!1),i=v.useContext(Nc),[a,o]=v.useState(Ic),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return C(()=>(e?i?i(c):c():l(),l),[e]),C(()=>{a.length&&(a.forEach(e=>e()),o(Ic))},[a]),[n,s]}var Rc;function zc(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{_t(` -#${t}::-webkit-scrollbar { -${s?`width: ${o.width};`:``} -${c?`height: ${o.height};`:``} -}`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ht(t),{width:o,height:s}}function Bc(e){return typeof document>`u`?0:((e||Rc===void 0)&&(Rc=zc()),Rc.width)}function Vc(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:zc(e)}function Hc(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Uc=`rc-util-locker-${Date.now()}`,Wc=0;function Gc(e){let t=!!e,[n]=v.useState(()=>(Wc+=1,`${Uc}_${Wc}`));C(()=>{if(t){let e=Vc(document.body).width;_t(` -html body { - overflow-y: hidden; - ${Hc()?`width: calc(100% - ${e}px);`:``} -}`,n)}else ht(n);return()=>{ht(n)}},[t,n])}function Kc(){return{...v}.useId}var qc=0;function Jc(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var Yc=Kc(),Xc=Yc?function(e){let t=Yc();return e||t}:function(e){let[t,n]=v.useState(`ssr-id`);return v.useEffect(()=>{let e=qc;qc+=1,n(`rc_unique_${e}`)},[]),e||t},Zc=[],Qc=200,$c=0,el=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-$c=0;--n)Zc[n].onEsc({top:n===t-1,event:e})}},tl=()=>{$c=Date.now()};function nl(){window.addEventListener(`keydown`,el),window.addEventListener(`compositionend`,tl)}function rl(){Zc.length===0&&(window.removeEventListener(`keydown`,el),window.removeEventListener(`compositionend`,tl))}function il(e,t){let n=Xc(),r=b(t),i=()=>{Zc.find(e=>e.id===n)||Zc.push({id:n,onEsc:r})},a=()=>{Zc=Zc.filter(e=>e.id!==n)};(0,v.useMemo)(()=>{e?i():e||a()},[e]),(0,v.useEffect)(()=>{if(e)return i(),nl(),()=>{a(),rl()}},[e])}var al=l(h()),ol=e=>e===!1?!1:!x()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,sl=v.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=v.useState(n),d=l||n;v.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=v.useState(()=>ol(i));v.useEffect(()=>{let e=ol(i);p(()=>e??null)});let[m,h]=Lc(d&&!f,a),g=f??m;Gc(r&&n&&x()&&(g===m||g===document.body)),il(n,c);let _=null;s&&z(s)&&t&&(_=H(s));let y=R(_,t);if(!d||!x()||f===void 0)return null;let b=g===!1||Fc(),S=s;return t&&(S=v.cloneElement(s,{ref:y})),v.createElement(Nc.Provider,{value:h},b?S:(0,al.createPortal)(S,g))});function cl(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=v.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return v.createElement(`div`,{ref:u,className:G(`${t}-arrow`,a),style:{...d,...s}},o)}function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(`div`,{style:{zIndex:r},className:G(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var dl=v.memo(({children:e})=>e,(e,t)=>t.cache);function fl(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:y,mobile:x,forceRender:S,getPopupContainer:w,autoDestroy:T,portal:E,children:D,zIndex:O,onMouseEnter:k,onMouseLeave:A,onPointerEnter:j,onPointerDownCapture:M,ready:N,offsetX:P,offsetY:F,offsetR:I,offsetB:R,onAlign:z,onPrepare:B,onResize:V,stretch:H,targetWidth:U,targetHeight:ee}=e,te=typeof r==`function`?r():r,W=l||u,ne=!!x,[re,ie,ae]=v.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[p,y,_],[x,p,y,_]),oe=w?.length>0,[se,ce]=v.useState(!w||!oe);C(()=>{!se&&oe&&s&&ce(!0)},[se,oe,s]);let le=b((e,t)=>{V?.(e,t),z()}),ue=fl(ne,N,l,g,I,R,P,F);if(!se)return null;let de={};return H&&(H.includes(`height`)&&ee?de.height=ee:H.includes(`minHeight`)&&ee&&(de.minHeight=ee),H.includes(`width`)&&U?de.width=U:H.includes(`minWidth`)&&U&&(de.minWidth=U)),l||(de.pointerEvents=`none`),v.createElement(E,{open:S||W,getContainer:w&&(()=>w(s)),autoDestroy:T,onEsc:n},v.createElement(ul,{prefixCls:a,open:l,zIndex:O,mask:re,motion:ie,mobile:ne}),v.createElement(Le,{onResize:le,disabled:!l},e=>v.createElement(bs,pl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${a}-hidden`},ae,{onAppearPrepare:B,onEnterPrepare:B,visible:l,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=G(a,n,i,{[`${a}-mobile`]:ne});return v.createElement(`div`,{ref:L(e,t,s),className:c,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...ue,...de,...r,boxSizing:`border-box`,zIndex:O,...o},onMouseEnter:k,onMouseLeave:A,onPointerEnter:j,onClick:f,onPointerDownCapture:M},m&&v.createElement(cl,{prefixCls:a,arrow:m,arrowPos:h,align:g}),v.createElement(dl,{cache:!l&&!d},te))})),D)}),hl=v.createContext(null),gl=v.createContext(null);function _l(e){return e?Array.isArray(e)?e:[e]:[]}function vl(e,t,n){return v.useMemo(()=>{let r=_l(t??e),i=_l(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}var yl=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function bl(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function xl(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;nr.includes(e))&&t.push(n),n=n.parentElement}return t}function wl(e,t=1){return Number.isNaN(e)?t:e}function Tl(e){return wl(parseFloat(e),0)}function El(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=Sl(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Tl(i),m=Tl(a),h=Tl(o),g=Tl(s),_=wl(Math.round(c.width/d*1e3)/1e3),v=wl(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=Tl(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function Dl(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Ol(e,t){let[n,r]=t||[];return[Dl(e.width,n),Dl(e.height,r)]}function kl(e=``){return[e[0],e[1]]}function Al(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function jl(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Ml(e){return e.join(``)}function Nl(e,t,n,r,i,a,o,s){let[c,l]=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=v.useRef(0),d=v.useMemo(()=>!t||s?[]:Cl(t),[t]),f=v.useRef({});e||(f.current={});let p=b(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=Sl(e),{position:u}=c.getComputedStyle(e),p=e.style.left,m=e.style.top,h=e.style.right,g=e.style.bottom,_=e.style.overflow,v={...i[r],...a},y=s.createElement(`div`);e.parentElement?.appendChild(y),y.style.left=`${e.offsetLeft}px`,y.style.top=`${e.offsetTop}px`,y.style.position=u,y.style.height=`${e.offsetHeight}px`,y.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let b;if(Array.isArray(n))b={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,b={x:e.x,y:e.y,width:e.width,height:e.height}}let x=e.getBoundingClientRect(),{height:S,width:C}=c.getComputedStyle(e);x.x=x.x??x.left,x.y=x.y??x.top;let{clientWidth:w,clientHeight:T,scrollWidth:E,scrollHeight:D,scrollTop:O,scrollLeft:k}=s.documentElement,A=x.height,j=x.width,M=b.height,N=b.width,P={left:0,top:0,right:w,bottom:T},F={left:-k,top:-O,right:E-k,bottom:D-O},{htmlRegion:I}=v,L=`visible`,R=`visibleFirst`;I!==`scroll`&&I!==R&&(I=L);let z=I===R,B=El(F,d),V=El(P,d),H=I===L?V:B,U=z?V:H;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let ee=e.getBoundingClientRect();e.style.left=p,e.style.top=m,e.style.right=h,e.style.bottom=g,e.style.overflow=_,e.parentElement?.removeChild(y);let te=wl(Math.round(j/parseFloat(C)*1e3)/1e3),W=wl(Math.round(A/parseFloat(S)*1e3)/1e3);if(te===0||W===0||xe(n)&&!yl(n))return;let{offset:ne,targetOffset:re}=v,[ie,ae]=Ol(x,ne),[oe,se]=Ol(b,re);b.x-=oe,b.y-=se;let[ce,le]=v.points||[],ue=kl(le),de=kl(ce),fe=Al(b,ue),pe=Al(x,de),me={...v},he=[de,ue],ge=fe.x-pe.x+ie,_e=fe.y-pe.y+ae;function ve(e,t,n=H){let r=x.x+e,i=x.y+t,a=r+j,o=i+A,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let ye=ve(ge,_e),be=ve(ge,_e,V),Se=Al(b,[`t`,`l`]),Ce=Al(x,[`t`,`l`]),we=Al(b,[`b`,`r`]),Te=Al(x,[`b`,`r`]),{adjustX:Ee,adjustY:De,shiftX:Oe,shiftY:ke}=v.overflow||{},Ae=e=>typeof e==`boolean`?e:e>=0,je,Me,Ne,Pe;function Fe(){je=x.y+_e,Me=je+A,Ne=x.x+ge,Pe=Ne+j}Fe();let Ie=Ae(De),Le=de[0]===ue[0];if(Ie&&de[0]===`t`&&(Me>U.bottom||f.current.bt)){let e=_e;Le?e-=A-M:e=Se.y-Te.y-ae;let t=ve(ge,e),n=ve(ge,e,V);t>ye||t===ye&&(!z||n>=be)?(f.current.bt=!0,_e=e,ae=-ae,he=[jl(he[0],0),jl(he[1],0)]):f.current.bt=!1}if(Ie&&de[0]===`b`&&(jeye||t===ye&&(!z||n>=be)?(f.current.tb=!0,_e=e,ae=-ae,he=[jl(he[0],0),jl(he[1],0)]):f.current.tb=!1}let Re=Ae(Ee),G=de[1]===ue[1];if(Re&&de[1]===`l`&&(Pe>U.right||f.current.rl)){let e=ge;G?e-=j-N:e=Se.x-Te.x-ie;let t=ve(e,_e),n=ve(e,_e,V);t>ye||t===ye&&(!z||n>=be)?(f.current.rl=!0,ge=e,ie=-ie,he=[jl(he[0],1),jl(he[1],1)]):f.current.rl=!1}if(Re&&de[1]===`r`&&(Neye||t===ye&&(!z||n>=be)?(f.current.lr=!0,ge=e,ie=-ie,he=[jl(he[0],1),jl(he[1],1)]):f.current.lr=!1}me.points=[Ml(he[0]),Ml(he[1])],Fe();let ze=Oe===!0?0:Oe;typeof ze==`number`&&(NeV.right&&(ge-=Pe-V.right-ie,b.x>V.right-ze&&(ge+=b.x-V.right+ze)));let Be=ke===!0?0:ke;typeof Be==`number`&&(jeV.bottom&&(_e-=Me-V.bottom-ae,b.y>V.bottom-Be&&(_e+=b.y-V.bottom+Be)));let Ve=x.x+ge,He=Ve+j,Ue=x.y+_e,We=Ue+A,Ge=b.x,Ke=Ge+N,qe=b.y,Je=qe+M,Ye=(Math.max(Ve,Ge)+Math.min(He,Ke))/2-Ve,Xe=(Math.max(Ue,qe)+Math.min(We,Je))/2-Ue;o?.(t,me);let Ze=ee.right-x.x-(ge+x.width),Qe=ee.bottom-x.y-(_e+x.height);te===1&&(ge=Math.floor(ge),Ze=Math.floor(Ze)),W===1&&(_e=Math.floor(_e),Qe=Math.floor(Qe)),l({ready:!0,offsetX:ge/te,offsetY:_e/W,offsetR:Ze/te,offsetB:Qe/W,arrowX:Ye/te,arrowY:Xe/W,scaleX:te,scaleY:W,align:me})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>({...e,ready:!1}))};return C(h,[r]),C(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function Pl(){let e=v.useRef(null),t=()=>{e.current&&=(clearTimeout(e.current),null)};return v.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Fl(e,t,n,r,i){C(()=>{if(e&&t&&n){let e=t,a=n,o=Cl(e),s=Cl(a),c=Sl(a),l=new Set([c,...o,...s]);function u(){r(),i()}return l.forEach(e=>{e.addEventListener(`scroll`,u,{passive:!0})}),c.addEventListener(`resize`,u,{passive:!0}),r(),()=>{l.forEach(e=>{e.removeEventListener(`scroll`,u),c.removeEventListener(`resize`,u)})}}},[e,t,n])}function Il(e,t,n,r,i,a,o,s){let c=v.useRef(e);c.current=e;let l=v.useRef(!1);v.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=Sl(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=ao(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function Ll(){let[e,t]=v.useState(null),[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null);return[b(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,b(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=v.useState(!1),y=fl(n,r,i,a,o,s,c,l),b=v.useRef(y);r&&(b.current=y);let x={};return d&&(x.width=d.width,x.height=d.height),v.createElement(bs,Rl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=G(h,e,p,{[`${h}-visible`]:g});return v.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...b.current,...x,...t,...m}})})},Bl=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=Ll(),o=v.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=v.useState(null),[l,u]=v.useState(null),d=v.useRef(null),f=b(e=>{d.current=e,xe(e)&&s!==e&&c(e)}),p=v.useRef(null),m=Pl(),h=b((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),g=e=>{m(()=>{p.current?.()||n(!1)},e)},_=b(e=>{a(e)}),[y,x,S,C,w,T,E,,,D,O]=Nl(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),k=v.useMemo(()=>o?G(xl(o.builtinPlacements||{},o.prefixCls||``,D,!1),o.getPopupClassNameFromAlign?.(D)):``,[D,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),A=v.useMemo(()=>({show:h,hide:g}),[]);v.useEffect(()=>{O()},[o?.target]);let j=b(()=>(O(),Promise.resolve())),M=v.useRef({}),N=v.useContext(hl),P=v.useMemo(()=>({registerSubPopup:(e,t)=>{M.current[e]=t,N?.registerSubPopup(e,t)}}),[N]),F=o?.prefixCls;return v.createElement(gl.Provider,{value:A},e,o&&v.createElement(hl.Provider,{value:P},v.createElement(ml,{ref:f,portal:sl,onEsc:o.onEsc,prefixCls:F,popup:o.popup,className:G(o.popupClassName,k,`${F}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:y,offsetX:x,offsetY:S,offsetR:C,offsetB:w,onAlign:O,onPrepare:j,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:T,y:E},align:D,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},v.createElement(zl,{prefixCls:F,isMobile:!1,ready:y,open:r,align:D,offsetR:C,offsetB:w,offsetX:x,offsetY:S,arrowPos:{x:T,y:E},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:G(o.uniqueContainerClassName,k),uniqueContainerStyle:o.uniqueContainerStyle}))))};function Vl(e=sl){return v.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:m,mouseLeaveDelay:h=.1,focusDelay:g,blurDelay:_,mask:y,maskClosable:x=!0,getPopupContainer:S,forceRender:w,autoDestroy:T,popup:D,popupClassName:O,uniqueContainerClassName:k,uniqueContainerStyle:A,popupStyle:j,popupPlacement:M,builtinPlacements:N={},popupAlign:P,zIndex:F,stretch:I,getPopupClassNameFromAlign:L,fresh:z,unique:B,alignPoint:V,onPopupClick:U,onPopupAlign:ee,arrow:te,popupMotion:W,maskMotion:ne,mobile:re,...ie}=t,ae=T||!1,oe=c===void 0,se=!!re,ce=v.useRef({}),le=v.useContext(hl),ue=v.useMemo(()=>({registerSubPopup:(e,t)=>{ce.current[e]=t,le?.registerSubPopup(e,t)}}),[le]),de=v.useContext(gl),fe=Xc(),[pe,me]=v.useState(null),he=v.useRef(null),ge=b(e=>{he.current=e,xe(e)&&pe!==e&&me(e),le?.registerSubPopup(fe,e)}),[_e,ve]=v.useState(null),ye=v.useRef(null),be=b(e=>{let t=Se(e);xe(t)&&_e!==t&&(ve(t),ye.current=t)}),Ce={},we=b(e=>{let t=_e;return t?.contains(e)||ao(t)?.host===e||e===t||pe?.contains(e)||ao(pe)?.host===e||e===pe||Object.values(ce.current).some(t=>t?.contains(e)||e===t)}),Te=te?{...te===!0?{}:te}:null,[Ee,De]=E(l||!1,c),Oe=Ee||!1,ke=v.useMemo(()=>{let e=typeof i==`function`?i({open:Oe}):i;return v.Children.only(e)},[i,Oe]),Ae=ke?.props||{},Me=b(()=>Oe),Ne=b((e=0)=>({popup:D,target:_e,delay:e,prefixCls:r,popupClassName:O,uniqueContainerClassName:k,uniqueContainerStyle:A,popupStyle:j,popupPlacement:M,builtinPlacements:N,popupAlign:P,zIndex:F,mask:y,maskClosable:x,popupMotion:W,maskMotion:ne,arrow:Te,getPopupContainer:S,getPopupClassNameFromAlign:L,id:fe,onEsc:Re}));C(()=>{de&&B&&_e&&!oe&&!le&&(Oe?de.show(Ne(m),Me):de.hide(h))},[Oe,_e]);let Pe=v.useRef(Oe);Pe.current=Oe;let Fe=b(e=>{(0,al.flushSync)(()=>{Oe!==e&&(De(e),u?.(e),f?.(e))})}),Ie=Pl(),Le=(e,t=0)=>{if(c!==void 0){Ie(()=>{Fe(e)},t);return}if(de&&B&&oe&&!le){e?de.show(Ne(t),Me):de.hide(t);return}Ie(()=>{Fe(e)},t)};function Re({top:e}){e&&Le(!1)}let[ze,Be]=v.useState(!1);C(e=>{(!e||Oe)&&Be(!0)},[Oe]);let[Ve,He]=v.useState(null),[Ue,We]=v.useState(null),Ge=e=>{We([e.clientX,e.clientY])},[Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt]=Nl(Oe,pe,V&&Ue!==null?Ue:_e,M,N,P,ee,se),[rt,it]=vl(a,o,s),at=rt.has(`click`),ot=it.has(`click`)||it.has(`contextMenu`),st=b(()=>{ze||nt()});Fl(Oe,_e,pe,st,()=>{Pe.current&&V&&ot&&Le(!1)}),C(()=>{st()},[Ue,M]),C(()=>{Oe&&!N?.[M]&&st()},[JSON.stringify(P)]);let ct=v.useMemo(()=>G(xl(N,r,tt,V),L?.(tt)),[tt,L,N,r,V]);v.useImperativeHandle(n,()=>({nativeElement:ye.current,popupElement:he.current,forceAlign:st}));let[lt,ut]=v.useState(0),[dt,ft]=v.useState(0),pt=()=>{if(I&&_e){let e=_e.getBoundingClientRect();ut(e.width),ft(e.height)}},mt=()=>{pt(),st()},ht=e=>{Be(!1),nt(),d?.(e),p?.(e)},gt=()=>new Promise(e=>{pt(),He(()=>e)});C(()=>{Ve&&(nt(),Ve(),He(null))},[Ve]);function _t(e,t,n,r,i){Ce[e]=(a,...o)=>{(!i||!i())&&(r?.(a),Le(t,n)),Ae[e]?.(a,...o)}}let vt=rt.has(`touch`),yt=it.has(`touch`),bt=v.useRef(!1);(vt||yt)&&(Ce.onTouchStart=(...e)=>{bt.current=!0,Pe.current&&yt?Le(!1):!Pe.current&&vt&&Le(!0),Ae.onTouchStart?.(...e)}),(at||ot)&&(Ce.onClick=(e,...t)=>{Pe.current&&ot?Le(!1):!Pe.current&&at&&(Ge(e),Le(!0)),Ae.onClick?.(e,...t),bt.current=!1});let xt=Il(Oe,ot||yt,_e,pe,y,x,we,Le),St=rt.has(`hover`),Ct=it.has(`hover`),wt,Tt,Et=()=>bt.current;if(St){let e=e=>{Ge(e)};_t(`onMouseEnter`,!0,m,e,Et),_t(`onPointerEnter`,!0,m,e,Et),wt=e=>{(Oe||ze)&&pe?.contains(e.target)&&Le(!0,m)},V&&(Ce.onMouseMove=e=>{Ae.onMouseMove?.(e)})}Ct&&(_t(`onMouseLeave`,!1,h,void 0,Et),_t(`onPointerLeave`,!1,h,void 0,Et),Tt=()=>{Le(!1,h)}),rt.has(`focus`)&&_t(`onFocus`,!0,g),it.has(`focus`)&&_t(`onBlur`,!1,_),rt.has(`contextMenu`)&&(Ce.onContextMenu=(e,...t)=>{Pe.current&&it.has(`contextMenu`)?Le(!1):(Ge(e),Le(!0)),e.preventDefault(),Ae.onContextMenu?.(e,...t)});let Dt=v.useRef(!1);Dt.current||=w||Oe||ze;let Ot={...Ae,...Ce},kt={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{ie[e]&&(kt[e]=(...t)=>{Ot[e]?.(...t),ie[e](...t)})});let At={x:Ze,y:Qe};je(Oe,_e,mt);let jt=R(be,H(ke)),Mt=v.cloneElement(ke,{...Ot,...kt,ref:jt});return v.createElement(v.Fragment,null,Mt,Dt.current&&(!de||!B)&&v.createElement(hl.Provider,{value:ue},v.createElement(ml,{portal:e,ref:ge,prefixCls:r,popup:D,className:G(O,!se&&ct),style:j,target:_e,onMouseEnter:wt,onMouseLeave:Tt,onPointerEnter:wt,zIndex:F,open:Oe,keepDom:ze,fresh:z,onClick:U,onPointerDownCapture:xt,mask:y,motion:W,maskMotion:ne,onVisibleChanged:ht,onPrepare:gt,forceRender:w,autoDestroy:ae,getPopupContainer:S,onEsc:Re,align:tt,arrow:Te,arrowPos:At,ready:Ke,offsetX:qe,offsetY:Je,offsetR:Ye,offsetB:Xe,onAlign:st,stretch:I,targetWidth:lt/$e,targetHeight:dt/et,mobile:re})))})}var Hl=Vl(sl);function Ul(e){return e&&v.isValidElement(e)&&e.type===v.Fragment}var Wl=(e,t,n)=>v.isValidElement(e)?v.cloneElement(e,Qs(n)?n(e.props||{}):n):t;function Gl(e,t){return Wl(e,e,t)}var Kl=({children:e})=>{let{getPrefixCls:t}=v.useContext($e),n=t();return v.isValidElement(e)?v.createElement(bs,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>Gl(e,e=>({className:G(e.className,n),style:{...e.style,...t}}))):e},ql=[null,null];function Jl(e){if(ql[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),ql[0]=e,ql[1]=t}return ql[1]}var Yl=({children:e})=>v.createElement(Bl,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=typeof r==`function`?r():r,a=Jl(n);return{...e,getPopupContainer:null,arrow:!1,popup:v.createElement(Kl,{key:t},i),builtinPlacements:a}}},e),Xl=v.createContext(!1),Zl=({children:e,disabled:t})=>{let n=v.useContext(Xl);return v.createElement(Xl.Provider,{value:t??n},e)},Ql=v.createContext(void 0),$l=({children:e,size:t})=>{let n=v.useContext(Ql);return v.createElement(Ql.Provider,{value:t||n},e)};function eu(){return{componentDisabled:(0,v.useContext)(Xl),componentSize:(0,v.useContext)(Ql)}}function tu(e,t,n){be(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...Aa,hashed:t?.hashed??Aa.hashed,cssVar:t?.cssVar}:t,a=(0,v.useId)();return k(()=>{if(!e)return t;let o={...i.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});let s=`css-var-${a.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||s};return{...i,...r,token:{...i.token,...r.token},components:o,cssVar:c}},[r,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!vt(e,r,!0)}))}var nu=v.createContext(!0);function ru(e){let t=v.useContext(nu),{children:n}=e,[,r]=za(),{motion:i}=r,a=v.useRef(!1);return a.current||=t!==i,a.current?v.createElement(nu.Provider,{value:i},v.createElement(jo,{motion:i},n)):n}var iu=()=>null,au=({iconPrefixCls:e,csp:t})=>(to(e,t),null),ou=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],su=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;`holderRender`in e},cu=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:y,parentContext:b,iconPrefixCls:x,theme:S,componentDisabled:C,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:A,collapse:j,typography:M,checkbox:N,descriptions:P,divider:F,drawer:I,skeleton:L,steps:R,image:z,layout:B,list:V,mentions:H,modal:U,progress:ee,result:te,slider:W,breadcrumb:ne,masonry:re,menu:ie,pagination:oe,input:se,textArea:ce,otp:le,empty:ue,badge:de,radio:fe,rate:pe,ribbon:me,switch:he,transfer:ge,avatar:_e,message:ve,tag:be,table:xe,card:Se,cardMeta:Ce,tabs:we,timeline:Te,timePicker:Ee,upload:De,notification:Oe,tree:ke,colorPicker:Ae,datePicker:je,rangePicker:Me,flex:Ne,wave:Pe,dropdown:Fe,warning:Ie,tour:Le,tooltip:Re,popover:G,popconfirm:ze,qrcode:Be,floatButton:Ve,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ge,watermark:Ke}=e,qe=v.useMemo(()=>Zs(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),Je=v.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||b.getPrefixCls(``);return t?`${i}-${t}`:i},[b.getPrefixCls,e.prefixCls]),Ye=x||b.iconPrefixCls||`anticon`,Xe=n||b.csp,Ze=tu(S,b.theme,{prefixCls:Je(``)}),Qe={csp:Xe,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:qe||y,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:_,getPrefixCls:Je,iconPrefixCls:Ye,theme:Ze,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:A,collapse:j,typography:M,checkbox:N,descriptions:P,divider:F,drawer:I,skeleton:L,steps:R,image:z,input:se,textArea:ce,otp:le,layout:B,list:V,mentions:H,modal:U,progress:ee,result:te,slider:W,breadcrumb:ne,masonry:re,menu:ie,pagination:oe,empty:ue,badge:de,radio:fe,rate:pe,ribbon:me,switch:he,transfer:ge,avatar:_e,message:ve,tag:be,table:xe,card:Se,cardMeta:Ce,tabs:we,timeline:Te,timePicker:Ee,upload:De,notification:Oe,tree:ke,colorPicker:Ae,datePicker:je,rangePicker:Me,flex:Ne,wave:Pe,dropdown:Fe,warning:Ie,tour:Le,tooltip:Re,popover:G,popconfirm:ze,qrcode:Be,floatButton:Ve,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ge,watermark:Ke},et={...b};Object.keys(Qe).forEach(e=>{Qe[e]!==void 0&&(et[e]=Qe[e])}),ou.forEach(t=>{let n=e[t];n&&(et[t]=n)}),r!==void 0&&(et.button={autoInsertSpace:r,...et.button});let tt=k(()=>et,et,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:nt}=v.useContext(Dt),rt=v.useMemo(()=>({prefixCls:Ye,csp:Xe,layer:nt?`antd`:void 0}),[Ye,Xe,nt]),it=v.createElement(v.Fragment,null,v.createElement(au,{iconPrefixCls:Ye,csp:Xe}),v.createElement(iu,{dropdownMatchSelectWidth:h}),t),at=v.useMemo(()=>ae(zs.Form?.defaultValidateMessages||{},tt.locale?.Form?.defaultValidateMessages||{},tt.form?.validateMessages||{},c?.validateMessages||{}),[tt,c?.validateMessages]);Object.keys(at).length>0&&(it=v.createElement(Mc.Provider,{value:at},it)),qe&&(it=v.createElement(Ks,{locale:qe,_ANT_MARK__:Gs},it)),(Ye||Xe)&&(it=v.createElement(no.Provider,{value:rt},it)),u&&(it=v.createElement($l,{size:u},it)),it=v.createElement(ru,null,it),Re?.unique&&(it=v.createElement(Yl,null,it));let ot=v.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=Ze||{},a=e&&(!Array.isArray(e)||e.length>0)?Nt(e):ka,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||typeof n.algorithm==`function`)&&(n.theme=Nt(n.algorithm)),delete n.algorithm),o[e]=n});let s={...Ti,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[Ze]);return S&&(it=v.createElement(ja.Provider,{value:ot},it)),tt.warning&&(it=v.createElement(ye.Provider,{value:tt.warning},it)),C!==void 0&&(it=v.createElement(Zl,{disabled:C},it)),v.createElement($e.Provider,{value:tt},it)},lu=e=>{let t=v.useContext($e),n=v.useContext(Us);return v.createElement(cu,{parentContext:t,legacyLocale:n,...e})};lu.ConfigContext=$e,lu.SizeContext=Ql,lu.config=su,lu.useConfig=eu,Object.defineProperty(lu,`SizeContext`,{get:()=>Ql});var uu={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){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=uu.F1&&t<=uu.F12)return!1;switch(t){case uu.ALT:case uu.CAPS_LOCK:case uu.CONTEXT_MENU:case uu.CTRL:case uu.DOWN:case uu.END:case uu.ESC:case uu.HOME:case uu.INSERT:case uu.LEFT:case uu.MAC_FF_META:case uu.META:case uu.NUMLOCK:case uu.NUM_CENTER:case uu.PAGE_DOWN:case uu.PAGE_UP:case uu.PAUSE:case uu.PRINT_SCREEN:case uu.RIGHT:case uu.SHIFT:case uu.UP:case uu.WIN_KEY:case uu.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=uu.ZERO&&e<=uu.NINE||e>=uu.NUM_ZERO&&e<=uu.NUM_MULTIPLY||e>=uu.A&&e<=uu.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case uu.SPACE:case uu.QUESTION_MARK:case uu.NUM_PLUS:case uu.NUM_MINUS:case uu.NUM_PERIOD:case uu.NUM_DIVISION:case uu.SEMICOLON:case uu.DASH:case uu.EQUALS:case uu.COMMA:case uu.PERIOD:case uu.SLASH:case uu.APOSTROPHE:case uu.SINGLE_QUOTE:case uu.OPEN_SQUARE_BRACKET:case uu.BACKSLASH:case uu.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let n=t.tagName;return!!(n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.isContentEditable)}},du={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`};function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,fu({},e,{ref:t,icon:du}))),mu=`__rc_react_root__`;function hu(e,t){let n=t[mu]||(0,y.createRoot)(t);n.render(e),t[mu]=n}async function gu(e){return Promise.resolve().then(()=>{e[mu]?.unmount(),delete e[mu]})}var _u=()=>({height:0,opacity:0}),vu=e=>({height:e?.scrollHeight??0,opacity:+!!e}),yu=e=>({height:e?.offsetHeight??0}),bu=e=>Zs(e)&&`propertyName`in e,xu=(e,t)=>t?.deadline===!0||(bu(t)?t.propertyName===`height`:!1),Su=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:_u,onEnterStart:_u,onAppearActive:vu,onEnterActive:vu,onLeaveStart:yu,onLeaveActive:_u,onAppearEnd:xu,onEnterEnd:xu,onLeaveEnd:xu,motionDeadline:500}),Cu=(e,t,n)=>n===void 0?`${e}-${t}`:n,wu=Za(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=$a(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),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} ${r} ${i}`).join(`,`)}}}}}),Tu=`ant-wave-target`;function Eu(e){return e&&typeof e==`string`&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!==`transparent`&&e!==`canvastext`}function Du(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&Eu(n[t])?n[t]:[r,i,a].find(Eu)??null}function Ou(e){return Number.isNaN(e)?0:e}var ku=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=v.useRef(null),{getPrefixCls:o}=v.useContext($e),[s]=$a(o(),`wave`),[c,l]=v.useState(null),[u,d]=v.useState([]),[f,p]=v.useState(0),[m,h]=v.useState(0),[g,_]=v.useState(0),[y,b]=v.useState(0),[x,S]=v.useState(!1),C={left:f,top:m,width:g,height:y,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(Du(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Ou(-Number.parseFloat(r))),h(t?n.offsetTop:Ou(-Number.parseFloat(a))),_(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>Ou(Number.parseFloat(e))))}if(v.useEffect(()=>{if(n){let e=Xe(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{Xe.cancel(e),t?.disconnect()}}},[n]),!x)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Tu);return v.createElement(bs,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||t.propertyName===`opacity`){let e=a.current?.parentElement;gu(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>v.createElement(`div`,{ref:L(a,n),className:G(t,e,{"wave-quick":T}),style:C}))},Au=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),hu(v.createElement(ku,{...t,target:e}),r)},ju=(e,t,n,r)=>{let{wave:i}=v.useContext($e),[,a,o]=za(),s=b(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Tu}`)||c,{showEffect:u}=i||{};(u||Au)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=v.useRef(null);return v.useEffect(()=>()=>{Xe.cancel(c.current)},[]),e=>{Xe.cancel(c.current),c.current=Xe(()=>{s(e)})}},Mu=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a}=(0,v.useContext)($e),o=(0,v.useRef)(null),s=a(`wave`),c=ju(o,G(s,wu(s)),r,i);return v.useEffect(()=>{let e=o.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!yl(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||c(t)};return e.addEventListener(`click`,t,!0),()=>{e.removeEventListener(`click`,t,!0)}},[n]),v.isValidElement(t)?Gl(t,{ref:z(t)?L(H(t),o):o}):t??null},Nu=e=>{let t=v.useContext(Ql);return v.useMemo(()=>e?typeof e==`string`?e??t:typeof e==`function`?e(t):t:t,[e,t])},Pu=Xa([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),Fu=v.createContext(null),Iu=(e,t)=>{let n=v.useContext(Fu),r=v.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return G(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Lu=e=>{let{children:t}=e;return v.createElement(Fu.Provider,{value:null},t)},Ru=e=>{let{children:t,...n}=e;return v.createElement(Fu.Provider,{value:v.useMemo(()=>n,[n])},t)},zu=e=>{let{getPrefixCls:t,direction:n}=v.useContext($e),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,m]=_c(a,d,i),h=Nu(e=>r??e),g=t(`space-compact`,s),[_]=Pu(g),y=G(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),b=v.useContext(Fu),x=ge(u),S=v.useMemo(()=>x.map((e,t)=>{let n=e?.key||`${g}-item-${t}`;return v.createElement(Ru,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!b||b?.isFirstItem),isLastItem:t===x.length-1&&(!b||b?.isLastItem)},e)}),[x,b,p,h,g]);return x.length===0?null:v.createElement(`div`,{className:y,...f},S)},Bu=v.createContext(void 0),Vu=e=>{let{getPrefixCls:t,direction:n}=v.useContext($e),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=za(),l=v.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=G(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return v.createElement(Bu.Provider,{value:i},v.createElement(`div`,{...o,className:u}))},Hu=/^[\u4E00-\u9FA5]{2}$/,Uu=Hu.test.bind(Hu);function Wu(e){return e===`text`||e===`link`}function Gu(e,t,n,r){if(!Js(e)||e===``)return;let i=t?` `:``;return typeof e!=`string`&&typeof e!=`number`&&Xs(e.type)&&Uu(e.props.children)?Gl(e,e=>{let t=G(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):Xs(e)?v.createElement(`span`,{className:r,style:n},Uu(e)?e.split(``).join(i):e):Ul(e)?v.createElement(`span`,{className:r,style:n},e):Gl(e,e=>({...e,className:G(e.className,r)||void 0,style:{...e.style,...n}}))}function Ku(e,t,n,r){let i=!1,a=[];return v.Children.forEach(e,e=>{let t=typeof e,n=t===`string`||t===`number`;if(i&&n){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=n}),v.Children.map(a,e=>Gu(e,t,n,r))}[`default`,`primary`,`danger`].concat(We(bi));var qu=(0,v.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=G(`${a}-icon`,n);return v.createElement(`span`,{ref:t,className:o,style:r},i)}),Ju=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=G(`${n}-loading-icon`,r);return v.createElement(qu,{prefixCls:n,className:o,style:i,ref:t},v.createElement(pu,{className:a}))}),Yu=()=>({width:0,opacity:0,transform:`scale(0)`}),Xu=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Zu=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?v.createElement(Ju,{prefixCls:t,className:i,style:a}):v.createElement(bs,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:Xu,onEnterStart:Yu,onEnterActive:Xu,onLeaveStart:Xu,onLeaveActive:Yu},({className:e,style:n},r)=>{let o={...a,...n};return v.createElement(Ju,{prefixCls:t,className:G(i,e),style:o,ref:r})})},Qu=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},$u=e=>({animationDuration:e,animationFillMode:`both`}),ed=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[` - ${a}${e}-enter, - ${a}${e}-appear - `]:{...$u(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...$u(r),animationPlayState:`paused`},[` - ${a}${e}-enter${e}-enter-active, - ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},td=new Ar(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),nd=new Ar(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),rd=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[ed(r,td,nd,e.motionDurationMid,t),{[` - ${i}${r}-enter, - ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},id=new Ar(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ad=new Ar(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),od=new Ar(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),sd=new Ar(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),cd=new Ar(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ld=new Ar(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),ud={"move-up":{inKeyframes:new Ar(`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 Ar(`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:id,outKeyframes:ad},"move-left":{inKeyframes:od,outKeyframes:sd},"move-right":{inKeyframes:cd,outKeyframes:ld}},dd=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=ud[t];return[ed(r,i,a,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},fd=new Ar(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),pd=new Ar(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),md=new Ar(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),hd=new Ar(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),gd=new Ar(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),_d=new Ar(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),vd=new Ar(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),yd=new Ar(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),bd={"slide-up":{inKeyframes:fd,outKeyframes:pd},"slide-down":{inKeyframes:md,outKeyframes:hd},"slide-left":{inKeyframes:gd,outKeyframes:_d},"slide-right":{inKeyframes:vd,outKeyframes:yd}},xd=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=bd[t];return[ed(r,i,a,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Sd=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Cd=new Ar(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),wd=new Ar(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Td=new Ar(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Ed=new Ar(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Dd=new Ar(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Od=new Ar(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),kd=new Ar(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Ad=new Ar(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),jd=new Ar(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Md=new Ar(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Nd=new Ar(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Pd=new Ar(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Fd={zoom:{inKeyframes:Cd,outKeyframes:wd},"zoom-big":{inKeyframes:Td,outKeyframes:Ed},"zoom-big-fast":{inKeyframes:Td,outKeyframes:Ed},"zoom-left":{inKeyframes:kd,outKeyframes:Ad},"zoom-right":{inKeyframes:jd,outKeyframes:Md},"zoom-up":{inKeyframes:Dd,outKeyframes:Od},"zoom-down":{inKeyframes:Nd,outKeyframes:Pd}},Id=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Fd[t];return[ed(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ld=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Rd=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ld(`${t}-primary`,i),Ld(`${t}-danger`,a)]}},zd=e=>Math.round(Number(e||0)),Bd=e=>{if(e instanceof ji)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Vd=class extends ji{constructor(e){super(Bd(e))}toHsbString(){let e=this.toHsb(),t=zd(e.s*100),n=zd(e.b*100),r=zd(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof Vd?e:new Vd(e))(`#1677ff`);var Hd=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Ud=(e,t)=>e?Hd(e,t):``,Wd=function(){function e(t){if(Hr(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Vd(this.colors[0].color.metaColor)):this.metaColor=new Vd(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Wr(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Ud(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Gd={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`};function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Kd({},e,{ref:t,icon:Gd})));function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;te instanceof Wd?e:new Wd(e),Xd=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Vd(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Zd=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return li(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Qd=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??xi(t),a=e.contentLineHeightSM??xi(n),o=e.contentLineHeightLG??xi(r),s=Xd(new Wd(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=bi.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${K(e.controlOutlineWidth)} 0 ${Na(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},$d=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=$a(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},bi.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},ef=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...Sd(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:Ha(),"> a":{color:`currentColor`},"&:not(:disabled)":Ga(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},tf=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),nf=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${K(c)} ${K(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:tf(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},rf=e=>nf(li(e,{fontSize:e.contentFontSize}),e.componentCls),af=e=>nf(li(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),of=e=>nf(li(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),sf=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},cf=Xa(`Button`,e=>{let t=Zd(e);return[ef(t),rf(t),af(t),of(t),sf(t),$d(t),Rd(t)]},Qd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function lf(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=[`hover`,a?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${s}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[c]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function uf(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function df(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...lf(e,a,t,i),...uf(i,a,t)}}}function ff(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function pf(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function mf(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...ff(e,t,e.componentCls),...pf(e.componentCls,t)}}}var hf=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=$a(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},gf=Qa([`Button`,`compact`],e=>{let t=Zd(e);return[df(t),mf(t),hf(t)]},Qd);function _f(e){if(Zs(e)){let t=e?.delay;return t=Ys(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var vf={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},yf=v.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,iconPosition:g,iconPlacement:_,ghost:y=!1,block:b=!1,htmlType:x=`button`,classNames:S,styles:w,style:T,autoInsertSpace:E,autoFocus:D,...O}=e,k=ge(m),A=s||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:L,loadingIcon:z,shape:B,color:V,variant:H}=nt(`button`),U=l||B||`default`,[ee,te]=(0,v.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=vf[A]||[];return c?[`danger`,e[1]]:e}return V&&H?[V,H]:[`default`,`outlined`]},[a,o,s,c,V,H,A]),[W,ne]=(0,v.useMemo)(()=>y&&te===`solid`?[ee,`outlined`]:[ee,te],[ee,te,y]),re=W===`danger`,ie=re?`dangerous`:W,ae=E??N??!0,oe=j(`btn`,i),[se,ce]=cf(oe),le=(0,v.useContext)(Xl),ue=d??le,de=(0,v.useContext)(Bu),fe=(0,v.useMemo)(()=>_f(r),[r]),[pe,me]=(0,v.useState)(fe.loading),[_e,ve]=(0,v.useState)(!1),ye=(0,v.useRef)(null),be=R(t,ye),xe=k.length===1&&!h&&!Wu(ne),Se=(0,v.useRef)(!0);v.useEffect(()=>(Se.current=!1,()=>{Se.current=!0}),[]),C(()=>{let e=null;fe.delay>0?e=setTimeout(()=>{e=null,me(!0)},fe.delay):me(fe.loading);function t(){e&&=(clearTimeout(e),null)}return t},[fe.delay,fe.loading]),(0,v.useEffect)(()=>{if(!ye.current||!ae)return;let e=ye.current.textContent||``;xe&&Uu(e)?_e||ve(!0):_e&&ve(!1)}),(0,v.useEffect)(()=>{D&&ye.current&&ye.current.focus()},[]);let Ce=v.useCallback(t=>{if(pe||ue){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,pe,ue]),{compactSize:we,compactItemClassnames:Te}=Iu(oe,M),Ee=Nu(e=>u??we??de??e),De=pe?`loading`:h,Oe=_??g??`start`,ke=he(O,[`navigate`]),Ae={...e,type:A,color:W,variant:ne,danger:re,shape:U,size:Ee,disabled:ue,loading:pe,iconPlacement:Oe},[je,Me]=mc([n?void 0:I,S],[n?void 0:L,w],{props:Ae}),Ne=G(oe,se,ce,{[`${oe}-${U}`]:U!==`default`&&U!==`square`&&U,[`${oe}-${A}`]:A,[`${oe}-dangerous`]:c,[`${oe}-color-${ie}`]:ie,[`${oe}-variant-${ne}`]:ne,[`${oe}-lg`]:Ee===`large`,[`${oe}-sm`]:Ee===`small`,[`${oe}-icon-only`]:!m&&m!==0&&!!De,[`${oe}-background-ghost`]:y&&!Wu(ne),[`${oe}-loading`]:pe,[`${oe}-two-chinese-chars`]:_e&&ae&&!pe,[`${oe}-block`]:b,[`${oe}-rtl`]:M===`rtl`,[`${oe}-icon-end`]:Oe===`end`},Te,f,p,P,je.root),Pe={...Me.root,...F,...T},Fe={className:je.icon,style:Me.icon},Ie=e=>v.createElement(qu,{prefixCls:oe,...Fe},e),Le=v.createElement(Zu,{existIcon:!!h,prefixCls:oe,loading:pe,mount:Se.current,...Fe}),Re=Zs(r)&&r.icon||z,ze;ze=h&&!pe?Ie(h):r&&Re?Ie(Re):Le;let Be=Js(m)?Ku(m,xe&&ae,Me.content,je.content):null;if(ke.href!==void 0)return v.createElement(`a`,{...ke,className:G(Ne,{[`${oe}-disabled`]:ue}),href:ue?void 0:ke.href,style:Pe,onClick:Ce,ref:be,tabIndex:ue?-1:0,"aria-disabled":ue},ze,Be);let Ve=v.createElement(`button`,{...O,type:x,className:Ne,style:Pe,onClick:Ce,disabled:ue,ref:be},ze,Be,Te&&v.createElement(gf,{prefixCls:oe}));return Wu(ne)||(Ve=v.createElement(Mu,{component:`Button`,disabled:pe},Ve)),Ve});yf.Group=Vu,yf.__ANT_BUTTON=!0;function bf(e,t=!1){if(yl(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function xf(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>bf(e,t));return bf(e,t)&&n.unshift(e),n}function Sf(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var Cf=`RC_FORM_INTERNAL_HOOKS`,wf=()=>{pe(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},Tf=v.createContext({getFieldValue:wf,getFieldsValue:wf,getFieldError:wf,getFieldWarning:wf,getFieldsError:wf,isFieldsTouched:wf,isFieldTouched:wf,isFieldValidating:wf,isFieldsValidating:wf,resetFields:wf,setFields:wf,setFieldValue:wf,setFieldsValue:wf,validateFields:wf,submit:wf,getInternalHooks:()=>(wf(),{dispatch:wf,initEntityValue:wf,registerField:wf,useSubscribe:wf,setInitialValues:wf,destroyForm:wf,setCallbacks:wf,registerWatch:wf,getFields:wf,setValidateMessages:wf,setPreserve:wf,getInitialValue:wf})}),Ef=v.createContext(null);function Df(e){return e==null?[]:Array.isArray(e)?e:[e]}function Of(e){return e&&!!e._init}function kf(){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:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Af=kf();function jf(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Mf(e,t,n){if(Yr())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Kr(i,n.prototype),i}function Nf(e){var t=typeof Map==`function`?new Map:void 0;return Nf=function(e){if(e===null||!jf(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Mf(e,arguments,Jr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Kr(n,e)},Nf(e)}var Pf=/%[sdj%]/g,Ff=function(){};function If(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Lf(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Pf,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Rf(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function zf(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Rf(t)&&typeof e==`string`&&!e)}function Bf(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,We(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function Vf(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,se.max?r.push(Lf(i.messages[u].max,e.fullField,e.max)):o&&s&&(le.max)&&r.push(Lf(i.messages[u].range,e.fullField,e.min,e.max))},$f=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||zf(t,a||e.type))&&r.push(Lf(i.messages.required,e.fullField))},ep,tp=(function(){if(ep)return ep;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|\$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.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"]*)?`;return ep=RegExp(`(?:^${l}\$)`,`i`),ep}),np={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},rp={integer:function(e){return rp.number(e)&&parseInt(e,10)===e},float:function(e){return rp.number(e)&&!rp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return Mr(e)===`object`&&!rp.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(np.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(np.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(tp())},hex:function(e){return typeof e==`string`&&!!e.match(np.hex)}},ip={required:$f,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(Lf(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){$f(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?rp[o](t)||r.push(Lf(i.messages.types[o],e.fullField,e.type)):o&&Mr(t)!==e.type&&r.push(Lf(i.messages.types[o],e.fullField,e.type))},range:Qf,enum:Xf,pattern:Zf},ap=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i)}n(a)},op=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();ip.required(e,t,r,a,i,`array`),t!=null&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},sp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip.type(e,t,r,a,i)}n(a)},cp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,`date`)&&!e.required)return n();if(ip.required(e,t,r,a,i),!zf(t,`date`)){var o=t instanceof Date?t:new Date(t);ip.type(e,o,r,a,i),o&&ip.range(e,o.getTime(),r,a,i)}}n(a)},lp=`enum`,up=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip[lp](e,t,r,a,i)}n(a)},dp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},fp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},pp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip.type(e,t,r,a,i)}n(a)},mp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},hp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip.type(e,t,r,a,i)}n(a)},gp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,`string`)&&!e.required)return n();ip.required(e,t,r,a,i),zf(t,`string`)||ip.pattern(e,t,r,a,i)}n(a)},_p=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),zf(t)||ip.type(e,t,r,a,i)}n(a)},vp=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:Mr(t);ip.required(e,t,r,a,i,o),n(a)},yp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,`string`)&&!e.required)return n();ip.required(e,t,r,a,i,`string`),zf(t,`string`)||(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i),ip.pattern(e,t,r,a,i),e.whitespace===!0&&ip.whitespace(e,t,r,a,i))}n(a)},bp=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,a)&&!e.required)return n();ip.required(e,t,r,o,i,a),zf(t,a)||ip.type(e,t,r,o,i)}n(o)},xp={string:yp,method:pp,number:mp,boolean:sp,regexp:_p,integer:fp,float:dp,array:op,object:hp,enum:up,pattern:gp,date:cp,url:bp,hex:bp,email:bp,tel:bp,required:vp,any:ap},Sp=function(){function e(t){Hr(this,e),zr(this,`rules`,null),zr(this,`_messages`,Af),this.define(t)}return Wr(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(Mr(e)!==`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:`messages`,value:function(e){return e&&(this._messages=Jf(kf(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,s=i;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,We(e))}else t.push(e)}for(var i=0;i0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(c)?c:[c];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(qf(r,a));if(o.first&&u.length)return d[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,Lf(o.messages.required,r.field))]):u=[].concat(r.message).map(qf(r,a)),n(u);var f={};r.defaultField&&Object.keys(t.value).map(function(e){f[e]=r.defaultField}),f=Vr(Vr({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e];p[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,We(u)),e&&e.length&&t.push.apply(t,We(e)),n(t.length?t:null)})}}var l;if(r.asyncValidator)l=r.asyncValidator(r,t.value,c,t.source,o);else if(r.validator){try{l=r.validator(r,t.value,c,t.source,o)}catch(e){var u,f;(u=(f=console).error)==null||u.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}l===!0?c():l===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):l instanceof Array?c(l):l instanceof Error&&c(l.message)}l&&l.then&&l.then(function(){return c()},function(e){return c(e)})},function(e){c(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!xp.hasOwnProperty(e.type))throw Error(Lf(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?xp.required:xp[this.getType(e)]||void 0}}]),e}();zr(Sp,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);xp[e]=t}),zr(Sp,`warning`,Ff),zr(Sp,`messages`,Af),zr(Sp,`validators`,xp);var Cp="'${name}' is not a valid ${type}",wp={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:Cp,method:Cp,array:Cp,object:Cp,number:Cp,date:Cp,boolean:Cp,integer:Cp,float:Cp,regexp:Cp,email:Cp,tel:Cp,url:Cp,hex:Cp},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}"}},Tp=Sp;function Ep(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Dp=`CODE_LOGIC_ERROR`;async function Op(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Tp.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Dp)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Tp({[e]:[a]}),c=ae(wp,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===Dp?c.default:e;return v.isValidElement(n)?v.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>Op(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?Ep(e,u):e)}function kp(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{pe(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,pe(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;eOp(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?jp(e):Ap(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function Ap(e){return Promise.all(e).then(e=>[].concat(...e))}async function jp(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function Mp(e){return Df(e)}function Np(e,t){let n={};return t.forEach(t=>{let r=U(e,t);n=te(n,t,r)}),n}function Pp(e,t,n=!1){return e&&e.some(e=>Fp(t,e,n))}function Fp(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function Ip(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function Lp(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function Rp(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var zp=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Bp=class{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(e=>{this.namePathList.every(t=>!Fp(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;zp(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function Vp(){return new Promise(e=>{zp(()=>{Xe(()=>{e()})})})}function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Mp(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};vt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&Pp(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!vt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Up,this.warnings=Wp,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Up,this.warnings=Wp,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&Gp(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||Up),`warnings`in i&&(this.warnings=i.warnings||Wp),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Pp(t,s,!0)){this.reRender();return}if(r&&!s.length&&Gp(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Mp).some(e=>Pp(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&Gp(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await Vp();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?Df(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=kp(t,n,l,e,i,s);return u.catch(e=>e).then((e=Up)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=Up})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=Up,this.warnings=Wp,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Cf);return t(this.getNamePath())!==void 0};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:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=ge(e);return t.length!==1||!v.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return U(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(Cf),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):Lp(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},Df(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:v.isValidElement(n)?i=v.cloneElement(n,this.getControlled(n.props)):(pe(!n,"`children` of Field is not validate ReactElement."),i=n),v.createElement(v.Fragment,{key:e},i)}};function qp({name:e,...t}){let n=v.useContext(Tf),r=v.useContext(Ef),i=e===void 0?void 0:Mp(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),v.createElement(Kp,Hp({key:o,name:i,isListField:a},t,{fieldContext:n}))}function eee({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=v.useContext(Tf),s=v.useContext(Ef),c=v.useRef({keys:[],id:0}).current,l=v.useMemo(()=>[...Mp(o.prefixName)||[],...Mp(e)],[o.prefixName,e]),u=v.useMemo(()=>({...o,prefixName:l}),[o,l]),d=v.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?v.createElement(Ef.Provider,{value:d},v.createElement(Tf.Provider,{value:u},v.createElement(qp,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=Rp(c.keys,e,n),t(Rp(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(pe(!1,`Form.List only accepts function as children.`),null)}function Jp(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Yp=`__@field_split__`;function Xp(e){return e.map(e=>`${typeof e}:${e}`).join(Yp)}var Zp=class{kvs=new Map;set(e,t){this.kvs.set(Xp(e),t)}get(e){return this.kvs.get(Xp(e))}getAsPrefix(e){let t=Xp(e),n=t+Yp,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Xp(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(Yp).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},tee=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Bp(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===`RC_FORM_INTERNAL_HOOKS`?(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}):(pe(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=ae(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=te(t,n,U(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new Zp;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=U(this.initialValues,e);return e.length?ae(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 t=new Zp;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=Mp(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Mp(e);return n.get(t)||{INVALIDATE_NAME_PATH:Mp(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=Np(this.store,a.map(Mp));return o.forEach(e=>{U(s,e)||(s=te(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=Mp(e);return U(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Mp(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=Mp(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=Mp(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(Mp),i=!1):(r=null,i=t):(r=t.map(Mp),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new Zp;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(Mp);return t.some(e=>Pp(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new Zp,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)pe(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)pe(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(te(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(ae(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Mp);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(te(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Mp(r);n.push(a),`value`in i&&this.updateStore(te(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,`originRCField`,{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();U(this.store,n)===void 0&&this.updateStore(te(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!Fp(e.getNamePath(),t))){let n=this.store;this.updateStore(te(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=Mp(e),r=this.store;this.updateStore(te(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Np(this.store,[n]);a(e,te(this.getFieldsValue(),n,U(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=ae(this.store,e);this.updateStore(t)}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 t=new Set,n=[],r=new Zp;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Mp(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new Zp;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>Pp(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(Mp):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>Fp(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||Pp(a,t,u))){let n=e.validateRules({validateMessages:{...wp,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Jp(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function Qp(e){let t=v.useRef(null),[,n]=v.useState({});return t.current||(e?t.current=e:t.current=new tee(()=>{n({})}).getForm()),[t.current]}var $p=v.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),nee=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=v.useContext($p),a=v.useRef({});return v.createElement($p.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let g=v.useRef(null),_=v.useContext($p),[y]=Qp(r),{useSubscribe:b,setInitialValues:x,setCallbacks:S,setValidateMessages:C,setPreserve:w,destroyForm:T}=y.getInternalHooks(Cf);v.useImperativeHandle(h,()=>({...y,nativeElement:g.current})),v.useEffect(()=>(_.registerForm(e,y),()=>{_.unregisterForm(e)}),[_,y,e]),C({..._.validateMessages,...s}),S({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),w(i);let E=v.useRef(null);x(t,!E.current),E.current||=!0,v.useEffect(()=>()=>T(p),[]);let D,O=typeof a==`function`;D=O?a(y.getFieldsValue(!0),y):a,b(!O);let k=v.useRef(null);v.useEffect(()=>{Ip(k.current||[],n||[])||y.setFields(n||[]),k.current=n},[n,y]);let A=v.useMemo(()=>({...y,validateTrigger:c}),[y,c]),j=v.createElement(Ef.Provider,{value:null},v.createElement(Tf.Provider,{value:A},D));return o===!1?j:v.createElement(o,em({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),m.onReset?.(e)}}),j)};function tm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function iee(...e){let[t,n={}]=e,r=Of(n)?{form:n}:n,i=r.form,[a,o]=(0,v.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,v.useMemo)(()=>tm(a),[a]),c=(0,v.useRef)(s);c.current=s;let l=(0,v.useContext)(Tf),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(Cf),h=b((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):U(i,Mp(t));tm(a)!==tm(s)&&o(s)});return(0,v.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,v.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var nm=v.forwardRef(ree);nm.FormProvider=nee,nm.Field=qp,nm.List=eee,nm.useForm=Qp,nm.useWatch=iee;var rm=v.createContext({}),aee=({children:e,status:t,override:n})=>{let r=v.useContext(rm),i=v.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return v.createElement(rm.Provider,{value:i},e)},oee=v.createContext(void 0),im=e=>{let{space:t,form:n,children:r}=e;if(!Js(r))return null;let i=r;return n&&(i=v.createElement(aee,{override:!0,status:!0},i)),t&&(i=v.createElement(Lu,null,i)),i},am=e=>{if(x()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},see=(e,t)=>{if(!am(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function om(e,t){return!Array.isArray(e)&&t!==void 0?see(e,t):am(e)}var sm=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=G({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=G({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=v.useMemo(()=>Ys(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return v.createElement(`span`,{className:G(t,o,s,n),style:{...c,...r}})},cee=new Ar(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),cm=e=>({height:e,lineHeight:K(e)}),lm=e=>({width:e,...cm(e)}),lee=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:cee,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),um=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...cm(e)}),uee=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...lm(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...lm(i)},[`${t}${t}-sm`]:{...lm(a)}}},dee=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...um(t,s)},[`${r}-lg`]:{...um(i,s)},[`${r}-sm`]:{...um(a,s)}}},dm=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...lm(i(r).mul(2).equal())}},fee=e=>({[e.skeletonNodeCls]:{...dm(e)}}),pee=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...dm(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...lm(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},fm=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},pm=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...cm(e)}),mee=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...pm(r,s)},...fm(e,r,n),[`${n}-lg`]:{...pm(i,s)},...fm(e,i,`${n}-lg`),[`${n}-sm`]:{...pm(a,s)},...fm(e,a,`${n}-sm`)}},hee=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...lm(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...lm(u)},[`${n}-sm`]:{...lm(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...mee(e),...uee(e),...dee(e),...fee(e),...pee(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[` - ${r}, - ${i} > li, - ${n}, - ${a}, - ${o}, - ${s}, - ${c} - `]:{...lee(e)}}}},mm=Xa(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return hee(li(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(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=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),gee=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=v.useContext($e),f=d(`skeleton`,t),[p,m]=mm(f),h=Nu(e=>l??e),g=G(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(sm,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},_ee=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=v.useContext($e),f=d(`skeleton`,t),[p,m]=mm(f),h=Nu(e=>l??e),g=G(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(sm,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},hm=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=v.useContext($e),d=u(`skeleton`,t),[f,p]=mm(d),m=G(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return v.createElement(`div`,{className:m,style:s?.root},v.createElement(`div`,{className:G(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},vee=e=>{let{getPrefixCls:t}=v.useContext($e),n=t(`skeleton`,e.prefixCls);return v.createElement(hm,{...e,internalClassName:`${n}-image`},v.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},v.createElement(`title`,null,`Image placeholder`),v.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:`${n}-image-path`})))},yee=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=v.useContext($e),f=d(`skeleton`,t),[p,m]=mm(f),h=Nu(e=>l??e),g=G(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:c?.root},v.createElement(sm,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},bee=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},xee=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>v.createElement(`li`,{key:n,style:{width:bee(n,e)}}));return v.createElement(`ul`,{className:G(t,n),style:r},a)},See=({prefixCls:e,className:t,width:n,style:r})=>v.createElement(`h3`,{className:G(e,t),style:{width:n,...r}});function gm(e){return Zs(e)?e:{}}function Cee(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function wee(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function Tee(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var _m=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:y,styles:b}=nt(`skeleton`),x=m(`skeleton`,t),[S,C]=mm(x),w={...e,avatar:l,title:u,paragraph:d},[T,E]=mc([y,a],[b,s],{props:w});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:T.avatar,prefixCls:`${x}-avatar`,...Cee(t,n),...gm(l),style:E.avatar};a=v.createElement(`div`,{className:G(T.header,`${x}-header`),style:E.header},v.createElement(sm,{...e}))}let s;if(t||n){let r;if(t){let t={className:T.title,prefixCls:`${x}-title`,...wee(e,n),...gm(u),style:E.title};r=v.createElement(See,{...t})}let i;if(n){let n={className:T.paragraph,prefixCls:`${x}-paragraph`,...Tee(e,t),...gm(d),style:E.paragraph};i=v.createElement(xee,{...n})}s=v.createElement(`div`,{className:G(T.section,`${x}-section`),style:E.section},r,i)}let c=G(x,{[`${x}-with-avatar`]:e,[`${x}-active`]:f,[`${x}-rtl`]:h===`rtl`,[`${x}-round`]:p},T.root,g,r,i,S,C);return v.createElement(`div`,{className:c,style:{...E.root,..._,...o}},a,s)}return c??null};_m.Button=_ee,_m.Avatar=gee,_m.Input=yee,_m.Image=vee,_m.Node=hm;var vm=_m;function Eee(e){return t=>v.createElement(lu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,{...t}))}var ym=(e,t,n,r,i)=>Eee(a=>{let{prefixCls:o,style:s}=a,c=v.useRef(null),[l,u]=v.useState(0),[d,f]=v.useState(0),[p,m]=E(!1,a.open),{getPrefixCls:h}=v.useContext($e),g=h(r||`select`,o);v.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return v.createElement(`div`,{ref:c,style:y},v.createElement(e,{..._}))}),Dee=(e,t,n,r,i=!1,a,o)=>{let s=(0,v.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,v.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},bm=v.createContext(null);function xm(){return v.useContext(bm)}function Oee(e=250){let t=v.useRef(null),n=v.useRef(null);v.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Sm(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function kee(e,t,n,r){let i=b(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!Sm(e(),a)&&n(!1)});v.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},jee=v.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:y,onPopupVisibleChange:b,onPopupMouseEnter:x,onPopupMouseDown:S,onPopupBlur:C,...w}=e,T=`${n}-dropdown`,E=o;h&&(E=h(o));let D=v.useMemo(()=>p||Aee(m),[p,m]),O=s?`${T}-${s}`:c,k=typeof m==`number`,A=v.useMemo(()=>k?null:m===!1?`minWidth`:`width`,[m,k]),j=l;k&&(j={...l,width:m});let M=v.useRef(null);return v.useImperativeHandle(t,()=>({getPopupElement:()=>M.current?.popupElement})),v.createElement(Hl,Cm({},w,{showAction:b?[`click`]:[],hideAction:b?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:T,popupMotion:{motionName:O},popup:v.createElement(`div`,{onMouseEnter:x,onMouseDown:S,onBlur:C},E),ref:M,stretch:A,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:G(u,{[`${T}-empty`]:y}),popupStyle:j,onPopupVisibleChange:b}),a)});function wm(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function Tm(e){return e!==void 0&&!Number.isNaN(e)}function Em(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function Mee(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Em(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:wm(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:wm(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function Dm(e){let t={...e};return`props`in t||Object.defineProperty(t,`props`,{get(){return pe(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Nee=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function Pee(e){let{visible:t,values:n}=e;return t?v.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var Fee=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Om=(e,t=1)=>{if(t<=0){e();return}Fee(()=>{Om(e,t-1)})};function Iee(e,t,n,r){let[i,a]=(0,v.useState)(!1);(0,v.useEffect)(()=>{a(!0)},[]);let[o,s]=E(e,t),[c,l]=(0,v.useState)(!1),u=i?o:!1,d=r(u),f=(0,v.useRef)(0),p=b(e=>{n&&d!==e&&n(e),s(e)});return[u,d,b((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():Om(()=>{a()})}),c]}function km(e){let{children:t,...n}=e;return t?v.createElement(`div`,n,t):null}var Am=v.createContext(null);function jm(){return v.useContext(Am)}var Mm=v.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:y,components:{input:b=`input`}}=jm(),{id:x,classNames:S,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=xm()||{},k=G(`${d}-input`,S?.input,c),A=v.useRef(!1),j=v.useRef(null),M=v.useRef(null);v.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(_&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&m&&m(n),r?.(e)},F=e=>{h?.(),i?.(e)},I=()=>{A.current=!0},R=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},z=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[B,V]=v.useState(void 0);C(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;V(t),e.style.width=``}},[o,s]);let H={id:x,type:f===`combobox`?`text`:`search`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":B},autoFocus:g,autoComplete:l||`off`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:z,onCompositionStart:I,onCompositionEnd:R,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${x}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${x}_list`:void 0,"aria-activedescendant":T?E:void 0};if(v.isValidElement(b)){let t=b.props||{},n={placeholder:e.placeholder||y,...H,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),H[e]?.(...t)})}),n.ref=L(b.ref,H.ref),v.cloneElement(b,n)}let U=b;return v.createElement(U,H)});function Nm(e){let{prefixCls:t,placeholder:n,displayValues:r}=jm(),{classNames:i,styles:a}=xm(),{show:o=!0}=e;return r.length?null:v.createElement(`div`,{className:G(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var Pm=v.createContext(null);function Fm(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Im(e){return e!=null}function Lee(e){return!e&&e!==0}function Lm(e){return[`string`,`number`].includes(typeof e)}function Rm(e){let t;return e&&(Lm(e.title)?t=e.title.toString():Lm(e.label)&&(t=e.label.toString())),t}function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=jm(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=xm(),m=v.useContext(Pm),[h,g]=v.useState(!1),_=s===`combobox`,y=a[0],b=v.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[x,S,C,w]=v.useMemo(()=>{let e,t,n;if(y&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===y.value);r?.data&&(e=r.data.className,t=r.data.style,n=Rm(r.data))}return y&&!n&&(n=Rm(y)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[y,m?.flattenOptions,u]);v.useEffect(()=>{_&&g(!1)},[_,i]);let T=y&&y.label!==null&&y.label!==void 0&&String(y.label).trim()!==``,E=_&&c?.input?null:y?w?v.createElement(`div`,{className:G(`${n}-content-value`,x),style:{...b?{visibility:`hidden`}:{},...S},title:C},y.label):y.label:v.createElement(Nm,{show:!b});return v.createElement(`div`,{className:G(`${n}-content`,T&&`${n}-content-has-value`,b&&`${n}-content-has-search-value`,w&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:w?void 0:C},E,v.createElement(Mm,zm({ref:t},e,{value:b,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),Bm=void 0;function zee(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function y(e){c(l,e)}v.useEffect(()=>()=>{y(null)},[]);let b=a&&i!==Bm?a(i,{index:m}):f,x;r||(x={opacity:+!_,height:_?0:Bm,overflowY:_?`hidden`:Bm,order:o?m:Bm,pointerEvents:_?`none`:Bm,position:_?`absolute`:Bm});let S={};_&&(S[`aria-hidden`]=!0);let C=v.createElement(h,Jd({className:G(!r&&n,u),style:{...x,...d}},S,g,{ref:t}),b);return o&&(C=v.createElement(Le,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},C)),C}var Vm=v.forwardRef(zee);function Bee(e){if(typeof MessageChannel>`u`)Xe(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Vee(){let e=v.useRef(null);return t=>{e.current||(e.current=[],Bee(()=>{(0,al.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Hm(e,t){let[n,r]=v.useState(t);return[n,b(t=>{e(()=>{r(t)})})]}var Um=v.createContext(null),Hee=v.forwardRef((e,t)=>{let n=v.useContext(Um);if(!n){let{component:n=`div`,...r}=e;return v.createElement(n,Jd({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return v.createElement(Um.Provider,{value:null},v.createElement(Vm,Jd({ref:t,className:G(r,a)},i,o)))}),Wm=`responsive`,Gm=`invalidate`;function Uee(e){return`+ ${e.length} ...`}function Wee(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:y,...b}=e,x=c===`full`,S=Vee(),[w,T]=Hm(S,null),E=w||0,[D,O]=Hm(S,new Map),[k,A]=Hm(S,0),[j,M]=Hm(S,0),[N,P]=Hm(S,0),[F,I]=Hm(S,0),[L,R]=(0,v.useState)(null),[z,B]=(0,v.useState)(null),V=v.useMemo(()=>z===null&&x?2**53-1:z||0,[z,w]),[H,U]=(0,v.useState)(!1),ee=`${n}-item`,te=Math.max(k,j),W=d===Wm,ne=r.length&&W,re=d===Gm,ie=ne||typeof d==`number`&&r.length>d,ae=(0,v.useMemo)(()=>{let e=r;return ne?e=w===null&&x?r:r.slice(0,Math.min(r.length,E/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,w,d,ne]),oe=(0,v.useMemo)(()=>ne?r.slice(V+1):r.slice(ae.length),[r,ae,ne,V]),se=(0,v.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ce=(0,v.useCallback)(i||(e=>e),[i]);function le(e,t,n){z===e&&(t===void 0||t===L)||(B(e),n||(U(e{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function fe(e,t){M(t),A(j)}function pe(e,t){P(t)}function me(e,t){I(t)}function he(e){return D.get(se(ae[e],e))}C(()=>{if(E&&typeof te==`number`&&ae){let e=N+F,t=ae.length,n=t-1;if(!t){le(0,null);return}for(let r=0;rE){le(r-1,e-t-F+j);break}}h&&he(0)+F>E&&R(null)}},[E,D,j,N,F,se,ae]);let ge=H&&!!oe.length,_e={};L!==null&&ne&&(_e={position:`absolute`,top:0,insetInlineStart:L});let ve={prefixCls:ee,responsive:ne,component:_,invalidate:re},ye=a?(e,t)=>{let n=se(e,t);return v.createElement(Um.Provider,{key:n,value:{...ve,order:t,item:e,itemKey:n,registerSize:de,display:t<=V}},a(e,t))}:(e,t)=>{let n=se(e,t);return v.createElement(Vm,Jd({},ve,{order:t,key:n,item:e,renderItem:ce,itemKey:n,registerSize:de,display:t<=V}))},be={order:ge?V:2**53-1,className:`${ee}-rest`,registerSize:fe,display:ge},xe=f||Uee,Se=p?v.createElement(Um.Provider,{value:{...ve,...be}},p(oe)):v.createElement(Vm,Jd({},ve,be),typeof xe==`function`?xe(oe):xe),Ce=v.createElement(g,Jd({className:G(!re&&n,u),style:l,ref:t},b),m&&v.createElement(Vm,Jd({},ve,{responsive:W,responsiveDisabled:!ne,order:-1,className:`${ee}-prefix`,registerSize:pe,display:!0}),m),ae.map(ye),ie?Se:null,h&&v.createElement(Vm,Jd({},ve,{responsive:W,responsiveDisabled:!ne,order:V,className:`${ee}-suffix`,registerSize:me,display:!0,style:_e}),h));return W?v.createElement(Le,{onResize:ue,disabled:!ne},Ce):Ce}var Km=v.forwardRef(Wee);Km.Item=Hee,Km.RESPONSIVE=Wm,Km.INVALIDATE=Gm;var qm=Km,Jm=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return v.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?v.createElement(`span`,{className:G(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation()},Kee=v.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=jm(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:y,styles:b}=xm(),x=`${n}-selection-item`,S=i;!d&&a===`multiple`&&p!==!1&&(S=``);let C=l&&S||``,w=l&&!c,T=s??`×`,E=h??(e=>`+ ${e.length} ...`),D=m,O=e=>{f(e)},k=e=>{o?.(e)},A=(e,t,n,r,i)=>v.createElement(`span`,{title:Rm(e),className:G(x,{[`${x}-disabled`]:n},y?.item),style:b?.item},v.createElement(`span`,{className:G(`${x}-content`,y?.itemContent),style:b?.itemContent},t),r&&v.createElement(Jm,{className:G(`${x}-remove`,y?.itemRemove),style:b?.itemRemove,onMouseDown:Xm,onClick:i,customizeIcon:T},`×`)),j=(e,t,n,r,i,a,o)=>v.createElement(`span`,{onMouseDown:e=>{Xm(e),O(!u)}},D({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return v.createElement(qm,{prefixCls:`${n}-content`,className:y?.content,style:b?.content,prefix:!r.length&&!C&&v.createElement(Nm,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),k(e)};return typeof D==`function`?j(i,o,n,a,s,void 0,t):A(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof E==`function`?E(e):E;return typeof D==`function`?j(void 0,t,!1,!1,void 0,!0):A({title:t},t,!1)},suffix:v.createElement(Mm,Ym({ref:t,disabled:c,readOnly:!w},e,{value:C||``,syncWidth:!0})),itemKey:Gee,maxCount:_})}),qee=v.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=jm(),a=xm(),{showSearch:o}=a,s={...Ts(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?v.createElement(Kee,{ref:t,inputProps:s}):v.createElement(Ree,{ref:t,inputProps:s})});function Zm(e){return e&&![uu.ESC,uu.SHIFT,uu.BACKSPACE,uu.TAB,uu.WIN_KEY,uu.ALT,uu.META,uu.WIN_KEY_RIGHT,uu.CTRL,uu.SEMICOLON,uu.EQUALS,uu.CAPS_LOCK,uu.CONTEXT_MENU,uu.UP,uu.LEFT,uu.RIGHT,uu.F1,uu.F2,uu.F3,uu.F4,uu.F5,uu.F6,uu.F7,uu.F8,uu.F9,uu.F10,uu.F11,uu.F12].includes(e)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===uu.UP||t===uu.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[uu.UP,uu.DOWN,uu.LEFT,uu.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Zm(t)&&k(!0)});v.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:Se(F.current)}));let z=b(e=>{if(!j){let t=Se(I.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&k(!1):(I.current?.focus(),r||k())}x?.(e)}),{root:B}=E,V=he(D,$m),H=Ts(V,{aria:!0}),U=Object.keys(H),ee={...e,onInputKeyDown:R};if(B){let e=B.props||{},t={...e,...V};return Object.keys(e).forEach(n=>{let r=e[n],i=V[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),v.isValidElement(B)?v.cloneElement(B,{...t,ref:L(B.ref,F)}):v.createElement(B,Qm({},t,{ref:F}))}return v.createElement(Am.Provider,{value:ee},v.createElement(`div`,Qm({},he(V,U),{ref:F,className:r,style:i,onMouseDown:z}),v.createElement(km,{className:G(`${n}-prefix`,N?.prefix),style:P?.prefix},a),v.createElement(qee,{ref:I}),v.createElement(km,{className:G(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&v.createElement(km,{className:G(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function th(e,t,n){return v.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;te===`tags`||e===`multiple`,ih=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:y,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:ee,popupStyle:te,popupClassName:W,popupMatchSelectWidth:ne,popupRender:re,popupAlign:ie,placement:ae,builtinPlacements:oe,getPopupContainer:se,showAction:ce=[],onFocus:le,onBlur:ue,onKeyUp:de,onKeyDown:fe,onMouseDown:pe,components:me,...he}=e,ge=rh(x),_e=v.useRef(null),ve=v.useRef(null),ye=v.useRef(null),[be,xe]=v.useState(!1);v.useImperativeHandle(t,()=>({focus:_e.current?.focus,blur:_e.current?.blur,scrollTo:e=>ye.current?.scrollTo(e),nativeElement:Se(_e.current)}));let Ce=th(me,w,T),we=v.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),Te=x===`combobox`&&typeof w==`function`&&w()||null,Ee=!h&&m,[De,Oe,ke,Ae]=Iee(D||!1,E,O,e=>S||Ee?!1:e),je=v.useMemo(()=>(I||[]).some(e=>[` -`,`\r -`].includes(e)),[I]),Me=(e,t,n)=>{if(ge&&Tm(_)&&f.length>=_)return;let r=!0,i=e;A?.(null);let a=Nee(e,I,Tm(_)?_-f.length:void 0),o=n?null:a;return x!==`combobox`&&o&&(i=``,F?.(o),ke(!1),r=!1),P&&we!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&ke(!0),r},Ne=e=>{!e||!e.trim()||P(e,{source:`submit`})};v.useEffect(()=>{!De&&!ge&&x!==`combobox`&&Me(``,!1,!1)},[De]),v.useEffect(()=>{S&&(ke(!1),xe(!1))},[S,Oe]);let[Pe,Fe]=Oee(),Ie=v.useRef(!1),Le=e=>{let t=Pe(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Oe||ke(!0)}if(Fe(!!we),n===`Backspace`&&!t&&ge&&!we&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}Oe&&(!r||!Ie.current)&&!i&&(r&&(Ie.current=!0),ye.current?.onKeyDown(e)),fe?.(e)},Re=(e,...t)=>{Oe&&ye.current?.onKeyUp(e,...t),e.key===`Enter`&&(Ie.current=!1),de?.(e,...t)},ze=b(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Be=()=>{Ie.current=!1},Ve=()=>[Se(_e.current),ve.current?.getPopupElement()];kee(Ve,Oe,ke,!!Ce.root);let He=v.useRef(!1),Ue=e=>{xe(!0),S||(ce.includes(`focus`)&&ke(!0),le?.(e))},We=()=>{Oe&&!He.current&&ke(!1,{cancelFun:()=>Sm(Ve(),document.activeElement)})},Ge=e=>{xe(!1),we&&(x===`tags`?P(we,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),We(),S||ue?.(e)},Ke=(e,...t)=>{let{target:n}=e;(ve.current?.getPopupElement())?.contains(n)&&ke&&ke(!0),pe?.(e,...t),He.current=!0,Om(()=>{He.current=!1})},[,qe]=v.useState({});function Je(){qe({})}let Ye;Ce.root&&(Ye=e=>{ke(e)});let Xe=v.useMemo(()=>({...e,notFoundContent:h,open:Oe,triggerOpen:Oe,rawOpen:De,id:n,showSearch:s,multiple:ge,toggleOpen:ke,showScrollBar:l,styles:a,classNames:o,lockOptions:Ae}),[e,h,ke,n,s,ge,Oe,De,l,a,o,Ae]),Ze=v.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:we,open:Oe,focused:be,showSearch:s,loading:C}):e},[z,B,we,Oe,be,s,C]),Qe=()=>{g?.(),_e.current?.focus(),p([],{type:`clear`,values:f}),Me(``,!1,!1)},{allowClear:$e,clearIcon:et}=Dee(r,f,L,V,S,we,x),tt=v.createElement(H,{ref:ye}),nt=G(r,i,{[`${r}-focused`]:be,[`${r}-multiple`]:ge,[`${r}-single`]:!ge,[`${r}-allow-clear`]:$e,[`${r}-show-arrow`]:Ze!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:Oe,[`${r}-customize-input`]:Te,[`${r}-show-search`]:s}),rt=v.createElement(eh,nh({},he,{ref:_e,prefixCls:r,className:nt,focused:be,prefix:R,suffix:Ze,clearIcon:et,multiple:ge,mode:x,displayValues:f,placeholder:y,searchValue:we,activeValue:k,onSearch:Me,onSearchSubmit:Ne,onInputBlur:Be,onFocus:Ue,onBlur:Ge,onClearMouseDown:Qe,onKeyDown:Le,onKeyUp:Re,onSelectorRemove:ze,tokenWithEnter:je,onMouseDown:Ke,components:Ce}));return rt=v.createElement(jee,{ref:ve,disabled:S,prefixCls:r,visible:Oe,popupElement:tt,animation:U,transitionName:ee,popupStyle:te,popupClassName:W,direction:u,popupMatchSelectWidth:ne,popupRender:re,popupAlign:ie,placement:ae,builtinPlacements:oe,getPopupContainer:se,empty:m,onPopupVisibleChange:Ye,onPopupMouseEnter:Je,onPopupMouseDown:Ke,onPopupBlur:We},rt),v.createElement(bm.Provider,{value:Xe},v.createElement(Pee,{visible:be&&!Oe,values:f}),rt)}),ah=()=>null;ah.isSelectOptGroup=!0;var oh=()=>null;oh.isSelectOption=!0;var sh=v.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),v.createElement(`div`,{style:u},v.createElement(Le,{onResize:({offsetHeight:e})=>{e&&a&&a()}},v.createElement(`div`,Jd({style:d,className:G({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});sh.displayName=`Filler`;function Jee({children:e,setRef:t}){let n=v.useCallback(e=>{t(e)},[]);return v.cloneElement(e,{ref:n})}function Yee(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return v.createElement(Jee,{key:l,setRef:t=>a(e,t)},c)})}function Xee(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r{let a=Xee(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var ch=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),lh=((e,t,n,r)=>{let i=(0,v.useRef)(!1),a=(0,v.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,v.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function Qee(e,t,n,r,i,a,o){let s=(0,v.useRef)(0),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(!1),d=lh(t,n,r,i);function f(e,t){if(Xe.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,ch||n.preventDefault(),c.current=Xe(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),ch||e.preventDefault()}let m=(0,v.useRef)(null),h=(0,v.useRef)(null);function g(t){if(!e)return;Xe.cancel(h.current),h.current=Xe(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function $ee(e,t,n,r){let[i,a]=v.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=uh(i),c=uh(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,v.useEffect)(()=>c,[]),[u,l,o.current,r]}var dh=14/15;function nte(e,t,n){let r=(0,v.useRef)(!1),i=(0,v.useRef)(0),a=(0,v.useRef)(0),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=dh:c*=dh;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},C(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function fh(e){return Math.floor(e**.5)}function ph(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function rte(e,t,n){v.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Xe.cancel(t)},o=()=>{a(),t=Xe(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=ph(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-fh(n-e),o()):e>=s?(i=fh(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var ite=10;function ate(e,t,n,r,i,a,o,s){let c=v.useRef(),[l,u]=v.useState(null);return C(()=>{if(l&&l.times({...e}));return}a();let{targetAlign:s,originAlign:c,index:d,offset:f}=l,p=e.current.clientHeight,m=!1,h=s,g=null;if(p){let a=s||c,u=0,_=0,v=0,y=Math.min(t.length-1,d);for(let e=0;e<=y;e+=1){let a=i(t[e]);_=u;let o=n.get(a);v=_+(o===void 0?r:o),u=v}let b=a===`top`?f:p-f;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){m=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:g=_-f;break;case`bottom`:g=v-p+f;break;default:{let{scrollTop:t}=e.current,n=t+p;_n&&(h=`bottom`)}}g!==null&&o(g),g!==l.lastTop&&(m=!0)}m&&u({...l,times:l.times+1,targetAlign:h,lastTop:g})}},[l,e.current]),e=>{if(e==null){s();return}if(Xe.cancel(c.current),typeof e==`number`)o(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;u({times:0,index:n,offset:a,originAlign:r})}}}var mh=v.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=v.useState(!1),[_,y]=v.useState(null),[b,x]=v.useState(null),S=!r,C=v.useRef(),w=v.useRef(),[T,E]=v.useState(m),D=v.useRef(),O=()=>{m===!0||m===!1||(clearTimeout(D.current),E(!0),D.current=setTimeout(()=>{E(!1)},3e3))},k=a-d||0,A=d-u||0,j=v.useMemo(()=>i===0||k===0?0:i/k*A,[i,k,A]),M=e=>{e.stopPropagation(),e.preventDefault()},N=v.useRef({top:j,dragging:h,pageY:_,startTop:b});N.current={top:j,dragging:h,pageY:_,startTop:b};let P=e=>{g(!0),y(ph(e,l)),x(N.current.top),o(),e.stopPropagation(),e.preventDefault()};v.useEffect(()=>{let e=e=>{e.preventDefault()},t=C.current,n=w.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,P,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,P)}},[]);let F=v.useRef();F.current=k;let I=v.useRef();I.current=A,v.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=N.current;Xe.cancel(e);let a=C.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(ph(t,l)-r)*o,a=i;!S&&l?a-=n:a+=n;let s=F.current,u=I.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Xe(()=>{c(f,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Xe.cancel(e)}}},[h]),v.useEffect(()=>(O(),()=>{clearTimeout(D.current)}),[i]),v.useImperativeHandle(t,()=>({delayHidden:O}));let L=`${n}-scrollbar`,R={position:`absolute`,visibility:T?null:`hidden`},z={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(R,{height:8,left:0,right:0,bottom:0}),Object.assign(z,{height:`100%`,width:u,[S?`left`:`right`]:j})):(Object.assign(R,{width:8,top:0,bottom:0,[S?`right`:`left`]:0}),Object.assign(z,{width:`100%`,height:u,top:j})),v.createElement(`div`,{ref:C,className:G(L,{[`${L}-horizontal`]:l,[`${L}-vertical`]:!l,[`${L}-visible`]:T}),style:{...R,...f},onMouseDown:M,onMouseMove:O},v.createElement(`div`,{ref:w,className:G(`${L}-thumb`,{[`${L}-thumb-moving`]:h}),style:{...z,...p},onMouseDown:P}))}),ote=20;function hh(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ote),Math.floor(n)}var ste=[],cte={overflowY:`auto`,overflowAnchor:`none`};function lte(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:y,extraRender:x,styles:S,showScrollBar:w=`optional`,...T}=e,E=v.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[D,O,k,A]=tte(E,null,null),j=!!(d!==!1&&i&&a),M=v.useMemo(()=>Object.values(k.maps).reduce((e,t)=>e+t,0),[k.id,k.maps]),N=j&&c&&(Math.max(a*c.length,M)>i||!!p),P=f===`rtl`,F=G(n,{[`${n}-rtl`]:P},r),I=c||ste,L=(0,v.useRef)(),R=(0,v.useRef)(),z=(0,v.useRef)(),[B,V]=(0,v.useState)(0),[H,U]=(0,v.useState)(0),[ee,te]=(0,v.useState)(!1),W=()=>{te(!0)},ne=()=>{te(!1)},re={getKey:E};function ie(e){V(t=>{let n;n=typeof e==`function`?e(t):e;let r=xe(n);return L.current.scrollTop=r,r})}let ae=(0,v.useRef)({start:0,end:I.length}),oe=(0,v.useRef)(),[se]=Zee(I,E);oe.current=se;let{scrollHeight:ce,start:le,end:ue,offset:de}=v.useMemo(()=>{if(!j)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};if(!N)return{scrollHeight:R.current?.offsetHeight||0,start:0,end:I.length-1,offset:void 0};let e=0,t,n,r,o=I.length;for(let s=0;s=B&&t===void 0&&(t=s,n=e),u>B+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=I.length-1),r=Math.min(r+1,I.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[N,j,B,I,A,i]);ae.current.start=le,ae.current.end=ue,v.useLayoutEffect(()=>{let e=k.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=I[le];if(r&&n===void 0&&E(r)===t){let e=k.get(t)-a;ie(t=>t+e)}}k.resetRecord()},[ce]);let[fe,pe]=v.useState({width:0,height:i}),me=e=>{pe({width:e.offsetWidth,height:e.offsetHeight})},he=(0,v.useRef)(),ge=(0,v.useRef)(),_e=v.useMemo(()=>hh(fe.width,p),[fe.width,p]),ve=v.useMemo(()=>hh(fe.height,ce),[fe.height,ce]),ye=ce-i,be=(0,v.useRef)(ye);be.current=ye;function xe(e){let t=e;return Number.isNaN(be.current)||(t=Math.min(t,be.current)),t=Math.max(t,0),t}let Se=B<=0,Ce=B>=ye,we=H<=0,Te=H>=p,Ee=lh(Se,Ce,we,Te),De=()=>({x:P?-H:H,y:B}),Oe=(0,v.useRef)(De()),ke=b(e=>{if(g){let t={...De(),...e};(Oe.current.x!==t.x||Oe.current.y!==t.y)&&(g(t),Oe.current=t)}});function Ae(e,t){let n=e;t?((0,al.flushSync)(()=>{U(n)}),ke()):ie(n)}function je(e){let{scrollTop:t}=e.currentTarget;t!==B&&ie(t),h?.(e),ke()}let Me=e=>{let t=e,n=p?p-fe.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Ne=b((e,t)=>{t?((0,al.flushSync)(()=>{U(t=>Me(t+(P?-e:e)))}),ke()):ie(t=>t+e)}),[Pe,Fe]=Qee(j,Se,Ce,we,Te,!!p,Ne);nte(j,L,(e,t,n,r)=>{let i=r;return Ee(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Pe({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),rte(N,L,e=>{ie(t=>t+e)}),C(()=>{function e(e){let t=Se&&e.detail<0,n=Ce&&e.detail>0;j&&!t&&!n&&e.preventDefault()}let t=L.current;return t.addEventListener(`wheel`,Pe,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Fe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Pe),t.removeEventListener(`DOMMouseScroll`,Fe),t.removeEventListener(`MozMousePixelScroll`,e)}},[j,Se,Ce]),C(()=>{if(p){let e=Me(H);U(e),ke({x:e})}},[fe.width,p]);let Ie=()=>{he.current?.delayHidden(),ge.current?.delayHidden()},Re=ate(L,I,k,a,E,()=>O(!0),ie,Ie);v.useImperativeHandle(t,()=>({nativeElement:z.current,getScrollInfo:De,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&U(Me(e.left)),Re(e.top)):Re(e)}})),C(()=>{_&&_(I.slice(le,ue+1),I)},[le,ue,I]);let ze=$ee(I,E,k,a),Be=x?.({start:le,end:ue,virtual:N,offsetX:H,offsetY:de,rtl:P,getSize:ze}),Ve=Yee(I,le,ue,p,H,D,l,re),He=null;i&&(He={[o?`height`:`maxHeight`]:i,...cte},j&&(He.overflowY=`hidden`,p&&(He.overflowX=`hidden`),ee&&(He.pointerEvents=`none`)));let Ue={};return P&&(Ue.dir=`rtl`),v.createElement(`div`,Jd({ref:z,style:{...s,position:`relative`},className:F},Ue,T),v.createElement(Le,{onResize:me},v.createElement(m,{className:`${n}-holder`,style:He,ref:L,onScroll:je,onMouseEnter:Ie},v.createElement(sh,{prefixCls:n,height:ce,offsetX:H,offsetY:de,scrollWidth:p,onInnerResize:O,ref:R,innerProps:y,rtl:P,extra:Be},Ve))),N&&ce>i&&v.createElement(mh,{ref:he,prefixCls:n,scrollOffset:B,scrollRange:ce,rtl:P,onScroll:Ae,onStartMove:W,onStopMove:ne,spinSize:ve,containerSize:fe.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:w}),N&&p>fe.width&&v.createElement(mh,{ref:ge,prefixCls:n,scrollOffset:H,scrollRange:p,rtl:P,onScroll:Ae,onStartMove:W,onStopMove:ne,spinSize:_e,containerSize:fe.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:w}))}var gh=v.forwardRef(lte);gh.displayName=`List`;var _h=gh;function ute(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=xm(),{maxCount:p,flattenOptions:m,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:y,rawValues:b,fieldNames:x,virtual:S,direction:C,listHeight:w,listItemHeight:T,optionRender:E,classNames:D,styles:O}=v.useContext(Pm),A=`${n}-item`,j=k(()=>m,[i,f],(e,t)=>t[0]&&!t[1]),M=v.useRef(null),N=v.useMemo(()=>a&&Tm(p)&&b?.size>=p,[a,p,b?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=v.useCallback(e=>o===`combobox`?!1:b.has(e),[o,[...b].toString(),b.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;rL(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,v.useEffect)(()=>{B(g===!1?-1:L(0))},[j.length,s]);let V=v.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():b.has(e),[o,s,[...b].toString(),b.size]);(0,v.useEffect)(()=>{let e;if(!a&&i&&b.size===1){let t=Array.from(b)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&_(e,{selected:!b.has(e)}),a||c(!1)};if(v.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case uu.N:case uu.P:case uu.UP:case uu.DOWN:{let e=0;if(t===uu.UP?e=-1:t===uu.DOWN?e=1:ute()&&n&&(t===uu.N?e=1:t===uu.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case uu.TAB:case uu.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||b.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case uu.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return v.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(x).map(e=>x[e]),ee=e=>e.label;function te(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let W=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Ts(n,!0),s=ee(t);return t?v.createElement(`div`,vh({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},te(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},ne={role:`listbox`,id:`${r}_list`};return v.createElement(v.Fragment,null,S&&v.createElement(`div`,vh({},ne,{style:{height:0,width:0,overflow:`hidden`}}),W(R-1),W(R),W(R+1)),v.createElement(_h,{itemKey:`key`,ref:M,data:j,height:w,itemHeight:T,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:S,direction:C,innerProps:S?null:ne,showScrollBar:d,className:D?.popup?.list,style:O?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(yh(a)?a.toString():void 0);return v.createElement(`div`,{className:G(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,m=he(p,U),h=I(o),g=c||!h&&N,_=`${A}-option`,b=G(A,_,f,D?.popup?.listItem,{[`${_}-grouped`]:r,[`${_}-active`]:R===t&&!g,[`${_}-disabled`]:g,[`${_}-selected`]:h}),x=ee(e),C=!y||typeof y==`function`||h,w=typeof x==`number`?x:x||o,T=yh(w)?w.toString():void 0;return l!==void 0&&(T=l),v.createElement(`div`,vh({},Ts(m),S?{}:te(e,t),{"aria-selected":S?void 0:V(o),"aria-disabled":g,className:b,title:T,onMouseMove:()=>{R===t||g||B(t)},onClick:()=>{g||H(o)},style:{...O?.popup?.listItem,...d}}),v.createElement(`div`,{className:`${_}-content`},typeof E==`function`?E(e,{index:t}):w),v.isValidElement(y)||h,C&&v.createElement(Jm,{className:`${A}-option-state`,customizeIcon:y,customizeIconProps:{value:o,disabled:g,isSelected:h}},h?`✓`:null))}))}),fte=((e,t)=>{let n=v.useRef({values:new Map,options:new Map});return[v.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),v.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function bh(e,t){return Fm(e).join(``).toUpperCase().includes(t)}var pte=((e,t,n,r,i)=>v.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>bh(t[e],u)):t[a]?bh(t[o===`children`?`label`:o],u):bh(t[s],u),f=l?e=>Dm(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function mte(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function xh(e,t=!1){return ge(e).map((e,n)=>{if(!v.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?mte(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:xh(a)}}).filter(e=>e)}var hte=(e,t,n,r,i)=>v.useMemo(()=>{let a=e;e||(a=xh(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function Sh(e){let t=v.useRef();return t.current=e,v.useCallback((...e)=>t.current(...e),[])}function gte(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return v.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:D,listHeight:O=200,listItemHeight:k=20,labelRender:A,value:j,defaultValue:M,labelInValue:N,onChange:P,maxCount:F,classNames:I,styles:L,...R}=e,[z,B]=gte(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:V,searchValue:H,optionFilterProp:U,filterSort:ee,onSearch:te,autoClearSearchValue:W=!0}=B,ne=v.useMemo(()=>U?Array.isArray(U)?U:[U]:[],[U]),re=Xc(n),ie=rh(r),ae=!!(!b&&S),oe=v.useMemo(()=>V===void 0&&r===`combobox`?!1:V,[V,r]),se=v.useMemo(()=>Em(o,ae),[JSON.stringify(o),ae]),[ce,le]=E(``,H),ue=ce||``,de=hte(b,S,se,ne,y),{valueOptions:fe,labelOptions:pe,options:me}=de,he=v.useCallback(e=>Fm(e).map(e=>{let t,n,r,i;vte(e)?t=e:(n=e.label,t=e.value);let a=fe.get(t);return a&&(n===void 0&&(n=a?.[y||se.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[se,y,fe]),[ge,_e]=E(M,j),[ve,ye]=fte(v.useMemo(()=>{let e=he(ie&&ge===null?[]:ge);return r===`combobox`&&Lee(e[0]?.value)?[]:e},[ge,he,r,ie]),fe),be=v.useMemo(()=>{if(!r&&ve.length===1){let e=ve[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return ve.map(e=>({...e,label:(typeof A==`function`?A(e):e.label)??e.value}))},[r,ve,A]),xe=v.useMemo(()=>new Set(ve.map(e=>e.value)),[ve]);v.useEffect(()=>{if(r===`combobox`){let e=ve[0]?.value;le(Im(e)?String(e):``)}},[ve]);let Se=Sh((e,t)=>{let n=t??e;return{[se.value]:e,[se.label]:n}}),Ce=pte(v.useMemo(()=>{if(r!==`tags`)return me;let e=[...me],t=e=>fe.has(e);return[...ve].sort((e,t)=>e.value{let r=n.value;t(r)||e.push(Se(r,n.label))}),e},[Se,me,fe,ve,r]),se,ue,oe,ne),we=v.useMemo(()=>{let e=e=>ne.length?ne.some(t=>e?.[t]===ue):e?.value===ue;return r!==`tags`||!ue||Ce.some(t=>e(t))||Ce.some(e=>e[se.value]===ue)?Ce:[Se(ue),...Ce]},[Se,ne,r,Ce,ue,se]),Te=e=>[...e].sort((e,t)=>ee(e,t,{searchValue:ue})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Te(e.options):e.options}:e),Ee=v.useMemo(()=>ee?Te(we):we,[we,ee,ue]),De=v.useMemo(()=>Mee(Ee,{fieldNames:se,childrenAsData:ae}),[Ee,se,ae]),Oe=e=>{let t=he(e);if(_e(t),P&&(t.length!==ve.length||t.some((e,t)=>ve[t]?.value!==e?.value))){let e=N?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Dm(ye(e.value)));P(ie?e:e[0],ie?n:n[0])}},[ke,Ae]=v.useState(null),[je,Me]=v.useState(0),Ne=C===void 0?r!==`combobox`:C,Pe=v.useRef(),Fe=v.useCallback((e,t,{source:n=`keyboard`}={})=>{Me(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Ae(String(e));let i=Promise.resolve().then(()=>{Pe.current===i&&g?.(e)});Pe.current=i},[a,r,g]),Ie=(e,t,n)=>{let r=()=>{let t=ye(e);return[N?{label:t?.[se.label],value:e}:e,Dm(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Le=Sh((e,t)=>{let n,i=ie?t.selected:!0;n=i?ie?[...ve,e]:[e]:ve.filter(t=>t.value!==e),Oe(n),Ie(e,i),r===`combobox`?Ae(``):(!rh||W)&&(le(``),Ae(``))}),Re=(e,t)=>{Oe(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Ie(e.value,!1,n)})},G=(e,t)=>{if(le(e),Ae(null),t.source===`submit`){let t=(e||``).trim();t&&(Oe(Array.from(new Set([...xe,t]))),Ie(t,!0),le(``));return}t.source!==`blur`&&(r===`combobox`&&Oe(e),te?.(e))},ze=e=>{let t=e;r!==`tags`&&(t=e.map(e=>pe.get(e)?.value).filter(e=>e!==void 0));let n=Array.from(new Set([...xe,...t]));Oe(n),n.forEach(e=>{Ie(e,!0)})},Be=v.useMemo(()=>{let e=T!==!1&&_!==!1;return{...de,flattenOptions:De,onActiveValue:Fe,defaultActiveFirstOption:Ne,onSelect:Le,menuItemSelectedIcon:w,rawValues:xe,fieldNames:se,virtual:e,direction:D,listHeight:O,listItemHeight:k,childrenAsData:ae,maxCount:F,optionRender:x,classNames:I,styles:L}},[F,de,De,Fe,Ne,Le,w,xe,se,T,_,D,O,k,ae,x,I,L]);return v.createElement(Pm.Provider,{value:Be},v.createElement(ih,Ch({},R,{id:re,prefixCls:i,ref:t,omitDomProps:_te,mode:r,classNames:I,styles:L,displayValues:be,onDisplayValuesChange:Re,maxCount:F,direction:D,showSearch:z,searchValue:ue,onSearch:G,autoClearSearchValue:W,onSearchSplit:ze,popupMatchSelectWidth:_,OptionList:dte,emptyOptions:!De.length,activeValue:ke,activeDescendantId:`${re}_list_${je}`})))});wh.Option=oh,wh.OptGroup=ah;var yte=wh,Th=(e,t,n)=>G({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),Eh=(e,t)=>t||e,bte=()=>{let[,e]=za(),[t]=Ws(`Empty`),n=new ji(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return v.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{fill:`none`,fillRule:`evenodd`},v.createElement(`g`,{transform:`translate(24 31.7)`},v.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),v.createElement(`path`,{fill:`#aeb8c2`,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`}),v.createElement(`path`,{fill:`#f5f5f7`,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`}),v.createElement(`path`,{fill:`#dce0e6`,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`})),v.createElement(`path`,{fill:`#dce0e6`,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`}),v.createElement(`g`,{fill:`#fff`,transform:`translate(149.7 15.4)`},v.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),v.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},xte=()=>{let[,e]=za(),[t]=Ws(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,v.useMemo)(()=>({borderColor:new ji(n).onBackground(a).toHexString(),shadowColor:new ji(r).onBackground(a).toHexString(),contentColor:new ji(i).onBackground(a).toHexString()}),[n,r,i,a]);return v.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},v.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),v.createElement(`g`,{fillRule:`nonzero`,stroke:o},v.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),v.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:c}))))},Ste=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Cte=Xa(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Ste(li(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),Dh=v.createElement(bte,null),Oh=v.createElement(xte,null),kh=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:m,style:h,classNames:g,styles:_,image:y}=nt(`empty`),b=f(`empty`,r),[x,S]=Cte(b),[C,w]=mc([g,l],[_,u],{props:e}),[T]=Ws(`Empty`),E=a===void 0?T?.description:a,D=typeof E==`string`?E:`empty`,O=i??y??Dh,k=null;return k=typeof O==`string`?v.createElement(`img`,{draggable:!1,alt:D,src:O}):O,v.createElement(`div`,{className:G(x,S,b,m,{[`${b}-normal`]:O===Oh,[`${b}-rtl`]:p===`rtl`},t,n,C.root),style:{...w.root,...h,...c},...d},v.createElement(`div`,{className:G(`${b}-image`,C.image),style:{...s,...w.image}},k),E&&v.createElement(`div`,{className:G(`${b}-description`,C.description),style:w.description},E),o&&v.createElement(`div`,{className:G(`${b}-footer`,C.footer),style:w.footer},o))};kh.PRESENTED_IMAGE_DEFAULT=Dh,kh.PRESENTED_IMAGE_SIMPLE=Oh;var Ah=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,v.useContext)($e),r=n(`empty`);switch(t){case`Table`:case`List`:return v.createElement(kh,{image:kh.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return v.createElement(kh,{image:kh.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return v.createElement(kh,null)}},jh=(e,t,n)=>{let{variant:r,[e]:i}=v.useContext($e),a=v.useContext(oee),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=Qe.includes(s);return[s,c]},wte=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function Tte(e,t){return e||wte(t)}var Mh=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},Ete=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Va(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,[` - ${i}${s}bottomLeft, - ${a}${s}bottomLeft - `]:{animationName:fd},[` - ${i}${s}topLeft, - ${a}${s}topLeft, - ${i}${s}topRight, - ${a}${s}topRight - `]:{animationName:md},[`${o}${s}bottomLeft`]:{animationName:pd},[` - ${o}${s}topLeft, - ${o}${s}topRight - `]:{animationName:hd},"&-hidden":{display:`none`},[r]:{...Mh(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`,...Ba},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Mh(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},xd(e,`slide-up`),xd(e,`slide-down`),dd(e,`move-up`),dd(e,`move-down`)]},Dte=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},Nh=4,Ote=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=$a(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${Nh}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix, - ${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...Ba,marginInlineEnd:a},"&-remove":{...Ha(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:Nh,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},Ph=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=$a(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${K(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},Fh=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[Ph(e,n),{[`&${o}-status-error`]:Ph(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:Ph(e,{...n,color:i.color||e.colorWarning,...i})},a]}},kte=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=$a(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...Va(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...Ba,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...Ba,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},Ote(e),Fh(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),Fh(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Fh(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),Fh(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),Dte(e)]}},Ate=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Ih=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...Va(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...Ba,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Lh=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},Ih(e),Ete(e),{[`${t}-rtl`]:{direction:`rtl`}},df(e,{focusElCls:`${t}-focused`})]},Rh=Xa(`Select`,(e,{rootPrefixCls:t})=>{let n=li(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Lh(n),kte(n)]},Ate,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),zh={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`};function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Bh({},e,{ref:t,icon:zh}))),Hh={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`};function Uh(){return Uh=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Uh({},e,{ref:t,icon:Hh}))),Gh={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`};function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Kh({},e,{ref:t,icon:Gh})));function Jh({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??v.createElement(Eo,null),p=t=>e===null&&!s&&!u?null:v.createElement(v.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??v.createElement(pu,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?v.createElement(qh,null):v.createElement(Wh,null)):p(e);let h=null;h=n===void 0?o?v.createElement(Vh,null):null:n;let g=null;return g=r===void 0?v.createElement(ko,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function Yh(e){return v.useMemo(()=>{if(e)return(...t)=>v.createElement(im,{space:!0},e.apply(void 0,t))},[e])}function Xh(e,t){return t===void 0?e!==null:t}var Zh=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Qh=v.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=v.useContext($e),{showSearch:ee,style:te,styles:W,className:ne,classNames:re}=nt(`select`),[,ie]=za(),ae=d??ie?.controlHeight,oe=R(`select`,n),se=R(),ce=b??B,{compactSize:le,compactItemClassnames:ue}=Iu(oe,ce),[de,fe]=jh(`select`,C,r),pe=jc(oe),[me,ge]=Rh(oe,pe),_e=v.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Zh?`combobox`:t},[e.mode]),ve=_e===`multiple`||_e===`tags`,ye=Xh(e.suffixIcon,e.showArrow),be=y??_??H,xe=Yh(j||A),Se=N||M,{status:Ce,hasFeedback:we,isFormItemInput:Te,feedbackIcon:Ee}=v.useContext(rm),De=Eh(Ce,h),Oe;Oe=m===void 0?_e===`combobox`?null:z?.(`Select`)||v.createElement(Ah,{componentName:`Select`}):m;let{suffixIcon:ke,itemIcon:Ae,removeIcon:je,clearIcon:Me}=Jh({...I,multiple:ve,hasFeedback:we,feedbackIcon:Ee,showSuffixIcon:ye,prefixCls:oe,componentName:`Select`}),Ne=S===!0?{clearIcon:Me}:S,Pe=he(I,[`suffixIcon`,`itemIcon`]),Fe=Nu(e=>f??le??e),Ie=v.useContext(Xl),Le=p??Ie,Re={...e,variant:de,status:De,disabled:Le,size:Fe},[ze,Be]=mc([re,F],[W,P],{props:Re},{popup:{_default:`root`}}),Ve=G(ze.popup?.root,s,c,{[`${oe}-dropdown-${ce}`]:ce===`rtl`},a,ge,pe,me),He={...Be.popup?.root,...w??T},Ue=G({[`${oe}-lg`]:Fe===`large`,[`${oe}-sm`]:Fe===`small`,[`${oe}-rtl`]:ce===`rtl`,[`${oe}-${de}`]:fe,[`${oe}-in-form-item`]:Te},Th(oe,De,we),ue,ne,i,ze.root,a,ge,pe,me),We=v.useMemo(()=>u===void 0?ce===`rtl`?`bottomRight`:`bottomLeft`:u,[u,ce]),[Ge]=Ec(`SelectLike`,Be.popup?.root?.zIndex??He?.zIndex);return v.createElement(yte,{ref:t,virtual:V,classNames:ze,styles:Be,showSearch:ee,...Pe,style:{...Be.root,...te,...x},popupMatchSelectWidth:be,transitionName:Cu(se,`slide-up`,E),builtinPlacements:Tte(g,U),listHeight:l,listItemHeight:ae,mode:_e,prefixCls:oe,placement:We,direction:ce,prefix:k,suffixIcon:ke,menuItemSelectedIcon:Ae,removeIcon:je,allowClear:Ne,notFoundContent:Oe,className:Ue,getPopupContainer:o||L,popupClassName:Ve,disabled:Le,popupStyle:{...Be.popup?.root,...He,zIndex:Ge},maxCount:ve?O:void 0,tagRender:ve?D:void 0,popupRender:xe,onPopupVisibleChange:Se})}),jte=ym(Qh,`popupAlign`);Qh.SECRET_COMBOBOX_MODE_DO_NOT_USE=Zh,Qh.Option=oh,Qh.OptGroup=ah,Qh._InternalPanelDoNotUseOrYouWillBeFired=jte;var $h=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`];[].concat($h).reverse();var Mte=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)`}),Nte=e=>{let t=e,n=[].concat($h).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r{let[,e]=za(),t=Mte(Nte(e));return v.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function eg(e=!0,t={}){let n=(0,v.useRef)(t),[,r]=sc(),i=Pte();return C(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var tg=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return v.createElement(`div`,{id:r,className:G(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},ng={shiftX:64,adjustY:1},rg={adjustX:1,shiftY:!0},ig=[0,0],Fte={left:{points:[`cr`,`cl`],overflow:rg,offset:[-4,0],targetOffset:ig},right:{points:[`cl`,`cr`],overflow:rg,offset:[4,0],targetOffset:ig},top:{points:[`bc`,`tc`],overflow:ng,offset:[0,-4],targetOffset:ig},bottom:{points:[`tc`,`bc`],overflow:ng,offset:[0,4],targetOffset:ig},topLeft:{points:[`bl`,`tl`],overflow:ng,offset:[0,-4],targetOffset:ig},leftTop:{points:[`tr`,`tl`],overflow:rg,offset:[-4,0],targetOffset:ig},topRight:{points:[`br`,`tr`],overflow:ng,offset:[0,-4],targetOffset:ig},rightTop:{points:[`tl`,`tr`],overflow:rg,offset:[4,0],targetOffset:ig},bottomRight:{points:[`tr`,`br`],overflow:ng,offset:[0,4],targetOffset:ig},rightBottom:{points:[`bl`,`br`],overflow:rg,offset:[4,0],targetOffset:ig},bottomLeft:{points:[`tl`,`bl`],overflow:ng,offset:[0,4],targetOffset:ig},leftBottom:{points:[`br`,`bl`],overflow:rg,offset:[-4,0],targetOffset:ig}};function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:y=!0,classNames:b,styles:x,...S}=e,C=Xc(_),w=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=v.useMemo(()=>{if(!y)return!1;let e=y===!0?{}:y;return{...e,className:G(e.className,b?.arrow),style:{...e.style,...x?.arrow},content:e.content??h}},[y,b?.arrow,x?.arrow,h]);return v.createElement(Hl,ag({popupClassName:b?.root,prefixCls:a,popup:v.createElement(tg,{key:`content`,prefixCls:a,id:C,classNames:b,styles:x},g),action:n,builtinPlacements:Fte,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:x?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:x?.uniqueContainer},T),({open:e})=>{let t=v.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return v.cloneElement(t,n)})});function og(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Lte=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${K(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function sg(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function cg(e,t){return e?t:{}}var lg=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=$a(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Lte(e,t,i),"&:before":{background:t}}],...cg(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${K(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...cg(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${K(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...cg(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...cg(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function Rte(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=Zs(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var ug={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`]}},zte={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`]}},Bte=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function dg(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=sg({contentRadius:a,limitVerticalRadius:!0});return Object.keys(ug).forEach(e=>{let a={...r&&zte[e]||ug[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,Bte.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=Rte(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var fg=v.createContext(!1),Vte=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return v.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},pg=`50%`,Hte=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=$a(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${K(e.calc(u).div(2).equal())} ${K(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,pg),`var(--arrow-y, ${pg})`].join(` `)};return[{[n]:{...Va(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,rd(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...eo(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},lg(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Ute=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...sg({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...og(li(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),mg=(e,t,n=!0)=>Xa(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[Hte(li(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Id(e,`zoom-big-fast`)]},Ute,{resetStyle:!1,injectStyle:n})(e,t),Wte=bi.map(e=>`${e}-inverse`),Gte=[`success`,`processing`,`error`,`default`,`warning`];function hg(e,t=!0){return t?[].concat(We(Wte),We(bi)).includes(e):bi.includes(e)}function Kte(e){return Gte.includes(e)}var gg=(e,t,n)=>{let r=hg(n),[i]=$a(e,`tooltip`),a=G({[`${t}-${n}`]:n&&r}),o={},s={},c=Yd(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},qte=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=v.useContext($e),u=l(`tooltip`,t),d=l(),f=jc(u),[p,m]=mg(u,f),h=gg(d,u,a),g=h.arrowStyle,_=v.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),y={...e,placement:r},[b,x]=mc([s],[_,c],{props:y}),S=G(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return v.createElement(`div`,{className:S,style:g},v.createElement(`div`,{className:`${u}-arrow`}),v.createElement(tg,{...e,className:p,prefixCls:u,classNames:b,styles:x},i))},_g=v.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:T,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=za(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=nt(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=Vte(c,V),ee=U.show,te=p||H||`hover`,W=_||N,ne=u??!!l,re=v.useContext(fg);be(`Tooltip`);let ie=v.useRef(null),ae=()=>{ie.current?.forceAlign()};v.useImperativeHandle(t,()=>({forceAlign:ae,nativeElement:ie.current?.nativeElement,popupElement:ie.current?.popupElement}));let[oe,se]=E(e.defaultOpen??!1,e.open),ce=!d&&!f&&d!==0,le=e=>{se(ce?!1:e),!ce&&T&&T(e)},ue=v.useMemo(()=>m||dg({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:ee?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,m,j,ee,h]),de=v.useMemo(()=>d===0?d:f||d||``,[f,d]),fe=v.createElement(im,{space:!0,form:!0},typeof de==`function`?de():de),pe={...e,trigger:te,builtinPlacements:ue,getPopupContainer:W,destroyOnHidden:ne},[me,he]=mc([z,w],[B,C],{props:pe}),ge=P(`tooltip`,n),_e=P(),ve=oe;(!(`open`in e)&&ce||re)&&(ve=!1);let ye=v.isValidElement(o)&&!Ul(o)?o:v.createElement(`span`,null,o),xe=ye.props,Se=!xe.className||typeof xe.className==`string`?G(xe.className,r||`${ge}-open`):xe.className,Ce=jc(ge),[we,Te]=mg(ge,Ce,!M),Ee=gg(_e,ge,a),De=Ee.arrowStyle,Oe=G(Ce,we,Te),ke=G(k,{[`${ge}-rtl`]:F===`rtl`},Ee.className,S,Oe,L,me.root),[Ae,je]=Ec(`Tooltip`,A.zIndex),Me={...he.container,...D,...Ee.overlayStyle},Ne=v.createElement(Ite,{unique:!0,...A,zIndex:Ae,showArrow:ee,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:ge,classNames:{root:ke,container:me.container,arrow:me.arrow,uniqueContainer:G(Oe,me.container)},styles:{root:{...De,...he.root,...R,...O},container:Me,uniqueContainer:Me,arrow:he.arrow},ref:ie,overlay:fe,visible:ve,onVisibleChange:le,afterVisibleChange:s,arrowContent:v.createElement(`span`,{className:`${ge}-arrow-content`}),motion:{motionName:Cu(_e,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:te,builtinPlacements:ue,getTooltipContainer:W,destroyOnHidden:ne},ve?Gl(ye,{className:Se}):ye);return v.createElement(xc.Provider,{value:je},Ne)});_g._InternalPanelDoNotUseOrYouWillBeFired=qte,_g.UniqueProvider=Yl;var Jte={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`};function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,vg({},e,{ref:t,icon:Jte}))),{ESC:Yte,TAB:Xte}=uu;function Zte({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=v.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case Yte:o();break;case Xte:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};v.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Xe(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Qte=(0,v.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,v.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=L(t,H(a));return v.createElement(v.Fragment,null,r&&v.createElement(`div`,{className:`${i}-arrow`}),v.cloneElement(a,{ref:z(a)?o:void 0}))}),bg={adjustX:1,adjustY:1},xg=[0,0],$te={topLeft:{points:[`bl`,`tl`],overflow:bg,offset:[0,-4],targetOffset:xg},top:{points:[`bc`,`tc`],overflow:bg,offset:[0,-4],targetOffset:xg},topRight:{points:[`br`,`tr`],overflow:bg,offset:[0,-4],targetOffset:xg},bottomLeft:{points:[`tl`,`bl`],overflow:bg,offset:[0,4],targetOffset:xg},bottom:{points:[`tc`,`bc`],overflow:bg,offset:[0,4],targetOffset:xg},bottomRight:{points:[`tr`,`br`],overflow:bg,offset:[0,4],targetOffset:xg}};function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=$te,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:y,onVisibleChange:b,...x}=e,[S,C]=v.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=v.useRef(null),D=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b?.(e)};Zte({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>v.createElement(Qte,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=v.cloneElement(y,{className:G(y.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:z(y)?L(O,H(y)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),v.createElement(Hl,Sg({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:G(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),wg=v.createContext(null);function Tg(e,t){return`${e}-${t}`}function Eg(e){return Tg(v.useContext(wg),e)}var Dg=v.createContext(null);function ene(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Og({children:e,locked:t,...n}){let r=v.useContext(Dg),i=k(()=>ene(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!vt(e[1],n[1],!0)));return v.createElement(Dg.Provider,{value:i},e)}var tne=[],kg=v.createContext(null);function Ag(){return v.useContext(kg)}var jg=v.createContext(tne);function Mg(e){let t=v.useContext(jg);return v.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Ng=v.createContext(null),Pg=v.createContext({}),{LEFT:Fg,RIGHT:Ig,UP:Lg,DOWN:Rg,ENTER:zg,ESC:Bg,HOME:Vg,END:Hg}=uu,Ug=[Lg,Rg,Fg,Ig];function nne(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===zg)return{inlineTrigger:!0};let c={[Lg]:i,[Rg]:a},l={[Fg]:n?a:i,[Ig]:n?i:a,[Rg]:o,[zg]:o},u={[Lg]:i,[Rg]:a,[zg]:o,[Bg]:s,[Fg]:n?o:s,[Ig]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function rne(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function ine(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Wg(e,t){return xf(e,!0).filter(e=>t.has(e))}function Gg(e,t,n,r=1){if(!e)return null;let i=Wg(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var Kg=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Tg(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function ane(e,t,n,r,i,a,o,s,c,l){let u=v.useRef(),d=v.useRef();d.current=t;let f=()=>{Xe.cancel(u.current)};return v.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...Ug,zg,Bg,Vg,Hg].includes(m)){let l=a(),h=Kg(l,r),{elements:g,key2element:_,element2key:v}=h,y=ine(_.get(t),g),b=v.get(y),x=nne(e,o(b,!0).length===1,n,m);if(!x&&m!==Vg&&m!==Hg)return;(Ug.includes(m)||[Vg,Hg].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Xe(()=>{d.current===r&&t.focus()})}};if([Vg,Hg].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:rne(y);let n,r=Wg(t,g);n=m===Vg?r[0]:m===Hg?r[r.length-1]:Gg(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Xe(()=>{h=Kg(l,r);let e=y.getAttribute(`aria-controls`);S(Gg(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function one(e){Promise.resolve().then(e)}var qg=`__RC_UTIL_PATH_SPLIT__`,Jg=e=>e.join(qg),sne=e=>e.split(qg),Yg=`rc-menu-more`;function cne(){let[,e]=v.useState({}),t=(0,v.useRef)(new Map),n=(0,v.useRef)(new Map),[r,i]=v.useState([]),a=(0,v.useRef)(0),o=(0,v.useRef)(!1),s=()=>{o.current||e({})},c=(0,v.useCallback)((e,r)=>{let i=Jg(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;one(()=>{o===a.current&&s()})},[]),l=(0,v.useCallback)((e,r)=>{let i=Jg(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,v.useCallback)(e=>{i(e)},[]),d=(0,v.useCallback)((e,n)=>{let i=sne(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(Yg),i},[r]),f=(0,v.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(Yg),e},m=(0,v.useCallback)(e=>{let r=`${t.current.get(e)}${qg}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return v.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function Xg(e){let t=v.useRef(e);t.current=e;let n=v.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Zg(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=v.useContext(Dg),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function Qg(e){let{mode:t,rtl:n,inlineIndent:r}=v.useContext(Dg);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function $g({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=v.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function e_({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(pe(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=Eg(i),{prefixCls:_,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=v.useContext(Dg),{_internalRenderMenuItem:T}=v.useContext(Pg),E=`${_}-item`,D=v.useRef(),O=v.useRef(),k=b||o,A=R(t,O),j=Mg(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=Zg(i,k,u,d),I=C.includes(i),L=Qg(j.length),z=e=>{if(k)return;let t=M(e);f?.(e_(t)),y(t)},B=e=>{if(p?.(e),e.which===uu.ENTER){let t=M(e);f?.(e_(t)),y(t)}},V=e=>{w(i),m?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=I);let U=v.createElement(lne,t_({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&g?null:g},he(h,[`extra`]),F,H,{component:`li`,"aria-disabled":o,style:{...L,...n},className:G(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,v.createElement($g,{props:{...e,isSelected:I},icon:N}));return T&&(U=T(U,e,{selected:I})),U});function dne(e,t){let{eventKey:n}=e,r=Ag(),i=Mg(n);return v.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:v.createElement(une,t_({},e,{ref:t}))}var n_=v.forwardRef(dne);function r_(){return r_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:i,mode:a,rtl:o}=v.useContext(Dg);return v.createElement(`ul`,r_({className:G(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function a_(e,t){return ge(e).map((e,n)=>{if(v.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return v.cloneElement(e,a)}return e})}var o_={adjustX:1,adjustY:1},fne={topLeft:{points:[`bl`,`tl`],overflow:o_},topRight:{points:[`br`,`tr`],overflow:o_},bottomLeft:{points:[`tl`,`bl`],overflow:o_},bottomRight:{points:[`tr`,`br`],overflow:o_},leftTop:{points:[`tr`,`tl`],overflow:o_},leftBottom:{points:[`br`,`bl`],overflow:o_},rightTop:{points:[`tl`,`tr`],overflow:o_},rightBottom:{points:[`bl`,`br`],overflow:o_}},pne={topLeft:{points:[`bl`,`tl`],overflow:o_},topRight:{points:[`br`,`tr`],overflow:o_},bottomLeft:{points:[`tl`,`bl`],overflow:o_},bottomRight:{points:[`tr`,`br`],overflow:o_},rightTop:{points:[`tr`,`tl`],overflow:o_},rightBottom:{points:[`br`,`bl`],overflow:o_},leftTop:{points:[`tl`,`tr`],overflow:o_},leftBottom:{points:[`bl`,`br`],overflow:o_}};function s_(e,t,n){if(t)return t;if(n)return n[e]||n.other}var mne={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function hne({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:y,defaultMotions:b}=v.useContext(Dg),[x,S]=v.useState(!1),C=d?{...pne,...m}:{...fne,...m},w=mne[c],T=s_(c,y,b),E=v.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=v.useRef();return v.useEffect(()=>(O.current=Xe(()=>{S(t)}),()=>{Xe.cancel(O.current)}),[t]),v.createElement(Hl,{prefixCls:e,popupClassName:G(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:x,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function c_(){return c_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current&&f(!1)},[l]);let m={...s_(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:v.createElement(Og,{mode:i,locked:!u.current},v.createElement(bs,c_({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>v.createElement(i_,{id:e,className:t,style:n},r)))}function l_(){return l_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Eg(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=v.useContext(Dg),{_internalRenderSubMenuItem:B}=v.useContext(Pg),{isSubPathKey:V}=v.useContext(Ng),H=Mg(),U=`${D}-submenu`,ee=A||l,te=v.useRef(),W=v.useRef(),ne=f??P,re=p??F,ie=k.includes(s),ae=!j&&ie,oe=V(N,s),{active:se,...ce}=Zg(s,ee,S,C),[le,ue]=v.useState(!1),de=e=>{ee||ue(e)},fe=e=>{de(!0),y?.({key:s,domEvent:e})},pe=e=>{de(!1),b?.({key:s,domEvent:e})},me=v.useMemo(()=>se||(O===`inline`?!1:le||V([M],s)),[O,se,M,le,s,V]),he=Qg(H.length),ge=e=>{ee||(x?.({key:s,domEvent:e}),O===`inline`&&L(s,!ie))},_e=Xg(e=>{_?.(e_(e)),I(e)}),ve=e=>{O!==`inline`&&L(s,e)},ye=()=>{R(s)},be=E&&`${E}-popup`,xe=v.useMemo(()=>v.createElement($g,{icon:O===`horizontal`?void 0:re,props:{...e,isOpen:ae,isSubMenu:!0}},v.createElement(`i`,{className:`${U}-arrow`})),[O,re,e,ae,U]),Se=v.createElement(`div`,l_({role:`menuitem`,style:he,className:`${U}-title`,tabIndex:ee?null:-1,ref:te,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":ee,onClick:ge,onFocus:ye},ce),o,xe),Ce=v.useRef(O);O!==`inline`&&H.length>1?Ce.current=`vertical`:Ce.current=O;let we=Ce.current,Te=v.useMemo(()=>{let t=v.createElement(Og,{classNames:a,styles:i,mode:we===`horizontal`?`vertical`:we},v.createElement(i_,{id:be,ref:W},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,be,d,e,we]);if(!j){let e=Ce.current;Se=v.createElement(hne,{mode:e,prefixCls:U,visible:!u&&ae&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:Te,disabled:ee,onVisibleChange:ve},Se)}let Ee=v.createElement(qm.Item,l_({ref:t,role:`none`},T,{component:`li`,style:n,className:G(U,`${U}-${O}`,r,{[`${U}-open`]:ae,[`${U}-active`]:me,[`${U}-selected`]:oe,[`${U}-disabled`]:ee}),onMouseEnter:fe,onMouseLeave:pe}),Se,!j&&v.createElement(gne,{id:be,open:ae,keyPath:H},d));return B&&(Ee=B(Ee,e,{selected:oe,active:me,open:ae,disabled:ee})),v.createElement(Og,{classNames:a,styles:i,onItemClick:_e,mode:O===`horizontal`?`vertical`:O,itemIcon:ne,expandIcon:re},Ee)}),u_=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Mg(n),a=a_(r,i),o=Ag();v.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:v.createElement(_ne,l_({ref:t},e),a),v.createElement(jg.Provider,{value:i},s)});function d_({className:e,style:t}){let{prefixCls:n}=v.useContext(Dg);return Ag()?null:v.createElement(`li`,{role:`separator`,className:G(`${n}-item-divider`,e),style:t})}function f_(){return f_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=v.useContext(Dg),u=`${s}-item-group`;return v.createElement(`li`,f_({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:G(u,n)}),v.createElement(`div`,{role:`presentation`,className:G(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),v.createElement(`ul`,{role:`group`,className:G(`${u}-list`,c?.list),style:l?.list},a))}),p_=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=a_(r,Mg(n));return Ag()?i:v.createElement(vne,f_({ref:t},he(e,[`warnKey`])),i)});function m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?v.createElement(i,m_({key:m},p,{title:c}),h_(l,t,n)):v.createElement(a,m_({key:m},p,{title:c}),h_(l,t,n)):d===`divider`?v.createElement(o,m_({key:m},p)):v.createElement(r,m_({key:m},p,{extra:f}),c,(!!f||f===0)&&v.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function g_(e,t,n,r,i){let a=e,o={divider:d_,item:n_,group:p_,submenu:u_,...r};return t&&(a=h_(t,o,i)),a_(a,n)}function __(){return __=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:T=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:ee,openAnimation:te,openTransitionName:W,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re,_internalComponents:ie,popupRender:ae,...oe}=e,[se,ce]=v.useMemo(()=>[g_(u,l,v_,ie,n),g_(u,l,v_,{},n)],[u,l,ie]),[le,ue]=v.useState(!1),de=v.useRef(),fe=Xc(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),pe=d===`rtl`,[me,he]=E(x,S),ge=me||v_,_e=(e,t=!1)=>{function n(){he(e),U?.(e)}t?(0,al.flushSync)(n):n()},[ve,ye]=v.useState(ge),be=v.useRef(!1),[xe,Se]=v.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),Ce=xe===`inline`,[we,Te]=v.useState(xe),[Ee,De]=v.useState(Se);v.useEffect(()=>{Te(xe),De(Se),be.current&&(Ce?he(ve):_e(v_))},[xe,Se]);let[Oe,ke]=v.useState(0),Ae=Oe>=se.length-1||we!==`horizontal`||g;v.useEffect(()=>{Ce&&ye(ge)},[ge]),v.useEffect(()=>(be.current=!0,()=>{be.current=!1}),[]);let{registerPath:je,unregisterPath:Me,refreshOverflowKeys:Ne,isSubPathKey:Pe,getKeyPath:Fe,getKeys:Ie,getSubPathKeys:Le}=cne(),Re=v.useMemo(()=>({registerPath:je,unregisterPath:Me}),[je,Me]),ze=v.useMemo(()=>({isSubPathKey:Pe}),[Pe]);v.useEffect(()=>{Ne(Ae?v_:se.slice(Oe+1).map(e=>e.key))},[Oe,Ae]);let[Be,Ve]=E(C||w&&se[0]?.key,C),He=Xg(e=>{Ve(e)}),Ue=Xg(()=>{Ve(void 0)});(0,v.useImperativeHandle)(t,()=>({list:de.current,focus:e=>{let t=Ie(),{elements:n,key2element:r,element2key:i}=Kg(t,fe),a=Wg(de.current,n),o;o=Be&&t.includes(Be)?Be:a[0]?i.get(a[0]):se.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=Kg(Ie(),fe);return t.get(e)||null}}));let[We,Ge]=E(O||[],k),Ke=v.useMemo(()=>Array.isArray(We)?We:We==null?v_:[We],[We]),qe=e=>{if(T){let{key:t}=e,n=Ke.includes(t),r;r=D?n?Ke.filter(e=>e!==t):[...Ke,t]:[t],Ge(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&ge.length&&we!==`inline`&&_e(v_)},Je=Xg(e=>{H?.(e_(e)),qe(e)}),Ye=Xg((e,t)=>{let n=ge.filter(t=>t!==e);if(t)n.push(e);else if(we!==`inline`){let t=Le(e);n=n.filter(e=>!t.has(e))}vt(ge,n,!0)||_e(n,!0)}),Xe=ane(we,Be,pe,fe,de,Ie,Fe,Ve,(e,t)=>{Ye(e,t??!ge.includes(e))},ee);v.useEffect(()=>{ue(!0)},[]);let Ze=v.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re}),[ne,re]),Qe=we!==`horizontal`||g?se:se.map((e,t)=>v.createElement(Og,{key:e.key,overflowDisabled:t>Oe,classNames:s,styles:o},e)),$e=v.createElement(qm,__({id:f,ref:de,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:n_,className:G(n,`${n}-root`,`${n}-${we}`,a,{[`${n}-inline-collapsed`]:Ee,[`${n}-rtl`]:pe},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Qe,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?se.slice(-t):null;return v.createElement(u_,{eventKey:Yg,title:z,disabled:Ae,internalPopupClose:t===0,popupClassName:B},n)},maxCount:we!==`horizontal`||g?qm.INVALIDATE:qm.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{ke(e)},onKeyDown:Xe},oe));return v.createElement(Pg.Provider,{value:Ze},v.createElement(wg.Provider,{value:fe},v.createElement(Og,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:we,openKeys:ge,rtl:pe,disabled:h,motion:le?N:null,defaultMotions:le?P:null,activeKey:Be,onActive:He,onInactive:Ue,selectedKeys:Ke,inlineIndent:M,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:Je,onOpenChange:Ye,popupRender:ae},v.createElement(Ng.Provider,{value:ze},$e),v.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},v.createElement(kg.Provider,{value:Re},ce)))))});y_.Item=n_,y_.SubMenu=u_,y_.ItemGroup=p_,y_.Divider=d_;var yne={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`};function b_(){return b_=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,b_({},e,{ref:t,icon:yne}))),x_=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),xne=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:K(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},S_=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},C_=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],w_=Xa(`Layout`,xne,S_,{deprecatedTokens:C_}),Sne=Xa([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-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:o,color:s,lineHeight:K(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${K(f)} ${K(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${K(f)} 0 0 ${K(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},S_,{deprecatedTokens:C_}),T_={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},Cne=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),E_=v.createContext({}),wne=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),D_=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:y}=(0,v.useContext)(x_),[b,x]=(0,v.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,v.useState)(!1);(0,v.useEffect)(()=>{`collapsed`in e&&x(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||x(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,v.useContext)($e),D=T(`layout-sider`,n),[O,k]=Sne(D),A=(0,v.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),b!==e.matches&&w(e.matches,`responsive`)},(0,v.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in T_&&(t=window.matchMedia(`screen and (max-width: ${T_[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,v.useEffect)(()=>{let e=wne(`ant-sider-`);return y.addSider(e),()=>y.removeSider(e)},[]);let j=()=>{w(!b,`clickTrigger`)},M=he(_,[`collapsed`]),N=b?f:d,P=Cne(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?v.createElement(`span`,{onClick:j,className:G(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||v.createElement(bne,null)):null,I=E===`rtl`==!u,L={expanded:I?v.createElement(qd,null):v.createElement(yg,null),collapsed:I?v.createElement(yg,null):v.createElement(qd,null)}[b?`collapsed`:`expanded`],R=i===null?null:F||v.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=G(D,`${D}-${s}`,{[`${D}-collapsed`]:!!b,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=v.useMemo(()=>({siderCollapsed:b}),[b]);return v.createElement(E_.Provider,{value:V},v.createElement(`aside`,{className:B,...M,style:z,ref:t},v.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),Tne={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`};function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,O_({},e,{ref:t,icon:Tne}))),A_=(0,v.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),j_=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=v.useContext($e),o=G({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return v.createElement(d_,{className:o,...i})},M_=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=v.useContext(A_),h=e=>{let t=n?.[0],i=v.createElement(`span`,{className:G(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||v.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?v.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=v.useContext(E_),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let y=d===!1?void 0:d,b=y&&y.title!==void 0?y.title:_,x={...y??null,title:b};!g&&!f&&(x.title=null,x.open=!1);let S=ge(n).length,C=v.createElement(n_,{...he(e,[`title`,`icon`,`danger`]),className:G(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},Gl(r,e=>({className:G(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:G(t,e?.root)}),r=y&&typeof y.classNames==`function`?e=>n(y.classNames(e)):n(y?.classNames);C=v.createElement(_g,{...x,placement:e,classNames:r},C)}return C},N_=v.createContext(null),P_=v.forwardRef((e,t)=>{let{children:n,...r}=e,i=v.useContext(N_),a=v.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=V(n),s=R(t,o?H(n):null);return v.createElement(N_.Provider,{value:a},v.createElement(im,{space:!0},o?v.cloneElement(n,{ref:s}):n))}),Ene=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${K(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},Dne=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${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(${K(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${K(t)})`}}}}),F_=e=>Wa(e),I_=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...F_(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...F_(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${K(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${K(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${K(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},L_=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:K(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:K(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},One=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:K(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...L_(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...L_(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${K(e.calc(o).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 ${f}`,`background-color ${f}`,`padding ${d} ${s}`].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`]:_,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,insetInlineStart:0,paddingInline:`calc(50% - ${K(e.calc(g).div(2).equal())} - ${K(l)})`,textOverflow:`clip`,[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:K(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Ba,paddingInline:p}}}]},R_=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...Ha()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},z_=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=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} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${K(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${K(o)})`}}}}},kne=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:{...Ua(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...Va(e),...Ua(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${K(s)} ${K(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> ${t}-typography-ellipsis-single-line`]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...R_(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${K(e.calc(r).mul(2).equal())} ${K(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...R_(e),...z_(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-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}},...z_(e),[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${K(h)})`},"&::after":{transform:`rotate(45deg) translateX(${K(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${K(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${K(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${K(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},B_=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ji(S).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:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ji(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},V_=(e,t=e,n=!0)=>Xa(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=li(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=li(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[kne(x),Ene(x),One(x),I_(x,`light`),I_(S,`dark`),Dne(x),Qu(x),xd(x,`slide-up`),xd(x,`slide-down`),Id(x,`zoom-big`)]},B_,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t),H_=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=v.useContext(A_),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=Mg(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?v.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):v.createElement(`span`,{className:`${o}-title-content`},r);else{let e=v.isValidElement(r)&&r.type===`span`;f=v.createElement(v.Fragment,null,Gl(n,e=>({className:G(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:v.createElement(`span`,{className:`${o}-title-content`},r))}let p=v.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Ec(`Menu`);return v.createElement(A_.Provider,{value:p},v.createElement(u_,{...he(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:G(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function U_(e){return e===null||e===!1}var Ane={item:M_,submenu:H_,divider:j_},jne=(0,v.forwardRef)((e,t)=>{let n=v.useContext(N_),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:y,styles:x,...S}=e,{menu:C}=v.useContext($e),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=nt(`menu`),j=w(),M=he(S,[`collapsedWidth`]);r.validator?.({mode:m});let N=b((...e)=>{g?.(...e),r.onClick?.()}),P=r.mode||m,F=h??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},[R,z]=mc([k,y],[A,x],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),B={horizontal:{motionName:`${j}-slide-up`},inline:Su(j),other:{motionName:`${j}-zoom-big`}},V=w(`menu`,i||r.prefixCls),H=jc(V),[U,ee]=V_(V,H,!n),te=G(`${V}-${s}`,D,a),W=v.useMemo(()=>{if(typeof c==`function`||U_(c))return c||null;if(typeof r.expandIcon==`function`||U_(r.expandIcon))return r.expandIcon||null;if(typeof C?.expandIcon==`function`||U_(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return Gl(e,{className:G(`${V}-submenu-expand-icon`,v.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,V]),ne=v.useMemo(()=>({prefixCls:V,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:R,styles:z}),[V,I,E,l,s,P,R,z,u]);return v.createElement(N_.Provider,{value:null},v.createElement(A_.Provider,{value:ne},v.createElement(y_,{getPopupContainer:T,overflowedIndicator:v.createElement(k_,null),overflowedIndicatorPopupClassName:G(V,`${V}-${s}`,_),classNames:{list:R.list,listTitle:R.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:{...z.root,...O,...o},className:te,prefixCls:V,direction:E,defaultMotions:B,expandIcon:W,ref:t,rootClassName:G(p,U,r.rootClassName,ee,H,R.root),_internalComponents:Ane})))}),W_=(0,v.forwardRef)((e,t)=>{let n=(0,v.useRef)(null),r=v.useContext(E_);return(0,v.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),v.createElement(jne,{ref:n,...e,...r})});W_.Item=M_,W_.SubMenu=H_,W_.Divider=j_,W_.ItemGroup=p_;var Mne=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},Nne=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, - &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, - &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:fd},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, - &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, - &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:md},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pd},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:hd}}},lg(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...Va(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Ga(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${K(l)} ${K(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${K(l)} ${K(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ga(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${K(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:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${K(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xd(e,`slide-up`),xd(e,`slide-down`),dd(e,`move-up`),dd(e,`move-down`),Id(e,`zoom-big`)]]},Pne=Xa(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=li(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Nne(a),Mne(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...sg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...og(e)}),{resetStyle:!1}),G_=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:y=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:T}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=nt(`dropdown`),P={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[F,I]=mc([M,S],[N,C],{props:P}),L={...j,...f,...I.root},R=c||s;be(`Dropdown`);let z=v.useMemo(()=>{let e=D();return x===void 0?y.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:x},[D,y,x]),B=v.useMemo(()=>y?y.includes(`Center`)?y.slice(0,y.indexOf(`Center`)):y:O===`rtl`?`bottomRight`:`bottomLeft`,[y,O]),V=D(`dropdown`,r),H=jc(V),[U,ee]=Pne(V,H),[,te]=za(),W=v.Children.only($s(i)?v.createElement(`span`,null,i):i),ne=Gl(W,{className:G(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},W.props.className),disabled:W.props.disabled??o}),re=o?[]:a,ie=!!re?.includes(`contextMenu`),[ae,oe]=E(!1,p),se=b(e=>{m?.(e,{source:`trigger`}),oe(e)}),ce=G(u,d,U,ee,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),le=dg({arrowPointAtCenter:Zs(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:te.marginXXS,arrowWidth:n?te.sizePopupArrow:0,borderRadius:te.borderRadius}),ue=b(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),oe(!1))}),de=()=>{let e=he(F,[`root`]),n=he(I,[`root`]),r;return t?.items&&(r=v.createElement(W_,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),R&&(r=R(r)),r=v.Children.only(typeof r==`string`?v.createElement(`span`,null,r):r),v.createElement(P_,{prefixCls:`${V}-menu`,rootClassName:G(ee,H),expandIcon:v.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?v.createElement(yg,{className:`${V}-menu-submenu-arrow-icon`}):v.createElement(qd,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ue,validator:({mode:e})=>{}},r)},[fe,pe]=Ec(`Dropdown`,L.zIndex),me=v.createElement(Cg,{alignPoint:ie,...he(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:ae,builtinPlacements:le,arrow:!!n,overlayClassName:ce,prefixCls:V,getPopupContainer:l||k,transitionName:z,trigger:re,overlay:de,placement:B,onVisibleChange:se,overlayStyle:{...L,zIndex:fe},autoDestroy:T??w},ne);return fe&&(me=v.createElement(xc.Provider,{value:pe},me)),me},Fne=ym(G_,`align`,void 0,`dropdown`,e=>e);G_._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(Fne,{...e},v.createElement(`span`,null));var K_=yf;function Ine(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lne(e){return Ine(e).join(`_`)}var q_=v.createContext(void 0),Rne=q_.Provider,J_=v.createContext(void 0),zne=J_.Provider;function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,v.useRef)(null),p=(0,v.useRef)(null),[m,h]=E(s,a);(0,v.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let g=G(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return v.createElement(`span`,{className:g,title:l,style:i,ref:p},v.createElement(`input`,Y_({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))});function Z_(e){let t=v.useRef(null),n=()=>{Xe.cancel(t.current),t.current=null};return[()=>{n(),t.current=Xe(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var Bne=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Va(e),display:`inline-block`,fontSize:0,[`&${r}-rtl`]:{direction:`rtl`},[`&${r}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},Vne=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...Va(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:{...Va(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:l,border:`${K(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,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:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Wa(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},Hne=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:K(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${K(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${K(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:K(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:K(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":Wa(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},Q_=Xa(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${K(n)} ${t}`,i=li(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Bne(i),Vne(i),Hne(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),$_=v.forwardRef((e,t)=>{let n=v.useContext(q_),r=v.useContext(J_),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=nt(`radio`),u=L(t,v.useRef(null)),{isFormItemInput:d}=v.useContext(rm),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:m,rootClassName:h,children:g,style:_,title:y,classNames:b,styles:x,...S}=e,C=i(`radio`,p),w=(n?.optionType||r)===`button`,T=w?`${C}-button`:C,E=jc(C),[D,O]=Q_(C,E),k={...S},A=v.useContext(Xl),j=k.checked;n&&(k.name=n.name,k.onChange=f,j=e.value===n.value,k.disabled=k.disabled??n.disabled),k.disabled=k.disabled??A;let M={...e,...k,checked:j},[N,P]=mc([c,b],[l,x],{props:M}),F=G(`${T}-wrapper`,{[`${T}-wrapper-checked`]:j,[`${T}-wrapper-disabled`]:k.disabled,[`${T}-wrapper-rtl`]:a===`rtl`,[`${T}-wrapper-in-form-item`]:d,[`${T}-wrapper-block`]:!!n?.block},o,m,h,N.root,D,O,E),[I,R]=Z_(k.onClick);return v.createElement(Mu,{component:`Radio`,disabled:k.disabled},v.createElement(`label`,{className:F,style:{...P.root,...s,..._},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:I},v.createElement(X_,{...k,checked:j,className:G(N.icon,{[Tu]:!w}),style:P.icon,type:`radio`,prefixCls:T,ref:u,onClick:R}),g===void 0?null:v.createElement(`span`,{className:G(`${T}-label`,N.label),style:P.label},g)))}),Une=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext($e),{name:i}=v.useContext(rm),a=Xc(Lne(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:y,value:b,block:x=!1,onChange:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:D,orientation:O,vertical:k,role:A=`radiogroup`}=e,[j,M]=E(y,b),N=v.useCallback(t=>{let n=j,r=t.target.value;`value`in e||M(r),r!==n&&S?.(t)},[j,M,S]),P=n(`radio`,o),F=`${P}-group`,I=jc(P),[L,R]=Q_(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||Ys(e)?v.createElement($_,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):v.createElement($_,{key:`radio-group-value-options-${e.value}`,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:j===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let B=Nu(p),[,V]=_c(O,k),H=G(F,`${F}-${u}`,{[`${F}-large`]:B===`large`,[`${F}-small`]:B===`small`,[`${F}-rtl`]:r===`rtl`,[`${F}-block`]:x},s,c,L,R,I),U=v.useMemo(()=>({onChange:N,value:j,disabled:d,name:_,optionType:g,block:x}),[N,j,d,_,g,x]);return v.createElement(`div`,{...Ts(e,{aria:!0,data:!0}),role:A,className:G(H,{[`${P}-group-vertical`]:V}),style:m,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:D,id:h,ref:t},v.createElement(Rne,{value:U},z))}),Wne=v.memo(Une),Gne=v.forwardRef((e,t)=>{let{getPrefixCls:n}=v.useContext($e),{prefixCls:r,...i}=e,a=n(`radio`,r);return v.createElement(zne,{value:`button`},v.createElement($_,{prefixCls:a,...i,type:`radio`,ref:t}))}),ev=$_;ev.Button=Gne,ev.Group=Wne,ev.__ANT_RADIO=!0;function tv(e){return li(e,{inputAffixPadding:e.paddingXXS})}var nv=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},rv=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),iv=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])":{...rv(li(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),av=(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}}),ov=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...av(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Kne=(e,t)=>({"&-outlined":{...av(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...iv(e)},...ov(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ov(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),sv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),qne=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...sv(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...sv(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...iv(e)}}}}),Jne=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},cv=(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}}),lv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...cv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Yne=(e,t)=>({"&-filled":{...cv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...iv(e)},...lv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...lv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),uv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Xne=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...uv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...uv(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:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),dv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${K(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}}),fv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...dv(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`}}),Zne=(e,t)=>({"&-underlined":{...dv(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`},...fv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...fv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Qne=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),pv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${K(t)} ${K(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},mv=e=>({padding:`${K(e.paddingBlockSM)} ${K(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hv=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${K(e.paddingBlock)} ${K(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Qne(e.colorTextPlaceholder),"&-lg":{...pv(e),...t.largeStyle},"&-sm":{...mv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),$ne=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...pv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...mv(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-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 ${K(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${K(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${K(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${K(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${K(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-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,[`${n}-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`,...Ua(),[`${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, - & > ${n}-picker-range - `]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},ere=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Va(e),...hv(e),...Kne(e),...Yne(e),...Jne(e),...Zne(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},tre=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Wa(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${K(e.inputAffixPadding)}`}}}},nre=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...hv(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:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...tre(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},rre=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Va(e),...$ne(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...qne(e),...Xne(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}}}}}},ire=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},gv=Xa([`Input`,`Shared`],e=>{let t=li(e,tv(e));return[ere(t),nre(t)]},nv,{resetFont:!1}),are=Xa([`Input`,`Component`],e=>{let t=li(e,tv(e));return[rre(t),ire(t),df(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},nv,{resetFont:!1}),ore={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`};function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,_v({},e,{ref:t,icon:ore}))),cre=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var 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,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),vv,lre=()=>(vv===void 0&&(vv=(0,cre.default)()),vv),yv=(0,v.createContext)(null),ure=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,v.useState)(),l=(0,v.useRef)(),u=v.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Xe.cancel(l.current)}return(0,v.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Xe(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},bv={width:0,height:0,left:0,top:0};function dre(e,t,n){return(0,v.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||bv,i=r.left+r.width;for(let r=0;re.key).join(`_`),t,n])}function xv(e,t){let n=v.useRef(e),[,r]=v.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var fre=.1,Sv=.01,Cv=20,wv=.995**Cv;function pre(e,t){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(0),[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(),u=(0,v.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n)){if(Math.abs(r)o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,v.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},v.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Tv(e){let[t,n]=(0,v.useState)(0),r=(0,v.useRef)(0),i=(0,v.useRef)();return i.current=e,w(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function mre(e){let t=(0,v.useRef)([]),[,n]=(0,v.useState)({}),r=(0,v.useRef)(typeof e==`function`?e():e),i=Tv(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Ev={width:0,height:0,left:0,top:0,right:0};function hre(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,v.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;iMath.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Ev)[u]r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function Dv(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var gre=`TABS_DQ`;function Ov(e){return String(e).replace(/"/g,gre)}function kv(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Av=v.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:v.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),jv=v.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!v.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?v.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=x===null?null:`${w}-${x}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=v.createElement(y_,{onClick:({key:e,domEvent:t})=>{m(e,t),b(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[x],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=kv(t,i,u,n);return v.createElement(n_,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},v.createElement(`span`,null,o),s&&v.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===x)||0,r=t.length;for(let i=0;i{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,x]),(0,v.useEffect)(()=>{y||S(null)},[y]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=G(g,{[`${T}-rtl`]:f}),P=o?null:v.createElement(Cg,Mv({prefixCls:T,overlay:k,visible:i.length?y:!1,onVisibleChange:b,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:j},C));return v.createElement(`div`,{className:G(`${n}-nav-operations`,l),style:c,ref:t},P,v.createElement(Av,{prefixCls:n,locale:a,editable:u}))}),Pv=v.memo(Nv,(e,t)=>t.tabMoving),Fv=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:y,onMouseUp:b,style:x,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=kv(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=v.useMemo(()=>l&&typeof o==`string`?v.createElement(`span`,null,o):o,[o,l]),A=v.useRef(null);v.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=v.createElement(`div`,{key:a,"data-node-key":Ov(a),className:G(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:x,onClick:D},v.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:y,onMouseUp:b,onFocus:h,onBlur:g},i&&v.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&v.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&v.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},Rv=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},zv=(e,t)=>e[+!t],Bv=v.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:y}=e,{prefixCls:x,tabs:S}=v.useContext(yv),C=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=xv(0,(e,t)=>{A&&h&&h({direction:e>t?`left`:`right`})}),[N,P]=xv(0,(e,t)=>{!A&&h&&h({direction:e>t?`top`:`bottom`})}),[F,I]=(0,v.useState)([0,0]),[L,z]=(0,v.useState)([0,0]),[B,V]=(0,v.useState)([0,0]),[H,U]=(0,v.useState)([0,0]),[ee,te]=mre(new Map),W=dre(S,ee,L[0]),ne=zv(F,A),re=zv(L,A),ie=zv(B,A),ae=zv(H,A),oe=Math.floor(ne)ue?ue:e}let fe=(0,v.useRef)(null),[pe,me]=(0,v.useState)();function he(){me(Date.now())}function ge(){fe.current&&clearTimeout(fe.current)}pre(E,(e,t)=>{function n(e,t){e(e=>de(e+t))}return oe?(A?n(M,e):n(P,t),ge(),he(),!0):!1}),(0,v.useEffect)(()=>(ge(),pe&&(fe.current=setTimeout(()=>{me(0)},100)),ge),[pe]);let[_e,ve]=hre(W,se,A?j:N,re,ie,ae,{...e,tabs:S}),ye=b((e=o)=>{let t=W.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.rightj+se&&(e=t.right+t.width-se):t.left<-j?e=-t.left:t.left+t.width>-j+se&&(e=-(t.left+t.width-se)),P(0),M(de(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+se&&(e=-(t.top+t.height-se)),M(0),P(de(e))}}),[be,xe]=(0,v.useState)(),[Se,Ce]=(0,v.useState)(!1),we=S.filter(e=>!e.disabled).map(e=>e.key),Te=e=>{let t=we.indexOf(be||o),n=we.length,r=we[(t+e+n)%n];xe(r)},Ee=(e,t)=>{let n=we.indexOf(e),r=S.find(t=>t.key===e);kv(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===we.length-1?Te(-1):Te(1))},De=(e,t)=>{Ce(!0),t.button===1&&Ee(e,t)},Oe=e=>{let{code:t}=e,n=s&&A,r=we[0],i=we[we.length-1];switch(t){case`ArrowLeft`:A&&Te(n?1:-1);break;case`ArrowRight`:A&&Te(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||Te(-1);break;case`ArrowDown`:e.preventDefault(),A||Te(1);break;case`Home`:e.preventDefault(),xe(r);break;case`End`:e.preventDefault(),xe(i);break;case`Enter`:case`Space`:e.preventDefault(),m(be??o,e);break;case`Backspace`:case`Delete`:Ee(be,e);break}},ke={};A?ke.marginInlineStart=f:ke.marginTop=f;let Ae=S.map((e,t)=>{let{key:n}=e;return v.createElement(Fv,{id:i,prefixCls:x,key:n,tab:e,className:_?.item,style:t===0?y?.item:{...ke,...y?.item},closable:e.closable,editable:l,active:n===o,focus:n===be,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:we.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:Oe,onFocus:()=>{Se||xe(n),ye(n),he(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{xe(void 0)},onMouseDown:e=>De(n,e),onMouseUp:()=>{Ce(!1)}})}),je=()=>te(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Ov(n)}"]`);if(r){let[i,a,o,s]=Lv(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,v.useEffect)(()=>{je()},[S.map(e=>e.key).join(`_`)]);let Me=Tv(()=>{let e=Rv(C),t=Rv(w),n=Rv(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=Rv(k);V(r),U(Rv(O));let i=Rv(D);z([i[0]-r[0],i[1]-r[1]]),je()}),Ne=S.slice(0,_e),Pe=S.slice(ve+1),Fe=[...Ne,...Pe],Ie=W.get(o),{style:Re}=ure({activeTabOffset:Ie,horizontal:A,indicator:g,rtl:s});(0,v.useEffect)(()=>{ye()},[o,le,ue,Dv(Ie),Dv(W),A]),(0,v.useEffect)(()=>{Me()},[s]);let ze=!!Fe.length,Be=`${x}-nav-wrap`,Ve,He,Ue,We;return A?s?(He=j>0,Ve=j!==ue):(Ve=j<0,He=j!==le):(Ue=N<0,We=N!==le),v.createElement(Le,{onResize:Me},v.createElement(`div`,{ref:R(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:G(`${x}-nav`,n,_?.header),style:{...y?.header,...r},onKeyDown:()=>{he()}},v.createElement(jv,{ref:w,position:`left`,extra:c,prefixCls:x}),v.createElement(Le,{onResize:Me},v.createElement(`div`,{className:G(Be,{[`${Be}-ping-left`]:Ve,[`${Be}-ping-right`]:He,[`${Be}-ping-top`]:Ue,[`${Be}-ping-bottom`]:We}),ref:E},v.createElement(Le,{onResize:Me},v.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:pe?`none`:void 0}},Ae,v.createElement(Av,{ref:k,prefixCls:x,locale:u,editable:l,style:{...Ae.length===0?void 0:ke,visibility:ze?`hidden`:null}}),v.createElement(`div`,{className:G(`${x}-ink-bar`,_?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Re,...y?.indicator}}))))),v.createElement(Pv,Iv({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Fe,className:!ze&&ce,popupStyle:y?.popup,tabMoving:!!pe})),v.createElement(jv,{ref:T,position:`right`,extra:c,prefixCls:x})))}),Vv=({renderTabBar:e,...t})=>e?e(t,Bv):v.createElement(Bv,t),Hv=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=v.Children.count(c)>0;return v.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:G(n,o&&`${n}-active`,r),ref:t},c)});function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=v.useContext(yv),u=r.tabPane,d=`${c}-tabpane`;return v.createElement(`div`,{className:G(`${c}-content-holder`)},v.createElement(`div`,{className:G(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return v.createElement(bs,Uv({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>v.createElement(Hv,Uv({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:G(s,f,n),ref:r})))})))};function vre(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:T,classNames:D,styles:O,...k}=e,A=v.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=vre(u),[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{P(lre())},[]);let[F,I]=E(c??A[0]?.key,s),[L,R]=(0,v.useState)(()=>A.findIndex(e=>e.key===F));(0,v.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=E(null,n);(0,v.useEffect)(()=>{n||(B(`rc-tabs-${Gv}`),Gv+=1)},[]);function V(e,t){x?.(e,t);let n=e!==F;I(e),n&&b?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:V,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:G(w,D?.popup),indicator:T,styles:O,classNames:D},ee=v.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return v.createElement(yv.Provider,{value:ee},v.createElement(`div`,Wv({ref:t,id:n,className:G(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),v.createElement(Vv,Wv({},U,{renderTabBar:y})),v.createElement(_re,Wv({destroyOnHidden:_},H,{contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),bre={motionAppear:!1,motionEnter:!0,motionLeave:!0};function xre(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...Zs(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...bre,motionName:Cu(e,`switch`)}),n}function Sre(e){return e.filter(e=>e)}function Cre(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):Sre(ge(t).map(e=>{if(v.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var wre=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[xd(e,`slide-up`),xd(e,`slide-down`)]]},Tre=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${K(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Wa(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:K(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:K(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadiusLG)} 0 0 ${K(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 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ere=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Va(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${K(r)} 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":{...Ba,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${K(e.paddingXXS)} ${K(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`}}}}}}},Dre=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${K(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).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:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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} ${s}`).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}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:K(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ore=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadius)} ${K(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${K(e.borderRadius)} ${K(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadius)} ${K(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadius)} 0 0 ${K(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},kre=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-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},...Ga(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Wa(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},Are=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},jre=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...Va(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${K(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${K(e.borderRadiusLG)} ${K(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:o},...Ga(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...kre(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Ga(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`}}}}}},Mre=Xa(`Tabs`,e=>{let t=li(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${K(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${K(e.horizontalItemGutter)}`});return[Ore(t),Are(t),Dre(t),Ere(t),Tre(t),jre(t),wre(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-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}}),Nre=()=>null,Kv=v.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:y,indicator:b,classNames:x,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=nt(`tabs`),{tabs:I}=v.useContext($e),L=k(`tabs`,O),R=jc(L),[z,B]=Mre(L,R),V=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??v.createElement(ko,null),addIcon:(l??I?.addIcon)||v.createElement(sre,null),showAdd:s!==!0});let U=k(),ee=Nu(a),te=Cre(h,m),W=xre(L,g),ne={align:b?.align??I?.indicator?.align,size:b?.size??y??I?.indicator?.size??I?.indicatorSize},re=v.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),ie={...e,size:ee,tabPlacement:re,items:te},[ae,oe]=mc([P,x],[F,S],{props:ie},{popup:{_default:`root`}});return v.createElement(yre,{ref:V,direction:A,getPopupContainer:j,...D,items:te,className:G({[`${L}-large`]:ee===`large`,[`${L}-small`]:ee===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ae.root,z,B,R),classNames:{...ae,popup:G(p,z,B,R,ae.popup?.root)},styles:oe,style:{...oe.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??v.createElement(k_,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:W,indicator:ne,destroyOnHidden:w??C,tabPosition:re})});Kv.TabPane=Nre;var qv=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=v.useContext($e),a=i(`card`,e),o=G(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return v.createElement(`div`,{...r,className:o})},Pre=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${K(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,...Ua(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...Ba,[` - > ${n}-typography, - > ${n}-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:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},Fre=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:` - ${K(i)} 0 0 0 ${n}, - 0 ${K(i)} 0 0 ${n}, - ${K(i)} ${K(i)} 0 0 ${n}, - ${K(i)} 0 0 0 ${n} inset, - 0 ${K(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Ire=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${K(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`,...Ua(),"& > li":{margin:r,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), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:K(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:K(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${a}`}}}},Lre=e=>({margin:`${K(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Ua(),"&-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,...Ba},"&-description":{color:e.colorTextDescription}}),Rre=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${K(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${K(e.padding)} ${K(i)}`}}},zre=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Bre=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Va(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Pre(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Fre(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Ire(e),[`${t}-meta`]:Lre(e)},[`${t}-bordered`]:{border:`${K(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(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:r}}},[`${t}-type-inner`]:Rre(e),[`${t}-loading`]:zre(e),[`${t}-rtl`]:{direction:`rtl`}}},Vre=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${K(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Hre=Xa(`Card`,e=>{let t=li(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Bre(t),Vre(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,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})),Ure=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},Wre=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=nt(`card`),[P]=jh(`card`,f,d),F=Nu(p),I={...e,size:F,variant:P},[L,R]=mc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>ge(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===qv),[B]),H=O(`card`,n),[U,ee]=Hre(H),te=v.createElement(vm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),W=b!==void 0,ne={...w,[W?`activeKey`:`defaultActiveKey`]:W?b:x,tabBarExtraContent:S},re,ie=F===`small`?F:`large`,ae=_?v.createElement(Kv,{size:ie,...ne,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=G(`${H}-head`,L.header),t=G(`${H}-head-title`,L.title),n=G(`${H}-extra`,L.extra),r={...s,...R.header};re=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ae)}let oe=G(`${H}-cover`,L.cover),se=h?v.createElement(`div`,{className:oe,style:R.cover},h):null,ce=G(`${H}-body`,L.body),le={...c,...R.body},ue=u||B.length?v.createElement(`div`,{className:ce,style:le},u?te:y):null,de=G(`${H}-actions`,L.actions),fe=g?.length?v.createElement(Ure,{actionClasses:de,actionStyle:R.actions,actions:g}):null,pe=he(D,[`onTabChange`]),me=G(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,ee,L.root),_e={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...pe,className:me,style:_e},re,se,ue,fe)}),Gre=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=nt(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=mc([p,s],[m,c],{props:e}),y=G(h,n,d,g.root),b={...f,..._.root,...o},x=G(`${h}-avatar`,g.avatar),S=G(`${h}-title`,g.title),C=G(`${h}-description`,g.description),w=G(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},Jv=Wre;Jv.Grid=qv,Jv.Meta=Gre;function Kre(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function qre(e,t,n){var r=(n||{}).atBegin;return Kre(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}function Yv(e,t){return e[t]}function Xv(e,t){return`${e}-${t}`}function Jre(e){return e&&e.type&&e.type.isTreeNode}function Zv(e,t){return e??t}function Qv(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function $v(e){function t(e){return ge(e).map(e=>{if(!Jre(e))return pe(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function ey(e,t,n){let{_title:r,key:i,children:a}=Qv(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=Xv(n?n.pos:`0`,u),f=Zv(l[i],d),p;for(let e=0;ee[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>Zv(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?Xv(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function ty(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Yre(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=Zv(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function ny(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function ry(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=Yv(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function iy(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,`props`,{get(){return pe(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function ay(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Xre(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Zre(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(ay(a,i))}}function Qre(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(ay(o,a))}}function oy(e,t,n,r){let i=[],a;a=r||Xre;let o=new Set(e.filter(e=>{let t=!!Yv(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),pe(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Zre(o,s,c,a):Qre(o,t.halfCheckedKeys,s,c,a),l}var $re=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:{...Va(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...Va(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Va(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${K(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...Sd(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${K(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}`,...Sd()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Wa(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[` - ${i}:not(${i}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-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}`,...Sd()},[`&: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:`""`},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${i}-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 sy(e,t){return $re(li(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var cy=Xa(`Checkbox`,(e,{prefixCls:t})=>[sy(t,e)]),ly=v.createContext(null),uy=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:m,value:h,checked:g,defaultChecked:_,onChange:y,...x}=e,{getPrefixCls:S,direction:C,className:w,style:T,classNames:D,styles:O}=nt(`checkbox`),k=v.useContext(ly),{isFormItemInput:A}=v.useContext(rm),j=v.useContext(Xl),M=(k?.disabled||c)??j,[N,P]=E(_,g),F=N,I=b(e=>{P(e.target.checked),y?.(e),!s&&k?.toggleOption&&k.toggleOption({label:r,value:h})});k&&!s&&(F=k.value.includes(h));let L=v.useRef(null),z=R(t,L);v.useEffect(()=>{if(!(s||!k))return k.registerValue(h),()=>{k.cancelValue(h)}},[h,s]),v.useEffect(()=>{L.current?.input&&(L.current.input.indeterminate=i)},[i]);let B=S(`checkbox`,n),V=jc(B),[H,U]=cy(B,V),ee={...x},te={...e,indeterminate:i,disabled:M,checked:F},[W,ne]=mc([D,f],[O,p],{props:te}),re=G(`${B}-wrapper`,{[`${B}-rtl`]:C===`rtl`,[`${B}-wrapper-checked`]:F,[`${B}-wrapper-disabled`]:M,[`${B}-wrapper-in-form-item`]:A},w,u,W.root,l,U,V,H),ie=G(W.icon,{[`${B}-indeterminate`]:i},Tu,H),[ae,oe]=Z_(ee.onClick);return v.createElement(Mu,{component:`Checkbox`,disabled:M},v.createElement(`label`,{className:re,style:{...ne.root,...T,...d},onMouseEnter:a,onMouseLeave:o,onClick:ae},v.createElement(X_,{...ee,name:!s&&k?k.name:m,checked:F,onClick:oe,onChange:I,prefixCls:B,className:ie,style:ne.icon,disabled:M,ref:z,value:h}),Js(r)&&v.createElement(`span`,{className:G(`${B}-label`,W.label),style:ne.label},r)))}),eie=v.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=v.useContext($e),[m,h]=v.useState(d.value||n||[]),[g,_]=v.useState([]);v.useEffect(()=>{`value`in d&&h(d.value||[])},[d.value]);let y=v.useMemo(()=>i.map(e=>typeof e==`string`||Ys(e)?{label:e,value:e}:e),[i]),b=e=>{_(t=>t.filter(t=>t!==e))},x=e=>{_(t=>[].concat(We(t),[e]))},S=e=>{let t=m.indexOf(e.value),n=We(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||h(n),l?.(n.filter(e=>g.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=jc(C),[E,D]=cy(C,T),O=he(d,[`value`,`disabled`]),k=i.length?y.map(e=>v.createElement(uy,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:G(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,A=v.useMemo(()=>({toggleOption:S,value:m,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:b}),[S,m,d.disabled,d.name,x,b]),j=G(w,{[`${w}-rtl`]:p===`rtl`},o,s,D,T,E);return v.createElement(`div`,{className:j,style:c,role:u,...O,ref:t},v.createElement(ly.Provider,{value:A},k))}),dy=uy;dy.Group=eie,dy.__ANT_CHECKBOX=!0;var fy=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},py=e=>e===void 0?void 0:`${e}px`;function tie(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);C(()=>{if(d!==r){let e=p(d),t=p(r),n=fy(e,l),i=fy(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>py(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>py(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(bs,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{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),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":py(m?.width),"--thumb-active-left":b,"--thumb-active-width":py(g?.width),"--thumb-start-top":y,"--thumb-start-height":py(m?.height),"--thumb-active-top":b,"--thumb-active-height":py(g?.height)},a={ref:L(u,r),style:i,className:G(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function nie(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function rie(e){return e.map(e=>{if(typeof e==`object`&&e){let t=nie(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var iie=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:G(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:G(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},aie=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>L(y,t),[y,t]),x=v.useMemo(()=>rie(a),[a]),[S,C]=E(s??x[0]?.value,c),[w,T]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=he(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},I=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement(iie,Jd({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:G(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:I,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jd({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:G(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(tie,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{T(!0)},onMotionEnd:()=>{T(!1)}}),x.map(B)))});function my(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var hy=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),oie={overflow:`hidden`,...Ba},sie=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Va(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Ga(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 ${K(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...hy(e),color:e.itemSelectedColor},"&-focused":Wa(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} ${i}`).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:K(a),padding:`0 ${K(e.segmentedPaddingHorizontal)}`,...oie},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...hy(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${K(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:o,lineHeight:K(o),padding:`0 ${K(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:K(s),padding:`0 ${K(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...my(`&-disabled ${t}-item`,e),...my(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},cie=Xa(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return sie(li(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function lie(e){return Zs(e)&&!!e?.icon}var uie=v.forwardRef((e,t)=>{let n=Xc(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=nt(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=mc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=cie(D),A=Nu(c),j=v.useMemo(()=>s.map(e=>{if(lie(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:G(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=_c(d,u),N=G(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=Zs(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_g,{...n},e)};return v.createElement(aie,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),die={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`};function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,gy({},e,{ref:t,icon:die}))),pie=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=$a(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-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}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},mie=Xa([`Space`,`Addon`],e=>[pie(e),df(e,{focus:!1})]),hie=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext($e),f=u(`space-addon`,a),[p,m]=mie(f),{compactItemClassnames:h,compactSize:g}=Iu(f,d),_=Th(f,c),y=G(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function gie(e){return!!(e.addonBefore||e.addonAfter)}function _ie(e){return!!(e.prefix||e.suffix||e.allowClear)}function _y(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function vy(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=_y(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=_y(t,e,r),n(i);return}n(i)}function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=_ie(e),P=(0,v.cloneElement)(E,{value:g,className:G(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:G(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=G(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:G(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,yy({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:G(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(gie(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=G(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=G(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:G(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function xy(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function Sy(){return Sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[T,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Sf(A.current,e)},[N,P]=E(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=xy(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&vy(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},ee=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},te=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},W=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},ne=e=>{D(!0),i?.(e)},re=e=>{k.current&&=!1,D(!1),a?.(e)},ie=e=>{P(``),M(),A.current&&vy(A.current,e,r)},ae=V&&`${l}-out-of-range`;return v.createElement(by,Sy({},w,{prefixCls:l,className:G(f,ae),handleReset:ie,value:F,focused:T,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:G(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=he(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,Sy({autoComplete:n},t,{onChange:U,onFocus:ne,onBlur:re,onKeyDown:te,onKeyUp:W,className:G(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:ee}))})())}),Cy=e=>{let t;return Zs(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Eo,null)}),t};function yie(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function bie(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var xie=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=nt(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=jc(A),[N,P]=gv(A,g);are(A,M);let{compactSize:F,compactItemClassnames:I}=Iu(A,C),R=Nu(e=>a??F??e),z=v.useContext(Xl),B=o??z,V={...e,size:R,disabled:B},[H,U]=mc([O,y],[k,h],{props:V}),{status:ee,hasFeedback:te,feedbackIcon:W}=(0,v.useContext)(rm),ne=Eh(ee,i);(0,v.useRef)(bie(e)||!!te);let re=yie(j,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},oe=e=>{re(),_?.(e)},se=(te||l)&&v.createElement(v.Fragment,null,l,te&&W),ce=Cy(u??w),[le,ue]=jh(`input`,b,r);return v.createElement(vie,{ref:L(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:ie,onFocus:ae,style:{...U.root,...D,...m},styles:U,suffix:se,allowClear:ce,className:G(p,g,P,M,I,E,H.root),onChange:oe,addonBefore:f&&v.createElement(im,{form:!0,space:!0},f),addonAfter:d&&v.createElement(im,{form:!0,space:!0},d),classNames:{...H,input:G({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:G({[`${A}-${le}`]:ue},Th(A,ne)),affixWrapper:G({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:G({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:G({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${le}`]:ue},Th(`${A}-group-wrapper`,ne,te),N)}})});function wy(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function Ty(e){return e?Ys(e):!1}var Ey=v.createContext({latestIndex:0}),Sie=Ey.Provider,Cie=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(Ey);return Js(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},Tie=e=>{let{componentCls:t}=e;return{[t]:{"&-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}}}},Eie=Xa(`Space`,e=>{let t=li(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wie(t),Tie(t)]},()=>({}),{resetStyle:!1}),Dy=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=nt(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=wy(D),k=wy(E),A=Ty(D),j=Ty(E),M=ge(p,{keepEmpty:!0}),[N,P]=_c(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=Eie(L),B={...e,size:l,orientation:N,align:F},[V,H]=mc([s,C],[c,w],{props:B}),U=G(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),ee=G(`${L}-item`,V.item),te=M.map((e,t)=>{let n=e?.key||`${ee}-${t}`;return v.createElement(Cie,{prefix:L,classNames:V,styles:H,className:ee,key:n,index:t,separator:I,style:H.item},e)}),W=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>Js(t)?n:e,0)}),[M]);if(M.length===0)return null;let ne={};return S&&(ne.flexWrap=`wrap`),!k&&j&&(ne.columnGap=E),!O&&A&&(ne.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...ne,...H.root,...o,...b},...T},v.createElement(Sie,{value:W},te))});Dy.Compact=zu,Dy.Addon=hie;var Oy=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext($e),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(k_,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Iu(I,r),V=G(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(K_,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(K_,{type:a,danger:o,icon:w})]);return v.createElement(Dy.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(G_,{...R},U))};Oy.__ANT_BUTTON=!0;var ky=G_;ky.Button=Oy;var Die=` - 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; -`,Oie=[`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`],Ay={},jy;function kie(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Ay[n])return Ay[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Oie.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Ay[n]=s),s}function Aie(e,t=!1,n=null,r=null){jy||(jy=document.createElement(`textarea`),jy.setAttribute(`tab-index`,`-1`),jy.setAttribute(`aria-hidden`,`true`),jy.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(jy)),e.getAttribute(`wrap`)?jy.setAttribute(`wrap`,e.getAttribute(`wrap`)):jy.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=kie(e,t);jy.setAttribute(`style`,`${s};${Die}`),jy.value=e.value||e.placeholder||``;let c,l,u,d=jy.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){jy.value=` `;let e=jy.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=E(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[S,w]=v.useState(Fy),[T,D]=v.useState(),O=()=>{w(Ny)};C(()=>{x&&O()},[i,y,b,x]),C(()=>{if(S===Ny)w(Py);else if(S===Py){let e=Aie(_.current,!1,y,b);w(Fy),D(e)}},[S]);let k=v.useRef(),A=()=>{Xe.cancel(k.current)},j=e=>{S===Fy&&(o?.(e),a&&(A(),k.current=Xe(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?T:null,N={...c,...M};return(S===Ny||S===Py)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Le,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,My({},f,{ref:_,style:N,className:G(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[k,A]=E(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=xy(f,d),ee=U.max??o,te=Number(ee)>0,W=U.strategy(j),ne=!!ee&&W>ee,re=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),vy(e.currentTarget,e,i,n)},ie=e=>{P.current=!0,s?.(e)},ae=e=>{P.current=!1,re(e,e.currentTarget.value),c?.(e)},oe=e=>{re(e,e.target.value)},se=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),T?.(e)},ce=e=>{N(!0),n?.(e)},le=e=>{N(!1),r?.(e)},ue=e=>{A(``),B(),vy(z(),e,i)},de=l,fe;U.show&&(fe=U.showFormatter?U.showFormatter({value:j,count:W,maxLength:ee}):`${W}${te?` / ${ee}`:``}`,de=v.createElement(v.Fragment,null,de,v.createElement(`span`,{className:G(`${u}-data-count`,_?.count),style:y?.count},fe)));let pe=e=>{b?.(e),z()?.style.height&&I(!0)},me=!w&&!d&&!a;return v.createElement(by,{ref:L,value:j,allowClear:a,handleReset:ue,suffix:de,prefixCls:u,classNames:{..._,affixWrapper:G(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:G(p,ne&&`${u}-out-of-range`),style:{...m,...F&&!me?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof fe==`string`?fe:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(Iy,Ly({},D,{autoSize:w,maxLength:o,onKeyDown:se,onChange:oe,onFocus:ce,onBlur:le,onCompositionStart:ie,onCompositionEnd:ae,className:G(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:pe,ref:R,readOnly:C})))}),zy=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[` - &-allow-clear > ${t}, - &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},By=Xa([`Input`,`TextArea`],e=>zy(li(e,tv(e))),nv,{resetFont:!1}),Vy=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=nt(`textArea`),D=v.useContext(Xl),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(rm),M=Eh(k,o),[N,P]=mc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Sf(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=jc(I),[R,z]=gv(I,l);By(I,L);let{compactSize:B,compactItemClassnames:V}=Iu(I,b),H=Nu(e=>i??B??e),[U,ee]=jh(`textArea`,p,r),te=Cy(s??x),[W,ne]=v.useState(!1),[re,ie]=v.useState(!1),ae=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},oe=e=>{if(g?.(e),W&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return v.createElement(Ry,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:te,className:G(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:G({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,W&&`${I}-mouse-active`),variant:G({[`${I}-${U}`]:ee},Th(I,M)),affixWrapper:G(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:oe,onMouseDown:ae})});function Hy(e,t,n){return typeof n==`boolean`?n:e.length?!0:ge(t).some(e=>e.type===D_)}var Uy=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),Wy=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext($e),c=s(`layout`,n),[l]=w_(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:G(n||u,i,l),ref:t,...o})}),Gy=v.forwardRef((e,t)=>{let{direction:n}=v.useContext($e),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=he(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=nt(`layout`),_=m(`layout`,a),y=Hy(r,c,l),[b,x]=w_(_),S=G(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(We(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(x_.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),Ky=Uy({tagName:`div`,displayName:`Layout`})(Gy),qy=Uy({suffixCls:`header`,tagName:`header`,displayName:`Header`})(Wy),Jy=Uy({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(Wy),Yy=Uy({suffixCls:`content`,tagName:`main`,displayName:`Content`})(Wy),Xy=Ky;Xy.Header=qy,Xy.Footer=Jy,Xy.Content=Yy,Xy.Sider=D_,Xy._InternalSiderContext=E_;var Zy={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`};function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Qy({},e,{ref:t,icon:Zy}))),eb={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`};function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,tb({},e,{ref:t,icon:eb}))),rb={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:`页码`},ib=[10,20,50,100],ab=e=>{let{pageSizeOptions:t=ib,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===uu.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},ob=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=G(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function lb(){}function ub(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function db(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var fb=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=lb,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=lb,locale:b=rb,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:T,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=cb,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=E(u,l),[R,z]=E(s,o),B=Math.max(1,Math.min(R,db(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),ee=Math.min(db(void 0,I,c),B+(g?3:5));function te(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function W(e){let t=e.target.value,n=db(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function ne(e){return ub(e)&&e!==B&&ub(c)&&c>0}let re=c>I?h:!1;function ie(e){(e.keyCode===uu.UP||e.keyCode===uu.DOWN)&&e.preventDefault()}function ae(e){let t=W(e);switch(t!==V&&H(t),e.keyCode){case uu.ENTER:ce(t);break;case uu.UP:ce(t-1);break;case uu.DOWN:ce(t+1);break;default:break}}function oe(e){ce(W(e))}function se(e){let t=db(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function ce(e){if(ne(e)&&!C){let t=db(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let le=B>1,ue=Bc?c:B*I])),Ee=null,De=db(void 0,I,c);if(f&&c<=I)return null;let Oe=[],ke={rootPrefixCls:t,onClick:ce,onKeyPress:he,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},Ae=B-1>0?B-1:0,je=B+1=Ie*2&&B!==3&&(Oe[0]=v.cloneElement(Oe[0],{className:G(`${t}-item-after-jump-prev`,Oe[0].props.className)}),Oe.unshift(Ce)),De-B>=Ie*2&&B!==De-2){let e=Oe[Oe.length-1];Oe[Oe.length-1]=v.cloneElement(e,{className:G(`${t}-item-before-jump-next`,e.props.className)}),Oe.push(Ee)}a!==1&&Oe.unshift(v.createElement(ob,sb({},ke,{key:1,page:1}))),o!==De&&Oe.push(v.createElement(ob,sb({},ke,{key:De,page:De})))}let Le=be(Ae);if(Le){let e=!le||!De;Le=v.createElement(`li`,{title:_?b.prev_page:null,onClick:de,tabIndex:e?null:0,onKeyDown:ge,className:G(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=xe(je);if(Re){let e,n;w?(e=!ue,n=le?0:null):(e=!ue||!De,n=e?null:0),Re=v.createElement(`li`,{title:_?b.next_page:null,onClick:fe,tabIndex:n,onKeyDown:_e,className:G(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Re)}let ze=G(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,sb({className:ze,style:x,ref:F},we),Te,Le,w?Fe:Oe,Re,v.createElement(ab,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:se,pageSize:I,pageSizeOptions:k,quickGo:re?ce:null,goButton:Pe,showSizeChanger:D,sizeChangerRender:O}))},pb=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,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}}}}},mb=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...mv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},hb=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...pv(e)}}}}},gb=e=>{let{componentCls:t,antCls:n}=e,[,r]=$a(n,`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 ${K(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${K(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:`${K(e.inputOutlineOffset)} 0 ${K(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}}}}}},_b=e=>{let{componentCls:t,antCls:n}=e,[,r]=$a(n,`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`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:r(`item-spacing-actual`)},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`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:`${K(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":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...hv(e),...av(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...iv(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},vb=e=>{let{componentCls:t,antCls:n}=e,[,r]=$a(n,`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:K(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${K(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}}}}},yb=e=>{let{componentCls:t,antCls:n}=e,[r,i]=$a(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:K(e.itemSize),[r(`item-spacing-actual`)]:K(e.marginXS),"&-small":{[r(`item-size-actual`)]:K(e.itemSizeSM),[r(`item-spacing-actual`)]:K(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:K(e.itemSizeLG),[r(`item-spacing-actual`)]:K(e.marginSM)},...Va(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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:K(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...vb(e),..._b(e),...gb(e),...mb(e),...hb(e),...pb(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`}}},bb=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ga(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Wa(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Wa(e)}}}},xb=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,...nv(e)}),Sb=e=>li(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`},tv(e)),Cb=Xa(`Pagination`,e=>{let t=Sb(e);return[yb(t),bb(t)]},xb),wb=e=>{let{componentCls:t}=e;return{[`${t}${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:`${K(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}}}}},Tb=Qa([`Pagination`,`bordered`],e=>wb(Sb(e)),xb);function Eb(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:Zs(e)?[!0,e]:[void 0,void 0],[e])}var Db=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=eg(l),[,_]=za(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=nt(`pagination`),D=y(`pagination`,n),[O,k]=Cb(D),A=Nu(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=mc([w,m],[T,p],{props:M}),[F]=Ws(`Pagination`,Es),I={...F,...c},[L,R]=Eb(u),[z,B]=Eb(x),V=L??z,H=R??B,U=d||Qh,ee=v.useMemo(()=>f?f.map(Number):void 0,[f]),te=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:G(a,s)})},W=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(qd,null):v.createElement(yg,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(yg,null):v.createElement(qd,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(nb,{className:`${D}-item-link-icon`}):v.createElement($y,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement($y,{className:`${D}-item-link-icon`}):v.createElement(nb,{className:`${D}-item-link-icon`}),e))}},[b,D]),ne=y(`select`,r),re=G({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),ie={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(Tb,{prefixCls:D}),v.createElement(fb,{...W,...h,styles:P,classNames:N,style:ie,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:ee,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:te}))},Ob=100,kb=Ob/5,Ab=Ob/2-kb/2,jb=Ab*2*Math.PI,Mb=50,Nb=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:G(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Ab,cx:Mb,cy:Mb,strokeWidth:kb,style:n})},jie=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);C(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${jb/4}`,strokeDasharray:`${jb*s/100} ${jb*(100-s)/100}`};return v.createElement(`span`,{className:G(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${Ob} ${Ob}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(Nb,{dotClassName:n,hasCircleCls:!0}),v.createElement(Nb,{dotClassName:n,style:c})))};function Mie(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:G(o,r,n>0&&s),style:i},v.createElement(`span`,{className:G(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(jie,{prefixCls:t,percent:n}))}function Nie(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?Gl(n,e=>({className:G(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(Mie,{prefixCls:t,percent:r,className:i,style:a})}var Pie=new Ar(`antSpinMove`,{to:{opacity:1}}),Fie=new Ar(`antRotate`,{to:{transform:`rotate(405deg)`}}),Iie=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Va(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},Lie=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=$a(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`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} ${r} 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:Fie,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:Pie,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} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},Rie=e=>{let{componentCls:t}=e,[n]=$a(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},zie=Xa(`Spin`,e=>{let t=li(e,{spinDotDefault:e.colorTextDescription});return[Iie(t),Lie(t),Rie(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),Bie=200,Pb=[[30,.05],[70,.03],[96,.01]];function Vie(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var Fb;function Hie(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var Ib=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=nt(`spin`),E=y(`spin`,t),[D,O]=zie(E),[k,A]=v.useState(()=>n&&!Hie(n,r)),j=Vie(k,m);v.useEffect(()=>{if(n){let e=qre(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Nu(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=mc([w,h],[T,g],{props:P}),L=p??x??Fb,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(Nie,{className:G(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:G(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:G(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:G(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:G(`${E}-container`,F.container),style:I.container},d))};Ib.setDefaultIndicator=e=>{Fb=e};var Lb=(e,t={})=>!Js(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Uie=e=>{let{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a=``,prefixCls:o}=e,s;if(typeof n==`function`)s=n(t);else{let e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!n||e===`-`)s=e;else{let e=n[1],t=n[2]||`0`,c=n[4]||``;t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),Ys(r)&&(c=c.padEnd(r,`0`).slice(0,r>0?r:0)),c&&=`${i}${c}`,s=[v.createElement(`span`,{key:`int`,className:`${o}-content-value-int`},e,t),c&&v.createElement(`span`,{key:`decimal`,className:`${o}-content-value-decimal`},c)]}}return v.createElement(`span`,{className:`${o}-content-value`},s)},Wie=e=>{let{componentCls:t,marginXXS:n,padding:r,colorTextDescription:i,titleFontSize:a,colorTextHeading:o,contentFontSize:s,fontFamily:c}=e;return{[t]:{...Va(e),[`${t}-header`]:{paddingBottom:n,[`${t}-title`]:{color:i,fontSize:a}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:o,fontSize:s,fontFamily:c,[`${t}-content-value`]:{display:`inline-block`,direction:`ltr`},[`${t}-content-prefix, ${t}-content-suffix`]:{display:`inline-block`},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}}}},Gie=Xa(`Statistic`,e=>Wie(li(e,{})),e=>{let{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}),Rb=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,valueStyle:o,value:s=0,title:c,valueRender:l,prefix:u,suffix:d,loading:f=!1,formatter:p,precision:m,decimalSeparator:h=`.`,groupSeparator:g=`,`,onMouseEnter:_,onMouseLeave:y,styles:b,classNames:x,...S}=e,{getPrefixCls:C,direction:w,className:T,style:E,classNames:D,styles:O}=nt(`statistic`),k=C(`statistic`,n),[A,j]=Gie(k),M={...e,decimalSeparator:h,groupSeparator:g,loading:f,value:s},[N,P]=mc([D,x],[O,b],{props:M}),F=v.createElement(Uie,{decimalSeparator:h,groupSeparator:g,prefixCls:k,formatter:p,precision:m,value:s}),I=G(k,{[`${k}-rtl`]:w===`rtl`},T,r,i,N.root,A,j),L=G(`${k}-header`,N.header),R=G(`${k}-title`,N.title),z=G(`${k}-content`,N.content),B=G(`${k}-content-prefix`,N.prefix),V=G(`${k}-content-suffix`,N.suffix),H=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:H.current}));let U=Ts(S,{aria:!0,data:!0});return v.createElement(`div`,{...U,className:I,style:{...P.root,...E,...a},ref:H,onMouseEnter:_,onMouseLeave:y},c&&v.createElement(`div`,{className:L,style:P.header},v.createElement(`div`,{className:R,style:P.title},c)),v.createElement(vm,{paragraph:!1,loading:f,className:`${k}-skeleton`,active:!0},v.createElement(`div`,{className:z,style:{...o,...P.content}},u&&v.createElement(`span`,{className:B,style:P.prefix},u),typeof l==`function`?l(F):F,d&&v.createElement(`span`,{className:V,style:P.suffix},d))))}),Kie=[[`Y`,1e3*60*60*24*365],[`M`,1e3*60*60*24*30],[`D`,1e3*60*60*24],[`H`,1e3*60*60],[`m`,1e3*60],[`s`,1e3],[`S`,1]];function qie(e,t){let n=e,r=/\[[^\]]*]/g,i=(t.match(r)||[]).map(e=>e.slice(1,-1)),a=t.replace(r,`[]`),o=Kie.reduce((e,[t,r])=>{if(e.includes(t)){let i=Math.floor(n/r);return n-=i*r,e.replace(RegExp(`${t}+`,`g`),e=>{let t=e.length;return i.toString().padStart(t,`0`)})}return e},a),s=0;return o.replace(r,()=>{let e=i[s];return s+=1,e})}function Jie(e,t,n){let{format:r=``}=t,i=new Date(e).getTime(),a=Date.now();return qie(Math.max(n?i-a:a-i,0),r)}var Yie=1e3/60;function Xie(e){return new Date(e).getTime()}var zb=e=>{let{value:t,format:n=`HH:mm:ss`,onChange:r,onFinish:i,type:a,...o}=e,s=a===`countdown`,[c,l]=v.useState(null),u=b(()=>{let e=Date.now(),n=Xie(t);l({});let a=s?n-e:e-n;return r?.(a),s&&n{let e,t=()=>{u()||window.clearInterval(e)},n=()=>{e=window.setInterval(t,Yie)},r=()=>{window.clearInterval(e)};return n(),()=>{r()}},[t,s]),v.useEffect(()=>{l({})},[]);let d=(e,t)=>c?Jie(e,{...t,format:n},s):`-`,f=e=>Gl(e,{title:void 0});return v.createElement(Rb,{...o,value:t,valueRender:f,formatter:d})},Zie=v.memo(e=>v.createElement(zb,{...e,type:`countdown`}));Rb.Timer=zb,Rb.Countdown=Zie;var Qie=Rb,Bb={},Vb=`rc-table-internal-hook`;function Hb(e){let t=v.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=v.useRef(e);r.current=e;let[i]=v.useState(()=>({getValue:()=>r.current,listeners:new Set}));return C(()=>{(0,al.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),v.createElement(t.Provider,{value:i},n)},defaultValue:e}}function Ub(e,t){let n=b(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=v.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=v.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=v.useState({});return C(()=>{if(!r)return;function e(e){let t=n(e);vt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let s=i?{ref:o}:{},c=v.useRef(0),l=v.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,v.createElement(e.Provider,{value:c.current},v.createElement(n,Wb({},a,s)))):v.createElement(n,Wb({},a,s))};return i?v.forwardRef(a):a}function r(e,n){let r=z(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),v.createElement(e,Wb({},n,a))};return v.memo(r?v.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:$ie,responseImmutable:eae,useImmutableMark:tae}=Gb(),{makeImmutable:Kb,responseImmutable:qb,useImmutableMark:nae}=Gb(),Jb=Hb(),Yb=v.createContext({renderWithProps:!1}),rae=`RC_TABLE_KEY`;function iae(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xb(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||iae(i).join(`-`)||rae;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function Zb(e){return e!=null}function aae(e){return typeof e==`number`&&!Number.isNaN(e)}function oae(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!v.isValidElement(e)}function sae(e,t,n,r,i,a){let o=v.useContext(Yb);return k(()=>{if(Zb(r))return[r];let a=U(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);oae(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[nae(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!vt(e,t,!0)})}function cae(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function lae(e,t){return Ub(Jb,n=>[cae(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():v.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},$b=v.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:y,fixEnd:x,fixedStartShadow:S,fixedEndShadow:C,offsetFixedStartShadow:w,offsetFixedEndShadow:T,zIndex:E,zIndexReverse:D,appendNode:O,additionalProps:k={},isSticky:A}=e,j=`${a}-cell`,{allColumnsFixedLeft:M,rowHoverable:N}=Ub(Jb,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=sae(l,d,f,n,u,p),I={},L=typeof y==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=Ub(Jb,({scrollInfo:e})=>{if(!L&&!R)return[!1,!1];let[t,n]=e;return[(L&&S&&t)-w>=1,(R&&C&&n-t)-T>1]});L&&(I.insetInlineStart=y,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D),R&&(I.insetInlineEnd=x,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D);let V=F?.colSpan??k.colSpan??g??1,H=F?.rowSpan??k.rowSpan??_??1,[U,ee]=lae(m,H),te=b(e=>{l&&ee(m,m+H-1),k?.onMouseEnter?.(e)}),W=b(e=>{l&&ee(-1,-1),k?.onMouseLeave?.(e)});if(V===0||H===0)return null;let ne=k.title??uae({rowType:h,ellipsis:r,children:P}),re=G(j,o,{[`${j}-fix`]:L||R,[`${j}-fix-start`]:L,[`${j}-fix-end`]:R,[`${j}-fix-start-shadow`]:S,[`${j}-fix-start-shadow-show`]:S&&z,[`${j}-fix-end-shadow`]:C,[`${j}-fix-end-shadow-show`]:C&&B,[`${j}-ellipsis`]:r,[`${j}-with-append`]:O,[`${j}-fix-sticky`]:(L||R)&&A,[`${j}-row-hover`]:!F&&U},k.className,F?.className),ie={};c&&(ie.textAlign=c);let ae={...F?.style,...I,...ie,...k.style,...s},oe=P;return typeof oe==`object`&&!Array.isArray(oe)&&!v.isValidElement(oe)&&(oe=null),r&&(S||C)&&(oe=v.createElement(`span`,{className:`${j}-content`},oe)),v.createElement(t,Qb({},F,k,{className:re,style:ae,title:ne,scope:i,onMouseEnter:N?te:void 0,onMouseLeave:N?W:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),O,oe)});function ex(e){return e.fixed===`start`}function tx(e){return e.fixed===`end`}function nx(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;ex(i)&&ex(a)?o=r.start[e]:tx(a)&&tx(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!ex(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!tx(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;tt;--e)tx(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var rx=v.createContext({});function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=Ub(Jb,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=v.useContext(rx),d=n+i-1+1===c?i+1:i,f=v.useMemo(()=>nx(n,n+d-1,u,l),[n,d,u,l]);return v.createElement($b,ix({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},fae=e=>{let{children:t,...n}=e;return v.createElement(`tr`,n,t)},ax=e=>{let{children:t}=e;return t};ax.Row=fae,ax.Cell=dae;var ox=qb(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=Ub(Jb,`prefixCls`),a=r.length-1,o=r[a],s=v.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return v.createElement(rx.Provider,{value:s},v.createElement(`tfoot`,{className:`${i}-summary`},t))}),sx=ax;function pae(e){return null}function mae(e){return null}function cx(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o{if(n?.size){let i=[];for(let a=0;a({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function ux(e,t,n,r){let i=Ub(Jb,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=b(l),x=d?.(e,n),S=x?.onClick,C=(t,...n)=>{f&&g&&l(e,t),S?.(t,...n)},w;typeof p==`string`?w=p:typeof p==`function`&&(w=p(e,n,r));let T=Xb(a);return{...i,columnsKey:T,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...x,className:G(w,x?.className),onClick:C}}}var dx=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=Ub(Jb,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=v.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),v.createElement(r,{className:a,style:{display:o?null:`none`}},v.createElement($b,{component:i,prefixCls:t,colSpan:s},h))};function hae({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return v.createElement(`span`,{className:G(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return v.createElement(`span`,{className:G(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function gae(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function fx(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=ux(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:y,expandedRowRender:b,rowProps:x,expanded:S,rowSupportExpand:C}=h,w=v.useRef(!1);w.current||=S;let T=fx(y,a,o,u),E=v.createElement(d,px({},x,{"data-row-key":c,className:G(t,`${g}-row`,`${g}-row-level-${u}`,x?.className,r.row,{[T]:u>=1}),style:{...n,...x?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:y,appendCellNode:b,additionalCellProps:x}=mx(h,e,t,u,o,l,m?.offset);return v.createElement($b,px({className:G(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:b,additionalProps:x}))})),D;if(C&&(w.current||S)){let e=b(a,o,u+1,S);D=v.createElement(dx,{expanded:S,className:G(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,T),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return v.createElement(v.Fragment,null,E,D)}),vae=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=v.useRef(null);return C(()=>{i.current&&n(t,i.current.offsetWidth)},[]),v.createElement(Le,{data:t},v.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},v.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},yae=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=v.useRef(null),{measureRowRender:a}=Ub(Jb,[`measureRowRender`]),o=v.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},v.createElement(Le.Collection,{onBatchResize:e=>{yl(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=v.isValidElement(t)?v.cloneElement(t,{ref:null}):t;return v.createElement(vae,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},bae=qb(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=Ub(Jb,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=lx(t,l,c,s),y=v.useMemo(()=>_.map(e=>e.rowKey),[_]),b=v.useRef({renderWithProps:!1}),x=v.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e{let{record:n,indent:r,index:i,rowKey:a}=e;return v.createElement(_ae,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:y,record:n,index:t,renderIndex:i,rowComponent:C,cellComponent:w,scopeCellComponent:T,indent:r,expandedRowInfo:x})}):v.createElement(dx,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:C,cellComponent:w,colSpan:o.length,isEmpty:!0},u);let D=Xb(o);return v.createElement(Yb.Provider,{value:b.current},v.createElement(S,{style:g.wrapper,className:G(`${r}-tbody`,h.wrapper)},n&&v.createElement(yae,{prefixCls:r,columnsKey:D,onColumnResize:a,columns:o}),E))}),hx=`RC_TABLE_INTERNAL_COL_DEFINE`;function xae(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=Ub(Jb,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[hx],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(v.createElement(`col`,gx({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?v.createElement(`colgroup`,null,a):null};function Sae(e,t){return(0,v.useMemo)(()=>{let n=[];for(let r=0;r{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:y,maxContentScroll:b,children:x,...S}=e,{prefixCls:C,scrollbarSize:w,isSticky:T,getComponent:E}=Ub(Jb,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),D=E([`header`,`table`],`table`),O=T&&!f?0:w,k=v.useRef(null),A=v.useCallback(e=>{I(t,e),I(k,e)},[]);v.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),y({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${C}-cell-scrollbar`})},N=(0,v.useMemo)(()=>O?[...a,M]:a,[O,a]),P=(0,v.useMemo)(()=>O?[...o,M]:o,[O,o]),F=(0,v.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+O),0],isSticky:T}},[O,u,T]),L=Sae(s,l),R=(0,v.useMemo)(()=>{let e=!L||!L.length||L.every(e=>!e);return i||e},[i,L]);return v.createElement(`div`,{style:{overflow:`hidden`,...T?{top:p,bottom:m}:{},...r},ref:A,className:G(n,{[h]:!!h})},v.createElement(D,{style:{tableLayout:_,minWidth:`100%`,width:g}},R?c:v.createElement(_x,{colWidths:[...L,O],columCount:l+1,columns:P}),x({...S,stickyOffsets:F,columns:N,flattenColumns:P})))}),vx=v.memo(Cae);function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=Ub(Jb,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=Xb(t.map(e=>e.column));return v.createElement(i,yx({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=nx(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return v.createElement($b,yx({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function Tae(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:G(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var bx=qb(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=Ub(Jb,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=v.useMemo(()=>Tae(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return v.createElement(f,{className:G(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>v.createElement(wae,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function xx(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function Eae(e,t,n){return v.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=xx(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=xx(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function Sx(e){return ge(e).filter(e=>v.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=Sx(r)),a})}function Cx(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:Cx(t)}:e})}function Tx(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...Tx(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function Dae({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},y){let b=v.useMemo(()=>Cx((t||Sx(n)||[]).slice()),[t,n]),x=v.useMemo(()=>{if(r){let t=b.slice();if(!t.includes(Bb)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?b.length:e;n>=0&&t.splice(n,0,Bb)}let n=t.indexOf(Bb);t=t.filter((e,t)=>e!==Bb||t===n);let r=b[n],f;f=h||(r?r.fixed:null);let g={[hx]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?v.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===Bb?g:e;return te!==Bb)},[r,b,o,i,c,f,d]),S=v.useMemo(()=>{let e=x;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,x,f]),[C,w]=Eae(v.useMemo(()=>Tx(S),[S,f,g]),g,_);return[S,C,w]}function Oae(e,t,n){let r=xae(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||hae,p=d||`children`,m=v.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=v.useState(()=>o||(s?gae(t,n,p):[])),_=v.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,v.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function kae(e,t){let n=v.useMemo(()=>e.map((n,r)=>nx(r,r,e,t)),[e,t]);return k(()=>n,[n],(e,t)=>!vt(e,t))}function Aae(e){let t=(0,v.useRef)(e),[,n]=(0,v.useState)({}),r=(0,v.useRef)(null),i=(0,v.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,v.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function jae(e){let t=(0,v.useRef)(e||null),n=(0,v.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,v.useEffect)(()=>r,[]),[i,a]}function Mae(){let[e,t]=v.useState(-1),[n,r]=v.useState(-1);return[e,n,v.useCallback((e,n)=>{t(e),r(n)},[])]}var Ex=x()?window:null;function Nae(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>Ex}=typeof e==`object`?e:{},o=a()||Ex,s=!!e;return v.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function Pae(e,t){return(0,v.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var Dx=e=>{let{children:t,className:n,style:r}=e;return v.createElement(`div`,{className:n,style:r},t)};function Ox(e){let t=Se(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var kx=`mouseup`,Ax=`mousemove`,jx=`scroll`,Mx=`resize`,Fae=v.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=Ub(Jb,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=v.useRef(null),[f,p]=Aae({scrollLeft:0,isHiddenScrollBar:!0}),m=v.useRef({delta:0,x:0}),[h,g]=v.useState(!1),_=v.useRef(null);v.useEffect(()=>()=>{Xe.cancel(_.current)},[]);let y=()=>{g(!1)},b=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},x=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u){Xe.cancel(_.current),_.current=Xe(()=>{if(!n.current)return;let e=Ox(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:Ox(a).top+a.clientHeight;t-Bc()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},C=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return v.useImperativeHandle(t,()=>({setScrollLeft:C,checkScrollBarVisible:S})),v.useEffect(()=>(document.body.addEventListener(kx,y,!1),document.body.addEventListener(Ax,x,!1),S(),()=>{document.body.removeEventListener(kx,y),document.body.removeEventListener(Ax,x)}),[u,h]),v.useEffect(()=>{if(n.current){let e=[],t=Se(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(jx,S,!1)}),window.addEventListener(Mx,S,!1),window.addEventListener(jx,S,!1),a.addEventListener(jx,S,!1),()=>{e.forEach(e=>{e.removeEventListener(jx,S)}),window.removeEventListener(Mx,S),window.removeEventListener(jx,S),a.removeEventListener(jx,S)}}},[a]),v.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:v.createElement(`div`,{style:{height:Bc(),width:l,bottom:i},className:`${s}-sticky-scroll`},v.createElement(`div`,{onMouseDown:b,ref:d,className:G(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n={rowKey:`key`,prefixCls:Px,emptyText:Rae,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:y,showHeader:x,components:S,emptyText:w,onRow:T,onHeaderRow:E,measureRowRender:D,onScroll:O,internalHooks:k,transformColumns:A,internalRefs:j,tailor:M,getContainerWidth:N,sticky:P,rowHoverable:F=!0}=n,I=l||Iae,L=!!I.length,R=k===Vb,z=v.useCallback((e,t)=>U(S,e)||t,[S]),B=v.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),V=z([`body`]),[H,ee,te]=Mae(),[W,ne,re,ie,ae,oe]=Oae(n,I,B),se=d?.x,[ce,le]=v.useState(0),[ue,de,fe]=Dae({...n,...W,expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:re,getRowKey:B,onTriggerExpand:oe,expandIcon:ie,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:R&&M&&typeof se==`number`?se:null,clientWidth:ce},R?A:null),pe=fe??se,me=v.useMemo(()=>({columns:ue,flattenColumns:de}),[ue,de]),he=v.useRef(null),ge=v.useRef(null),_e=v.useRef(null),ve=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:he.current,scrollTo:e=>{if(_e.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i}=e;if(aae(n))_e.current?.scrollTo({top:n});else{let e=r??B(I[t]),n=_e.current.querySelector(`[data-row-key="${e}"]`);if(n)if(!i)n.scrollIntoView();else{let e=n.offsetTop;_e.current.scrollTo({top:e+i})}}}else _e.current?.scrollTo&&_e.current.scrollTo(e)}}));let ye=v.useRef(null),[be,xe]=v.useState(!1),[Ce,we]=v.useState(!1),[Te,Ee]=v.useState(new Map),De=Xb(de).map(e=>Te.get(e)),Oe=v.useMemo(()=>De,[De.join(`_`)]),ke=Pae(Oe,de),Ae=d&&Zb(d.y),je=d&&Zb(pe)||!!W.fixed,Me=je&&de.some(({fixed:e})=>e),Ne=v.useRef(null),{isSticky:Pe,offsetHeader:Fe,offsetSummary:Ie,offsetScroll:Re,stickyClassName:ze,container:Be}=Nae(P,r),Ve=v.useMemo(()=>g?.(I),[g,I]),He=(Ae||Pe)&&v.isValidElement(Ve)&&Ve.type===ax&&Ve.props.fixed,Ue,We,Ge;Ae&&(We={overflowY:L?`scroll`:`auto`,maxHeight:d.y}),je&&(Ue={overflowX:`auto`},Ae||(We={overflowY:`hidden`}),Ge={width:pe===!0?`auto`:pe,minWidth:`100%`});let Ke=v.useCallback((e,t)=>{Ee(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[qe,Je]=jae(null);function Ye(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Xe,Ze]=v.useState([0,0]),Qe=b(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||Lae;(!Je()||Je()===r)&&(qe(r),Ye(n,ge.current),Ye(n,_e.current),Ye(n,ye.current),Ye(n,Ne.current?.setScrollLeft));let i=e||ge.current;if(i){let e=R&&M&&typeof pe==`number`?pe:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(Ze(n=>{let i=[r,e-t];return vt(n,i)?n:i}),e===t){xe(!1),we(!1);return}xe(r>0),we(r{Qe(e),O?.(e)}),et=()=>{je&&_e.current?Qe({currentTarget:Se(_e.current),scrollLeft:_e.current?.scrollLeft}):(xe(!1),we(!1))},tt=e=>{Ne.current?.checkScrollBarVisible();let t=e??he.current?.offsetWidth??0;R&&N&&he.current&&(t=N(he.current,t)||t),t!==ce&&(et(),le(t))};C(()=>{je&&tt()},[je]);let nt=v.useRef(!1);v.useEffect(()=>{nt.current&&et()},[je,l,ue.length]),v.useEffect(()=>{nt.current=!0},[]);let[rt,it]=v.useState(0);C(()=>{(!M||!R)&&(_e.current instanceof Element?it(Vc(_e.current).width):it(Vc(ve.current).width))},[]),v.useEffect(()=>{R&&j&&(j.body.current=_e.current)});let at=v.useCallback(e=>v.createElement(v.Fragment,null,v.createElement(bx,e),He===`top`&&v.createElement(ox,e,Ve)),[He,Ve]),ot=v.useCallback(e=>v.createElement(ox,e,Ve),[Ve]),st=z([`table`],`table`),ct=v.useMemo(()=>f||(Me?pe===`max-content`?`auto`:`fixed`:Ae||Pe||de.some(({ellipsis:e})=>e)?`fixed`:`auto`),[Ae,Me,de,f,Pe]),lt,ut={colWidths:Oe,columCount:de.length,stickyOffsets:ke,onHeaderRow:E,fixHeader:Ae,scroll:d},dt=v.useMemo(()=>L?null:typeof w==`function`?w():w,[L,w]),ft=v.createElement(bae,{data:I,measureColumnWidth:Ae||je||Pe}),pt=v.createElement(_x,{colWidths:de.map(({width:e})=>e),columns:de}),mt=_==null?void 0:v.createElement(`caption`,{className:`${r}-caption`},_),ht=Ts(n,{data:!0}),gt=Ts(n,{aria:!0});if(Ae||Pe){let e;typeof V==`function`?(e=V(I,{scrollbarSize:rt,ref:_e,onScroll:Qe}),ut.colWidths=de.map(({width:e},t)=>{let n=t===de.length-1?e-rt:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=v.createElement(`div`,{style:{...Ue,...We},onScroll:$e,ref:_e,className:`${r}-body`},v.createElement(st,Nx({style:{...Ge,tableLayout:ct}},gt),mt,pt,ft,!He&&Ve&&v.createElement(ox,{stickyOffsets:ke,flattenColumns:de},Ve)));let t={noData:!I.length,maxContentScroll:je&&pe===`max-content`,...ut,...me,direction:p,stickyClassName:ze,scrollX:pe,tableLayout:ct,onScroll:Qe};lt=v.createElement(v.Fragment,null,x!==!1&&v.createElement(vx,Nx({},t,{stickyTopOffset:Fe,className:`${r}-header`,ref:ge,colGroup:pt}),at),e,He&&He!==`top`&&v.createElement(vx,Nx({},t,{stickyBottomOffset:Ie,className:`${r}-summary`,ref:ye,colGroup:pt}),ot),Pe&&_e.current&&_e.current instanceof Element&&v.createElement(Fae,{ref:Ne,offsetScroll:Re,scrollBodyRef:_e,onScroll:Qe,container:Be,direction:p}))}else lt=v.createElement(`div`,{style:{...Ue,...We,...c?.content},className:G(`${r}-content`,s?.content),onScroll:Qe,ref:_e},v.createElement(st,Nx({style:{...Ge,tableLayout:ct}},gt),mt,pt,x!==!1&&v.createElement(bx,Nx({},ut,me)),ft,Ve&&v.createElement(ox,{stickyOffsets:ke,flattenColumns:de},Ve)));let _t={...o};Pe&&(_t[`--columns-count`]=de.length);let yt=v.createElement(`div`,Nx({className:G(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:je,[`${r}-fix-end-shadow`]:je,[`${r}-fix-start-shadow-show`]:je&&be,[`${r}-fix-end-shadow-show`]:je&&Ce,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:Ae,[`${r}-fixed-column`]:Me,[`${r}-scroll-horizontal`]:je,[`${r}-has-fix-start`]:de[0]?.fixed,[`${r}-has-fix-end`]:de[de.length-1]?.fixed===`end`}),style:_t,id:y,ref:he},ht),m&&v.createElement(Dx,{className:G(`${r}-title`,s?.title),style:c?.title},m(I)),v.createElement(`div`,{ref:ve,className:G(`${r}-container`,s?.section),style:c?.section},lt),h&&v.createElement(Dx,{className:G(`${r}-footer`,s?.footer),style:c?.footer},h(I)));je&&(yt=v.createElement(Le,{onResize:({offsetWidth:e})=>tt(e)},yt));let bt=kae(de,ke),xt=v.useMemo(()=>({scrollX:pe,scrollInfo:Xe,classNames:s,styles:c,prefixCls:r,getComponent:z,scrollbarSize:rt,direction:p,fixedInfoList:bt,isSticky:Pe,componentWidth:ce,fixHeader:Ae,fixColumn:Me,horizonScroll:je,tableLayout:ct,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:ie,expandableType:ne,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:oe,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:de.every(e=>e.fixed===`start`),emptyNode:dt,columns:ue,flattenColumns:de,onColumnResize:Ke,colWidths:Oe,hoverStartRow:H,hoverEndRow:ee,onHover:te,rowExpandable:W.rowExpandable,onRow:T,getRowKey:B,expandedKeys:re,childrenColumnName:ae,rowHoverable:F,measureRowRender:D}),[pe,Xe,s,c,r,z,rt,p,bt,Pe,ce,Ae,Me,je,ct,a,W.expandedRowClassName,ie,ne,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,oe,W.expandIconColumnIndex,W.indentSize,dt,ue,de,Ke,Oe,H,ee,te,W.rowExpandable,T,B,re,ae,F,D]);return v.createElement(Jb.Provider,{value:xt},yt)}),Fx=e=>Kb(zae,e),Ix=Fx();Ix.EXPAND_COLUMN=Bb,Ix.INTERNAL_HOOKS=Vb,Ix.Column=pae,Ix.ColumnGroup=mae,Ix.Summary=sx;var Lx=Hb(null),Rx=Hb(null);function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=Ub(Rx,[`columnsOffset`]),{key:y,fixedInfo:b,appendCellNode:x,additionalCellProps:S}=mx(t,n,r,i,a),{style:C,colSpan:w=1,rowSpan:T=1}=S,E=Bae(r-1,w,_),D=w>1?g-E:0,O={...C,...l,flex:`0 0 ${E}px`,width:`${E}px`,marginRight:D,pointerEvents:`auto`},k=v.useMemo(()=>d?T<=1:w===0||T===0||T>1,[T,w,d]);k?O.visibility=`hidden`:d&&(O.height=f?.(T));let A=k?()=>null:p,j={};return(T===0||w===0)&&(j.rowSpan=1,j.colSpan=1),v.createElement($b,zx({className:G(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:y,record:c,index:a,renderIndex:s,dataIndex:m,render:A,shouldCellUpdate:n.shouldCellUpdate},b,{appendNode:x,additionalProps:{...S,style:O,...j}}))};function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_}=Ub(Jb,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`]),{getComponent:y}=Ub(Lx,[`getComponent`]),b=ux(u,a,r,d),x=y([`body`,`row`],`div`),S=y([`body`,`cell`],`div`),{rowSupportExpand:C,expanded:w,rowProps:T,expandedRowRender:E,expandedRowClassName:D}=b,O;if(C&&w){let e=E(u,r,d+1,w),t=fx(D,u,r,d),n={};g&&(n={style:{"--virtual-width":`${_}px`}});let i=`${h}-expanded-row-cell`;O=v.createElement(x,{className:G(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,t)},v.createElement($b,{component:S,prefixCls:h,className:G(i,{[`${i}-fixed`]:g}),additionalProps:n},e))}let k={...o,width:p};s&&(k.position=`absolute`,k.pointerEvents=`none`);let A=v.createElement(x,Bx({},T,l,{"data-row-key":a,ref:C?null:t,className:G(i,`${h}-row`,T?.className,{[`${h}-row-extra`]:s}),style:{...k,...T?.style}}),m.map((e,t)=>v.createElement(Vae,{key:t,component:S,rowInfo:b,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return C?v.createElement(`div`,{ref:t},A,O):A})),Hae=qb(v.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=Ub(Jb,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=Ub(Lx),_=v.useRef(null),y=lx(n,l,s,o),b=v.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),x=v.useMemo(()=>b.map(e=>e[2]),[b]);v.useEffect(()=>{b.forEach(([e,t])=>{a(e,t)})},[b]),v.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{offset:t,...n}=e;t?_.current?.scrollTo({...n,offset:t,align:`top`}):_.current?.scrollTo(e)},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,`scrollLeft`,{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,`scrollTop`,{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=y[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;eS(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)y[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=y[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=y[i];if(!a||!a.record){let e=Math.min(i,y.length-1),t=y[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return v.createElement(Vx,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=v.useMemo(()=>({columnsOffset:x}),[x]),T=`${c}-tbody`,E=h([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),v.createElement(Rx.Provider,{value:w},v.createElement(_h,{fullHeight:!1,ref:_,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:y,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return v.createElement(Vx,{data:e,rowKey:r,index:t,style:n.style})}))}));function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ref:n,onScroll:r}=t;return v.createElement(Hae,{ref:n,data:e,onScroll:r})},Wae=v.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=Px,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=b((e,t)=>U(l,e)||t),m=b(u),h=v.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return v.createElement(Lx.Provider,{value:h},v.createElement(Ix,Hx({},e,{className:G(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?Uae:void 0},columns:r,internalHooks:Vb,tailor:!0,ref:t})))}),Ux=e=>Kb(Wae,e);Ux();var Gae=e=>null,Kae=e=>null,Wx=v.createContext(null),qae=v.createContext({}),Jae=v.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:y,selectable:b,treeId:x,...S}=e,C=Jc(x,t),w=v.useContext(Wx),{classNames:T,styles:E}=w||{},D=v.useContext(qae),O=v.useRef(null),[k,A]=v.useState(!1),j=!!(w.disabled||e.disabled||D.nodeDisabled?.(_)),M=v.useMemo(()=>!w.checkable||e.checkable===!1?!1:w.checkable,[w.checkable,e.checkable]),N=t=>{j||w.onNodeSelect(t,iy(e))},P=t=>{j||!M||e.disableCheckbox||w.onNodeCheck(t,iy(e),!f)},F=v.useMemo(()=>typeof b==`boolean`?b:w.selectable,[b,w.selectable]),I=t=>{w.onNodeClick(t,iy(e)),F?N(t):P(t)},L=t=>{w.onNodeDoubleClick(t,iy(e))},R=t=>{w.onNodeMouseEnter(t,iy(e))},z=t=>{w.onNodeMouseLeave(t,iy(e))},B=t=>{w.onNodeContextMenu(t,iy(e))},V=v.useMemo(()=>!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(_))),[w.draggable,_]),H=t=>{t.stopPropagation(),A(!0),w.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragEnter(t,e)},ee=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragOver(t,e)},te=t=>{t.stopPropagation(),w.onNodeDragLeave(t,e)},W=t=>{t.stopPropagation(),A(!1),w.onNodeDragEnd(t,e)},ne=t=>{t.preventDefault(),t.stopPropagation(),A(!1),w.onNodeDrop(t,e)},re=t=>{m||w.onNodeExpand(t,iy(e))},ie=v.useMemo(()=>{let{children:e}=Yv(w.keyEntities,t)||{};return!!(e||[]).length},[w.keyEntities,t]),ae=v.useMemo(()=>ny(s,w.loadData,ie,e.loaded),[s,w.loadData,ie,e.loaded]);v.useEffect(()=>{m||typeof w.loadData==`function`&&u&&!ae&&!e.loaded&&w.onNodeLoad(iy(e))},[m,w.loadData,w.onNodeLoad,u,ae,e]);let oe=v.useMemo(()=>w.draggable?.icon?v.createElement(`span`,{className:`${w.prefixCls}-draggable-icon`},w.draggable.icon):null,[w.draggable]),se=t=>{let n=e.switcherIcon||w.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},ce=()=>{if(ae){let e=se(!0);return e===!1?null:v.createElement(`span`,{className:G(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher-noop`)},e)}let e=se(!1);return e===!1?null:v.createElement(`span`,{onClick:re,className:G(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher_${u?Kx:qx}`)},e)},le=v.useMemo(()=>{if(!M)return null;let t=typeof M==`boolean`?null:M;return v.createElement(`span`,{className:G(`${w.prefixCls}-checkbox`,{[`${w.prefixCls}-checkbox-checked`]:f,[`${w.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${w.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:P,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":C},t)},[M,f,p,j,e.disableCheckbox,C]),ue=v.useMemo(()=>ae?null:u?Kx:qx,[ae,u]),de=v.useMemo(()=>v.createElement(`span`,{className:G(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__${ue||`docu`}`,{[`${w.prefixCls}-icon_loading`]:m}),style:E?.itemIcon}),[w.prefixCls,ue,m]),fe=v.useMemo(()=>{let n=!!w.draggable;return!e.disabled&&n&&w.dragOverNodeKey===t?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),pe=v.useMemo(()=>{let{title:t=Yae}=e,n=`${w.prefixCls}-node-content-wrapper`,r;if(w.showIcon){let t=e.icon||w.icon;r=t?v.createElement(`span`,{className:G(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__customize`),style:E?.itemIcon},typeof t==`function`?t(e):t):de}else w.loadData&&m&&(r=de);let i;return i=typeof t==`function`?t(_):w.titleRender?w.titleRender(_):t,v.createElement(`span`,{ref:O,title:typeof t==`string`?t:``,className:G(n,`${n}-${ue||`normal`}`,{[`${w.prefixCls}-node-selected`]:!j&&(d||k)}),onMouseEnter:R,onMouseLeave:z,onContextMenu:B,onClick:I,onDoubleClick:L},r,v.createElement(`span`,{className:G(`${w.prefixCls}-title`,T?.itemTitle),style:E?.itemTitle},i),fe)},[w.prefixCls,w.showIcon,e,w.icon,de,w.titleRender,_,ue,R,z,B,I,L]),me=Ts(S,{aria:!0,data:!0}),{level:he}=Yv(w.keyEntities,t)||{},ge=l[l.length-1],_e=!j&&V,ve=w.draggingNodeKey===t;return v.createElement(`div`,Gx({ref:h,role:`treeitem`,id:C,"aria-expanded":ae?void 0:u,"aria-selected":F&&!j?d:void 0,"aria-checked":M&&!j?p?`mixed`:f:void 0,"aria-disabled":j,className:G(n,`${w.prefixCls}-treenode`,T?.item,{[`${w.prefixCls}-treenode-disabled`]:j,[`${w.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${w.prefixCls}-treenode-checkbox-checked`]:f,[`${w.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${w.prefixCls}-treenode-selected`]:d,[`${w.prefixCls}-treenode-loading`]:m,[`${w.prefixCls}-treenode-active`]:g,[`${w.prefixCls}-treenode-leaf-last`]:ge,[`${w.prefixCls}-treenode-draggable`]:V,dragging:ve,"drop-target":w.dropTargetKey===t,"drop-container":w.dropContainerKey===t,"drag-over":!j&&i,"drag-over-gap-top":!j&&a,"drag-over-gap-bottom":!j&&o,"filter-node":w.filterTreeNode?.(iy(e)),[`${w.prefixCls}-treenode-leaf`]:ae}),style:{...r,...E?.item},draggable:_e,onDragStart:_e?H:void 0,onDragEnter:V?U:void 0,onDragOver:V?ee:void 0,onDragLeave:V?te:void 0,onDrop:V?ne:void 0,onDragEnd:V?W:void 0,onMouseMove:y},me),v.createElement(Jae,{prefixCls:w.prefixCls,level:he,isStart:c,isEnd:l}),oe,ce(),le,pe)};Jx.isTreeNode=1;function Yx(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Xx(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Zx(e){return e.split(`-`)}function Xae(e,t){let n=[],r=Yv(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Zae(e){if(e.parent){let t=Zx(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Qae(e){let t=Zx(e.pos);return Number(t[t.length-1])===0}function Qx(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=Yv(s,n.eventKey);if(de.key===g.key),t=o[e<=0?0:e-1].key;g=Yv(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function $x(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function eS(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return pe(!1,"`checkedKeys` is not an array or an object"),null;return t}function tS(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=Yv(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var nS={},rS=`SELECT_ALL`,iS=`SELECT_INVERT`,aS=`SELECT_NONE`,oS=[],sS=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),Zs(t)&&e in t&&sS(e,t[e],n)}),n),$ae=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:x,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=be(`Table`),[M,N]=hc(e=>e),[P,F]=E(i||oS,r),I=P??oS,L=v.useRef(new Map),R=(0,v.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[w,n]);v.useEffect(()=>{R(I)},[I,R]);let z=(0,v.useMemo)(()=>sS(O,C),[O,C]),{keyEntities:B}=(0,v.useMemo)(()=>{if(b)return{keyEntities:null};let e=S;if(n){let t=new Set(z.map(T)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(We(e),We(n))}return ty(e,{externalGetKey:T,childrenPropName:O})},[S,T,b,O,n,z]),V=(0,v.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,T,a]),H=(0,v.useCallback)(e=>{let t=T(e),n;return n=V.has(t)?V.get(T(e)):a?a(e):void 0,!!n?.disabled},[V,T]),[U,ee]=(0,v.useMemo)(()=>{if(b)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=oy(I,!0,B,H);return[e||[],t]},[I,b,B,H]),te=(0,v.useMemo)(()=>{let e=m===`radio`?U.slice(0,1):U;return new Set(e)},[U,m]),W=(0,v.useMemo)(()=>m===`radio`?new Set:new Set(ee),[ee,m]);v.useEffect(()=>{t||F(oS)},[!!t]);let ne=(0,v.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,w,s,n]),re=(0,v.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}ne(n,`single`)},[c,w,ne]),ie=(0,v.useMemo)(()=>!h||y?null:(h===!0?[rS,iS,aS]:h).map(e=>e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){ne(S.map((e,t)=>T(e,t)).filter(e=>!V.get(e)?.disabled||te.has(e)),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(te);C.forEach((t,n)=>{let r=T(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),ne(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),ne(Array.from(te).filter(e=>V.get(e)?.disabled),`none`)}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),N(null)}})),[h,y,k.selectionAll,k.selectInvert,k.selectNone,V,te,S,C,T,u,ne]);return[(0,v.useCallback)(e=>{if(!t)return e.filter(e=>e!==nS);let n=We(e),r=new Set(te),i=z.map(T).filter(e=>!V.get(e).disabled),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),ne(t,`all`),N(null)},u,d;if(m!==`radio`){let e;if(ie){let t={getPopupContainer:A,items:ie.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=v.createElement(`div`,{className:`${x}-selection-extra`},v.createElement(ky,{menu:t,getPopupContainer:A},v.createElement(`span`,null,v.createElement(Wh,null))))}let t=z.map((e,t)=>{let n=T(e,t),i=V.get(n)||{};return{checked:r.has(n),...i}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=v.createElement(dy,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(z.length===0||n),skipGroup:!0}),u=!y&&v.createElement(`div`,{className:`${x}-selection`},d,e)}let S;S=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=V.get(i);return{node:v.createElement(ev,{...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||re(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=W.has(a),c=V.get(a),l;return l=D===`nest`?s:c?.indeterminate??s,{node:v.createElement(dy,{...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=U.some(e=>i.includes(e));if(n&&b&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),ne(t,`multiple`)}else{let e=U;if(b){let n=o?Yx(e,a):Xx(e,a);re(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=oy([].concat(We(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=oy(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}re(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let C=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(nS))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,nS].concat(We(t))}else n=[nS].concat(We(n));let E=n.indexOf(nS);n=n.filter((e,t)=>e!==nS||t===E);let O=n[E-1],k=n[E+1],j=g;j===void 0&&(k?.fixed===void 0?O?.fixed!==void 0&&(j=O.fixed):j=k.fixed),j&&O&&O.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&O.fixed===void 0&&(O.fixed=j);let P=G(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:j,width:p,className:`${x}-selection-column`,title:t?.columnTitle?typeof t.columnTitle==`function`?t.columnTitle(d):t.columnTitle:u,render:C,onCell:t.onCell,align:t.align,[hx]:{className:P}};return n.map(e=>e===nS?F:e)},[T,z,t,U,te,W,p,ie,D,V,f,re,H]),te]};function eoe(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return v.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:G(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function toe(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var cS=(e,t)=>`key`in e&&Js(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function lS(e,t){return t?`${t}-${e}`:`${e}`}var uS=(e,t)=>typeof e==`function`?e(t):e,noe=(e,t)=>{let n=uS(e,t);return Object.prototype.toString.call(n)===`[object Object]`?``:n},roe={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`};function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,dS({},e,{ref:t,icon:roe}))),aoe=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return v.createElement(`div`,{style:i})};function ooe(e,t){let[n,r]=v.useState(!1);C(()=>{if(n)return e(),()=>{t()}},[n]),C(()=>(r(!0),()=>{r(!1)}),[])}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=v.useState(!0),{prefixCls:m}=v.useContext(Wx),h=a&&o!==`hide`;C(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=v.useRef(!1),y=()=>{a&&!_.current&&(_.current=!0,c())};return ooe(g,y),a?v.createElement(bs,fS({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&y()}}),({className:e,style:t},n)=>v.createElement(`div`,{ref:n,className:G(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=ry(r,u);return v.createElement(Jx,fS({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):v.createElement(Jx,fS({domRef:t,className:n,style:r},d,{active:l}))});function coe(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:y,itemHeight:b,virtual:x,scrollWidth:S,focusable:w,activeItem:T,tabIndex:E,onKeyDown:D,onFocus:O,onBlur:k,onMouseDown:A,onMouseUp:j,onActiveChange:M,onListChangeStart:N,onListChangeEnd:P,...F}=e,I=Xc(),L=v.useRef(null),R=v.useRef(null);v.useImperativeHandle(t,()=>({scrollTo:e=>{L.current.scrollTo(e)},getIndentWidth:()=>R.current.offsetWidth}));let[z,B]=v.useState(o),[V,H]=v.useState(r),[U,ee]=v.useState(r),[te,W]=v.useState([]),[ne,re]=v.useState(null),ie=v.useRef(r);ie.current=r;function ae(){let e=ie.current;H(e),ee(e),W([]),re(null),P()}C(()=>{B(o);let e=coe(z,o);if(e.key!==null)if(e.add){let t=V.findIndex(({key:t})=>t===e.key),n=yS(pS(V,r,e.key),x,y,b),i=V.slice();i.splice(t+1,0,vS),ee(i),W(n),re(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=yS(pS(r,V,e.key),x,y,b),i=r.slice();i.splice(t+1,0,vS),ee(i),W(n),re(`hide`)}else V!==r&&(H(r),ee(r))},[o,r]),v.useEffect(()=>{m||ae()},[m]);let oe=_?U:r,se={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return v.createElement(v.Fragment,null,v.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},v.createElement(`div`,{className:`${n}-indent`},v.createElement(`div`,{ref:R,className:`${n}-indent-unit`}))),v.createElement(_h,mS({},F,{data:oe,itemKey:bS,height:y,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:S,prefixCls:`${n}-list`,ref:L,role:`tree`,tabIndex:w!==!1&&!p?E:void 0,"aria-activedescendant":T?Jc(I,T.key):void 0,onKeyDown:D,onFocus:O,onBlur:k,onMouseDown:A,onMouseUp:j,onVisibleChange:e=>{e.every(e=>bS(e)!==hS)&&ae()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=Zv(i,t);delete n.key,delete n.children;let c=ry(s,se);return v.createElement(soe,mS({},n,c,{title:r,active:!!T&&i===T.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===hS?te:null,motionType:ne,onMotionStart:N,onMotionEnd:ae,treeNodeRequiredProps:se,treeId:I,onMouseMove:()=>{M(null)}}))}))});function xS(){return xS=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0,expandAction:!1};static TreeNode=Jx;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:Qv()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=v.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=Qv(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(pe(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=$v(e.children)),a){r.treeData=a;let e=ty(a,{fieldNames:o});r.keyEntities={[hS]:_S,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?tS(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[hS];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else !n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?tS(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=ey(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=$x(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=$x(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=eS(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=eS(e.defaultCheckedKeys)||{}:a&&(o=eS(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=oy(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=Yx(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Xae(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:iy(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=Qx(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=Yv(r,t.eventKey);a&&(a.children||[]).length&&(i=Xx(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:iy(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:iy(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=Qx(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:iy(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:iy(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:iy(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...ry(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:Yv(this.state.keyEntities,a).node};pe(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=Zx(o),d={event:e,node:iy(l),dragNode:this.dragNodeProps?iy(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&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)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=iy({...ry(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?Yx(n,a):Xx(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?Xx(n,c):[c]:Yx(n,c);let u=n.map(e=>{let t=Yv(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?Xx(i,c):Yx(i,c);l={checked:e,halfChecked:Yx(a,c)},u.checkedNodes=e.map(e=>Yv(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=oy([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=oy(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=Yv(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(Yv(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=Xx(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:Yx(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:Yx(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=uoe){let{loadedKeys:e}=this.state;pe(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:Xx(e,t)}),n()}r(e)}),{loadingKeys:Xx(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onMouseUp=e=>{this.focusedByMouse=!1;let{onMouseUp:t}=this.props;t?.(e)};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{this.focusedByMouse=!1;let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=ey(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(pe(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?Xx(n,c):Yx(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=ey(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=Yx(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=iy({...ry(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!Yv(a,t)?.children?.length,l=!ny(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:y,icon:b,switcherIcon:x,draggable:S,checkable:C,checkStrictly:w,disabled:T,motion:E,loadData:D,filterTreeNode:O,height:k,itemHeight:A,scrollWidth:j,virtual:M,titleRender:N,dropIndicatorRender:P,onContextMenu:F,onScroll:I,direction:L,rootClassName:R,rootStyle:z}=this.props,B=Ts(this.props,{aria:!0,data:!0}),V;S&&(V=typeof S==`object`?S:typeof S==`function`?{nodeDraggable:S}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:y,icon:b,switcherIcon:x,draggable:V,draggingNodeKey:n,checkable:C,checkStrictly:w,disabled:T,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:L,dropIndicatorRender:P,loadData:D,filterTreeNode:O,titleRender:N,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 v.createElement(Wx.Provider,{value:H},v.createElement(`div`,{className:G(l,u,R,{[`${l}-show-line`]:m}),style:z},v.createElement(loe,xS({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:T,selectable:_,checkable:!!C,motion:E,dragging:n!==null,height:k,itemHeight:A,virtual:M,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:I,scrollWidth:j},this.getTreeNodeRequiredProps(),B))))}},foe={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`};function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,SS({},e,{ref:t,icon:foe}))),poe={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`};function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,wS({},e,{ref:t,icon:poe}))),hoe={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`};function TS(){return TS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,TS({},e,{ref:t,icon:hoe}))),_oe={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`};function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,ES({},e,{ref:t,icon:_oe}))),yoe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${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 ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),boe=new Ar(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),xoe=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),Soe=(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:`${K(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),Coe=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...Va(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...Wa(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:boe,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:K(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...xoe(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-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(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...Soe(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${K(t.calc(a).div(2).equal())} !important`}}}},woe=(e,t,n=!0)=>{let r=`.${e}`,i=li(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[Coe(e,i),n&&yoe(i)].filter(Boolean)},Toe=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Eoe=Xa(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:sy(`${t}-checkbox`,e)},woe(t,e),Qu(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...Toe(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),Doe=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return v.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},Ooe={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`};function DS(){return DS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,DS({},e,{ref:t,icon:Ooe}))),Aoe={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`};function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,OS({},e,{ref:t,icon:Aoe}))),Moe={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`};function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,kS({},e,{ref:t,icon:Moe}))),Poe=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return v.isValidElement(a)?a:v.createElement(pu,{className:`${t}-switcher-loading-icon`});let l;if(Zs(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=typeof l==`function`?l(r):l,n=`${t}-switcher-line-custom-icon`;return v.isValidElement(e)?Gl(e,{className:G(e.props?.className,n)}):e}return l?v.createElement(CS,{className:`${t}-switcher-line-icon`}):v.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=typeof n==`function`?n(r):n;return v.isValidElement(d)?Gl(d,{className:G(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?v.createElement(joe,{className:`${t}-switcher-line-icon`}):v.createElement(Noe,{className:`${t}-switcher-line-icon`}):v.createElement(koe,{className:u}):d},AS=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=nt(`tree`),{virtual:c}=v.useContext($e),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:y=!0,draggable:b,disabled:x,motion:S,style:C,rootClassName:w,classNames:T,styles:E,icon:D}=e,O=v.useContext(Xl),k=x??O,A=n(`tree`,l),j=n(),M=S??{...Su(j),motionAppear:!1},N={...e,showIcon:d,blockNode:h,checkable:_,selectable:y,disabled:k,motion:M},[P,F]=mc([o,T],[s,E],{props:N}),I={...N,showLine:!!f,icon:D,dropIndicatorRender:Doe},[L,R]=Eoe(A),[,z]=za(),B=z.paddingXS/2+(z.Tree?.titleHeight||z.controlHeightSM),V=v.useMemo(()=>{if(!b)return!1;let e={};switch(typeof b){case`function`:e.nodeDraggable=b;break;case`object`:e={...b};break;default:break}return e.icon!==!1&&(e.icon=e.icon||v.createElement(voe,null)),e},[b]),H=e=>v.createElement(Poe,{prefixCls:A,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return v.createElement(doe,{itemHeight:B,ref:t,virtual:c,...I,prefixCls:A,className:G({[`${A}-icon-hide`]:!d,[`${A}-block-node`]:h,[`${A}-unselectable`]:!y,[`${A}-rtl`]:r===`rtl`,[`${A}-disabled`]:k},i,u,L,R),style:{...a,...C},rootClassName:G(P.root,w),rootStyle:F.root,classNames:P,styles:F,direction:r,checkable:_&&v.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:y,switcherIcon:H,draggable:V},g)}),jS=0,MS=1,NS=2;function PS(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&PS(o||[],t,n)}e.forEach(a)}function Foe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=jS;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return PS(e,e=>{if(o===NS)return!1;if(s(e)){if(a.push(e),o===jS)o=MS;else if(o===MS)return o=NS,!1}else o===MS&&a.push(e);return t.includes(e)},Qv(i)),a}function FS(e,t,n){let r=We(t),i=[];return PS(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},Qv(n)),i}function Ioe(e){let{isLeaf:t,expanded:n}=e;return t?v.createElement(CS,null):n?v.createElement(moe,null):v.createElement(goe,null)}function IS({treeData:e,children:t}){return e||$v(t)}var Loe=v.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i,...a}=e,o=v.useRef(null),s=v.useRef(null),c=()=>{let{keyEntities:e}=ty(IS(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?tS(o,e):o,t},[l,u]=v.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=v.useState(()=>c());v.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),v.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=IS(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=FS(f,g,r)):n&&h?(g=Array.from(new Set([].concat(We(s.current||[]),We(Foe({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=FS(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=FS(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=v.useContext($e),{prefixCls:_,className:y,showIcon:b=!0,expandAction:x=`click`,...S}=a,C=h(`tree`,_),w=G(`${C}-directory`,{[`${C}-directory-rtl`]:g===`rtl`},y);return v.createElement(AS,{icon:Ioe,ref:t,blockNode:!0,...S,showIcon:b,expandAction:x,prefixCls:C,className:w,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),LS=AS;LS.DirectoryTree=Loe,LS.TreeNode=Jx;var RS=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?v.createElement(`div`,{className:`${r}-filter-dropdown-search`},v.createElement(xie,{prefix:v.createElement(qh,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Roe=e=>{let{keyCode:t}=e;t===uu.ENTER&&e.stopPropagation()},zoe=v.forwardRef((e,t)=>v.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Roe,ref:t},e.children));function zS(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(We(t),We(zS(n))))}),t}function Boe(e){return e.some(({children:e})=>e)}var BS=(e,t)=>typeof t==`string`||Ys(t)?t.toString().toLowerCase().includes(e):!1,VS=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:VS({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?dy:ev,u={key:e.value===void 0?t:c,label:v.createElement(v.Fragment,null,v.createElement(l,{checked:r.includes(c)}),v.createElement(`span`,null,e.text))};return o?typeof s==`function`?s(o,e)?u:null:BS(o,e.text)?u:null:u})};function HS(e){return e||[]}var Voe=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:y={},filterDropdownOpen:b,onFilterDropdownOpenChange:x}=r,[S,C]=v.useState(!1),w=v.useContext(fg),T=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),E=e=>{C(e),y.onOpenChange?.(e),x?.(e)},D=y.open??b??S,O=u?.filteredKeys,[k,A]=bc(HS(O)),j=({selectedKeys:e})=>{A(e)},M=(e,{node:t,checked:n})=>{j(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};v.useEffect(()=>{S&&j({selectedKeys:HS(O)})},[O]);let[N,P]=v.useState([]),F=e=>{P(e)},[I,L]=v.useState(``),R=v.useMemo(()=>I.trim().toLowerCase(),[I]),z=e=>{let{value:t}=e.target;L(t)};v.useEffect(()=>{S||L(``)},[S]);let B=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||vt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},V=()=>{E(!1),B(k())},H=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&B([]),t&&E(!1),L(``),A(g?(_||[]).map(String):[])},U=({closeDropdown:e}={closeDropdown:!0})=>{e&&E(!1),B(k())},ee=(e,t)=>{t.source===`trigger`&&(e&&O!==void 0&&A(HS(O)),E(e),!e&&!r.filterDropdown&&o&&V())},te=G({[`${i}-menu-without-submenu`]:!Boe(r.filters||[])}),W=e=>{e.target.checked?A(zS(r?.filters).map(String)):A([])},ne=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ne({filters:e.children})),r}),re=e=>({...e,text:e.title,value:e.key,children:e.children?.map(re)||[]}),ie,{direction:ae,renderEmpty:oe}=v.useContext($e);if(typeof r.filterDropdown==`function`)ie=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:k(),confirm:U,clearFilters:H,filters:r.filters,visible:D,close:()=>{E(!1)}});else if(r.filterDropdown)ie=r.filterDropdown;else{let e=k()||[];ie=v.createElement(v.Fragment,null,(()=>{let a=oe?.(`Table.filter`)??v.createElement(kh,{image:kh.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return v.createElement(v.Fragment,null,v.createElement(RS,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),v.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?v.createElement(dy,{checked:e.length===zS(r.filters).length,indeterminate:e.length>0&&e.lengthtypeof l==`function`?l(I,re(e)):BS(R,e.title):void 0})));let o=VS({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:I,normalizedSearchValue:R}),u=o.every(e=>e===null);return v.createElement(v.Fragment,null,v.createElement(RS,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),u?a:v.createElement(W_,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:te,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:m,openKeys:N,onOpenChange:F,items:o}))})(),v.createElement(`div`,{className:`${n}-dropdown-btns`},v.createElement(yf,{type:`link`,size:`small`,disabled:g?vt((_||[]).map(String),e,!0):e.length===0,onClick:()=>H()},f.filterReset),v.createElement(yf,{type:`primary`,size:`small`,onClick:V},f.filterConfirm)))}r.filterDropdown&&(ie=v.createElement(P_,{selectable:void 0},ie)),ie=v.createElement(zoe,{className:`${n}-dropdown`},ie);let se=(()=>{let e;return e=typeof r.filterIcon==`function`?r.filterIcon(T):r.filterIcon?r.filterIcon:v.createElement(ioe,null),v.createElement(`span`,{role:`button`,tabIndex:-1,className:G(`${n}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})();if(w)return v.createElement(`div`,{className:`${n}-column`},v.createElement(`span`,{className:`${t}-column-title`},p),se);let ce=qs({trigger:[`click`],placement:ae===`rtl`?`bottomLeft`:`bottomRight`,children:se,getPopupContainer:m},{...y,rootClassName:G(h,y.rootClassName),open:D,onOpenChange:ee,popupRender:()=>typeof y?.dropdownRender==`function`?y.dropdownRender(ie):ie});return v.createElement(`div`,{className:`${n}-column`},v.createElement(`span`,{className:`${t}-column-title`},p),v.createElement(ky,{...ce}))},US=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=lS(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:cS(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:cS(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(We(r),We(US(e.children,t,a))))}),r};function WS(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=lS(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=cS(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>v.createElement(Voe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},uS(n.title,r))}}return`children`in h&&(h={...h,children:WS(e,t,h.children,r,i,a,o,u,c)}),h})}var GS=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=zS(a).filter(e=>n.includes(String(e))):t[i]=null}),t},KS=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=zS(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=KS(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),qS=e=>e.flatMap(e=>`children`in e?[e].concat(We(qS(e.children||[]))):[e]),JS=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;be(`Table`);let c=v.useMemo(()=>qS(r||[]),[r]),[l,u]=v.useState(()=>US(c,!0)),d=v.useMemo(()=>{let e=US(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>cS(e,lS(t)));return l.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return e},[c,l]),f=v.useMemo(()=>GS(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(GS(t),t)};return[e=>WS(t,n,e,d,o,p,a,void 0,s),d,f]},YS=(e,t,n)=>{let r=v.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),Zs(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function XS(e,t){let n={current:e.current,pageSize:e.pageSize},r=Zs(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];typeof r!=`function`&&(n[t]=r)}),n}function ZS(e,t,n){let{total:r=0,...i}=Zs(n)?n:{},[a,o]=(0,v.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=qs(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var QS={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`};function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,$S({},e,{ref:t,icon:QS}))),tC={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`};function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,nC({},e,{ref:t,icon:tC}))),iC=`ascend`,aC=`descend`,oC=e=>e.sorter&&typeof e.sorter==`object`&&Ys(e.sorter.multiple)?e.sorter.multiple:!1,sC=e=>typeof e==`function`?e:Zs(e)&&e.compare?e.compare:!1,cC=(e,t)=>t?e[e.indexOf(t)+1]:e[0],lC=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:cS(e,t),multiplePriority:oC(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=lS(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(We(r),We(lC(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:cS(e,o),multiplePriority:oC(e),sortOrder:e.defaultSortOrder}))}),r},uC=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=lS(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=cS(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=cC(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(iC)&&v.createElement(rC,{className:G(`${e}-column-sorter-up`,{active:m===iC})}),n=s.includes(aC)&&v.createElement(eC,{className:G(`${e}-column-sorter-down`,{active:m===aC})});g=v.createElement(`span`,{className:G(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},v.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:y,triggerDesc:b}=a||{},x=_;h===aC?x=b:h===iC&&(x=y);let S=Zs(l)?{title:x,...l}:{title:x};d={...d,className:G(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=v.createElement(`span`,{className:`${e}-column-title`},uS(t.title,n)),a=v.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?v.createElement(`div`,{className:G(r,`${r}-tooltip-target-sorter`)},i,v.createElement(_g,{...S},g)):v.createElement(_g,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:oC(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===uu.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:oC(t)}),o?.(e))};let s=noe(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=G(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:uC(e,d.children,n,r,i,a,o,u,c)}),d}),dC=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},fC=e=>{let t=e.filter(({sortOrder:e})=>e).map(dC);return t.length===0&&e.length?{...dC(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},pC=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>sC(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?{...e,[n]:pC(r,t,n)}:e}):i},mC=e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o,globalLocale:s}=e,[c,l]=v.useState(()=>lC(n,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=lS(r,t);if(n.push(cS(e,i)),Array.isArray(e.children)){let t=u(e.children,i);n.push.apply(n,We(t))}}),n},d=v.useMemo(()=>{let e=!0,t=lC(n,!1);if(!t.length){let e=u(n);return c.filter(({key:t})=>e.includes(t))}let r=[];function i(t){e?r.push(t):r.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r},[n,c]),f=v.useMemo(()=>{let e=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[d]),p=e=>{let t;t=e.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?[e]:[].concat(We(d.filter(({key:t})=>t!==e.key)),[e]),l(t),o(fC(t),t)};return[e=>uC(t,e,d,p,r,i,a,void 0,s),d,f,()=>fC(d)]},hC=(e,t)=>e.map(e=>{let n={...e};return n.title=uS(e.title,t),`children`in n&&(n.children=hC(n.children,t)),n}),gC=e=>[v.useCallback(t=>hC(t,e),[e])],_C=Fx((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),vC=Ux((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),yC=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${K(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(r).mul(-1).equal())} - ${K(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(o).mul(-1).equal())} ${K(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${K(n)} 0 ${K(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},bC=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Ba,wordBreak:`keep-all`,[` - &${t}-cell-fix-start-shadow, - &${t}-cell-fix-end-shadow - `]:{overflow:`visible`,[`${t}-cell-content`]:{...Ba,display:`block`}},[`${t}-column-title`]:{...Ba,wordBreak:`keep-all`}}}}},xC=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},SC=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${K(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${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`]:{...Ya(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:K(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,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:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${K(y(d).mul(-1).equal())} ${K(y(f).mul(-1).equal())}`,padding:`${K(d)} ${K(f)}`}}}},CC=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${K(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${K(o)} ${K(D(m).div(2).mul(-1).equal())}`,padding:`0 ${K(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...Va(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${K(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${K(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${K(D(s).sub(l).equal())} ${K(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function wC({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var TC=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=wC(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 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`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},EC=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${K(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},DC=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${K(n)} ${K(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${K(n)} ${K(n)}`}}}}},OC=e=>{let{componentCls:t}=e,[n,r]=wC(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":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},kC=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).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`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(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:K(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},AC=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` - ${t}-title, - ${t}-footer, - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${K(i)} ${K(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:K(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${K(r(i).mul(-1).equal())} ${K(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:K(r(i).mul(-1).equal()),marginInline:`${K(r(n).sub(a).equal())} ${K(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:K(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},jC=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,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:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},MC=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${K(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${K(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},NC=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${K(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${K(i(n).mul(-1).equal())} 0 ${r}`}}}},PC=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${K(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` - & > ${t}-row, - & > div:not(${t}-row) > ${t}-row - `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${K(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},FC=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${K(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Ua(),[t]:{...Va(e),fontSize:l,background:u,borderRadius:`${K(d)} ${K(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${K(d)} ${K(d)} 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:`${K(r)} ${K(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${K(r)} ${K(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} 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 ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:K(v(r).mul(-1).equal()),marginInline:`${K(v(a).sub(i).equal())} - ${K(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${K(r)} ${K(i)}`,color:g,background:_}}}},IC=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new ji(i).onBackground(n).toHexString(),w=new ji(a).onBackground(n).toHexString(),T=new ji(t).onBackground(n).toHexString(),E=new ji(y),D=new ji(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},LC=2,RC=Xa(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=li(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:LC,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[FC(F),EC(F),NC(F),jC(F),CC(F),yC(F),DC(F),SC(F),NC(F),xC(F),kC(F),TC(F),MC(F),bC(F),AC(F),OC(F),PC(F)]},IC,{resetFont:!1,unitless:{expandIconScale:!0}}),zC=[],BC=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,columns:g,children:_,childrenColumnName:y,onChange:b,getPopupContainer:x,loading:S,expandIcon:C,expandable:w,expandedRowRender:T,expandIconColumnIndex:E,indentSize:D,scroll:O,sortDirections:k,locale:A,showSorterTooltip:j={target:`full-header`},virtual:M}=e;be(`Table`);let N=v.useMemo(()=>g||Sx(_),[g,_]),P=eg(v.useMemo(()=>N.some(e=>e.responsive),[N])),F=v.useMemo(()=>{let e=new Set(Object.keys(P).filter(e=>P[e]));return N.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[N,P]),I=he(e,[`className`,`style`,`columns`]),{locale:L=zs,table:R}=v.useContext($e),{getPrefixCls:z,direction:B,renderEmpty:V,getPopupContainer:H,className:U,style:ee,classNames:te,styles:W}=nt(`table`),ne=Nu(e=>c===`middle`?`medium`:c??e),re={...e,size:ne,bordered:l},[ie,ae]=mc([te,o],[W,s],{props:re},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),oe={...L.Table,...A},[se]=Ws(`global`,zs.global),ce=d||zC,le=z(`table`,n),ue=z(`dropdown`,u),[,de]=za(),fe=v.useMemo(()=>Zs(p)?{columnWidth:de.Table?.selectionColumnWidth,...p}:p,[p,de.Table?.selectionColumnWidth]),pe=jc(le),[me,ge]=RC(le,pe),_e={childrenColumnName:y,expandIconColumnIndex:E,...w,expandIcon:w?.expandIcon??R?.expandable?.expandIcon},{childrenColumnName:ve=`children`}=_e,ye=v.useMemo(()=>ce.some(e=>e?.[ve])?`nest`:T||w?.expandedRowRender?`row`:null,[ve,ce]),xe={body:v.useRef(null)},Se=toe(le),Ce=v.useRef(null),we=v.useRef(null);yc(t,()=>({...we.current,nativeElement:Ce.current}));let Te=m||R?.rowKey||`key`,Ee=O??R?.scroll,De=v.useMemo(()=>typeof Te==`function`?Te:e=>e?.[Te],[Te]),[Oe]=YS(ce,ve,De),ke={},Ae=(e,t,n=!1)=>{let r={...ke,...e};n&&(ke.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&xe.body.current&&Ac(0,{getContainer:()=>xe.body.current}),b?.(r.pagination,r.filters,r.sorter,{currentDataSource:KS(pC(ce,r.sorterStates,ve),r.filterStates,ve),action:t})},[je,Me,Ne,Pe]=mC({prefixCls:le,mergedColumns:F,onSorterChange:(e,t)=>{Ae({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:k||[`ascend`,`descend`],tableLocale:oe,showSorterTooltip:j,globalLocale:se}),Fe=v.useMemo(()=>pC(ce,Me,ve),[ve,ce,Me]);ke.sorter=Pe(),ke.sorterStates=Me;let[Ie,Le,Re]=JS({prefixCls:le,locale:oe,dropdownPrefixCls:ue,mergedColumns:F,onFilterChange:(e,t)=>{Ae({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:x||H,rootClassName:G(i,pe)}),ze=KS(Fe,Le,ve);ke.filters=Re,ke.filterStates=Le;let[Be]=gC(v.useMemo(()=>{let e={};return Object.keys(Re).forEach(t=>{Re[t]!==null&&(e[t]=Re[t])}),{...Ne,filters:e}},[Ne,Re])),[Ve,He]=ZS(ze.length,(e,t)=>{Ae({pagination:{...ke.pagination,current:e,pageSize:t}},`paginate`)},f);ke.pagination=f===!1?{}:XS(Ve,f),ke.resetPagination=He;let Ue=v.useMemo(()=>{if(f===!1||!Ve.pageSize)return ze;let{current:e=1,total:t,pageSize:n=10}=Ve;return ze.lengthn?ze.slice((e-1)*n,e*n):ze:ze.slice((e-1)*n,e*n)},[!!f,ze,Ve?.current,Ve?.pageSize,Ve?.total]),[We,Ge]=$ae({prefixCls:le,data:ze,pageData:Ue,getRowKey:De,getRecordByKey:Oe,expandType:ye,childrenColumnName:ve,locale:oe,getPopupContainer:x||H},fe),Ke=(e,t,n)=>{let r=typeof h==`function`?h(e,t,n):h;return G({[`${le}-row-selected`]:Ge.has(De(e,t))},r)};_e.__PARENT_RENDER_ICON__=_e.expandIcon,_e.expandIcon=_e.expandIcon||C||eoe(oe),ye===`nest`&&_e.expandIconColumnIndex===void 0?_e.expandIconColumnIndex=+!!fe:_e.expandIconColumnIndex>0&&fe&&--_e.expandIconColumnIndex,typeof _e.indentSize!=`number`&&(_e.indentSize=Ys(D)?D:15);let qe=v.useCallback(e=>Be(We(Ie(je(e)))),[je,Ie,We]),Je,Ye;if(f!==!1&&Ve?.total){let e;e=Ve.size?Ve.size:ne===`small`||ne===`medium`?`small`:void 0;let t=(t=`end`)=>v.createElement(Db,{...Ve,classNames:ie.pagination,styles:ae.pagination,className:G(`${le}-pagination ${le}-pagination-${t}`,Ve.className),size:e}),{placement:n,position:r}=Ve,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ye=t()),e&&(Je=t(a(e))),n&&(Ye=t(a(n)))}else Ye=t()}let Xe=v.useMemo(()=>{if(typeof S==`boolean`)return{spinning:S};if(Zs(S))return{spinning:!0,...S}},[S]),Ze=G(ge,pe,`${le}-wrapper`,U,{[`${le}-wrapper-rtl`]:B===`rtl`},r,i,ie.root,me),Qe={...ae.root,...ee,...a},et=v.useMemo(()=>Xe?.spinning&&ce===zC?null:A?.emptyText===void 0?V?.(`Table`)||v.createElement(Ah,{componentName:`Table`}):A.emptyText,[Xe?.spinning,ce,A?.emptyText,V]),tt=M?vC:_C,rt={},it=v.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=de,o=Math.floor(e*t);switch(ne){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[de,ne]);return M&&(rt.listItemHeight=it),v.createElement(`div`,{ref:Ce,className:Ze,style:Qe},v.createElement(Ib,{spinning:!1,...Xe},Je,v.createElement(tt,{...rt,...I,scroll:Ee,classNames:ie,styles:ae,ref:we,columns:F,direction:B,expandable:_e,prefixCls:le,className:G({[`${le}-medium`]:ne===`medium`,[`${le}-small`]:ne===`small`,[`${le}-bordered`]:l,[`${le}-empty`]:ce.length===0},ge,pe,me),data:Ue,rowKey:De,rowClassName:Ke,emptyText:et,internalHooks:Vb,internalRefs:xe,transformColumns:qe,getContainerWidth:Se,measureRowRender:e=>v.createElement(fg.Provider,{value:!0},v.createElement(lu,{getPopupContainer:e=>e},e))}),Ye))}),VC=v.forwardRef((e,t)=>{let n=v.useRef(0);return n.current+=1,v.createElement(BC,{...e,ref:t,_renderTimes:n.current})});VC.SELECTION_COLUMN=nS,VC.EXPAND_COLUMN=Bb,VC.SELECTION_ALL=rS,VC.SELECTION_INVERT=iS,VC.SELECTION_NONE=aS,VC.Column=Gae,VC.ColumnGroup=Kae,VC.Summary=sx;var HC=VC,UC=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...Va(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-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}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},WC=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return li(e,{tagFontSize:i,tagLineHeight:K(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},GC=e=>{let t=Xd(new Wd(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ji(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},KC=Xa(`Tag`,e=>UC(WC(e)),GC),qC=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext($e),m=v.useContext(Xl),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=KC(_),x=G(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),JC=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=nt(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,D]=KC(C,jc(C)),[O,k]=mc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>Zs(e)?e:{value:e,label:e}):[],[u]),[j,M]=E(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(We(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ts(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:G(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(qC,{key:e.value,className:G(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function YC(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=hg(n),c=Kte(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ji(o).toHsl();e.l=.95,l.backgroundColor=new ji(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var XC=e=>eo(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),ZC=Qa([`Tag`,`preset`],e=>XC(WC(e)),GC);function QC(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var $C=(e,t,n)=>{let r=QC(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},ew=Qa([`Tag`,`status`],e=>{let t=WC(e);return[$C(t,`success`,`Success`),$C(t,`processing`,`Info`),$C(t,`error`,`Error`),$C(t,`warning`,`Warning`)]},GC),tw=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=nt(`tag`),[E,D,O,k,A]=YC(e,S),j=O||k,M=v.useContext(Xl),N=f??M,{tag:P}=v.useContext($e),[F,I]=v.useState(!0),L=he(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=mc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,ee]=KC(H),te=G(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,ee),W=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ne]=oc(ec(e),ec(P),{closable:!1,closeIconRender:e=>Wl(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:W},e),e=>({onClick:t=>{e?.onClick?.(t),W(t)},className:G(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,ie=Gl(s,{className:G(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ae=ie?v.createElement(v.Fragment,null,ie,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,oe=p?`a`:`span`,se=v.createElement(oe,{...L,ref:t,className:te,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ae,ne,O&&v.createElement(ZC,{key:`preset`,prefixCls:H}),k&&v.createElement(ew,{key:`status`,prefixCls:H}));return re?v.createElement(Mu,{component:`Tag`},se):se});tw.CheckableTag=qC,tw.CheckableTagGroup=JC;var nw={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`};function rw(){return rw=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,rw({},e,{ref:t,icon:nw}))),aw={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`};function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,ow({},e,{ref:t,icon:aw}))),cw=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},lw=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` - h${t}&, - div&-h${t}, - div&-h${t} > textarea, - h${t} - `]=cw(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},uw=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Ya(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},dw=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ji[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:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),fw=e=>{let{componentCls:t,paddingSM:n}=e,r=n;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`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},pw=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),mw=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),hw=Xa(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=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`},...lw(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...dw(e),...uw(e),[`${t}-actions`]:{display:`inline`},[` - ${t}-expand, - ${t}-collapse, - ${t}-edit, - ${t}-copy - `]:{...Ya(e),marginInlineStart:e.marginXXS},...fw(e),...pw(e),...mw(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),gw=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(sw,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===uu.ENTER?(w(),d?.()):e===uu.ESC&&u())},E=()=>{w()},[D,O]=hw(t),k=G(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(Vy,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:Gl(p,{className:`${t}-edit-content-confirm`}))},_w=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},vw=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}};async function yw(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await vw(e,n)||_w(e,n))}var Hoe=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:b(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await yw((typeof e.text==`function`?await e.text():e.text)||Lb(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function bw(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var Uoe=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},Woe=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:Zs(e)?{title:t??n,...e}:{title:e},[e,t,n]),xw=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=nt(`typography`),m=s??d,h=u(`typography`,n),[g,_]=hw(h),y=G(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),Goe={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`};function Sw(){return Sw=Object.assign?Object.assign.bind():function(e){for(var t=1;tv.createElement(Co,Sw({},e,{ref:t,icon:Goe}))),Cw=e=>e===!1?[!1,!1]:Lb(e);function ww(e,t,n){return e===!0||e===void 0?t:e||n&&t}function qoe(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var Tw=e=>[`string`,`number`].includes(typeof e),Joe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Cw(a),d=Cw(o),{copied:f,copy:p}=r??{},m=n?f:p,h=ww(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_g,{title:h},v.createElement(`button`,{type:`button`,className:G(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?ww(d[1],v.createElement(Vh,null),!0):ww(d[0],l?v.createElement(pu,null):v.createElement(Koe,null),!0)))},Ew=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),Yoe=e=>e.reduce((e,t)=>e+(Tw(t)?String(t).length:1),0);function Dw(e,t){let n=0,r=[];for(let i=0;it){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var Ow=0,kw=1,Aw=2,jw=3,Mw=4,Nw={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Xoe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>ge(r),[r]),u=v.useMemo(()=>Yoe(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[S,w]=v.useState(Ow),[T,E]=v.useState(0),[D,O]=v.useState(null);C(()=>{w(t&&n&&u?kw:Ow)},[n,r,a,t,l]),C(()=>{if(S===kw)w(Aw),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(S===Aw){let e=!!g.current?.isExceed();w(e?jw:Mw),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[S]);let k=f?Math.ceil((f[0]+f[1])/2):0;C(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(S!==jw||!f||f[0]!==f[1]){let e=i(l,!1);return[Mw,Ow].includes(S)?e:v.createElement(`span`,{style:{...Nw,WebkitLineClamp:a}},e)}return i(o?l:Dw(l,f[0]),b)},[o,S,f,l].concat(We(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,S===Aw&&v.createElement(v.Fragment,null,v.createElement(Ew,{style:{...j,...Nw,WebkitLineClamp:a},ref:g},d),v.createElement(Ew,{style:{...j,...Nw,WebkitLineClamp:a-1},ref:_},d),v.createElement(Ew,{style:{...j,...Nw,WebkitLineClamp:1},ref:y},i([],!0))),S===jw&&f&&f[0]!==f[1]&&v.createElement(Ew,{style:{...j,top:400},ref:m},i(Dw(l,k),!0)),S===kw&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var Zoe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_g,{open:a,...i},r)};function Qoe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var $oe=`...`,Pw=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],Fw=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext($e),[y]=Ws(`Text`),b=v.useRef(null),x=v.useRef(null),S=g(`typography`,n),w=he(h,Pw),[T,D]=bw(l),[O,k]=E(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=Uoe(O);C(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[I,R]=bw(u),{copied:z,copyLoading:B,onClick:V}=Hoe({copyConfig:R,children:s}),[H,U]=v.useState(!1),[ee,te]=v.useState(!1),[W,ne]=v.useState(!1),[re,ie]=v.useState(!1),[ae,oe]=v.useState(!0),[se,ce]=bw(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[le,ue]=E(ce.defaultExpanded||!1,ce.expanded),de=se&&(!le||ce.expandable===`collapsible`),{rows:fe=1}=ce,pe=v.useMemo(()=>de&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||T||I),[de,ce,T,I]);C(()=>{se&&!pe&&(U(om(`webkitLineClamp`)),te(om(`textOverflow`)))},[pe,se]);let[me,_e]=v.useState(de),ve=v.useMemo(()=>pe?!1:fe===1?ee:H,[pe,ee,H]);C(()=>{_e(ve&&de)},[ve,de]);let ye=Woe(ce.tooltip,D.text,s),be=me&&!!ye.title,xe=de&&(me?be&&re:W),Se=de&&fe===1&&me,Ce=de&&fe>1&&me,we=(e,t)=>{ue(t.expanded),ce.onExpand?.(e,t)},[Te,Ee]=v.useState(0),[De,Oe]=v.useState(!1),[ke,Ae]=v.useState(!1),je=({offsetWidth:e})=>{Ee(e)},Me=e=>{ne(e),W!==e&&ce.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(se&&be&&e){let t=qoe(e);re!==t&&ie(t)}},[se,be,s,Ce,ae,Te]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!be||!de)return;let t=new IntersectionObserver(()=>{oe(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[be,de]);let Ne=v.useMemo(()=>{if(!(!se||me))return[D.text,s,f,ye.title].find(Tw)},[se,me,f,ye.title,xe]);if(O)return v.createElement(gw,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:S,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let Pe=()=>{let{expandable:e,symbol:t}=ce;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${S}-${le?`collapse`:`expand`}`,onClick:e=>we(e,{expanded:!le}),"aria-label":le?y.collapse:y?.expand},typeof t==`function`?t(le):t):null},Fe=()=>{if(!T)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=ge(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_g,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${S}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(iw,{role:`button`}))):null},Ie=()=>I?v.createElement(Joe,{key:`copy`,...R,prefixCls:S,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!Js(s)}):null,Re=e=>{let t=e&&Pe(),n=Fe(),r=Ie();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${S}-actions`,onMouseEnter:()=>Oe(!0),onMouseLeave:()=>Oe(!1)},t,n,r)},ze=e=>[e&&!le&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},$oe),ce.suffix,Re(e)];return v.createElement(Le,{onResize:je,disabled:!de},c=>v.createElement(Zoe,{tooltipProps:ye,enableEllipsis:de,isEllipsis:xe,open:ke&&!De},v.createElement(xw,{onMouseEnter:e=>{Ae(!0),p?.(e)},onMouseLeave:e=>{Ae(!1),m?.(e)},className:G({[`${S}-${a}`]:a,[`${S}-disabled`]:o,[`${S}-ellipsis`]:se,[`${S}-ellipsis-single-line`]:Se,[`${S}-ellipsis-multiple-line`]:Ce,[`${S}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:Ce?fe:void 0},component:d,ref:L(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":Ne?.toString(),title:f,...w},v.createElement(Xoe,{enableMeasure:de&&!me,text:s,rows:fe,width:Te,onEllipsis:Me,expanded:le,miscDeps:[z,le,B,T,I,y].concat(We(Pw.map(t=>e[t])))},(t,n)=>Qoe(e,v.createElement(v.Fragment,null,t.length>0&&n&&!le&&Ne?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,ze(n)))))))}),ese=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(Fw,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),tse=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(Fw,{ref:t,...r,component:`div`},n)}),nse=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>Zs(n)?he(n,[`expandable`,`rows`]):n,[n]);return v.createElement(Fw,{ref:t,...i,ellipsis:a,component:`span`},r)}),rse=[1,2,3,4,5],ise=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=rse.includes(n)?`h${n}`:`h1`;return v.createElement(Fw,{ref:t,...i,component:a},r)}),Iw=xw;Iw.Text=nse,Iw.Link=ese,Iw.Title=ise,Iw.Paragraph=tse;var ase=`modulepreload`,ose=function(e){return`/`+e},Lw={},sse=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ose(t,n),t in Lw)return;Lw[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:ase,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Rw=`popstate`;function zw(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function cse(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Uw(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Ww(t)}return use(t,n,null,e)}function Bw(e,t){if(e===!1||e==null)throw Error(t)}function Vw(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function lse(){return Math.random().toString(36).substring(2,10)}function Hw(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Uw(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Gw(t):t,state:n,key:t&&t.key||r||lse(),mask:i}}function Ww({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Gw(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function use(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=zw(e)?e:Uw(h.location,e,t);n&&n(r,e),l=u()+1;let d=Hw(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=zw(e)?e:Uw(h.location,e,t);n&&n(r,e),l=u();let i=Hw(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return dse(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Rw,d),c=e,()=>{i.removeEventListener(Rw,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function dse(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),Bw(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:Ww(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function Kw(e,t,n=`/`){return fse(e,t,n,!1)}function fse(e,t,n,r,i){let a=Zw((typeof t==`string`?Gw(t):t).pathname||`/`,n);if(a==null)return null;let o=i??mse(e),s=null,c=Ese(a);for(let e=0;s==null&&e{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Bw(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=rT([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Bw(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),qw(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Sse(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Jw(e.path))a(e,t,!0,n)}),t}function Jw(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Jw(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function hse(e){e.sort((e,t)=>e.score===t.score?Cse(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var gse=/^:[\w-]+$/,_se=3,vse=2,yse=1,bse=10,xse=-2,Yw=e=>e===`*`;function Sse(e,t){let n=e.split(`/`),r=n.length;return n.some(Yw)&&(r+=xse),t&&(r+=vse),n.filter(e=>!Yw(e)).reduce((e,t)=>e+(gse.test(t)?_se:t===``?yse:bse),r)}function Cse(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function wse(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Tse(e,t=!1,n=!0){Vw(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ese(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Vw(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Zw(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var Dse=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ose(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Gw(e):e,a;return n?(n=nT(n),a=n.startsWith(`/`)?Qw(n.substring(1),`/`):Qw(n,t)):a=t,{pathname:a,search:jse(r),hash:Mse(i)}}function Qw(e,t){let n=iT(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function $w(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function kse(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function eT(e){let t=kse(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function tT(e,t,n,r=!1){let i;typeof e==`string`?i=Gw(e):(i={...e},Bw(!i.pathname||!i.pathname.includes(`?`),$w(`?`,`pathname`,`search`,i)),Bw(!i.pathname||!i.pathname.includes(`#`),$w(`#`,`pathname`,`hash`,i)),Bw(!i.search||!i.search.includes(`#`),$w(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ose(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var nT=e=>e.replace(/\/\/+/g,`/`),rT=e=>nT(e.join(`/`)),iT=e=>e.replace(/\/+$/,``),Ase=e=>iT(e).replace(/^\/*/,`/`),jse=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Mse=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Nse=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Pse(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Fse(e){return rT(e.map(e=>e.route.path).filter(Boolean))||`/`}var aT=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function oT(e,t){let n=e;if(typeof n!=`string`||!Dse.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(aT)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=Zw(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Vw(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var sT=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(sT);var Ise=[`GET`,...sT];new Set(Ise);var cT=v.createContext(null);cT.displayName=`DataRouter`;var lT=v.createContext(null);lT.displayName=`DataRouterState`;var uT=v.createContext(!1);function Lse(){return v.useContext(uT)}var dT=v.createContext({isTransitioning:!1});dT.displayName=`ViewTransition`;var Rse=v.createContext(new Map);Rse.displayName=`Fetchers`;var zse=v.createContext(null);zse.displayName=`Await`;var fT=v.createContext(null);fT.displayName=`Navigation`;var pT=v.createContext(null);pT.displayName=`Location`;var mT=v.createContext({outlet:null,matches:[],isDataRoute:!1});mT.displayName=`Route`;var hT=v.createContext(null);hT.displayName=`RouteError`;var gT=`REACT_ROUTER_ERROR`,Bse=`REDIRECT`,Vse=`ROUTE_ERROR_RESPONSE`;function Hse(e){if(e.startsWith(`${gT}:${Bse}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Use(e){if(e.startsWith(`${gT}:${Vse}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Nse(t.status,t.statusText,t.data)}catch{}}function Wse(e,{relative:t}={}){Bw(_T(),`useHref() may be used only in the context of a component.`);let{basename:n,navigator:r}=v.useContext(fT),{hash:i,pathname:a,search:o}=ST(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:rT([n,a])),r.createHref({pathname:s,search:o,hash:i})}function _T(){return v.useContext(pT)!=null}function vT(){return Bw(_T(),`useLocation() may be used only in the context of a component.`),v.useContext(pT).location}var yT=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function bT(e){v.useContext(fT).static||v.useLayoutEffect(e)}function xT(){let{isDataRoute:e}=v.useContext(mT);return e?rce():Gse()}function Gse(){Bw(_T(),`useNavigate() may be used only in the context of a component.`);let e=v.useContext(cT),{basename:t,navigator:n}=v.useContext(fT),{matches:r}=v.useContext(mT),{pathname:i}=vT(),a=JSON.stringify(eT(r)),o=v.useRef(!1);return bT(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(Vw(o.current,yT),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=tT(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:rT([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function ST(e,{relative:t}={}){let{matches:n}=v.useContext(mT),{pathname:r}=vT(),i=JSON.stringify(eT(n));return v.useMemo(()=>tT(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Kse(e,t){return CT(e,t)}function CT(e,t,n){Bw(_T(),`useRoutes() may be used only in the context of a component.`);let{navigator:r}=v.useContext(fT),{matches:i}=v.useContext(mT),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;jT(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .`)}let u=vT(),d;if(t){let e=typeof t==`string`?Gw(t):t;Bw(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Kw(e,{pathname:p});Vw(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Vw(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let h=Zse(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:rT([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:rT([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?v.createElement(pT.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function qse(){let e=nce(),t=Pse(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=v.createElement(v.Fragment,null,v.createElement(`p`,null,`💿 Hey developer 👋`),v.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,v.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,v.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),v.createElement(v.Fragment,null,v.createElement(`h2`,null,`Unexpected Application Error!`),v.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?v.createElement(`pre`,{style:i},n):null,o)}var Jse=v.createElement(qse,null),wT=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Use(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(mT.Provider,{value:this.props.routeContext},v.createElement(hT.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(Yse,{error:e},t):t}};wT.contextType=uT;var TT=new WeakMap;function Yse({children:e,error:t}){let{basename:n}=v.useContext(fT);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Hse(t.digest);if(e){let r=TT.get(t);if(r)throw r;let i=oT(e.location,n);if(aT&&!TT.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw TT.set(t,n),n}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Xse({routeContext:e,match:t,children:n}){let r=v.useContext(cT);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(mT.Provider,{value:e},n)}function Zse(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Bw(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Fse(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Jse,o&&(s<0&&c===0?(jT(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?v.createElement(n.route.Component,null):n.route.element?n.route.element:e,v.createElement(Xse,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(wT,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function ET(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qse(e){let t=v.useContext(cT);return Bw(t,ET(e)),t}function DT(e){let t=v.useContext(lT);return Bw(t,ET(e)),t}function $se(e){let t=v.useContext(mT);return Bw(t,ET(e)),t}function OT(e){let t=$se(e),n=t.matches[t.matches.length-1];return Bw(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ece(){return OT(`useRouteId`)}function tce(){return DT(`useNavigation`).navigation}function kT(){let{matches:e,loaderData:t}=DT(`useMatches`);return v.useMemo(()=>e.map(e=>pse(e,t)),[e,t])}function nce(){let e=v.useContext(hT),t=DT(`useRouteError`),n=OT(`useRouteError`);return e===void 0?t.errors?.[n]:e}function rce(){let{router:e}=Qse(`useNavigate`),t=OT(`useNavigate`),n=v.useRef(!1);return bT(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{Vw(n.current,yT),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var AT={};function jT(e,t,n){!t&&!AT[e]&&(AT[e]=!0,Vw(!1,n))}v.memo(ice);function ice({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return CT(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function MT(e){Bw(!1,`A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .`)}function NT({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Bw(!_T(),`You cannot render a inside another . You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=v.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Gw(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=Zw(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return Vw(h!=null,` is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the won't render anything.`),h==null?null:v.createElement(fT.Provider,{value:c},v.createElement(pT.Provider,{children:t,value:h}))}function ace({children:e,location:t}){return Kse(PT(e),t)}v.Component;function PT(e,t=[]){let n=[];return v.Children.forEach(e,(e,r)=>{if(!v.isValidElement(e))return;let i=[...t,r];if(e.type===v.Fragment){n.push.apply(n,PT(e.props.children,i));return}Bw(e.type===MT,`[${typeof e.type==`string`?e.type:e.type.name}] is not a component. All component children of must be a or `),Bw(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=PT(e.props.children,i)),n.push(a)}),n}var FT=`get`,IT=`application/x-www-form-urlencoded`;function LT(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function oce(e){return LT(e)&&e.tagName.toLowerCase()===`button`}function sce(e){return LT(e)&&e.tagName.toLowerCase()===`form`}function cce(e){return LT(e)&&e.tagName.toLowerCase()===`input`}function lce(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uce(e,t){return e.button===0&&(!t||t===`_self`)&&!lce(e)}var RT=null;function dce(){if(RT===null)try{new FormData(document.createElement(`form`),0),RT=!1}catch{RT=!0}return RT}var fce=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function zT(e){return e!=null&&!fce.has(e)?(Vw(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${IT}"`),null):e}function pce(e,t){let n,r,i,a,o;if(sce(e)){let o=e.getAttribute(`action`);r=o?Zw(o,t):null,n=e.getAttribute(`method`)||FT,i=zT(e.getAttribute(`enctype`))||IT,a=new FormData(e)}else if(oce(e)||cce(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a